unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* lsof
@ 2013-03-03 10:38 Andreas Enge
  2013-03-03 21:14 ` lsof Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Enge @ 2013-03-03 10:38 UTC (permalink / raw)
  To: bug-guix

Hello,

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:

   (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? Or do you see 
a preferable way of doing the second stage unpacking?

Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-04 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-03 10:38 lsof Andreas Enge
2013-03-03 21:14 ` lsof Ludovic Courtès
2013-03-04 21:55   ` lsof Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).