GNU bug report logs - #64976
guix build: error: invalid character `~' in name

Previous Next

Package: guix;

Reported by: nigko <nigko.yerden <at> gmail.com>

Date: Mon, 31 Jul 2023 13:58:02 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64976 in the body.
You can then email your comments to 64976 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#64976; Package guix. (Mon, 31 Jul 2023 13:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to nigko <nigko.yerden <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 31 Jul 2023 13:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: nigko <nigko.yerden <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix build: error: invalid character `~' in name
Date: Mon, 31 Jul 2023 18:20:46 +0500
[Message part 1 (text/plain, inline)]
Hello,

When running "guix build -f alps.scm" where alps.scm uses url-fetch with 
(uri 
"https://exa.phys.s.u-tokyo.ac.jp/archive/MateriApps/src/alps_20220304~r7871.orig.tar.gz") 
the following error occurs

guix build: error: invalid character `~' in name 
'alps_20220304~r7871.orig.tar.gz.drv'

Bug was noted at
    repository URL: https://git.savannah.gnu.org/git/guix.git
    commit: c173819c8e5235ce02d60b79bd88b10023a7c614
    branch: master
[alps.scm (text/x-scheme, attachment)]

Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Fri, 04 Aug 2023 19:56:01 GMT) Full text and rfc822 format available.

Notification sent to nigko <nigko.yerden <at> gmail.com>:
bug acknowledged by developer. (Fri, 04 Aug 2023 19:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 64976-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 64976-done <at> debbugs.gnu.org
Subject: Re: guix build: error: invalid character `~' in name
Date: Fri, 04 Aug 2023 21:55:16 +0200
Certain characters are not allowed in store item[0] names.  This 
restriction was inherited verbatim[1] from Nix.

As such there's no bug here, although you could start a separate 
discussion about relaxing these restrictions if you like.

So what to do?  url-fetch defaults to the URL's basename as file name, 
but you can specify a different one.  For example:

  (source
    (method …)
    (uri …)
    (file-name (string-append name "-" version ".tar.gz"))
    (sha256 …))

Kind regards,

T G-R

Sent from a Web browser.  Excuse or enjoy my brevity.

[0]: Top-level file names under /gnu/store.
[1]: 
https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/store-api.cc#n58




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 02 Sep 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.