bug#68835: Resolving package inheritance issue

2024-02-01 Thread Simon Tournier
Hi,

On Wed, 31 Jan 2024 at 01:01, Sharlatan Hellseher  wrote:

> My rational was to keep golang module in (gnu packages golang-web) and
> the new inherited package providing executable in (gnu packages web)
> which introduced the regression.

As said by Josselin, the manual provides some explanations for this kind
of situations.

https://guix.gnu.org/manual/devel/en/guix.html#Cyclic-Module-Dependencies

Roughly speaking, your proposal for Go language packages breaks because
more or less « Because the ‘inherit’ field is not delayed (thunked), it
is evaluated at the top level at load time, which is problematic in the
presence of module dependency cycles. »

The “fix” would to wrap it using a procedure; as explained in the
manual.  Something like:

(define (make-minify)
  (package
(inherit go-github-com-tdewolff-minify-v2)
(name "minify")
(arguments
 (substitute-keyword-arguments
 (package-arguments go-github-com-tdewolff-minify-v2)
   ((#:install-source? _ #t) #f)
   ((#:import-path _ "github.com/tdewolff/minify/v2")
"github.com/tdewolff/minify/cmd/minify"
 
Well, then it is not clear for me how the user would access to this
package but somehow that’s another story. :-)x

As Josselin, I would suggest to keep in the same Guile module the
original package and its variants created using ’inherit’; well as the
general rule.

Cheers,
simon






bug#68874: executing `/gnu/store/...-guile-3.0.9/bin/guile': Exec format error

2024-02-01 Thread Simon Tournier
Hi,

Well, on foreign distro, from 8e61e63 I am not able to pull recent
commits.  The best seems to show:

--8<---cut here---start->8---
$ guix describe
Generation 2déc. 11 2023 10:55:51   (current)
  guix 8e61e63
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 8e61e6351510f5665d09c6debc0584b3ed218e73

$ git show --format="%h %s %cd" 8e61e6351510f5665d09c6debc0584b3ed218e73
8e61e63515 gnu: gerbv: Use a source file-name. Mon Dec 11 08:31:26 2023 +0200
--8<---cut here---end--->8---

Let try the commit bdab356332e391e09d0feafe0fcac9c52388a07d from
December, 25th.

--8<---cut here---start->8---
$ guix time-machine -q --commit=bdab356332e391e09d0feafe0fcac9c52388a07d -- 
describe
  guix bdab356
repository URL: https://git.savannah.gnu.org/git/guix.git
commit: bdab356332e391e09d0feafe0fcac9c52388a07d
--8<---cut here---end--->8---

So far, so good!

The descendant of this commit fails:

--8<---cut here---start->8---
$ git log --format="%H %P %s %cd" | grep 
bdab356332e391e09d0feafe0fcac9c52388a07d
92227248a616a9555200a48b1e4f1768a462556b 
bdab356332e391e09d0feafe0fcac9c52388a07d 
7722da6fa5422c4fec69d6c8b9536c7d6fc3d326 Merge branch 'master' into 
mesa-updates Thu Dec 28 21:13:26 2023 -0500
bdab356332e391e09d0feafe0fcac9c52388a07d 
f7bca895b91c4e12324f34311e312ace2835e0df gnu: curl: Fix test suite on arm 
platforms. Mon Dec 25 11:36:20 2023 +0200

$ guix time-machine --commit=92227248a616a9555200a48b1e4f1768a462556b -- 
describe
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
The following derivations will be built:
  /gnu/store/xhb4922x9g0sviadhqdr7b6vdk0023qh-profile.drv
  /gnu/store/v4zys8gnghkpp52rs3bqxwg6r76vshhx-guix-92227248a.drv
  /gnu/store/174cbd2y89icc5axicw888aczk6rhll4-guix-daemon.drv
  /gnu/store/nqx950qnngliir0ljcnvgqjmlv55b07p-guix-command.drv
  /gnu/store/cmllz43d758h65z1l1kparaj430nbx99-guix-module-union.drv
  /gnu/store/2dlv5iji9awyy78dsrcglhcswa39m3f2-guix-92227248a-modules.drv
  /gnu/store/3yz13qns2bmc001alsqiai8q9p113vgj-guix-extra-modules.drv
  /gnu/store/bzl3gsx06gikm9rf6ci3kkhyairqjs50-guix-system-tests-modules.drv
  /gnu/store/f7dngsf9lnyvl4s6wgmskpigxd54fgnb-guix-cli-modules.drv
  /gnu/store/hwwp1qk7ha95axx7f2hgldykanc57az0-guix-core-modules.drv
  /gnu/store/5li5ky8vhzk2694h5kn0vnlpm70c851k-guix-core-source.drv
  /gnu/store/2f0z0x4nqpwgwmrk5qs7ka0p3y2a2gny-config.scm.drv
  /gnu/store/mwh263dzbs45qhpxjjfn3rbnjzc31ql6-guix-packages-modules.drv
  /gnu/store/3kkg4137vchrak951qzjq05ncqhi60yw-guix-packages.drv
  /gnu/store/n20f4wal7qzmxaaibv9jw173hqny801b-guix-cli-core-modules.drv
  /gnu/store/r2jwd32y1zc479ijxm22b9xjfji5z1c8-guix-system-modules.drv
  /gnu/store/rf0l8zkcsqh8ymyq331rc3l96gg41lyc-guix-packages-base-modules.drv
  /gnu/store/ww55j14pyrxp0fq830q3j91cv6z1x3n0-guix-home-modules.drv
  /gnu/store/yr4r9yazb1qycvph04b8ypdv2qiwj5a5-guix-config-modules.drv
  /gnu/store/6dg6hla57prkbknfabxy7qa4m3cmmypj-guix-config-source.drv
  /gnu/store/82j8g9z2rmba9yvhav24ajkqcr6j4nam-config.scm.drv
  /gnu/store/w4gicpx7fs3wg6xw5p0wzv38k67ncyrp-guix-config.drv
  /gnu/store/6ahjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv
  /gnu/store/1rz6zxv24yir437lr8vahi7bbzxdmqvf-inferior-script.scm.drv
  /gnu/store/qw62c8zcfnm93027jriwq1ryw2b5nd4k-profile.drv

building /gnu/store/6ahjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv...
\builder for `/gnu/store/6ahjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv' failed 
with exit code 1
build of /gnu/store/6ahjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv failed
View build log at 
'/var/log/guix/drvs/6a/hjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv.gz'.
cannot build derivation 
`/gnu/store/v4zys8gnghkpp52rs3bqxwg6r76vshhx-guix-92227248a.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/xhb4922x9g0sviadhqdr7b6vdk0023qh-profile.drv': 1 dependencies 
couldn't be built
guix time-machine: error: build of 
`/gnu/store/xhb4922x9g0sviadhqdr7b6vdk0023qh-profile.drv' failed
--8<---cut here---end--->8---

First, the error message:

--8<---cut here---start->8---
$ zcat /var/log/guix/drvs/6a/hjj7zin3spy9gjplk3qsyhik4750fy-guix-misc.drv.gz
while setting up the build environment: executing 
`/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/bin/guile': Exec 
format error
--8<---cut here---end--->8---

Second, the failure seems to come from the merged branch:

--8<---cut here---start->8---
$ guix time-machine --commit=7722da6fa5422c4fec69d6c8b9536c7d6fc3d326 -- 
describe
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_

bug#68874: error while loading shared libraries: /gnu/store/...-guile-3.0.9/lib/libguile-3.0.so.1: file too short

2024-02-01 Thread Simon Tournier
Re,

Another data point.

--8<---cut here---start->8---
$ guix describe
Generation 2déc. 11 2023 10:55:51   (current)
  guix 8e61e63
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 8e61e6351510f5665d09c6debc0584b3ed218e73

$ guix pull -q -p /tmp/new
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix  https://git.savannah.gnu.org/git/guix.git   7bf8b7c
Computing Guix derivation for 'x86_64-linux'... \
hint: Consider setting the necessary environment variables by running:

 GUIX_PROFILE="/tmp/new"
 . "$GUIX_PROFILE/etc/profile"

Alternately, see `guix package --search-paths -p "/tmp/new"'.


hint: After setting `PATH', run `hash guix' to make sure your shell refers to 
`/tmp/new/bin/guix'.
--8<---cut here---end--->8---

So far, so good!  And now the error:

--8<---cut here---start->8---
$ /tmp/new/bin/guix describe
/gnu/store/vqkjfl6ds3vdvig2x5pkvvzkc3wivrp0-guile-wrapper/bin/guile: error 
while loading shared libraries: 
/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1: 
file too short
--8<---cut here---end--->8---

Hum, what is wrong?

Cheers,
simon





bug#59180: [berlin] configure mumi <- debbugs sync via an rsync service

2024-02-01 Thread Maxim Cournoyer
Hi Felix,

Felix Lechner  writes:

> Hi Maxim,
>
> Here is rsync service I use [1] in case that's helpful.
>
> Kind regards
> Felix
>
> [1]
> https://codeberg.org/lechner/system-config/src/commit/bf38906f52526d9d8a2bb92489b3bd51d0e7d713/host/wallace-server/operating-system.scm#L633-L651

Thanks.

This is how it is manually started, peeking at top:

--8<---cut here---start->8---
bash -c while true; do timeout --kill-after 5m 1h rsync --delete -av 
debbugs-...@debbugs.gnu.org::var-lib-debbugs /var/mumi/data/; sleep 1; done
--8<---cut here---end--->8---

-- 
Thanks,
Maxim





bug#68877: Dictionary extensions on libreoffice not working

2024-02-01 Thread francismb via Bug reports for GNU Guix

Dear Maintainers,
installing 'libreoffice' and trying to update language dictionaries
fails (nothing seems to happen).

Steps to reproduce:
> (CLI) guix install libreoffice
> (CLI) libreoffice -> UI application opens
> (UI) Tools > Options > Language Settings > Writing Aids > ... and
then click on the bottom link "Get more dictionaries online ..."

I'would expect a menu letting me search for languages, select one and
installing the extension. But nothing (no reaction) happens.

Thanks in advance
Francis





bug#59180: [berlin] configure mumi <- debbugs sync via an rsync service

2024-02-01 Thread Maxim Cournoyer
Hi,

Maxim Cournoyer  writes:

> Hi Felix,
>
> Felix Lechner  writes:
>
>> Hi Maxim,
>>
>> Here is rsync service I use [1] in case that's helpful.
>>
>> Kind regards
>> Felix
>>
>> [1]
>> https://codeberg.org/lechner/system-config/src/commit/bf38906f52526d9d8a2bb92489b3bd51d0e7d713/host/wallace-server/operating-system.scm#L633-L651
>
> Thanks.
>
> This is how it is manually started, peeking at top:
>
> bash -c while true; do timeout --kill-after 5m 1h rsync --delete -av 
> debbugs-...@debbugs.gnu.org::var-lib-debbugs /var/mumi/data/; sleep 1; done

I implemented the above reusing the shared mcron job almost as-is,
and it appears to work:

--8<---cut here---start->8---
2024-02-01 20:46:00 90211 Rsync Debbugs data: running...
2024-02-01 20:46:01 90211 Rsync Debbugs data: receiving incremental file list
2024-02-01 20:46:01 90211 Rsync Debbugs data: spool/
2024-02-01 20:46:01 90211 Rsync Debbugs data: spool/by-affects.idx
2024-02-01 20:46:01 90211 Rsync Debbugs data: spool/by-correspondent.idx
2024-02-01 20:46:02 90211 Rsync Debbugs data: spool/by-message-id.idx
2024-02-01 20:46:02 90211 Rsync Debbugs data: spool/by-owner.idx
2024-02-01 20:46:02 90211 Rsync Debbugs data: spool/by-package.idx
[...]
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/org-mode_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/parted.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/parted_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/sed.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/sed_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/skribilo.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/skribilo_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/vc-dwim.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/vc-dwim_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/woodchuck.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: spool/rrd/woodchuck_tag.rrd
2024-02-01 20:46:36 90211 Rsync Debbugs data: www/db/
2024-02-01 20:46:39 90211 Rsync Debbugs data: www/db/ix/
2024-02-01 20:46:39 90211 Rsync Debbugs data: www/db/ix/zstamp.html
2024-02-01 20:46:40 90211 Rsync Debbugs data:
2024-02-01 20:46:40 90211 Rsync Debbugs data: sent 161,909 bytes  received 
8,905,931 bytes  223,897.28 bytes/sec
2024-02-01 20:46:40 90211 Rsync Debbugs data: total size is 18,780,129,589  
speedup is 2,071.07
2024-02-01 20:46:40 90211 Rsync Debbugs data: completed in 40.293s
--8<---cut here---end--->8---

Thanks a lot, Felix!

-- 
Maxim





bug#68874: error while loading shared libraries: /gnu/store/...-guile-3.0.9/lib/libguile-3.0.so.1: file too short

2024-02-01 Thread Josselin Poiret via Bug reports for GNU Guix
Hi Simon,

Simon Tournier  writes:

> --8<---cut here---start->8---
> $ /tmp/new/bin/guix describe
> /gnu/store/vqkjfl6ds3vdvig2x5pkvvzkc3wivrp0-guile-wrapper/bin/guile: error 
> while loading shared libraries: 
> /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1:
>  file too short
> --8<---cut here---end--->8---

File too short sounds like store corruption, can you check whether that
file is empty?  Maybe try gc'ing it and retrying?

Best,
-- 
Josselin Poiret


signature.asc
Description: PGP signature


bug#68474: [PATCH] tls: Fix openssl-1.0 check phase.

2024-02-01 Thread Ludovic Courtès
Hello,

Jean-Pierre De Jesus DIAZ  skribis:

> From: Jean-Pierre De Jesus DIAZ 
>
> * modules/past/packages/tls.scm (openssl-1.0): Fix a time bomb in
> cms-test.pl due to expired certificates.

Perfect.  Pushed, thanks!

Ludo’.





bug#65523: package `guile@3.0.9' has an invalid input: ("_" #)

2024-02-01 Thread Maxim Cournoyer
Hi,

Josselin Poiret  writes:

> Hi Paul,
>
> Paul Alesius  writes:
>
>> In the source code directory of Guix, when trying to build a package from
>> gnu/packages/python-xyz.scm, it fails with the following error:
>>
>> guix build: error:
>> /storage/src/guix/guix-gnu/guix/build-system/gnu.scm:146:8: package
>> `guile@3.0.9' has an invalid input: ("_" #)
>
> Usually, if you see `#` anywhere in an error,
> that means that something that used to be just a variable was turned
> into a macro, but the other modules using it weren't recompiled
> (reminder that macro expansion happens at compilation time).  This
> happens because Guile doesn't have any dependency tracking!  You can
> work around this by recompiling all files containing a reference to
> pkg-config, I usually do `grep -Rl pkg-config --include '*.go' . | xargs
> rm`, followed by `make`.

Thanks for the answer, Josselin!

Closing.

-- 
Maxim





bug#68877: Dictionary extensions on libreoffice not working

2024-02-01 Thread francismb via Bug reports for GNU Guix

Here is $ guix describe
  guix 7bf8b7c
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 7bf8b7c33304d6e69f36190f0444576da1863efc

I hope it helps
Francis