bug#68764: ASDF can't load sbcl-clx-truetype installed through Guix

2024-01-27 Thread Guillaume Le Vaillant
rustand.l...@gmail.com skribis:

> John Kehayias  writes:
>
>> Hi Lars,
>>
>> I can't reproduce this, at least on Guix at commit
>> da3e6aea0a750246e8a9120d62441c3df65faff0
>>
>> I ran your command in one line with guix shell (and set --pure just in
>> case; I have SBCL_HOME set, not sure if anything else relevant):
>> ...
>> Perhaps try with 'guix shell --pure' as well, in case it is an
>> environment setting?
>>
>> John
>
> I ran the exact same command as you, and still get the error inside the
> pure shell. Also, I don't think this has anything to do with a specific
> Guix commit, since this has been like this for several months. In fact
> it has never worked for me at all. I did a pull again now, so should be
> on the latest commit, but the error is still present. I am currently on
> dc8aa52.
>
> I even tried running it in a container, and the error is there also, so
> this cannot be because of something else in my system, right?

Hi.
Could you check if adding the "--no-userinit" option for sbcl makes
a difference?


signature.asc
Description: PGP signature


bug#68764: ASDF can't load sbcl-clx-truetype installed through Guix

2024-01-27 Thread rustand . lars


John Kehayias  writes:

> Hi Lars,
>
> I can't reproduce this, at least on Guix at commit
> da3e6aea0a750246e8a9120d62441c3df65faff0
>
> I ran your command in one line with guix shell (and set --pure just in
> case; I have SBCL_HOME set, not sure if anything else relevant):
> ...
> Perhaps try with 'guix shell --pure' as well, in case it is an
> environment setting?
>
> John

I ran the exact same command as you, and still get the error inside the
pure shell. Also, I don't think this has anything to do with a specific
Guix commit, since this has been like this for several months. In fact
it has never worked for me at all. I did a pull again now, so should be
on the latest commit, but the error is still present. I am currently on
dc8aa52.

I even tried running it in a container, and the error is there also, so
this cannot be because of something else in my system, right?

--8<---cut here---start->8---
guix shell --container sbcl sbcl-clx-truetype -- sbcl --eval '(require :asdf)' 
--eval '(asdf:load-system :clx-truetype)'
applying 4 grafts for bash-5.1.16 ...
This is SBCL 2.4.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at .

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
WARNING: System definition file 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/share/common-lisp/sbcl/clx-truetype/clx-truetype.asd"
 contains definition for system "clx-truetype-test". Please only define 
"clx-truetype" and secondary systems with a name starting with "clx-truetype/" 
(e.g. "clx-truetype/test") in that file.
WARNING: System definition file 
#P"/gnu/store/bqfsbh15lpnf9i9f5qf6ya6yhcdk8nw3-sbcl-cl-store-0.8.11-1.c787337/share/common-lisp/sbcl/cl-store/cl-store.asd"
 contains definition for system "cl-store-tests". Please only define "cl-store" 
and secondary systems with a name starting with "cl-store/" (e.g. 
"cl-store/test") in that file.
WARNING: redefining ZPB-TTF::LOCATION in DEFGENERIC

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#:
  Error opening 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/lib/common-lisp/sbcl/clx-truetype/package-tmpGHU3ALSV.fasl":

Read-only file system

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE ] Retry opening.
  1: [USE-VALUE] Try opening a different file.
  2: [RETRY] Retry
 compiling #.
  3: [ACCEPT   ] Continue, treating
 compiling #
 as having been successful.
  4: Retry ASDF operation.
  5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
 configuration.
  6: Retry ASDF operation.
  7: Retry ASDF operation after resetting the
 configuration.
  8: Ignore runtime option --eval 
"(asdf:load-system :clx-truetype)".
  9: [ABORT] Skip rest of --eval and --load options.
 10: Skip to toplevel READ/EVAL/PRINT loop.
 11: [EXIT ] Exit SBCL (calling #'EXIT, killing the 
process).

