Description
The qrestapi
module included (guix-systole packages)
to use the search-patches
function. Working on configuring the repository as a Guix channel (#48, then #54) we realised that this inclusion specifically in the qrestapi
module causes the channel to not be able to pull successfully, failing during the package cache creation phase:
building package cache...
/builder for `/gnu/store/vviglsqbzc8403wsvksavggf4652v7qj-guix-package-cache.drv' failed to produce output path `/gnu/store/08m5nzv6ayl2brla3qvwhm60vpians2y-guix-package-cache'
build of /gnu/store/vviglsqbzc8403wsvksavggf4652v7qj-guix-package-cache.drv failed
hint: This usually indicates a bug in one of the channels you are pulling from, or some incompatibility among them. You can check the
build log and report the issue to the channel developers.
The channels you are pulling from are: guix-systole nonguix guix.
View build log at '/var/log/guix/drvs/vv/iglsqbzc8403wsvksavggf4652v7qj-guix-package-cache.drv.gz'.
cannot build derivation `/gnu/store/hg4xa7xhg0cm4a1zzh13k1y2cc3pf5bz-profile.drv': 1 dependencies couldn't be built
guix pull: error: build of `/gnu/store/hg4xa7xhg0cm4a1zzh13k1y2cc3pf5bz-profile.drv' failed
The build log mentioned above contains the following:
Package cache build log
(repl-version 0 1 1)
Generating package cache for '/gnu/store/cl04khhnb30v81m4h6w586d8g7dlbfrv-profile'...
guix repl: warning: failed to load '(guix-systole packages qrestapi)':
In procedure scm_to_utf8_stringn: Wrong type argument in position 1 (expecting string): #f
Backtrace:
In guix/repl.scm:
141:4 19 (machine-repl _ )
126:7 18 ()
In ice-9/boot-9.scm:
1747:15 17 (with-exception-handler #<procedure 7ffff1ff8cc0 at ic…> …)
1752:10 16 (with-exception-handler _ _ #:unwind? _ # )
In guix/repl.scm:
99:21 15 ()
In unknown file:
14 (_ #<procedure 7ffff1ff6b40 at guix/repl.scm:100:25 ()> …)
13 (primitive-load "/gnu/store/3xdrnkwvaxnmrdp8lrd8lpws4k0…")
In ice-9/boot-9.scm:
1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In gnu/packages.scm:
466:11 11 (generate-package-cache _)
In srfi/srfi-1.scm:
460:18 10 (fold # _ )
In gnu/packages.scm:
426:37 9 (expand-cache . )
In guix/packages.scm:
1444:17 8 (supported-package? #<package [email protected] guix-sy…> …)
In guix/memoization.scm:
101:0 7 ( #<hash-table 7fffea153aa0 32959/56197> #<package sl…> …)
In guix/packages.scm:
1422:39 6 ()
1692:16 5 (package->bag _ _ _ #:graft? _)
1793:48 4 (thunk)
In guix-systole/packages/slicer.scm:
215:18 3 (inputs #<package [email protected] guix-systole/package…>)
In ice-9/boot-9.scm:
1685:16 2 (raise-exception _ #:continuable? )
1780:13 1 ( #<&compound-exception components: (#<&undefined-vari…>)
In unknown file:
0 (backtrace #)
(exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (qrestapi)) (value #f))
The qrestapi
module has been edited in #54 so that it uses a generic function to find patches, but this is not ideal as it has potential to work unpredictably if the Guix builder is not executed from the expected working directory.
We should find out what causes this module import to break the channel, and fix it.