Hi,

On Thu, 23 Jul 2026 at 19:07, Mattia Bunel via <[email protected]> wrote:

> It works in the actual context, but if I run the same command with
> time-machine I'm getting the same error :
>
> guix time-machine -C channels.s -- build -L . -S rzine-documentation

[...]

> /gnu/store/vicyxhp9kxpdgahy618bwpmf48nk0xw1-rzine-documentation-1.0-
> 1.1b52ccf-checkout/.git/
> fatal: unable to access
> 'https://github.com/rzine-reviews/documentation/': Could not resolve
> host: github.com
> Failed to do a shallow fetch; retrying a full fetch...
> fatal: unable to access
> 'https://github.com/rzine-reviews/documentation/': Could not resolve
> host: github.com
> git-fetch: 'git fetch origin' failed with exit code 128
> Trying content-addressed mirror at berlin.guix.gnu.org...
> Trying content-addressed mirror at berlin.guix.gnu.org...
> Trying to download from Software Heritage...
> Backtrace:
>            7 (primitive-load "/gnu/store/jkinsrhxc9wcbrb5qbqm1bz03h8…")
> In ice-9/boot-9.scm:
>     152:2  6 (with-fluid* _ _ _)
> In ice-9/eval.scm:
>     619:8  5 (_ #(#(#<directory (guile-user) 7fffeffcdc80>)))
> In guix/swh.scm:
>    722:13  4 (swh-download "https://github.com/rzine-reviews/docume…";
> …)
>    255:22  3 (call "https://archive.softwareheritage.org/api/1/revi…";
> …)
> In web/client.scm:
>    476:29  2 (http-request "https://archive.softwareheritage.org/ap…";
> …)
>     332:9  1 (open-socket-for-uri _ #:verify-certificate? _)
> In unknown file:
>            0 (getaddrinfo "archive.softwareheritage.org" "https" 0 # …)
>
> ERROR: In procedure getaddrinfo:
> In procedure getaddrinfo: Name or service not known
> builder for `/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-
> documentation-1.0-1.1b52ccf-checkout.drv' failed with exit code 1
> la compilation de /gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-
> documentation-1.0-1.1b52ccf-checkout.drv a échoué
> Vous trouverez le journal de compilation dans «
> /var/log/guix/drvs/m3/x581jymryn8h3ajkavjd3iil8n6vxf-rzine-
> documentation-1.0-1.1b52ccf-checkout.drv.gz ».
> killing process 687874
> guix build: erreur : build of
> `/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-documentation-1.0-
> 1.1b52ccf-checkout.drv' failed

Hum?  Using the two files below, I get:

--8<---------------cut here---------------start------------->8---
$ guix time-machine -C channels.scm -- build -L pkgs rzine-documentation -S 
--check
channels.scm:12:1: warning: channel 'guix-cran' lacks an introduction and 
cannot be authenticated
hint: Consider installing the `glibc-locales' package and defining 
`GUIX_LOCPATH', along these lines:

     guix install glibc-locales
     export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.

error: #{ %make-platform-procedure/abi-check}#: unbound variable
hint: Did you forget a `use-modules' form?

error: #{ %make-platform-procedure/abi-check}#: unbound variable
hint: Did you forget a `use-modules' form?

error: #{ %make-platform-procedure/abi-check}#: unbound variable
hint: Did you forget a `use-modules' form?

error: #{ %make-platform-procedure/abi-check}#: unbound variable
hint: Did you forget a `use-modules' form?

The following derivation will be built:
  
/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-documentation-1.0-1.1b52ccf-checkout.drv
building 
/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-documentation-1.0-1.1b52ccf-checkout.drv...
guile: warning: failed to install locale
environment variable `PATH' set to 
`/gnu/store/iy1xrji5ivy09z1nyfbd4wqwyi0by09w-git-minimal-2.39.2/bin:/gnu/store/0c1yfbxyv877mlgychfgvmk5ha2jqh52-gzip-1.10/bin:/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6zqm4-tar-1.34/bin'
hint: Using 'master' as the name for the initial branch. This default branch 
name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialized empty Git repository in 
/gnu/store/vicyxhp9kxpdgahy618bwpmf48nk0xw1-rzine-documentation-1.0-1.1b52ccf-checkout/.git/
>From https://github.com/rzine-reviews/documentation
 * branch            1b52ccf6c7fc1413ecb2483e155082593953c71a -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1b52ccf update figure 5
successfully built 
/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-documentation-1.0-1.1b52ccf-checkout.drv
successfully built 
/gnu/store/m3x581jymryn8h3ajkavjd3iil8n6vxf-rzine-documentation-1.0-1.1b52ccf-checkout.drv
killing process 28004
/gnu/store/vicyxhp9kxpdgahy618bwpmf48nk0xw1-rzine-documentation-1.0-1.1b52ccf-checkout
--8<---------------cut here---------------end--------------->8---

Well, “error: #{ %make-platform-procedure/abi-check}#: unbound variable“
isn’t good but it outputs the expected item.

So… I don’t know from where your problem could come from.  It seems some
network issue on your side.  Weird.

Cheers,
simon


- - -

$ cat channels.scm 

        (list
         (channel
          (name 'guix)
          (url "https://git.guix.gnu.org/guix.git";)
          (branch "master")
          (commit "f289fe316aaa06e60f4b10e75e113cf1aeb03629")
          (introduction
           (make-channel-introduction
            "9edb3f66fd807b096b48283debdcddccfea34bad"
            (openpgp-fingerprint
             "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"))))
         (channel
          (name 'guix-cran)
          (url "https://codeberg.org/guix-science/guix-cran.git";)
          (commit "266be8df8f99f3a93317a251005e804ad389428e")))


$ cat pkgs/rzine.scm

        (define-module (rzine)
          #:use-module (guix)
          #:use-module (guix profiles)
          #:use-module (guix git-download)
          #:use-module ((guix licenses) #:prefix license:)
          #:use-module (gnu packages)
          #:use-module (gnu packages statistics)
          #:use-module (gnu packages cran)
          #:use-module (guix-cran packages c)
          #:use-module (guix-cran packages d)
          #:use-module (guix-cran packages e)
          #:use-module (guix-cran packages g)
          #:use-module (guix-cran packages m)
          #:use-module (guix-cran packages r)
          #:use-module (guix build-system copy))

        (define-public rzine-documentation
          (let ((commit "1b52ccf6c7fc1413ecb2483e155082593953c71a")
                (revision "1"))
            (package
              (name "rzine-documentation")
              (version (git-version "1.0" revision commit))
              (source
               (origin
                 (method git-fetch)
                 (uri (git-reference
                       (url "https://github.com/rzine-reviews/documentation/";)
                       (commit commit)))
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
                   "1wcc0al31k965m2mn4zn6ql1h1avgqk8211509n067dffikbgxlb"))))
              (build-system copy-build-system)
              (native-inputs (list r-minimal r-rmarkdown))
              (arguments
               (list
                #:install-plan ''(("index.html" 
"share/doc/rzine-documentation.html"))
                #:phases
                #~(modify-phases %standard-phases
                    (add-before 'install 'build
                      (lambda _
                        (invoke "R" "-e"
                                "library(rmarkdown); 
render(\"index.Rmd\")"))))))
              (home-page "https://doi.org/10.48645/HJVQ-YP94";)
              (synopsis "TODO")
              (description "TODO")
              (license license:gpl3))))

Reply via email to