bug#58485: [shepherd] Restarting guix-publish fails

2023-02-07 Thread Lars-Dominik Braun
Hi Ludo,

> Indeed.  This is fixed by Shepherd commit
> d97592f58603ff51cb280ae57d413c8731e601b3, which will be in the upcoming
> 0.9.3 release.
I’m on 0.9.3 and it works fine with `herd restart` now. But ssh-daemon
has the same issue when being restarted by unattended-upgrades (which
is fatal, because unable to use SSH I have to restart the entire box):

---snip---
shepherd: Service nginx has been stopped.
shepherd: Service nginx has been started.
shepherd: Service collectd has been stopped.
shepherd: Service collectd has been started.
shepherd: Service ntpd has been stopped.
shepherd: Service ntpd has been started.
shepherd: Service guix-publish has been stopped.
shepherd: Service guix-publish has been started.
shepherd: Service ssh-daemon has been stopped.
Backtrace:
   7 (primitive-load "/gnu/store/ip5m1n8kb6p0rfglzpkk17k060a?")
In ice-9/boot-9.scm:
724:2  6 (call-with-prompt ("prompt") # ?)
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In ice-9/eval.scm:
619:8  4 (_ #(#(#)))
In ice-9/boot-9.scm:
   260:13  3 (for-each # _)
In gnu/services/herd.scm:
168:4  2 (invoke-action ssh-daemon restart () #)
176:7  1 (failure)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
  1. &action-exception-error:
  service: ssh-daemon
  action: start
  key: system-error
  args: ("bind" "~A" ("Address already in use") (98)
---snap---

Maybe I can strace herd and see what happens exactly.

Thanks,
Lars

-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964


signature.asc
Description: PGP signature


bug#61343: modules from channels is not available to "guix repl"

2023-02-07 Thread 宋文武 via Bug reports for GNU Guix
I have add the rde channel to my guix, and "guix pull".
--8<---cut here---start->8---
(cons*
 (channel
  (name 'rde)
  (url "https://git.sr.ht/~abcdw/rde";)
  (introduction
   (make-channel-introduction
"257cebd587b66e4d865b3537a9a88cccd7107c95"
(openpgp-fingerprint
 "2841 9AC6 5038 7440 C7E9  2FFA 2208 D209 58C1 DEB0"
 %default-channels)
--8<---cut here---end--->8---

But then, Run:
  echo '(use-modules (rde features))' | guix repl /dev/stdin
Will get error: no code for module (rde features)

Well, Run:
  echo '(use-modules (gnu packages) (rde features))' | guix repl /dev/stdin
Will pass!





bug#54370: network problem or intentional blocking?

2023-02-07 Thread Christopher Baines

poiNt_3D  writes:

> Hello. I would like to request a clarification on the issue of
> inaccessibility of guix.gnu org from the Russian Federation.  Is the
> blocking intentional or is there some kind of networking problem?

Now that the website is hosted on bayfront, which wasn't changed
specifically to address this, but should do anyway, I'm going to close
this issue.

Things like ci.guix.gnu.org will still be inaccessible, so feel free to
open issues about those if you wish.

Thanks,

Chris


signature.asc
Description: PGP signature


bug#61236: ibus-speech-to-text engine fails to run (?)

2023-02-07 Thread Luis Felipe via Bug reports for GNU Guix
Hi,

The attached patch fixed the issue for me. Now ibus-engine-stt seems to be 
running correctly and I can switch to the input method without the workaround 
indicated in the initial report.

I noticed that there are some lint issues from the original package definition 
though. I didn't fixed those:

$ ./pre-inst-env guix lint ibus-speech-to-text
/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[1] 'desktop-file-utils' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[2] 'glib:bin' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[3] 'gobject-introspection' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[4] label 'glib' does not match package name 'glib:bin'

/home/yo/guix/gnu/packages/ibus.scm:856:2: ibus-speech-to-text@0.4.0: 

[5] "bash-minimal" should be in 'inputs' when 'wrap-program' is usedFrom 2348c2290966e6480897f89e0ca6fdc555b6d41f Mon Sep 17 00:00:00 2001
From: Luis Felipe 
Date: Tue, 7 Feb 2023 10:49:31 -0500
Subject: [PATCH] gnu: ibus-speech-to-text: Fix execution of ibus-engine-stt.

Fixes .

* gnu/packages/ibus.scm (ibus-speech-to-text)[phases]: Remove path to
ibus-stt directory from GI_TYPELIB_PATH, since it doesn't provide
typelibs. Remove path to ibus' typelibs directory from
GUIX_PYTHONPATH, since it doesn't provide Python modules. Remove
unnecessary delimiters from all environment variables.
---
 gnu/packages/ibus.scm | 14 +-
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 4c45671acc..b1f573a875 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2021 Songlin Jiang 
 ;;; Copyright © 2021 Taiju HIGASHI 
 ;;; Copyright © 2022 Maxim Cournoyer 
+;;; Copyright © 2023 Luis Felipe López Acevedo 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -882,21 +883,16 @@ (define-public ibus-speech-to-text
  (let ((out (assoc-ref outputs "out")))
(for-each (lambda (prog)
(wrap-program prog
- `("GST_PLUGIN_PATH" ":" prefix
+ `("GST_PLUGIN_PATH" prefix
(,(string-append (assoc-ref inputs "gst-vosk")
 "/lib/gstreamer-1.0")
 ,(getenv "GST_PLUGIN_SYSTEM_PATH")))
- `("GUIX_PYTHONPATH" ":" prefix
+ `("GUIX_PYTHONPATH" prefix
(,(getenv "GUIX_PYTHONPATH")
-,(string-append (assoc-ref inputs "ibus")
-"/lib/girepository-1.0")
 ,(string-append (assoc-ref outputs "out")
 "/share/ibus-stt")))
- `("GI_TYPELIB_PATH" ":" prefix
-   (,(string-append (assoc-ref inputs "ibus")
-"/lib/girepository-1.0")
-,(string-append (assoc-ref outputs "out")
-"/share/ibus-stt")
+ `("GI_TYPELIB_PATH" =
+   (,(getenv "GI_TYPELIB_PATH")
  (list (string-append out "/libexec/ibus-engine-stt")
(string-append out "/libexec/ibus-setup-stt")
 (inputs

base-commit: 1f684d00d25f0f205c4cc4b762d8f56911062581
-- 
2.38.1



publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


bug#61359: mozjs captures perl reference in it binary

2023-02-07 Thread Maxim Cournoyer
Hello Guix,

Mozjs appears to keep a refrence to perl (a build input) in its output:

--8<---cut here---start->8---
grep: 
/gnu/store/c4j4a6qc256dvgnzwjzvzwca0ffgic5x-mozjs-102.2.0/lib/libmozjs-102.so: 
binary file matches
grep: 
/gnu/store/c4j4a6qc256dvgnzwjzvzwca0ffgic5x-mozjs-102.2.0/lib/libjs_static.ajs: 
binary file matches
--8<---cut here---end--->8---

And:

--8<---cut here---start->8---
$ ./pre-inst-env guix size mozjs
store item   totalself
/gnu/store/cbyf9yv9zkqzqb8arflnigccj10h9r12-mozjs-102.2.0  264.8
67.2  25.4%
/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0147.7
58.6  22.1%
/gnu/store/b0xl3iqgc7fs68f2kfdyydsdxs77jqph-icu4c-71.1 112.5
39.8  15.0%
/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33  38.3
36.6  13.8%
/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib  71.7
33.4  12.6%
/gnu/store/vqdsrvs9jbn0ix2a58s99jwkh74124y5-coreutils-minimal-8.3288.0
16.4   6.2%
/gnu/store/9rrnm5hdjw7cy96a2a9rfgh6y08wsbmf-ncurses-6.2.2021061977.6 
5.9   2.2%
/gnu/store/720rj90bch716isd8z7lcwrnvz28ap4y-bash-static-5.1.81.7 
1.7   0.6%
/gnu/store/rrid5nx9cbrq0flkhc1rv4b5hk4w70ib-nspr-4.34  150.3 
1.6   0.6%
/gnu/store/wcwls45278gzpjvwlvrrs1y7h30g44xh-readline-8.1.1  79.0 
1.4   0.5%
/gnu/store/chfwin3a4qp1znnpsjbmydr2jbzk0d6y-bash-minimal-5.1.8  72.7 
1.0   0.4%
/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8  39.3 
1.0   0.4%
/gnu/store/8qv5kb2fgm4c3bf70zcg9l6hkf3qzpw9-zlib-1.2.11 71.9 
0.2   0.1%
total: 264.8 MiB
--8<---cut here---end--->8---

It'd be nice to understand how to prevent this from happening.

-- 
Thanks,
Maxim





bug#57677: GIMP retains reference to GCC

2023-02-07 Thread 宋文武 via Bug reports for GNU Guix
Ludovic Courtès  writes:

> [...]
> So the root cause is that GIMP’s build process captures the output of
> ‘gcc -v’, which leads to this unintended retention.

I sent a patch to fix reference from 'gcc -v', but gcc is still here via
exiv2->gcc:

rg -a /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0 $(guix build exiv2)

--8<---cut here---start->8---
bin/iptcprint:^@^@^@std::auto_ptr<  >::element_type* 
std::auto_ptr<  >::operator->() const [with _T
p = Exiv2::Image; std::auto_ptr< >::element_type =
Exiv2::Image]^@^@^@^@^@^@^@^@/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include/c++/backward/auto_ptr.h^@^@%s:%d:
%s: Assertion '%s' failed.
[...]
--8<---cut here---end--->8---





bug#61236: ibus-speech-to-text engine fails to run (?)

2023-02-07 Thread Liliana Marie Prikler
Am Dienstag, dem 07.02.2023 um 16:41 + schrieb Luis Felipe:
> Hi,
> 
> The attached patch fixed the issue for me. Now ibus-engine-stt seems
> to be running correctly and I can switch to the input method without
> the workaround indicated in the initial report.
> 
> I noticed that there are some lint issues from the original package
> definition though. I didn't fixed those:
> 
> $ ./pre-inst-env guix lint ibus-speech-to-text
> /home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0:
> 
> [1] 'desktop-file-utils' should probably be a native input
> 
> /home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0:
> 
> [2] 'glib:bin' should probably be a native input
> 
> /home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0:
> 
> [3] 'gobject-introspection' should probably be a native input
> 
> /home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0:
> 
> [4] label 'glib' does not match package name 'glib:bin'
> 
> /home/yo/guix/gnu/packages/ibus.scm:856:2: ibus-speech-to-text@0.4.0:
> 
> [5] "bash-minimal" should be in 'inputs' when 'wrap-program' is used
All but [4] should be fixed.  Can you attach a separate patch to do so?
(If possible, use `git send-email` with a reroll count of 2, so that CI
and mumi-based workflows behave as intended.)

> * gnu/packages/ibus.scm (ibus-speech-to-text)[phases]: 
Should probably be #:phases.
> Remove path to ibus-stt directory from GI_TYPELIB_PATH, since it
> doesn't provide typelibs.
Should probably be "Use getenv to set GUIX_PYTHONPATH."

> Remove path to ibus' typelibs directory from GUIX_PYTHONPATH, since
> it doesn't provide Python modules.
I think you should also use getenv here.  I think we should mimic
python-build-system here and add the output directory to
GUIX_PYTHONPATH before it gets wrapped.

> Remove unnecessary delimiters from all environment variables.
I don't think it's necessary to remove them ;)

Cheers