bug#40999: GRUB prevents booting a degraded RAID1 array atop LUKS

2022-03-26 Thread Maxim Cournoyer
Hi,

maxim.courno...@gmail.com writes:

> On a system where:
>
> 1) Each disks comprising the array is fully LUKS encrypted
> 2) Each mapped disk is made part of a Btrfs RAID1 array
>
> When attempting to boot the system after pulling out (in BIOS or using
> the cable) the drive to simulate a complete disk failure, GRUB hangs,
> prompting for the LUKS password of the disappeared drive and
> (unsurprisingly) failing to open it.
>
> This prevents booting in a degraded LUKS encrypted, Btrfs RAID1 on Guix
> System.

It seems this is a problem not unknown to other (non-Btrfs) software
RAID as well, such as mdadm.  There was recently a fix for it in Ubuntu
[0].  It can probably provide cues about how to go to fix it in Guix
System.

[0]  https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1879980





bug#54558: Mcomix 2.0.1 do not install locale data.

2022-03-26 Thread Feng Shu


I think Mcomix 2.0.1 do not install locale date.

-- 






bug#54277: 'guix pull' fails

2022-03-26 Thread Maxim Cournoyer
Hello,

Никита Зинкевич  writes:

> Updating channel 'guix' from Git repository at
> 'https://git.savannah.gnu.org/git/guix.git'...
> Authenticating channel 'guix', commits 9edb3f6 to e7886fd (315 new
> commits)...
> Building from this channel:
>   guix  https://git.savannah.gnu.org/git/guix.git e7886fd
> substitute: updating substitutes from
> 'https://ci.guix.gnu.org'... 0.0%guix substitute: warning:
> ci.guix.gnu.org: connection failed: Connection timed out
> substitute:
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> building /gnu/store/2ih3xpn6cbaajnbajsskfd75l7in7fkm-module-import.drv...
> building
> /gnu/store/q32v1p84mx92yvr2il23ag9damiq7jxg-module-import-compiled.drv...
> building
> /gnu/store/6fs70csi6jmgjp0f4vwixzdprpz2z295-compute-guix-derivation.drv...
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
> Backtrace:
>   17 (primitive-load
>   
> "/gnu/store/47jgrwakv5mwmxp1whz1i1wmhb50xd7j-compute-guix-derivation")
> In ice-9/eval.scm:
> 155:9 16 (_ _)
> 159:9 15 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#
> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
> In ice-9/boot-9.scm:
> 152:2 14 (with-fluid* _ _ _)
> 152:2 13 (with-fluid* _ _ _)
> In ./guix/store.scm:
>   2129:24 12 (run-with-store #
>   # ?)
>1966:8 11 (_ #)
> In ./guix/gexp.scm:
>296:22 10 (_ #)
>1177:2  9 (_ #)
>1043:2  8 (_ #)
> 889:4  7 (_ #)
> In ./guix/store.scm:
>   2014:12  6 (_ #)
>1406:5  5 (map/accumulate-builds #7f04564517d0> # ?)
>   1421:15  4 (_ #
>   ("/gnu/store/awbqcblsksjrvgi80skcv5s5bfvw92h6-guile-ssh-?" ?) ?)
>   1421:15  3 (loop #f)
>733:11  2 (process-stderr # _)
> In ./guix/serialization.scm:
>102:11  1 (read-int #)
>  80:6  0 (get-bytevector-n* # 8)
>
> ./guix/serialization.scm:80:6: In procedure get-bytevector-n*:
> ERROR:
>   1. &nar-error:
>   file: #f
>   port: #
> guix pull: error: You found a bug: the program
> '/gnu/store/47jgrwakv5mwmxp1whz1i1wmhb50xd7j-compute-guix-derivation'
> failed to compute the derivation for Guix (version:
> "e7886fd6746267e26cf11628f96d8082680b496f"; system: "x86_64-linux";
> host version: "f8aa8899e265a46fd3dff6c717ec484057ba2b68"; pull-version: 1).
> Please report the COMPLETE output above by email to .

I just had a similar error trying to 'guix pull' on an ARMv7 board,
pasting it here in case it may help investigating:

--8<---cut here---start->8---
# guix pull --allow-downgrades
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
guix pull: warning: moving channel 'guix' from 
aa34d4d28dfe25ba47d5800d05000fb7221788c0 to unrelated commit 
465259be78600d17d83f0cee6b06b8a83babda16
Authenticating channel 'guix', commits 9edb3f6 to 465259b (11382 new commits)...
Building from this channel:
  guix  https://git.savannah.gnu.org/git/guix.git   465259b
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.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%
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/00i9abs4gx5fa599zpdblrdv64zsgprr-module-import.drv...
building /gnu/store/l5y63k7qx907s0r8j1sy1szf8rhj3pgh-module-import.drv...
building 
/gnu/store/yyp6pr73gzy9g9jq3s66p02nn36mphn6-module-import-compiled.drv...
building 
/gnu/store/k632rh653c4wczwhccaxx80c372p34y2-module-import-compiled.drv...
building 
/gnu/store/yx2gzcsvbvn9wf09ywhh8b99cnphbwgf-compute-guix-derivation.drv...
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
[...]
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 glibc-utf8-locales-2.33  382KiB   23.1MiB/s 00:00 
[##] 100.0%
 bash-static-5.1.8  477KiB  452KiB/s 00:01 
[##] 100.0%
 gnutls-3.7.2-doc  1.0MiB16KiB/s 01:06 
[##] 100.0%
 glibc-2.33  7.6MiB 

bug#54546: failed to compute the derivation for (very old) Guix

2022-03-26 Thread Maxime Devos
Giovanni Biscuolo schreef op do 24-03-2022 om 16:23 [+0100]:
> Hi Maxime,
> 
> Maxime Devos  writes:
> 
> > Giovanni Biscuolo schreef op do 24-03-2022 om 15:51 [+0100]:
> > > --8<---cut here---end--->8---
> > > [(ice-9 exceptions) stuff]
> > > Please is there any workaround for this?
> > 
> > build-aux/build-self.scm stubs (gcrypt hash) and (git).
> > Likewise, it could be modified to stub (ice-9 exceptions) when
> > 'guile-version' refers to a pre-(ice-9 exceptions) Guile.
> 
> I get the meaning of "stubbing" but I don't know how to code in Guile,
> sorry ? cannot help here

Ok, I've tried something in the attached patch (completely untested).

> [...]
> 
> > Additionally, I'm looking into reducing the number of imports and
> > cycles, so possibly the situation will resolve itself eventually.
> 
> Meanwhile is there anything I can do to upgrade my guix-damon (on
> foreign distro)

What guix is the guix service using?  If it's /usr/bin/guix installed
with the foreign distro's package manager, you can do, in case of
Debian, "sudo apt-get update && sudo apt-get upgrade"

> , I never upgraded my root default profile since I first
> installed Guix on this machine so now I'm stuck at [...]

Suggestion: use your regular user's guix to upgrade root's guix:

$ sudo -i "`which guix`" pull 

(this assumes the non-root user has a vaguely up-to-date guix)

Greetings,
Maxime.

diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm
index 25a7b1e618..64257bd54c 100644
--- a/build-aux/build-self.scm
+++ b/build-aux/build-self.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2014, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès 
-;;; Copyright © 2021 Maxime Devos 
+;;; Copyright © 2021, 2022 Maxime Devos 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -265,6 +265,9 @@ interface (FFI) of Guile.")
   (define fake-git
 (scheme-file "git.scm" #~(define-module (git
 
+  (define fake-ice-9-exceptions
+(scheme-file "exceptions.scm" #~(define-module (ice-9 exceptions
+
   (with-imported-modules `(((guix config)
 => ,(make-config.scm))
 
@@ -279,6 +282,13 @@ interface (FFI) of Guile.")
;; (git) to placate it.
((git) => ,fake-git)
 
+   ;; Pre-3.0 versions of Guile don't have (ice-9
+   ;; exceptions) but (gnu packages racket) imports
+   ;; it.  Provide a ‘good enough’ (ice-9 exceptions).
+   ,@(if (string=? "2" (major-version guile-version))
+ `(((ice-9 exceptions) ,fake-ice-9-exceptions))
+ '())
+
,@(source-module-closure `((guix store)
   (guix self)
   (guix ui)


signature.asc
Description: This is a digitally signed message part


bug#54582: Bug report

2022-03-26 Thread Carlos Rojas
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
indexing objects  21% [##
 ]Nindexing objects  24% [###
]^Authenticating channel 'guix', commits 9edb3f6 to fc9ac2a (17,234 new
commits)...
Building from this channel:
  guix  https://git.savannah.gnu.org/git/guix.git fc9ac2a
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
building /gnu/store/sflmgcfcdwizj7iyd3pfksdvrkc3pskb-config.scm.drv...
building /gnu/store/7k17dvmcrdicjsdxmpvhss4p3i3d70j5-git.scm.drv...
building /gnu/store/j9s3n7iqvh8pqkxkwy91nq3qynr1nby7-hash.scm.drv...
building /gnu/store/a5l8a1pypzi7wxj7vpakpm9658piay4y-module-import.drv...
building /gnu/store/q26gk38hpnkpdyvxjjybq2hnyxzhk8y2-module-import.drv...
building
/gnu/store/mv01zhjs1dvxmsdmsw69d8y473nhrnsx-module-import-compiled.drv...
building
/gnu/store/hr91y089gmk18wwjslhblq3yl9mhv48w-module-import-compiled.drv...
building
/gnu/store/jbqfrs9rxhbf87xsj6snljbd455451zv-compute-guix-derivation.drv...
Computing Guix derivation for 'x86_64-linux'... |Backtrace:
  13 (primitive-load
"/gnu/store/7xjzjgas95dq3c409rwa5s4y7wgdyj8d-compute-guix-derivation")
In ice-9/eval.scm:
155:9 12 (_ _)
159:9 11 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(# ?)
?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
152:2 10 (with-fluid* _ _ _)
152:2  9 (with-fluid* _ _ _)
In ./guix/store.scm:
  2129:24  8 (run-with-store # _
#:guile-for-build _ #:system _ #:target _)
   1966:8  7 (_ _)
In ./guix/gexp.scm:
   299:22  6 (_ _)
   1180:2  5 (_ _)
   1046:2  4 (_ _)
892:4  3 (_ _)
In ./guix/store.scm:
  2014:12  2 (_ #)
   1406:5  1 (map/accumulate-builds #
# ?)
  1421:15  0 (_ # _ _)

./guix/store.scm:1421:15: ERROR:
  1. &store-protocol-error:
  message:
"`/gnu/store/0iii8i1lc4wg3wccs1db7y7d8lg80i04-guix-1.3.0/bin/guix
substitute' died unexpectedly"
  status: 1
guix pull: error: You found a bug: the program
'/gnu/store/7xjzjgas95dq3c409rwa5s4y7wgdyj8d-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"fc9ac2ac64a39f7bb8433428982da62c170d14e9"; system: "x86_64-linux";
host version: "1.3.0"; pull-version: 1).

Note: On debian testing


bug#29644: gcc-objc is unusable without its 'gcc' executable.

2022-03-26 Thread Maxime Devos
Zhu Zihao schreef op za 26-03-2022 om 22:14 [+0800]:
> Maxime Devos  writes:
> 
> > Or maybe some plugin architecture is used, I don't know..
> 
> I think the problem is pointed out by Ricardo Wurmus in this reply 
> https://issues.guix.gnu.org/29644#1

Ok, I thought this was a new bug report, but apparently it is a reply
to an old report.


signature.asc
Description: This is a digitally signed message part


bug#29644: gcc-objc is unusable without its 'gcc' executable.

2022-03-26 Thread Zhu Zihao

Maxime Devos  writes:

> Or maybe some plugin architecture is used, I don't know..

I think the problem is pointed out by Ricardo Wurmus in this reply 
https://issues.guix.gnu.org/29644#1
-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao


signature.asc
Description: PGP signature


bug#51848: `make && make check` fails

2022-03-26 Thread Maxim Cournoyer
Hello,

Rostislav Svoboda  writes:

> Trying to compile guix (for the first time, ever!) I get:
>
>   FAIL: tests/home-import.scm
>   FAIL: tests/guix-home.sh

Both issues appear to have been fixed.

Closing.

Thanks for the report!

Maxim





bug#54544: Network Issue

2022-03-26 Thread Raghav Gururajan via Bug reports for GNU Guix

Hi Maxim,


It seems the last update to linux-libre-lts dates back to commit
2c7f2b40e2dbee48075147a87c6cd9b611dc5ba9 made on Jan 16 2022.  You could
try reconfiguring with a commit older than that to see if it improves
anything.


Sure, I'll try that. Interestingly, switching to linux-libre from 
linux-libre-lts, also produce the same issue.


Regards,
RG.


OpenPGP_signature
Description: OpenPGP digital signature


bug#29644: gcc-objc is unusable without its 'gcc' executable.

2022-03-26 Thread Maxime Devos
Zhu Zihao schreef op za 26-03-2022 om 18:53 [+0800]:
> `LANG=C gcc hello.m -o hello` complains that Objective-C compiler is
> not installed.

I noticed the output of "guix build gcc-objc" does not contain any
binaries in 'bin' and neither does there appear to be some objc shared
library.  I guess this is caused by the following line:

   (add-after 'install 'remove-broken-or-conflicting-files
 (lambda* (#:key outputs #:allow-other-keys)
   (for-each
delete-file
(find-files (string-append (assoc-ref outputs "out")
"/bin")
".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|lto)(-
.*)?$"))


I'm wondering if any of the following commits fix or break things:

  * 5318bade32e2a3a801e838286439074aeaf1e3c7
(this one modified the regex)
  * a159586f8ae4db8a0fcf608b411f962817c3db60
(the commit before)
  * 82f145ef7aef8f4d28a144ee8efcadf3fdd4b877 
(this one introduced the phase)
  * ce6027bf43210d0b68bb26dbf110ca6c47aa8478
(the commit before)

Make sure to run this in an environment "guix environment --pure --ad-hoc 
gcc-objc"
(*) without the "gcc" package, to avoid the gcc package overriding the
hypothetical gcc from the "gcc-objc" package.

Or maybe some plugin architecture is used, I don't know..

Greetings,
Maxime.

(*) some of these commits are from before the introduction of "guix shell"


signature.asc
Description: This is a digitally signed message part


bug#29644: gcc-objc is unusable without its 'gcc' executable.

2022-03-26 Thread Zhu Zihao

You can try with (on d05fcc21cb9509084a0424e6808b84b58dc52d62, but I
guess the commit doesn't matters.)

```
guix shell gcc@10 gcc-objc@10 clang@13

cat > hello.m << "EOF"
#include 

int main(int argc, const char * argv[]) {
  printf ("Hello, world!\n");
return 0;
}
EOF
```

`LANG=C gcc hello.m -o hello` complains that Objective-C compiler is not
installed.

`LANG=C clang hello.m -o hello` can compile to hello binary.

Even I try set environment variable GCC_EXEC_PREFIX (described in
https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html)

GCC_EXEC_PREFIX=$GUIX_ENVIRONMENT/libexec/gcc/x86_64-unknown-linux-gnu/10.3.0 
gcc hello.m -o hello
 
or pass option
`-B$GUIX_ENVIRONMENT/libexec/gcc/x86_64-unknown-linux-gnu/10.3.0`. It
still says no Objective-C compiler.


Maxime Devos  writes:

> [[PGP Signed Part:Undecided]]
> Zhu Zihao schreef op za 26-03-2022 om 13:49 [+0800]:
>> I'm planning to package some GNUStep packages to Guix, but the gcc-
>> objc is broken.
>> 
>> Any one interested in fixing GCC? [...]
>
> How is it broken?  Is there some error message or something?
>
> Greetings,
> Maxime.
>
> [[End of PGP Signed Part]]


-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao


signature.asc
Description: PGP signature


bug#29644: gcc-objc is unusable without its 'gcc' executable.

2022-03-26 Thread Maxime Devos
Zhu Zihao schreef op za 26-03-2022 om 13:49 [+0800]:
> I'm planning to package some GNUStep packages to Guix, but the gcc-
> objc is broken.
> 
> Any one interested in fixing GCC? [...]

How is it broken?  Is there some error message or something?

Greetings,
Maxime.


signature.asc
Description: This is a digitally signed message part


bug#54558: mcomix refuses to run, missing GTK libraries

2022-03-26 Thread Liliana Marie Prikler
Hi Maxim,

Am Freitag, dem 25.03.2022 um 22:57 -0400 schrieb Maxim Cournoyer:
> Hi Liliana,
> 
> Liliana Marie Prikler  writes:
> 
> > [...]
> > +  (let ((p7zip (assoc-ref inputs "p7zip")))
> > +    ;; insert absolute path to 7z executable
> 
> I know it's in the original, but since while we're revamping the
> package, let's make this comment a proper complete sentence.
Thanks, did that.

> > +    (substitute* "mcomix/archive/sevenzip_external.py"
> > +  (("_7z_executable = -1")
> > +   (string-append "_7z_executable = u'" p7zip
> > "/bin/7z'")))
> 
> I'd use something like:
> 
> (format #f "_7z_executable = ~s"
>  (search-input-file inputs "bin/7z"))
> 
> For the replacement.  That unicode string (u"something") is
> obsolete/unnecessary (all strings are unicode in Python 3).
Thanks, did that.

> I haven't tried it, but LGTM with my above comments addressed.
I tried it in a pure shell and apart from the usual missing icons, it
launched fine.  Closing.

Cheers