[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lsof
From: |
Ludovic Courtès |
Subject: |
Re: lsof |
Date: |
Sun, 03 Mar 2013 22:14:46 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Hi!
Andreas Enge <address@hidden> skribis:
> the lsof tarball contains the source in a two-stage process: After
> unpacking, one is left with lsof_4.87_src.tar, which needs to be unpacked
> as well.
Weird.
> I tried the following:
>
> (arguments
> `(#:phases
> (alist-replace
> 'unpack
> (lambda* (#:key source name version #:allow-other-keys)
> (let ((unpack (assoc-ref %standard-phases 'unpack))
> (inner (string-append name "_" version "_src.tar")))
> (apply unpack (list #:source source))
> (apply unpack (list #:source inner))))
> %standard-phases)))
>
> But apparently, NAME and VERSION are not passed through as function
> arguments (they are #f). Would it make sense to changes this?
It wouldn’t hurt to pass them, and it may be helpful in cases like this.
So feel free to add it to build-system/gnu.scm and gnu-build-system.scm.
> Or do you see a preferable way of doing the second stage unpacking?
You could use (find-files "." "\\.tar$") to find the tar file, I guess.
Ludo’.
- lsof, Andreas Enge, 2013/03/03
- Re: lsof,
Ludovic Courtès <=