(SB-IMPL::%OPEN-ERROR 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/lib/common-lisp/sbcl/clx-truetype/package-tmpGHU3ALSV.fasl"
 30 NIL :CREATE)
0]
--8<---cut here---end--->8---





bug#68764: ASDF can't load sbcl-clx-truetype installed through Guix

2024-01-27 Thread John Kehayias via Bug reports for GNU Guix
Hi Lars,

On Sat, Jan 27, 2024 at 04:57 PM, Lars Rustand wrote:

> Trying to load clx-truetype with ASDF in SBCL fails because of read-only
> filesystem. This is caused by the store being read-only and ASDF is
> trying to save the compiled file there. I read somewhere that Guix
> already supplies precompiled files for all Common Lisp libraries, so
> ASDF should just be able to load this one instead of compiling it, but
> this doesn't seem to work in this case.
>
> I'm able to load other packages just fine, like sbcl-slynk and
> sbcl-alexandria. Using cl-clx-truetype instead of sbcl-clx-truetype also
> works fine, even though this one obviously also needs compilation.
>
> I'm not sure what the exact cause is, but it seems that there are at
> least two things wrong.
> 1. ASDF/SBCL doesn't find the precompiled file(s) for clx-truetype.
> 2. The path to where the compiled files are saved is wrong.
>
>
> Steps to reproduce:
> 1. Install sbcl and sbcl-clx-truetype
> 2. Run `sbcl --eval '(require :asdf)' --eval '(asdf:load-system 
> :clx-truetype)'`
> 2a. Or start sbcl and manually run the commands
>

I can't reproduce this, at least on Guix at commit
da3e6aea0a750246e8a9120d62441c3df65faff0

I ran your command in one line with guix shell (and set --pure just in
case; I have SBCL_HOME set, not sure if anything else relevant):

--8<---cut here---start->8---
❯ guix shell --pure sbcl sbcl-clx-truetype -- sbcl --eval '(require :asdf)' 
--eval '(asdf:load-system :clx-truetype)'
This is SBCL 2.4.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at .

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
WARNING: System definition file 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/share/common-lisp/sbcl/clx-truetype/clx-truetype.asd"
 contains definition for system "clx-truetype-test". Please only define 
"clx-truetype" and secondary systems with a name starting with "clx-truetype/" 
(e.g. "clx-truetype/test") in that file.
WARNING: System definition file 
#P"/gnu/store/bqfsbh15lpnf9i9f5qf6ya6yhcdk8nw3-sbcl-cl-store-0.8.11-1.c787337/share/common-lisp/sbcl/cl-store/cl-store.asd"
 contains definition for system "cl-store-tests". Please only define "cl-store" 
and secondary systems with a name starting with "cl-store/" (e.g. 
"cl-store/test") in that file.
WARNING: redefining ZPB-TTF::LOCATION in DEFGENERIC
* (quit)
--8<---cut here---end--->8---

Perhaps try with 'guix shell --pure' as well, in case it is an
environment setting?

John

