bug#70051: bug#70266: Failure to open LUKS devices from a Shepherd service

2024-04-07 Thread Ludovic Courtès
Hi aurtzy,

aurtzy  skribis:

> This bug has also been reported here: https://issues.guix.gnu.org/70051
>
> I sent a patch that a few others have confirmed fixes the issue:
> https://issues.guix.gnu.org/70051#5

Oops, sorry for not noticing it earlier!  (That was a hard-to-debug one
so kudos for the work you and others put in it.)

I pushed these two commits to address the problem:

  49f82fca41 mapped-devices: luks: Specify modules needed at the top-level.
  6062339156 mapped-devices:  can specify modules to import.

It works well in my tests but please let me know if something’s amiss.

Thanks,
Ludo’.





bug#69401: /etc/guix/machines.scm symlink can be garbage collected

2024-04-07 Thread Ludovic Courtès
Ludovic Courtès  skribis:

> Ludovic Courtès  skribis:
>
>> root@hydra-guix-108 ~# guix gc -R $(readlink -f /run/current-system) |grep 
>> machines.scm
>> /gnu/store/xg26iis3ydik6zxqk24cyk7h9zli1d25-machines.scm
>> root@hydra-guix-108 ~# ls -l /etc/guix/machines.scm
>> lrwxrwxrwx 1 root root 56 Mar  7 11:53 /etc/guix/machines.scm -> 
>> /gnu/store/1171q4xhph07ll3mlzlg7igcwg3c98i1-machines.scm
>
> Turns out that both files are identical, but:
>
>   • /gnu/store/1171q4xhph07ll3mlzlg7igcwg3c98i1-machines.scm is built
> with
> /gnu/store/g8p09w6r78hhkl2rv1747pcp9zbk6fxv-guile-3.0.9/bin/guile
> (‘guile-final’ ungrafted);
>
>   • /gnu/store/xg26iis3ydik6zxqk24cyk7h9zli1d25-machines.scm is built
> with
> /gnu/store/g49b4v7dff8xwfi7wpi8pps1ixhld3n7-guile-3.0.9/bin/guile
> (‘guile-final’ grafted).
>
> As it turns out,  (used for “machines.scm”) uses
> ‘gexp->file’, which, unlike ‘gexp->script’, does not default to
> (default-guile).  That probably explains the difference.

I believe this is fixed by b30b838d5055e36be19d030db28838fec4474d98.

Ludo’.





bug#70266: Failure to open LUKS devices from a Shepherd service

2024-04-07 Thread aurtzy

Hi Ludo',

This bug has also been reported here: https://issues.guix.gnu.org/70051

I sent a patch that a few others have confirmed fixes the issue: 
https://issues.guix.gnu.org/70051#5


Cheers,

aurtzy






bug#70266: Failure to open LUKS devices from a Shepherd service

2024-04-07 Thread Ludovic Courtès
Ludovic Courtès  skribis:

> Commit 6f9d844d2ece7b369d17bbe678978462425f869c led to a regression:
> when a ‘luks-device-mapping’ mapped device is opened from a Shepherd
> service (for instance a ‘device-mapping-XXX’ service created by
> ‘device-mapping-service-type’ because, say, /home is a separate LUKS
> partition), said service fails to start with:
>
>   Unbound variable: bytevector?
>
> This is the ‘bytevector?’ referred to in ‘open-luks-device’.

This is a situation with a non-top-level ‘use-modules’.

The problem can be illustrated like this:

--8<---cut here---start->8---
$ cat ~/src/guile-debugging/non-top-level-use-modules.scm
;; (define-module ())

(define (foo x)
  (use-modules (rnrs bytevectors))  ;bad!!
  (bytevector? x))

