From: Attila Lendvai <attila@lendvai.name>
To: 54893@debbugs.gnu.org
Subject: bug#54893: guix-daemon, locale, LANG, and unicode in git tag names
Date: Tue, 12 Apr 2022 19:47:51 +0000 [thread overview]
Message-ID: <dgH8LAbYICFwRYBwMqWgymICHzzpPfoGjhJaxzv82-4I5UNd6NWdkLbJehfCHGTEpQk2KvGwhI0OIeRkSu2F85hvrJelJKM_Hv2OEwTp5B0=@lendvai.name> (raw)
[-- Attachment #1: Type: text/plain, Size: 1976 bytes --]
i'm trying to build a golang package that i have just imported. its repo has a tag with unicode in it, namely v½.2.0, as observable at https://github.com/klauspost/pgzip/tags
(define-public the-pkg
(package
(name "go-github-com-klauspost-pgzip")
(version "1.0.2-0.20170402124221-0bf5dcad4ada")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/klauspost/pgzip")
(commit "0bf5dcad4ada")))
(file-name (git-file-name name version))
(sha256
(base32 "0dgp2iljvhibzxia1g3lsfg4bjmfh4kf0bfrmfi7sd49hwhrvk7s"))))
(build-system go-build-system)
(arguments '(#:skip-build? #t #:import-path "github.com/klauspost/pgzip"))
(home-page "https://github.com/klauspost/pgzip")
(synopsis "pgzip")
(description
"Package pgzip implements reading and writing of gzip format compressed files, as
specified in @url{https://rfc-editor.org/rfc/rfc1952.html,RFC 1952}.")
(license license:expat)))
i have attached the build log, but the essence is this:
guile: warning: failed to install locale
and i can't get rid of this^ warning. i installed glibc-locales to root and my user, reconfigured, restarted the guix-daemon.
which is probably the cause of the ultimate error:
warning: failed to delete .git/refs/tags/v??.2.0: No such file or directory
r:sha256 hash mismatch for...
the daemon starts from an empty env:
https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/build.cc#n1590
and then copies the env from the derivation, but it doesn't seem to contain any LANG value. i assume guile is also launched then without a LANG env. BTW, guile could be more informative in its warning, too.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“The unexamined life is not worth living for a human being.”
— Socrates (c. 470–399 BC, tried and executed), 'Apology' (399 BC)
[-- Attachment #2: build-log --]
[-- Type: application/octet-stream, Size: 3204 bytes --]
$ ./pre-inst-env guix build go-github-com-klauspost-pgzip
The following derivations will be built:
/gnu/store/sgcqcsxvwm1r7l8m7ihjjcz85pfbm6dk-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada.drv
/gnu/store/56cs56nbiw4dvln7lxbsqlhqrpwy884q-go-std-1.17.8.drv
/gnu/store/8dlj9p8m1m3brp63kvqirz4dc444zsfq-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout.drv
building /gnu/store/8dlj9p8m1m3brp63kvqirz4dc444zsfq-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout.drv...
guile: warning: failed to install locale
environment variable `PATH' set to `/gnu/store/0c1yfbxyv877mlgychfgvmk5ha2jqh52-gzip-1.10/bin:/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6zqm4-tar-1.34/bin'
Initialized empty Git repository in /gnu/store/6wsdfh6mmxzdr3rlclmnl947qqdx7bfl-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout/.git/
fatal: couldn't find remote ref 0bf5dcad4ada
Failed to do a shallow fetch; retrying a full fetch...
From https://github.com/klauspost/pgzip
* [new branch] master -> origin/master
* [new branch] rewrite-error-handling -> origin/rewrite-error-handling
* [new branch] support-writerto -> origin/support-writerto
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.1 -> v1.1
* [new tag] v1.2.0 -> v1.2.0
* [new tag] v1.2.1 -> v1.2.1
* [new tag] v1.2.2 -> v1.2.2
* [new tag] v1.2.3 -> v1.2.3
* [new tag] v1.2.4 -> v1.2.4
* [new tag] v1.2.5 -> v1.2.5
* [new tag] v½.2.0 -> v½.2.0
Note: switching to '0bf5dcad4ada'.
HEAD is now at 0bf5dca Merge pull request #14 from klauspost/fix-truncated-gzip-input
warning: failed to delete .git/refs/tags/v??.2.0: No such file or directory
warning: failed to delete .git/refs/tags: Directory not empty
warning: failed to delete .git/refs: Directory not empty
warning: failed to delete .git: Directory not empty
r:sha256 hash mismatch for /gnu/store/6wsdfh6mmxzdr3rlclmnl947qqdx7bfl-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout:
expected hash: 0dgp2iljvhibzxia1g3lsfg4bjmfh4kf0bfrmfi7sd49hwhrvk7s
actual hash: 1vxn09q5mxkdi1vshpb2d1b8rdqqbvjcsd3bgdg77sxgas7dlmpg
hash mismatch for store item '/gnu/store/6wsdfh6mmxzdr3rlclmnl947qqdx7bfl-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout'
build of /gnu/store/8dlj9p8m1m3brp63kvqirz4dc444zsfq-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout.drv failed
View build log at '/var/log/guix/drvs/8d/lj9p8m1m3brp63kvqirz4dc444zsfq-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada-checkout.drv.gz'.
cannot build derivation `/gnu/store/sgcqcsxvwm1r7l8m7ihjjcz85pfbm6dk-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/sgcqcsxvwm1r7l8m7ihjjcz85pfbm6dk-go-github-com-klauspost-pgzip-1.0.2-0.20170402124221-0bf5dcad4ada.drv' failed
next reply other threads:[~2022-04-12 19:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 19:47 Attila Lendvai [this message]
2022-04-12 20:40 ` bug#54893: guix-daemon, locale, LANG, and unicode in git tag names Maxime Devos
2022-04-13 7:51 ` Attila Lendvai
2022-04-13 8:03 ` Maxime Devos
2022-04-13 8:45 ` Attila Lendvai
2022-04-19 11:38 ` Attila Lendvai
2022-04-19 15:45 ` Maxime Devos
2022-04-19 16:07 ` Maxime Devos
2022-04-13 8:22 ` Maxime Devos
2022-04-13 10:40 ` Liliana Marie Prikler
2022-04-13 10:57 ` Maxime Devos
2022-04-13 8:29 ` Maxime Devos
2022-04-19 18:09 ` bug#54893: [PATCH] guix: git-download: Set locale to deal with Unicode in git metadata Attila Lendvai
2022-04-20 20:12 ` bug#54893: guix-daemon, locale, LANG, and unicode in git tag names Ludovic Courtès
2022-04-20 22:15 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dgH8LAbYICFwRYBwMqWgymICHzzpPfoGjhJaxzv82-4I5UNd6NWdkLbJehfCHGTEpQk2KvGwhI0OIeRkSu2F85hvrJelJKM_Hv2OEwTp5B0=@lendvai.name' \
--to=attila@lendvai.name \
--cc=54893@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).