> This is SBCL 2.4.0, an implementation of ANSI Common Lisp.
> More information about SBCL is available at .
>
> SBCL is free software, provided as is, with absolutely no warranty.
> It is mostly in the public domain; some portions are provided under
> BSD-style licenses.  See the CREDITS and COPYING files in the
> distribution for more information.
> WARNING: System definition file 
> #P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/share/common-lisp/sbcl/clx-truetype/clx-truetype.asd"
>  contains definition for system "clx-truetype-test". Please only define 
> "clx-truetype" and secondary systems with a name starting with 
> "clx-truetype/" (e.g. "clx-truetype/test") in that file.
> WARNING: System definition file 
> #P"/gnu/store/bqfsbh15lpnf9i9f5qf6ya6yhcdk8nw3-sbcl-cl-store-0.8.11-1.c787337/share/common-lisp/sbcl/cl-store/cl-store.asd"
>  contains definition for system "cl-store-tests". Please only define 
> "cl-store" and secondary systems with a name starting with "cl-store/" (e.g. 
> "cl-store/test") in that file.
> WARNING: redefining ZPB-TTF::LOCATION in DEFGENERIC
>
> debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
> #:
>   Error opening 
> #P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/lib/common-lisp/sbcl/clx-truetype/package-tmpGHU3ALSV.fasl":
>
> Read-only file system
>
> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>   0: [CONTINUE ] Retry opening.
>   1: [USE-VALUE] Try opening a different file.
>   2: [RETRY] Retry
>  compiling # "clx-truetype" "package">.
>   3: [ACCEPT   ] Continue, treating
>  compiling # "clx-truetype" "package">
>  as having been successful.
>   4: Retry ASDF operation.
>   5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
>  configuration.
>   6:

bug#68764: ASDF can't load sbcl-clx-truetype installed through Guix

2024-01-27 Thread Lars Rustand


Trying to load clx-truetype with ASDF in SBCL fails because of read-only
filesystem. This is caused by the store being read-only and ASDF is
trying to save the compiled file there. I read somewhere that Guix
already supplies precompiled files for all Common Lisp libraries, so
ASDF should just be able to load this one instead of compiling it, but
this doesn't seem to work in this case.

I'm able to load other packages just fine, like sbcl-slynk and
sbcl-alexandria. Using cl-clx-truetype instead of sbcl-clx-truetype also
works fine, even though this one obviously also needs compilation.

I'm not sure what the exact cause is, but it seems that there are at
least two things wrong.
1. ASDF/SBCL doesn't find the precompiled file(s) for clx-truetype.
2. The path to where the compiled files are saved is wrong.


Steps to reproduce:
1. Install sbcl and sbcl-clx-truetype
2. Run `sbcl --eval '(require :asdf)' --eval '(asdf:load-system :clx-truetype)'`
2a. Or start sbcl and manually run the commands


--8<---cut here---start->8---
This is SBCL 2.4.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at .

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
WARNING: System definition file 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/share/common-lisp/sbcl/clx-truetype/clx-truetype.asd"
 contains definition for system "clx-truetype-test". Please only define 
"clx-truetype" and secondary systems with a name starting with "clx-truetype/" 
(e.g. "clx-truetype/test") in that file.
WARNING: System definition file 
#P"/gnu/store/bqfsbh15lpnf9i9f5qf6ya6yhcdk8nw3-sbcl-cl-store-0.8.11-1.c787337/share/common-lisp/sbcl/cl-store/cl-store.asd"
 contains definition for system "cl-store-tests". Please only define "cl-store" 
and secondary systems with a name starting with "cl-store/" (e.g. 
"cl-store/test") in that file.
WARNING: redefining ZPB-TTF::LOCATION in DEFGENERIC

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
#:
  Error opening 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/lib/common-lisp/sbcl/clx-truetype/package-tmpGHU3ALSV.fasl":

Read-only file system

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE ] Retry opening.
  1: [USE-VALUE] Try opening a different file.
  2: [RETRY] Retry
 compiling #.
  3: [ACCEPT   ] Continue, treating
 compiling #
 as having been successful.
  4: Retry ASDF operation.
  5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
 configuration.
  6: Retry ASDF operation.
  7: Retry ASDF operation after resetting the
 configuration.
  8: Ignore runtime option --eval 
"(asdf:load-system :clx-truetype)".
  9: [ABORT] Skip rest of --eval and --load options.
 10: Skip to toplevel READ/EVAL/PRINT loop.
 11: [EXIT ] Exit SBCL (calling #'EXIT, killing the 
process).

