Hello,

I have package which does not build on a single machine, and only
relevant difference I can think of is that the guix-daemon is running in
unprivileged mode.  I do not have access to a second system with
unprivileged daemon to verify.

I can reproduce the problem reliably, so if more information is needed,
just let me know.

The package[0] in question is very simple, it just unpacks an archive
and install a single binary using copy-build-system:

--8<---------------cut here---------------start------------->8---
(define-public helm-kubernetes
  (package
    (name "helm-kubernetes")
    (version "3.15.4")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://get.helm.sh/helm-v"; version "-linux-amd64.tar.gz"))
              (sha256
               (base32
                "1afgf08z6hgy07kjk8fj7xkr8ma4qk2f1r33901nzz87zkn0yh0i"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:substitutable? #f
      #:install-plan
      #~'(("linux-amd64/helm" "bin/"))
      #:phases
      #~(modify-phases %standard-phases
          (replace 'unpack
            (lambda* (#:key source #:allow-other-keys)
              (invoke "tar" "-xvf" source)))
          (add-before 'install 'chmod
            (lambda _
              (chmod "linux-amd64/helm" #o555))))))
    (home-page "https://helm.sh";)
    (supported-systems '("x86_64-linux"))
    (synopsis "The package manager for Kubernetes")
    (description
     "Helm helps you manage Kubernetes applications - Helm Charts help you
define, install, and upgrade Kubernetes applications.")
    (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

And the failure happens in `install-license-files' phase:

--8<---------------cut here---------------start------------->8---
starting phase `install-license-files'
error: in phase 'install-license-files': uncaught exception:
match-error "match" "no matching pattern" #f 
phase `install-license-files' failed after 0.0 seconds
--8<---------------cut here---------------end--------------->8---

channels.sex:

--8<---------------cut here---------------start------------->8---
(list (channel
       (name 'guix)
       (url "https://git.guix.gnu.org/guix.git";)
       (branch #f)
       (commit "3cf8ff32f246fd0e919946911c1710e402c78355")
       (introduction
        (make-channel-introduction
         "9edb3f66fd807b096b48283debdcddccfea34bad"
         (openpgp-fingerprint
          "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"))))
      (channel
       (name 'nonguix)
       (url "https://gitlab.com/nonguix/nonguix";)
       (branch "master")
       (commit "35a3ee8b8c7897fff288a890ebefa417eea0e0e3")
       (introduction
        (make-channel-introduction
         "897c1a470da759236cc11798f4e0a5f7d4d59fbc"
         (openpgp-fingerprint
          "2A39 3FFF 68F4 EF7A 3D29  12AF 6F51 20A0 22FB B2D5"))))
      (channel
       (name 'wolfsden)
       (url "https://git.wolfsden.cz/.git/wolfsden";)
       (branch "master")
       (commit "71badfc3fa2a4d63c03f1516659d1022063f5624")
       (introduction
        (make-channel-introduction
         "49d7c72d2c3ae36ae8cf045dc7c00da29801af2c"
         (openpgp-fingerprint
          "B783 49B3 8C14 7D36 2988  68A4 2FBF EE7D B67F C1A9")))))
--8<---------------cut here---------------end--------------->8---

guix time-machine -C channels.sex -- build --check jsonnet-bundler :

--8<---------------cut here---------------start------------->8---
The following derivation will be built:
  /gnu/store/ckl8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv
building 
/gnu/store/ckl8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv...
starting phase `separate-from-pid1'
build process now running as PID 19
phase `separate-from-pid1' succeeded after 0.0 seconds
starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to 
`/gnu/store/x5nk7jclncdrrsjhpmjjfl2z9p36bxyw-tar-1.35/bin:/gnu/store/vcmbby8alqahhhd5qnidpf5pbvr102jl-gzip-1.14/bin:/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/bin:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/bin:/gnu/store/d7q1jypzi0hjx0gf2034yzljvapy7fvy-diffutils-3.12/bin:/gnu/store/3yky2jh15qsknnxnzplhj4by14sqmfig-patch-2.7.6/bin:/gnu/store/nfs39m8hsbx905q5kgjiw1irfrllkk00-findutils-4.10.0/bin:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/bin:/gnu/store/d4bzgx28m0640plahv0x3h5hxlh1npnj-zstd-1.5.6/bin:/gnu/store/5a3p82yj9nrj6rhk11f7b2sb84wirc2k-sed-4.9/bin:/gnu/store/1lkl6hik16bbhpjjsl825fivp2dsr9vi-grep-3.11/bin:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/bin:/gnu/store/pai3hvsiihllqi03b2198qi5qq9a28ga-coreutils-9.1/bin:/gnu/store/jkxm9drwlxkmb53zn1sd7w2wxdvpbj32-make-4.4.1/bin:/gnu/store/k66i68s5l93n1lgxp29vn2292nsywp1v-bash-minimal-5.2.37/bin:/gnu/store/pazcfyngzb35khc8ad33dmsb22ibnl80-ld-wrapper-0/bin:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/bin:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/bin:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/bin:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/sbin'
environment variable `BASH_LOADABLES_PATH' unset
environment variable `C_INCLUDE_PATH' set to 
`/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/include:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/include:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/include:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/include:/gnu/store/jkxm9drwlxkmb53zn1sd7w2wxdvpbj32-make-4.4.1/include:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/include:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/include:/gnu/store/90qwxdmdw7jdf0dkkgdgxln6b5a57kzx-linux-libre-headers-6.12.17/include'
environment variable `CPLUS_INCLUDE_PATH' set to 
`/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/include:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/include:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/include:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/include:/gnu/store/jkxm9drwlxkmb53zn1sd7w2wxdvpbj32-make-4.4.1/include:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/include:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include/c++:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/include:/gnu/store/90qwxdmdw7jdf0dkkgdgxln6b5a57kzx-linux-libre-headers-6.12.17/include'
environment variable `OBJC_INCLUDE_PATH' set to 
`/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/include:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/include:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/include:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/include:/gnu/store/jkxm9drwlxkmb53zn1sd7w2wxdvpbj32-make-4.4.1/include:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/include:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/include:/gnu/store/90qwxdmdw7jdf0dkkgdgxln6b5a57kzx-linux-libre-headers-6.12.17/include'
environment variable `OBJCPLUS_INCLUDE_PATH' set to 
`/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/include:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/include:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/include:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/include:/gnu/store/jkxm9drwlxkmb53zn1sd7w2wxdvpbj32-make-4.4.1/include:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/include:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include/c++:/gnu/store/wssvk5s5akbx78kx92bdkirrry87jvbj-gcc-14.3.0/include:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/include:/gnu/store/90qwxdmdw7jdf0dkkgdgxln6b5a57kzx-linux-libre-headers-6.12.17/include'
environment variable `LIBRARY_PATH' set to 
`/gnu/store/j2bib9ysq7f3369gjg6hv1kp24g07472-bzip2-1.0.8/lib:/gnu/store/plifc9akxxfyjjbnh10dj350nxbhc399-file-5.46/lib:/gnu/store/xmqvvby6vlmhbi3q913ck5marh6p86av-gawk-5.3.0/lib:/gnu/store/gd41pn8r5723cyd6d79q9riqjbi070zz-xz-5.4.5/lib:/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44/lib:/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/lib:/gnu/store/q1s19kv8bdq9ssfdgznzgkmfmj90vdfd-glibc-2.41-static/lib'
environment variable `GUIX_LOCPATH' set to 
`/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/lib/locale'
environment variable `TZDIR' unset
phase `set-paths' succeeded after 0.0 seconds
starting phase `install-locale'
using 'C.UTF-8' locale for category "LC_ALL"
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
phase `unpack' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `chmod'
phase `chmod' succeeded after 0.0 seconds
starting phase `install'
`jb' -> 
`/gnu/store/rh5zvbq6c2wq2ivnrkvgipwczzywxwmw-jsonnet-bundler-0.6.0/bin/jb'
phase `install' succeeded after 0.0 seconds
starting phase `patch-shebangs'
phase `patch-shebangs' succeeded after 0.0 seconds
starting phase `strip'
stripping binaries in 
"/gnu/store/rh5zvbq6c2wq2ivnrkvgipwczzywxwmw-jsonnet-bundler-0.6.0/bin" with 
"strip" and flags ("--strip-unneeded" "--enable-deterministic-archives")
phase `strip' succeeded after 0.0 seconds
starting phase `validate-runpath'
validating RUNPATH of 1 binaries in 
"/gnu/store/rh5zvbq6c2wq2ivnrkvgipwczzywxwmw-jsonnet-bundler-0.6.0/bin"...
phase `validate-runpath' succeeded after 0.0 seconds
starting phase `validate-documentation-location'
phase `validate-documentation-location' succeeded after 0.0 seconds
starting phase `delete-info-dir-file'
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `make-dynamic-linker-cache'
phase `make-dynamic-linker-cache' succeeded after 0.0 seconds
starting phase `install-license-files'
error: in phase 'install-license-files': uncaught exception:
match-error "match" "no matching pattern" #f 
phase `install-license-files' failed after 0.0 seconds
Backtrace:
           9 (primitive-load "/gnu/store/z45mq5jg9w3qyjikjvrkm01a16w…")
In guix/build/gnu-build-system.scm:
    972:2  8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
  1752:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
    634:9  6 (for-each #<procedure 7f480e7c2020 at guix/build/gnu-b…> …)
In ice-9/boot-9.scm:
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In guix/build/gnu-build-system.scm:
   993:23  4 (_)
    889:7  3 (install-license-files #:outputs _ #:license-file-regexp …)
    881:4  2 (_)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
build process 19 exited with status 256
builder for 
`/gnu/store/ckl8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv' failed 
with exit code 1
build of /gnu/store/ckl8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv 
failed
View build log at 
'/var/log/guix/drvs/ck/l8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv.gz'.
guix build: error: build of 
`/gnu/store/ckl8fx6i6dhmxphjcljasddrzsnj5xcw-jsonnet-bundler-0.6.0.drv' failed
--8<---------------cut here---------------end--------------->8---

In case it is relevant, the running guix-daemon binary is from the
following file:

--8<---------------cut here---------------start------------->8---
/gnu/store/92cbagmgpf2dwxbc5xry8skqa70wgqw3-guix-daemon-1.5.0-2.520785e/bin/guix-daemon
--8<---------------cut here---------------end--------------->8---

Tomas

0: 
https://gitlab.com/nonguix/nonguix/-/blob/b8648bf188df213455983e7eaab9f6c6101ca0c2/nongnu/packages/k8s.scm#L148

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.



Reply via email to