all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 59073@debbugs.gnu.org
Subject: [bug#59073] [PATCH v2] gnu: r-minimal: Avoid referencing /gnu/store/[^-]+-glibc-[^-]+-static.
Date: Tue,  8 Nov 2022 08:13:18 +0100	[thread overview]
Message-ID: <20221108071318.21580-1-mail@cbaines.net> (raw)
In-Reply-To: <20221106090558.24507-1-mail@cbaines.net>

As this causes the following error when computing a cross-compilation
derivation for r-minimal and related packages:

  guix build: error: path ‘/gnu/store/[^-]+-glibc-[^-]+-static’ is not valid

I think this is coming from the string appearing in the builder and thus the
sources section of the derivation, but not being a valid store path.

* gnu/packages/statistics.scm (r-minimal)[arguments]: Split string involving
/gnu/store.
---
 gnu/packages/statistics.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 2d4dbe4a31..43988ad00e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -470,7 +470,11 @@ (define-public r-minimal
                                     "util-macros"
                                     "graphite2"))
                           "|"
-                          "/gnu/store/[^-]+-glibc-[^-]+-static"
+                          ;; Be careful when including store paths in the
+                          ;; build script, since they might be treated as
+                          ;; references
+                          "/gnu/store"
+                          "/[^-]+-glibc-[^-]+-static"
                           ")/lib")) ""))))))))))))
 
 (define-public rmath-standalone
-- 
2.37.3





      parent reply	other threads:[~2022-11-08  7:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06  9:05 [bug#59073] [PATCH] gnu: r-minimal: Avoid referencing /gnu/store/[^-]+-glibc-[^-]+-static Christopher Baines
2022-11-07  9:27 ` zimoun
2022-11-07  9:32   ` Christopher Baines
2022-11-07 14:10     ` zimoun
2022-11-07 21:36 ` Ludovic Courtès
2022-11-08  7:13   ` Christopher Baines
2022-11-08 13:09     ` Ludovic Courtès
2022-11-08 21:32       ` zimoun
2022-11-10 14:07         ` Ludovic Courtès
2022-11-10 14:40           ` zimoun
2022-11-08  7:13 ` Christopher Baines [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221108071318.21580-1-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=59073@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.