(SB-IMPL::%OPEN-ERROR 
#P"/gnu/store/qwb8qyjn615icrgxkjwqjwlwkwzxcc7y-sbcl-clx-truetype-0.0.1-1.c6e10a9/lib/common-lisp/sbcl/clx-truetype/package-tmpGHU3ALSV.fasl"
 30 NIL :CREATE)
0]
;
; compilation unit aborted
;   caught 1 fatal ERROR condition
* %
--8<---cut here---end--->8---





bug#68760: I guess I found a bug in "guix pull" ?

2024-01-27 Thread jbranso--- via Bug reports for GNU Guix
This is the output that I got from guix pull just now:

#+BEGIN_SRC shell
joshua@dobby ~ (master)> guix pull
Updating channel 'nonguix' from Git repository at 
'https://gitlab.com/nonguix/nonguix'...
Authenticating channel 'nonguix', commits 897c1a4 to 3857d86 (5 new commits)...
Updating channel 'guixrus' from Git repository at 
'https://git.sr.ht/~whereiseveryone/guixrus'...
Authenticating channel 'guixrus', commits 7c67c3a to 0d35538 (1 new commits)...
Updating channel 'dthompson' from Git repository at 
'https://git.dthompson.us/guix-channel.git'...
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 836d608 (238 new commits)...
Building from these channels:
 guix https://git.savannah.gnu.org/git/guix.git 836d608
 dthompson https://git.dthompson.us/guix-channel.git 9a0d291
 guixrus https://git.sr.ht/~whereiseveryone/guixrus 0d35538
 nonguix https://gitlab.com/nonguix/nonguix 3857d86
