all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#37900: guix invocation induces guile locale error
@ 2019-10-24 11:14 Bengt Richter
  2019-10-25 11:26 ` Gábor Boskovits
  0 siblings, 1 reply; 5+ messages in thread
From: Bengt Richter @ 2019-10-24 11:14 UTC (permalink / raw)
  To: 37900

Hi guix,

guix describe (or guix anything) seems somehow to use guile without proper locale:

┌───────────────────────────────────────────────────────────────┐
│ guile: warning: failed to install locale                      │
│ Generation 18	Oct 23 2019 11:19:31 (current)                  │
│   guix 3f4ea9a                                                │
│     repository URL: https://git.savannah.gnu.org/git/guix.git │
│     branch: master                                            │
│     commit: 3f4ea9a62b5fa68d57724b2f83c35a191e33b7c8          │
└───────────────────────────────────────────────────────────────┘

whereas guile by itself does not complain, e.g. guile -v:

┌───────────────────────────────────────────────────────────────────────────┐
│ guile (GNU Guile) 2.2.6                                                   │
│ Copyright (C) 2019 Free Software Foundation, Inc.                         │
│                                                                           │
│ License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>. │
│ This is free software: you are free to change and redistribute it.        │
│ There is NO WARRANTY, to the extent permitted by law.                     │
└───────────────────────────────────────────────────────────────────────────┘

Poking around, I noticed guix invocation invokes a script that appears to use
glibc-utf8-locales-2.29 (see "===-NB:2.29->>>" arrow below)

$ which guix|xargs readlink -f|xargs cat -n
     1	#!/gnu/store/sc7z07gim1iq5zvfz1amdwf2irxrzifg-guile-2.2.6/bin/guile --no-auto-compile
     2	!#
     3	(begin (set! %load-path (cons (string-append "/gnu/store/h6h4ahrw8zq3zcjp8wxsv6nv24kjb293-guix-module-union" "/share/guile/site/" (effective-version)) %load-path)) (set! %load-compiled-path (cons (string-append "/gnu/store/h6h4ahrw8zq3zcjp8wxsv6nv24kjb293-guix-module-union" "/lib/guile/" (effective-version) "/site-ccache") %load-compiled-path)) (let ((locpath (getenv "GUIX_LOCPATH"))) (setenv "GUIX_LOCPATH" (string-append (if locpath (string-append locpath ":") "")

===-NB:2.29->>>    "/gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29/lib/locale"

))) (let ((guix-main (module-ref (resolve-interface (quote (guix ui))) (quote guix-main)))) (begin (bindtextdomain "guix" "/gnu/store/0m73px55qzbx70v2k346igajrszzz8kb-guix-locale-guix") (bindtextdomain "guix-packages" "/gnu/store/c01aal3wvwlhi5h81rz14yasf70w04j2-guix-locale-guix-packages")) (apply guix-main (command-line))))$


## I'm wondering whether guix edit glibc-locales needs a 2.29 version of
┌────────────────────────────────────────────────────────────────────────────────┐
│ ;; Packages provided to ease use of binaries linked against the previous libc. │
│ (define-public glibc-locales-2.28                                              │
│   (package (inherit (make-glibc-locales glibc-2.28))                           │
│            (name "glibc-locales-2.28")))                                       │
│ (define-public glibc-utf8-locales-2.28                                         │
│   (package (inherit (make-glibc-utf8-locales glibc-2.28))                      │
│            (name "glibc-utf8-locales-2.28")))                                  │
└────────────────────────────────────────────────────────────────────────────────┘


## I didn't see a commit for glibc-locales 2.29 
$ pwd
/home/bokr/wb/guix
$ git log --grep='glibc-locales.*2\.2[89]'
WARNING: terminal is not fully functional
-  (press RETURN)
commit f77993bb50ad2bb02664697d81d4b12f2a0923b9
Author: Ludovic Courtès <ludo@gnu.org>
Date:   Tue Sep 24 14:00:58 2019 +0200

    gnu: Add locale packages for glibc 2.28.
    
    * gnu/packages/base.scm (glibc-locales-2.28, glibc-utf8-locales-2.28):
    New variables.
    (glibc-locales-2.27, glibc-utf8-locales-2.27): Deprecate.

commit d4137d84ac75edaf2739578d0868cd77dd6da43c
Author: Kei Kebreau <kei@openmailbox.org>
Date:   Thu Jul 4 06:49:29 2019 -0400

    gnu: make-glibc-locales: Adjust patch for glibc 2.29.
    
    The patch for glibc 2.28 and earlier replaces the same content, but the context
    in the patch is different enough to fail to merge.
    
    * gnu/packages/base.scm (make-glibc-locales)[source]: Add patch.
    * gnu/packages/patches/glibc-locales.patch: Adjust for glibc 2.29 and move old
    file...
    * gnu/packages/patches/glibc-locales-2.28.patch: ...here.
    * gnu/local.mk (dist_patch_DATA): Add it.
$
## so, poking further ...

$ which guix|xargs readlink -f|xargs cat -n
/gnu/store/wg1ra0kswd2kspsqqdr3bcnrb61w8l6d-guix-command: a /gnu/store/sc7z07gim1iq5zvfz1amdwf2irxrzifg-guile-2.2.6/bin/guile --no-auto-compile script, ASCII text executable, with very long lines
$ which guix|xargs readlink -f|xargs cat -n
     1	#!/gnu/store/sc7z07gim1iq5zvfz1amdwf2irxrzifg-guile-2.2.6/bin/guile --no-auto-compile
     2	!#
     3	(begin (set! %load-path (cons (string-append "/gnu/store/h6h4ahrw8zq3zcjp8wxsv6nv24kjb293-guix-module-union" "/share/guile/site/" (effective-version)) %load-path)) (set! %load-compiled-path (cons (string-append "/gnu/store/h6h4ahrw8zq3zcjp8wxsv6nv24kjb293-guix-module-union" "/lib/guile/" (effective-version) "/site-ccache") %load-compiled-path)) (let ((locpath (getenv "GUIX_LOCPATH"))) (setenv "GUIX_LOCPATH" (string-append (if locpath (string-append locpath ":") "") "/gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29/lib/locale"))) (let ((guix-main (module-ref (resolve-interface (quote (guix ui))) (quote guix-main)))) (begin (bindtextdomain "guix" "/gnu/store/0m73px55qzbx70v2k346igajrszzz8kb-guix-locale-guix") (bindtextdomain "guix-packages" "/gnu/store/c01aal3wvwlhi5h81rz14yasf70w04j2-guix-locale-guix-packages")) (apply guix-main (command-line))))$ 
$ 
$ # but 2.29 is not visibly installed, apparently:
$ guix package -I locales
guile: warning: failed to install locale
glibc-utf8-locales	2.28	out	/gnu/store/94k5w17z54w25lgp90czdqfv9m4hwzhq-glibc-utf8-locales-2.28
glibc-locales	2.28	out	/gnu/store/bb9alx1ap57pz0vmx7p1r8qk0lxxfg3x-glibc-locales-2.28
$
$ guix package -A glibc-.*locales
guile: warning: failed to install locale
glibc-locales	2.29	out	gnu/packages/base.scm:998:2
glibc-locales-2.28	2.28	out	gnu/packages/base.scm:1131:2
glibc-utf8-locales	2.29	out	gnu/packages/base.scm:1075:2
glibc-utf8-locales-2.28	2.28	out	gnu/packages/base.scm:1134:2
$ 
$ # so try to upgrade the first one
$ guix upgrade glibc-utf8-locales
guile: warning: failed to install locale
The following package will be upgraded:
   glibc-utf8-locales	2.28 → 2.29	/gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29

substitute: updating substitutes from 'https://ci.guix.info'... 100.0%
substitute: updating substitutes from 'https://ci.guix.info'... 100.0%
building /gnu/store/l6740ia83s1nb4lh6jghs6xjba8nxvrh-avahi-0.7.tar.xz.drv...
\builder for `/gnu/store/l6740ia83s1nb4lh6jghs6xjba8nxvrh-avahi-0.7.tar.xz.drv' failed with exit code 1
build of /gnu/store/l6740ia83s1nb4lh6jghs6xjba8nxvrh-avahi-0.7.tar.xz.drv failed
View build log at '/var/log/guix/drvs/l6/740ia83s1nb4lh6jghs6xjba8nxvrh-avahi-0.7.tar.xz.drv.bz2'.
cannot build derivation `/gnu/store/b005cnj8016kn7f0c8jqcy5izbav32c3-avahi-0.7.drv': 1 dependencies couldn't be built
guix upgrade: error: build of `/gnu/store/b005cnj8016kn7f0c8jqcy5izbav32c3-avahi-0.7.drv' failed
$ 
$ # What ??!! What does avahi have to do with locales?
$ guix show avahi
guile: warning: failed to install locale
name: avahi
version: 0.7
outputs: out
systems: x86_64-linux i686-linux
dependencies: dbus@1.12.16 expat@2.2.7 gdbm@1.18.1 glib@2.60.6 intltool@0.51.0 libcap@2.27 libdaemon@0.14 pkg-config@0.29.2
location: gnu/packages/avahi.scm:35:2
homepage: http://avahi.org
license: LGPL 2.1+
synopsis: Implementation of mDNS/DNS-SD protocols  
description: Avahi is a system which facilitates service discovery on a local network.  It is an implementation of the mDNS (for "Multicast DNS") and DNS-SD
+ (for "DNS-Based Service Discovery") protocols.

