Hi,

On Tue, 26 Aug 2025 at 19:00, Timothee Mathieu <[email protected]> 
wrote:

> $ guix build /gnu/store/kckbcpwfjpa9agidjl7ihg8fawr1yy8w-profile.drv
> /gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile

And the output of

    readlink -f $(guix time-machine -C channels.scm)

?  I expect the same as above. :-)

> $ find $(readlink -f $(guix time-machine -C 
> channels.scm)/share/guile/site/3.0/gnu) \
>  -type f -exec grep -nH 'define-public nss-certs' {} \;
> /gnu/store/g4yscymdp3k9ihlasaa6128wngs47w6q-guix-52d82e555-modules/share/guile/site/3.0/gnu/packages/certs.scm:130:(define-public
>  nss-certs
> /gnu/store/g4yscymdp3k9ihlasaa6128wngs47w6q-guix-52d82e555-modules/share/guile/site/3.0/gnu/packages/certs.scm:193:(define-public
>  nss-certs-for-test
>
> $ find $(readlink -f $(guix time-machine -C  
> channels.scm)/share/guile/site/3.0/guix-science) \   
>       -type f -exec grep -nH 'certs' {} \;             
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/build-system/bazel.scm:31:
>   #:use-module (gnu packages certs) ;nss-certs
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/build-system/bazel.scm:104:
>          (let ((cert-bundle (string-append #+nss-certs
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/build-system/bazel.scm:105:
>                                            "/etc/ssl/certs/ca-bundle.crt")))
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/packages/bioinformatics.scm:1973:
>                                              "/lib/security/cacerts"))))))))))
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/packages/jupyter.scm:21:
>   #:use-module (gnu packages certs)
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/packages/jupyter.scm:105:
>      (list nss-certs-for-test
> /gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/packages/python.scm:57:
>   #:use-module (gnu packages certs)

If all is correct, the Guix compiled counter-part is the .go file living
here:

--8<---------------cut here---------------start------------->8---
$ find $(readlink -f $(guix time-machine -C  
channels.scm)/lib/guile/3.0/site-ccache/gnu) -type f | grep certs
/gnu/store/g4yscymdp3k9ihlasaa6128wngs47w6q-guix-52d82e555-modules/lib/guile/3.0/site-ccache/gnu/packages/certs.go

$ find $(readlink -f $(guix time-machine -C  
channels.scm)/lib/guile/3.0/site-ccache/guix-science) -type f | grep -E 
'(bazel|jupyther|python)'
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/build-system/bazel.go
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/build/bazel-build-system.go
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/packages/python.go
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/packages/bazel.go
--8<---------------cut here---------------end--------------->8---

Could you confirm you have the same outputs?

And all these should match the ones from the internals file ’manifest’.
For example,

--8<---------------cut here---------------start------------->8---
$ guix hash -f hex -H sha1 $(guix time-machine -C channels.scm)/manifest
b1b4fc1f9ec79f39a133f60c8e2018e2bc003bc5

$ guix hash -f hex -H sha1 
/gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile/manifest 
b1b4fc1f9ec79f39a133f60c8e2018e2bc003bc5

$ cat $(guix time-machine -C  channels.scm)/manifest
;; This file was automatically generated and is for internal use only.
;; It cannot be passed to the '--manifest' option.
;; Run 'guix package --export-manifest' if you want to export a file
;; suitable for '--manifest'.

(manifest
  (version 3)
  (packages
    (("guix-science"
      "1fff462"
      "out"
      "/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science"
      (propagated-inputs ())
      (search-paths ())
      (properties
        (source
          (repository
            (version 0)
            (url "https://codeberg.org/guix-science/guix-science.git";)
            (branch "master")
            (commit
              "1fff4622cf7b51c40c549f83496dc6d906bf874f")
            (name guix-science)
            (introduction
              (channel-introduction
                (version 0)
                (commit
                  "b1fe5aaff3ab48e798a4cce02f0212bc91f423dc")
                (signer
                  "CA4F 8CF4 37D7 478F DA05  5FD4 4213 7701 1A37 8446")))))))
     ("guix"
      "52d82e5"
      "out"
      "/gnu/store/nxg5z5g7fh1c5vcrzv6d53xnaxxxnz2v-guix-52d82e555"
      (propagated-inputs ())
      (search-paths ())
      (properties
        (source
          (repository
            (version 0)
            (url "https://git.guix.gnu.org/guix.git";)
            (branch "master")
            (commit
              "52d82e555119c013cfbf9ad7671a56dc6c1a1f16")
            (name guix)
            (introduction
              (channel-introduction
                (version 0)
                (commit
                  "9edb3f66fd807b096b48283debdcddccfea34bad")
                (signer
                  "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"))))))))))

$ readlink -f 
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/share/guile/site/3.0/guix-science/build-system/bazel.scm
/gnu/store/4ick02v0scz4565b02fwii656x1dcd4x-guix-science-1fff462/guix-science/build-system/bazel.scm

$ readlink -f 
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/build-system/bazel.go
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science/lib/guile/3.0/site-ccache/guix-science/build-system/bazel.go

$ readlink -f 
/gnu/store/nxg5z5g7fh1c5vcrzv6d53xnaxxxnz2v-guix-52d82e555/share/guile/site/3.0/gnu/packages/certs.scm
/gnu/store/g4yscymdp3k9ihlasaa6128wngs47w6q-guix-52d82e555-modules/share/guile/site/3.0/gnu/packages/certs.scm

$ readlink -f 
/gnu/store/nxg5z5g7fh1c5vcrzv6d53xnaxxxnz2v-guix-52d82e555/lib/guile/3.0/site-ccache/gnu/packages/certs.go
/gnu/store/g4yscymdp3k9ihlasaa6128wngs47w6q-guix-52d82e555-modules/lib/guile/3.0/site-ccache/gnu/packages/certs.go
--8<---------------cut here---------------end--------------->8---

Is it the case?

Now, let starts an empty shell and run this Guix revision.

--8<---------------cut here---------------start------------->8---
$ env -i $(type -P bash) --login --noprofile --norc

$ type -P guix
/usr/local/bin/guix

$ PATH=
$ type -P guix

$ /gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile/bin/guix describe -f 
channels-sans-intro
(list (channel
        (name 'guix-science)
        (url "https://codeberg.org/guix-science/guix-science.git";)
        (branch "master")
        (commit
          "1fff4622cf7b51c40c549f83496dc6d906bf874f"))
      (channel
        (name 'guix)
        (url "https://git.guix.gnu.org/guix.git";)
        (branch "master")
        (commit
          "52d82e555119c013cfbf9ad7671a56dc6c1a1f16")))

$ /gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile/bin/guix build python-jax
/gnu/store/slfhr5slgshs1c1g99rs09qggmkrmbjz-python-jax-0.4.28
--8<---------------cut here---------------end--------------->8---

If that works for you, it means something is twisted when running the
inferior profile.  Somehow, when running “guix time-machine -C
channels.scm -- build python-jax”, it does not run the expected profile.

If that does not work for you, it means something is twisted between the
.scm files and the compiled .go representation.  Somehow, it’s verified
that the .scm files are correct – we could compare their checksum in
case of doubt :-) – therefore the .go files would be unexpected.

HTH.

Cheers,
simon

Reply via email to