substitute: updating substitutes from 'https://guix.tobias.gr'/... 100.0%
substitute: updating substitutes from 'https://substitutes.nonguix.org'/... 
100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'/... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'/... 100.0%
building 
/gnu/store/jpql07qa2kqw9b70h9yc5kcn66190grl-compute-guix-derivation.drv...
Computing Guix derivation for 'x86_64-linux'... |Backtrace:
In ./guix/gexp.scm:
 299:22 19 (_ #)
 1201:2 18 (_ #)
 1068:2 17 (_ #)
 909:4 16 (_ #)
In ./guix/store.scm:
 2065:12 15 (_ #)
 1377:6 14 (map/accumulate-builds # 
# ?)
 1382:11 13 (loop (# name: 
"guix-config-source" alist: (("guix/config.scm" #<) ?)
 1295:4 12 (call-with-build-handler # ?)
 2180:24 11 (run-with-store # # ?)
In ./guix/gexp.scm:
 914:13 10 (_ #)
In ./guix/store.scm:
 2008:8 9 (_ #)
In ./guix/gexp.scm:
 299:22 8 (_ #)
 1569:2 7 (_ #)
In ./guix/monads.scm:
 487:9 6 (_ #)
In ./guix/gexp.scm:
 1566:6 5 (_ #)
In ./guix/store.scm:
 2008:8 4 (_ #)
In ./guix/gexp.scm:
 299:22 3 (_ #)
In ./guix/store.scm:
 2052:38 2 (_ #)
In ./guix/derivations.scm:
 965:17 1 (derivation # "config.scm" 
"/gnu/store/1gd9nsy4cps8fnrd1avkc9l01?" ?)
In ./guix/store.scm:
 1038:9 0 (_ # "config.scm.drv" #vu8(68 
101 114 105 118 101 40 91 40 34 # ?) ?)

./guix/store.scm:1038:9: ERROR:
 1. :
 message: "error parsing derivation 
`/gnu/store/3nppfdxy9vgg9ls6qi8j8pkzw2khi98h-git-minimal-2.41.0.drv': expected 
string `Derive(['"
 status: 1
guix pull: error: You found a bug: the program 
'/gnu/store/m9z876jpmpbslc6qaikbp9fk5dv01y3n-compute-guix-derivation'
failed to compute the derivation for Guix (version: 
"836d608a56bc798fff0cda507f3c1010bbe1f914"; system: "x86_64-linux";
host version: "b150c546b04c9ebb09de9f2c39789221054f5eea"; pull-version: 1).
Please report the COMPLETE output above by email to .

#+END_SRC

Some more info: I am using a librebooted T400 on Guix System.

#+BEGIN_SRC shell
joshua@dobby ~ (master) [1]> guix system describe
Generation 59 Dec 25 2023 18:53:48 (current)
 file name: /var/guix/profiles/system-59-link
 canonical file name: /gnu/store/17ydivxng9ndrv0gljm1970662s7kaig-system
 label: GNU with Linux-Libre 6.5.12
 bootloader: grub
 root device: /dev/mapper/cryptroot
 kernel: /gnu/store/3vf0n2dcd63m62r9gn7yf1pcynkx8qpr-linux-libre-6.5.12/bzImage
 channels:
 guix:
 repository URL: https://git.savannah.gnu.org/git/guix.git
 branch: master
 commit: b150c546b04c9ebb09de9f2c39789221054f5eea
 dthompson:
 repository URL: https://git.dthompson.us/guix-channel.git
 branch: main
 commit: 9a0d291f8d2ce2cfb443773f2dcce2097218aa9f
 guixrus:
 repository URL: https://git.sr.ht/~whereiseveryone/guixrus
 branch: master
 commit: 36b9f066d9a1df9b02d574ee5647c46b1a9b1194
 nonguix:
 repository URL: https://gitlab.com/nonguix/nonguix
 branch: master
 commit: 639b70063b73cb9ff553b77d51d42c07eb208d91
 configuration file: 
/gnu/store/pqvwwwyknkgpxg2lriv2r7vgv7agasga-configuration.scm

#+END_SRC

#+BEGIN_SRC shell
joshua@dobby ~ (master)> guix describe
Generation 84 Nov 22 2023 16:19:36 (current)
 guix b150c54
 repository URL: https://git.savannah.gnu.org/git/guix.git
 branch: master
 commit: b150c546b04c9ebb09de9f2c39789221054f5eea
 dthompson 9a0d291
 repository URL: https://git.dthompson.us/guix-channel.git
 branch: main
 commit: 9a0d291f8d2ce2cfb443773f2dcce2097218aa9f
 guixrus 36b9f06
 repository URL: https://git.sr.ht/~whereiseveryone/guixrus
 branch: master
 commit: 36b9f066d9a1df9b02d574ee5647c46b1a9b1194
 nonguix 639b700
 repository URL: https://gitlab.com/nonguix/nonguix
 branch: master
 commit: 639b70063b73cb9ff553b77d51d42c07eb208d91

#+END_SRC


I suppose that I will try removing some packages (git), removing some
channels and pulling again.

Thanks,

Joshua





bug#68717: texlive-bibexport is installed with incorrect shebang.

2024-01-27 Thread Nicolas Goaziou via Bug reports for GNU Guix
Hello,

Claire Rodriguez  writes:

> Just installed texlive-bibexport, which is a bash script used with .aux
> files in a LaTeX project to create project-local BibTeX files, and found
> that it has a hard-coded shebang of:
>
> `#!/bin/bash`
>
> This is not a problem if the system has a /bin/bash, but the default in GNU
> Guix is still currently not to, and therefore this script should be patched
> to use the following, or similar:
>
> `#$(file-append bash "/bin/bash")`
>
> This would allow it to function without requiring the creation of a literal
> `/bin/bash`.
>
> Thoughts?

Indeed. I just patched texlive-bibexport.

Thanks for the report.

Regards,
-- 
Nicolas Goaziou







bug#68619: dhcp-client-service-type uses end-of-life dhclient

2024-01-27 Thread Sören Tempel
> I believe the course of action here would be to: (a) package a
> different DHCP client (dhcpcd [2] may be a good candidate) and (b)
> make sure that dhcp-client-service-type is compatible with this client
> and uses it by default.

I started working on this, see .

Greetings
Sören