Hi! Andreas Enge <[email protected]> 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’.