$ # also my pristine cloned git guix repo has no apparent commit for locales 2.29, as we saw above
$ cd ~/wb/guix
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
$ git log|head
commit 08d0a35578854c8db774178628c2dd818828cb0c
Author: Tobias Geerinckx-Rice <me@tobias.gr>
Date:   Tue Oct 22 23:40:51 2019 +0200

    gnu: python-ipykernel: Update to 5.1.3.
    
    * gnu/packages/python-xyz.scm (python-ipykernel): Update to 5.1.3.
    [native-inputs]: Add python-flaky.

commit d195f623aa48f1534b57bb613bdc9a15ac3395e0

## I did guix pull as user, and going to root via su and real root via su -l
## the latter was at 0.16 ;-/ Now:
$ 
$ guix describe
guile: warning: failed to install locale
Generation 18	Oct 23 2019 11:19:31	(current)
  guix 3f4ea9a
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 3f4ea9a62b5fa68d57724b2f83c35a191e33b7c8
$ su -c 'guix describe'
guile: warning: failed to install locale
Generation 18	Oct 23 2019 18:19:31	(current)
  guix 3f4ea9a
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 3f4ea9a62b5fa68d57724b2f83c35a191e33b7c8
$ su -lc 'guix describe'
Password: 
Generation 2	Oct 23 2019 11:07:46	(current)
  guix 59d452d
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 59d452da401c375e7bd18d2260c2e42ee0d05b72
$ # hm, snagged a different version there , but all pretty up to date
$
HTH to fix both the problem and the flawed process that keeps re-producing
whack-a-mole games at every major update. (too grumpy to chase this
with strace etc. :)