;; (pk '-> (foo (call-with-input-string "#vu8(1 2 3)" read)))

(pk 'foo foo)

$ guild compile -O1 ~/src/guile-debugging/non-top-level-use-modules.scm 
/home/ludo/src/guile-debugging/non-top-level-use-modules.scm:3:3: warning: 
possibly unbound variable `bytevector?'
wrote 
`/home/ludo/.cache/guile/ccache/3.0-LE-8-4.7/home/ludo/src/guile-debugging/non-top-level-use-modules.scm.go'
$ guile
GNU Guile 3.0.99-git
Copyright (C) 1995-2024 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,m(sdf)
scheme@(sdf)> ,use(guile)
scheme@(sdf)> (load-compiled 
"/home/ludo/.cache/guile/ccache/3.0-LE-8-4.7/home/ludo/src/guile-debugging/non-top-level-use-modules.scm.go")

;;; (foo #)
$1 = #
scheme@(sdf)> ,m(guile-user)
scheme@(guile-user)> ($1 123)
;;; :7:1: warning: possibly unbound variable `$1'
ice-9/boot-9.scm:1676:22: In procedure raise-exception:
Unbound variable: bytevector?

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to contin
--8<---cut here---end--->8---

‘use-modules’, when used this way, loads the specified modules in
(current-module) at that point (at run time).  If you change what the
current module is, as I did above, then it breaks.

Ludo’.





bug#70266: Failure to open LUKS devices from a Shepherd service

2024-04-07 Thread Ludovic Courtès
Hello,

Commit 6f9d844d2ece7b369d17bbe678978462425f869c led to a regression:
when a ‘luks-device-mapping’ mapped device is opened from a Shepherd
service (for instance a ‘device-mapping-XXX’ service created by
‘device-mapping-service-type’ because, say, /home is a separate LUKS
partition), said service fails to start with:

  Unbound variable: bytevector?

This is the ‘bytevector?’ referred to in ‘open-luks-device’.

As a result, the system just hangs at boot time because that
‘device-mapping-XXX’ service fails to start.

Ludo’.





bug#70254: withershins - failed to build

2024-04-07 Thread Ricardo Wurmus
Hi,

> While refreshing and checking packages in (gnu packages code) I've
> noticed that withershins is no longer buildable, it looks like the
> source is not compatible with a new version of binutils.
>
> One more thing - the project does not exist by
>  but I could find it in
> .
>
> Cc: Ricardo as he was the last person who has added and updated the
> package.

We only ever needed it for powertabeditor.  It no longer uses the
package, so I just removed it.

Thanks for letting me know!

-- 
Ricardo





bug#70244: Bug in Guix? ... guix-command substitute' died unexpectedly

2024-04-07 Thread jbranso--- via Bug reports for GNU Guix
April 7, 2024 at 9:46 AM, "Zelphir Kaltstahl"  
wrote:



> 
> On 4/7/24 03:17, jbra...@dismail.de wrote:
>  
> > 
> > > 
> > > I was able to update, yes, but I don't know, if the problem is solved. I 
> > > got some error (not necessarily the same, I don't remember) on multiple 
> > > occasions, when trying to update. I have no idea, whether it is something 
> > > other people experience or just my installation.
> > >  Now that you have updated. 
> > 
> > Does the below work without issue? 
> > 
> > $ guix pull && guix package -u
> > # guix system reconfigure config.scm
> > 
> > If you still experience issues with the above commands, please let me know!
> > 
> > Thanks,
> > 
> > Joshua
> >  
> 
> Hi Joshua!
> 
>  
> 
> I just tried:
> 
>  START
> guix pull && guix package -u
> 
> ...
> (lots of output)
> ...
> 
> building /gnu/store/3g7459g63by7wgnjksz3843apq7n7k6m-racket-8.11.1.drv...
> substitute: updating substitutes from 'https://ci.guix.gnu.org 
> https://ci.guix.gnu.org/ '... 0.0%guix substitute: error: TLS error in 
> procedure 'write_to_session_record_port': Error in the push function.
> guix package: error: 
> `/gnu/store/l4vir00gbprk85qzmm2v8l38z8jrfly0-guix-command substitute' died 
> unexpectedly
> ~END~
> 

That sounds like a bug.  

What does 

$ guix describe
$ guix system describe

output?

What kind of computer do you have?

>  
> 
> Regards,Zelphir
> 
>  -- 
> repositories: https://notabug.org/ZelphirKaltstahl
>





bug#70244: Bug in Guix? ... guix-command substitute' died unexpectedly

2024-04-07 Thread Zelphir Kaltstahl

On 4/7/24 03:17, jbra...@dismail.de wrote:

I was able to update, yes, but I don't know, if the problem is solved. I got 
some error (not necessarily the same, I don't remember) on multiple occasions, 
when trying to update. I have no idea, whether it is something other people 
experience or just my installation.

Now that you have updated.

Does the below work without issue?

$ guix pull && guix package -u
# guix system reconfigure config.scm

If you still experience issues with the above commands, please let me know!

Thanks,

Joshua


Hi Joshua!

I just tried:

START
guix pull && guix package -u

...
(lots of output)
...

building /gnu/store/3g7459g63by7wgnjksz3843apq7n7k6m-racket-8.11.1.drv...
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%guix 
substitute: error: TLS error in procedure 'write_to_session_record_port': Error 
in the push function.
guix package: error: `/gnu/store/l4vir00gbprk85qzmm2v8l38z8jrfly0-guix-command 
substitute' died unexpectedly
~END~

Regards,Zelphir

--
repositories:https://notabug.org/ZelphirKaltstahl


bug#70254: withershins - failed to build

2024-04-07 Thread Sharlatan Hellseher

Hi,

While refreshing and checking packages in (gnu packages code) I've
noticed that withershins is no longer buildable, it looks like the
source is not compatible with a new version of binutils.

One more thing - the project does not exist by
 but I could find it in
.

Cc: Ricardo as he was the last person who has added and updated the
package.

Error trace:
--8<---cut here---start->8---
starting phase `build'
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake 
-S/tmp/guix-build-withershins-0.1.drv-0/source 
-B/tmp/guix-build-withershins-0.1.drv-0/source --check-build-system 
CMakeFiles/Makefile.cmake 0
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -E 
cmake_progress_start /tmp/guix-build-withershins-0.1.drv-0/source/CMakeFiles 
/tmp/guix-build-withershins-0.1.drv-0/source//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make  -f src/CMakeFiles/withershins.dir/build.make 
src/CMakeFiles/withershins.dir/depend
make[2]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
cd /tmp/guix-build-withershins-0.1.drv-0/source && 
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -E 
cmake_depends "Unix Makefiles" /tmp/guix-build-withershins-0.1.drv-0/source 
/tmp/guix-build-withershins-0.1.drv-0/source/src 
/tmp/guix-build-withershins-0.1.drv-0/source 
/tmp/guix-build-withershins-0.1.drv-0/source/src 
/tmp/guix-build-withershins-0.1.drv-0/source/src/CMakeFiles/withershins.dir/DependInfo.cmake
 --color=
make[2]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make  -f src/CMakeFiles/withershins.dir/build.make 
src/CMakeFiles/withershins.dir/build
make[2]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
[ 16%] Building CXX object src/CMakeFiles/withershins.dir/withershins.cpp.o
cd /tmp/guix-build-withershins-0.1.drv-0/source/src && 
/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/c++ 
-DWITHERSHINS_ENABLE_LIBBFD -I/tmp/guix-build-withershins-0.1.drv-0/source/src 
-std=c++11 -Wall -Wextra -pthread -O2 -g -DNDEBUG -MD -MT 
src/CMakeFiles/withershins.dir/withershins.cpp.o -MF 
CMakeFiles/withershins.dir/withershins.cpp.o.d -o 
CMakeFiles/withershins.dir/withershins.cpp.o -c 
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins.cpp
[ 33%] Building CXX object src/CMakeFiles/withershins.dir/withershins_unix.cpp.o
cd /tmp/guix-build-withershins-0.1.drv-0/source/src && 
/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/c++ 
-DWITHERSHINS_ENABLE_LIBBFD -I/tmp/guix-build-withershins-0.1.drv-0/source/src 
-std=c++11 -Wall -Wextra -pthread -O2 -g -DNDEBUG -MD -MT 
src/CMakeFiles/withershins.dir/withershins_unix.cpp.o -MF 
CMakeFiles/withershins.dir/withershins_unix.cpp.o.d -o 
CMakeFiles/withershins.dir/withershins_unix.cpp.o -c 
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp: In 
function ‘bool find_file_info(const string&, const void*, std::string&, 
std::string&, int&)’:
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:151:37: 
error: ‘bfd_get_section_vma’ was not declared in this scope; did you mean 
‘bfd_set_section_vma’?
  151 | const bfd_vma section_vma = bfd_get_section_vma(abfd.get(), 
section);
  | ^~~
  | bfd_set_section_vma
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:153:58: 
error: cannot convert ‘std::unique_ptr::pointer’ {aka ‘bfd*’} 
to ‘const asection*’ {aka ‘const bfd_section*’}
  153 | vma < section_vma + bfd_section_size(abfd.get(), section))
  |  ^~
  |  |
  |  
std::unique_ptr::pointer {aka bfd*}
In file included from 
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:21:
/gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/include/bfd.h:1193:35:
 note:   initializing argument 1 of ‘bfd_size_type bfd_section_size(const 
asection*)’
 1193 | bfd_section_size (const asection *sec)
  |   ^~~
make[2]: *** [src/CMakeFiles/withershins.dir/build.make:93: 
src/CMakeFiles/withershins.dir/withershins_unix.cpp.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make[1]: *** [CMakeFiles/Makefile2:119: src/CMakeFiles/withershins.dir/all] 
Error 2
make[1]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make: *** [Makefile:94: all] Error 2
error: in phase 'build': uncaught exception:
%exception #< program: "make" arguments: ()