[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 03 Mar 2013 22:14:46 +0100
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)
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.
> I tried the following:
> (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))))
> 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.
- lsof, Andreas Enge, 2013/03/03
- Re: lsof,
Ludovic Courtès <=