Anyone have an explanation for the avahi connection above? How did that get
tangled in? Or should I look for file system corruption? ;-/

--
Regards,
Bengt Richter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37900: guix invocation induces guile locale error
  2019-10-24 11:14 bug#37900: guix invocation induces guile locale error Bengt Richter
@ 2019-10-25 11:26 ` Gábor Boskovits
  2019-10-25 20:46   ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Gábor Boskovits @ 2019-10-25 11:26 UTC (permalink / raw)
  To: 37900-done

[-- Attachment #1: Type: text/plain, Size: 137 bytes --]

Submitter requested to close the bug on #37914. Closing.

-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

[-- Attachment #2: Type: text/html, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37900: guix invocation induces guile locale error
  2019-10-25 11:26 ` Gábor Boskovits
@ 2019-10-25 20:46   ` Ludovic Courtès
  2019-10-25 21:40     ` Gábor Boskovits
  2019-10-25 21:59     ` Bengt Richter
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2019-10-25 20:46 UTC (permalink / raw)
  To: 37900

Gábor Boskovits <boskovits@gmail.com> skribis:

> Submitter requested to close the bug on #37914. Closing.

You closed 37900 though, not 37914, or am I missing something?

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37900: guix invocation induces guile locale error
  2019-10-25 20:46   ` Ludovic Courtès
@ 2019-10-25 21:40     ` Gábor Boskovits
  2019-10-25 21:59     ` Bengt Richter
  1 sibling, 0 replies; 5+ messages in thread
From: Gábor Boskovits @ 2019-10-25 21:40 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37900

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

Sorry, maybe I was not clear on this. On 37914 there was a message that it
is ok to close 37900. See:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37914#13

Ludovic Courtès <ludo@gnu.org> ezt írta (időpont: 2019. okt. 25., P, 22:46):

> Gábor Boskovits <boskovits@gmail.com> skribis:
>
> > Submitter requested to close the bug on #37914. Closing.
>
> You closed 37900 though, not 37914, or am I missing something?
>
> Ludo’.
>


-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

[-- Attachment #2: Type: text/html, Size: 1034 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#37900: guix invocation induces guile locale error
  2019-10-25 20:46   ` Ludovic Courtès
  2019-10-25 21:40     ` Gábor Boskovits
@ 2019-10-25 21:59     ` Bengt Richter
  1 sibling, 0 replies; 5+ messages in thread
From: Bengt Richter @ 2019-10-25 21:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37900

Hi Ludo,

On +2019-10-25 22:46:16 +0200, Ludovic Courtès wrote:
> Gábor Boskovits <boskovits@gmail.com> skribis:
> 
> > Submitter requested to close the bug on #37914. Closing.
> 
> You closed 37900 though, not 37914, or am I missing something?
> 
> Ludo’.

Sorry, 37900 was mine, but (IIRC) trying to make a helpful comment
on 37914 that my 37900 might be relevant, I also mentioned
that recent fixes to guix had made my 37900 difficulties go away,
so closing 37900 would be ok by me. Gábor apparently picked up on that :)

I'm still curious about the avahi entaglement I demonstrated in 37900 though ;-)
--
Regards,
Bengt Richter
P.S. Is there a better way to post trying-to-be-helpful comments than to
add them to bug reports? Looking at archives, I see bits that could go
in turorials mixed with lots of friendly stuff that is just noise when
you want straight technical info.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-25 22:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24 11:14 bug#37900: guix invocation induces guile locale error Bengt Richter
2019-10-25 11:26 ` Gábor Boskovits
2019-10-25 20:46   ` Ludovic Courtès
2019-10-25 21:40     ` Gábor Boskovits
2019-10-25 21:59     ` Bengt Richter

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.