Hi Ludo, >> Likewise, it is not possible to use “guix pack” with “--with-source”: >> >> guix pack -e '(load "guix.scm")' --with-source=tool-0.0.1.tar.gz … > > Why/how does it fail? “--with-source” looks for package name matches, > so as long as your package is called “tool”, the above should work, no?
Here is how it fails: --8<---------------cut here---------------start------------->8--- $ guix pack -e '(load "guix.scm")' --with-source=pigx_bsseq-0.0.1.tar.gz -f docker -S /bin=bin -S /lib=lib -S /share=share glibc-utf8-locales gzip tzdata coreutils […] starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' […] starting phase `unpack' Backtrace: In ice-9/boot-9.scm: 160: 14 [catch #t #<catch-closure 8c5dc0> ...] In unknown file: ?: 13 [apply-smob/1 #<catch-closure 8c5dc0>] In ice-9/boot-9.scm: 66: 12 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 11 [eval # #] In ice-9/boot-9.scm: 2412: 10 [save-module-excursion #<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>] 4089: 9 [#<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>] 1734: 8 [%start-stack load-stack #<procedure 8f6e20 at ice-9/boot-9.scm:4080:10 ()>] 1739: 7 [#<procedure 8f7960 ()>] In unknown file: ?: 6 [primitive-load "/gnu/store/8i9yc8s656d5xrfnsx9yp8cqx0q1wxsk-pigx_bsseq-0.0.1-guile-builder"] In ice-9/eval.scm: 387: 5 [eval # ()] In srfi/srfi-1.scm: 827: 4 [every1 #<procedure d72be0 at /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9 (expr)> ...] In /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm: 653: 3 [#<procedure d72be0 at /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9 (expr)> #] 139: 2 [unpack #:source #f] In ice-9/boot-9.scm: 1471: 1 [#<procedure 83e960 at ice-9/boot-9.scm:1470:6 (str)> #f] In unknown file: ?: 0 [stat #f #<undefined>] ERROR: In procedure stat: ERROR: In procedure stat: Wrong type argument in position 1 (expecting open file port): #f builder for `/gnu/store/sg7b481sbjsx3xvf17jgzkcbdxivvk5l-pigx_bsseq-0.0.1.drv' failed with exit code 1 guix pack: error: build failed: build of `/gnu/store/sg7b481sbjsx3xvf17jgzkcbdxivvk5l-pigx_bsseq-0.0.1.drv' failed --8<---------------cut here---------------end--------------->8--- It tries to unpack “#f”, not the new source tarball. “guix.scm” is attached.
guix.scm
Description: Binary data
-- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net
