bug#66699: zig: fail to link SDL2

2023-11-11 Thread Ekaitz Zarraga
Hi,

I tracked this pretty far:

This is a related issue that mentions the `mepo` package:
https://github.com/ziglang/zig/issues/12170

And I realized the problem comes from `pkg-config`. It's telling zig to use the 
static library first.
Removing `pkg-config` from the `native-inputs` in your proposed package make it 
build but the `runpath` validation phase fails.

I'm not sure about what to do now.

In the issue the people working on freebsd-ports mention they did this:
https://github.com/freebsd/freebsd-ports/blob/16ada4d8d14a222bd92c4bf332d28b7c604af457/astro/mepo/Makefile#L31
But I don't know if we can replicate that.

I'll keep researching on this a little bit further.

Best,
Ekaitz





bug#67109: ‘efi32-esp’ image support pulls in host-side code

2023-11-11 Thread Ludovic Courtès
Hello,

I noticed that 62c86c8391ceb8953ca972498fd75ea9298b85ff pulls in
host-side code on the “build side”, via (guix utils), meaning that the
closure of the (gnu build image) module would now include 80 modules.

This change also introduces uses of ‘target-x86?’ and ‘target-arm?’ on
the build side that are unlikely to have the intended effect because the
check is then done based on the native system type when running the
build process.  Last, the ‘cond’ form in that commit lacks an ‘else’
clause.

Thus I’m proposing the fix below.  How can I test it though?  I get:

--8<---cut here---start->8---
$ ./pre-inst-env guix system image -t efi32-raw 
gnu/system/examples/bare-bones.tmpl
guix system: error: EFI bootloader required with GPT partitioning
--8<---cut here---end--->8---

Thanks in advance!

Ludo’.

diff --git a/gnu/build/image.scm b/gnu/build/image.scm
index 49dc01c0d1..63262a4ffe 100644
--- a/gnu/build/image.scm
+++ b/gnu/build/image.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès 
+;;; Copyright © 2013-2020, 2023 Ludovic Courtès 
 ;;; Copyright © 2016 Christine Lemmer-Webber 
 ;;; Copyright © 2016, 2017 Leo Famulari 
 ;;; Copyright © 2017 Marius Bakke 
@@ -29,7 +29,6 @@ (define-module (gnu build image)
   #:use-module (guix build syscalls)
   #:use-module (guix build utils)
   #:use-module (guix store database)
-  #:use-module (guix utils)
   #:use-module (gnu build bootloader)
   #:use-module (gnu build install)
   #:use-module (gnu build linux-boot)
@@ -191,13 +190,11 @@ (define* (initialize-efi-partition root
 (define* (initialize-efi32-partition root
  #:key
  grub-efi32
+ grub-targets
  #:allow-other-keys)
   "Install in ROOT directory, an EFI 32bit loader using GRUB-EFI32."
   (install-efi-loader grub-efi32 root
-  #:targets (cond ((target-x86?)
-   '("i386-efi" . "BOOTIA32.EFI"))
-  ((target-arm?)
-   '("arm-efi" . "BOOTARM.EFI")
+  #:targets grub-targets))
 
 (define* (initialize-root-partition root
 #:key
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index a990c4f861..49d4287a74 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -136,7 +136,17 @@ (define esp-partition
 (define esp32-partition
   (partition
(inherit esp-partition)
-   (initializer (gexp initialize-efi32-partition
+   (initializer
+(let-system (system target)
+  (let ((targets (cond ((target-x86? (or target system))
+#~'("i386-efi" . "BOOTIA32.EFI"))
+   ((target-arm? (or target system))
+#~'("arm-efi" . "BOOTARM.EFI"))
+   (else #f
+#~(lambda (root . args)
+(apply initialize-efi32-partition root
+   #:grub-targets #$targets
+   args)))
 
 (define root-partition
   (partition


bug#64653: ‘static-networking’ fails to start

2023-11-11 Thread Leo Nikkilä via Bug reports for GNU Guix
I'm also seeing this issue on a headless RockPro64 system. Do you know anything 
I could change in the configuration to work around this during boot, e.g. patch 
a specific commit out?

Happy to provide further details or test things on my system.





bug#59971:

2023-11-11 Thread Jack Faller
Not sure if this is useful for anyone, but here is a version I have been
using without the RDE dependency.
(define-module (iwd-service)
  #:export (iwd-configuration
iwd-configuration?
iwd-configuration-iwd
iwd-configuration-openresolv
iwd-configuration-coreutils
iwd-configuration-config-file
iwd-service-type)

  #:use-module (gnu)
  #:use-module (gnu services)
  #:use-module (gnu system setuid)
  #:use-module (gnu packages networking)
  #:use-module (gnu packages dns)
  #:use-module (gnu services admin)
  #:use-module (gnu services dbus)
  #:use-module (gnu services base)
  #:use-module (gnu services shepherd)
  #:use-module (gnu services configuration)

  #:use-module (guix gexp)
  #:use-module (guix records))

(define-record-type* 
  iwd-configuration make-iwd-configuration
  iwd-configuration?
  (iwd iwd-configuration-iwd (default iwd))
  (coreutils coreutils-configuration-coreutils (default coreutils))
  (openresolv openresolv-configuration-openresolv (default openresolv))
  (config-file iwd-configuration-config-file
   (default (plain-file "iwd-main.conf"
(string-join
 '("[General]"
   "EnableNetworkConfiguration=true"
   "[Network]"
   "NameResolvingService=resolvconf")
 "\n" 'suffix)

(define (iwd-shepherd-service config)
  (match-record config  (iwd openresolv coreutils)
(let ((environment #~(list (string-append
"PATH=" (string-append #$openresolv "/sbin")
":" (string-append #$coreutils "/bin")
  (list (shepherd-service
 (documentation "Run Iwd")
 (provision '(iwd networking))
 (requirement '(user-processes dbus-system loopback))
 (start #~(make-forkexec-constructor
   (list (string-append #$iwd "/libexec/iwd"))
   #:log-file "/var/log/iwd.log"
   #:environment-variables #$environment))
 (stop #~(make-kill-destructor)))

(define %iwd-log-rotation
  (list (log-rotation (files '("/var/log/iwd.log")

(define (iwd-etc-service config)
  (match-record config  (config-file)
`(("iwd/main.conf" ,config-file

(define iwd-service-type
  (let ((add-iwd-package (compose list iwd-configuration-iwd)))
(service-type (name 'iwd)
  (extensions
   (list (service-extension shepherd-root-service-type
iwd-shepherd-service)
 (service-extension dbus-root-service-type
add-iwd-package)
 (service-extension profile-service-type
add-iwd-package)
 (service-extension etc-service-type
iwd-etc-service)
 (service-extension rottlog-service-type
(const %iwd-log-rotation
  (default-value (iwd-configuration))
  (description
   "Run @url{https://iwd.wiki.kernel.org/,Iwd},
a network connection manager."


bug#59971: iwd is packaged but there is no iwd shepherd service

2023-11-11 Thread Jack Faller
Not sure if this is useful for anyone, but here is a version I have been
using without the RDE dependency.
(define-module (iwd-service)
  #:export (iwd-configuration
iwd-configuration?
iwd-configuration-iwd
iwd-configuration-openresolv
iwd-configuration-coreutils
iwd-configuration-config-file
iwd-service-type)

  #:use-module (gnu)
  #:use-module (gnu services)
  #:use-module (gnu system setuid)
  #:use-module (gnu packages networking)
  #:use-module (gnu packages dns)
  #:use-module (gnu services admin)
  #:use-module (gnu services dbus)
  #:use-module (gnu services base)
  #:use-module (gnu services shepherd)
  #:use-module (gnu services configuration)

  #:use-module (guix gexp)
  #:use-module (guix records))

(define-record-type* 
  iwd-configuration make-iwd-configuration
  iwd-configuration?
  (iwd iwd-configuration-iwd (default iwd))
  (coreutils coreutils-configuration-coreutils (default coreutils))
  (openresolv openresolv-configuration-openresolv (default openresolv))
  (config-file iwd-configuration-config-file
   (default (plain-file "iwd-main.conf"
(string-join
 '("[General]"
   "EnableNetworkConfiguration=true"
   "[Network]"
   "NameResolvingService=resolvconf")
 "\n" 'suffix)

(define (iwd-shepherd-service config)
  (match-record config  (iwd openresolv coreutils)
(let ((environment #~(list (string-append
"PATH=" (string-append #$openresolv "/sbin")
":" (string-append #$coreutils "/bin")
  (list (shepherd-service
 (documentation "Run Iwd")
 (provision '(iwd networking))
 (requirement '(user-processes dbus-system loopback))
 (start #~(make-forkexec-constructor
   (list (string-append #$iwd "/libexec/iwd"))
   #:log-file "/var/log/iwd.log"
   #:environment-variables #$environment))
 (stop #~(make-kill-destructor)))

(define %iwd-log-rotation
  (list (log-rotation (files '("/var/log/iwd.log")

(define (iwd-etc-service config)
  (match-record config  (config-file)
`(("iwd/main.conf" ,config-file

(define iwd-service-type
  (let ((add-iwd-package (compose list iwd-configuration-iwd)))
(service-type (name 'iwd)
  (extensions
   (list (service-extension shepherd-root-service-type
iwd-shepherd-service)
 (service-extension dbus-root-service-type
add-iwd-package)
 (service-extension profile-service-type
add-iwd-package)
 (service-extension etc-service-type
iwd-etc-service)
 (service-extension rottlog-service-type
(const %iwd-log-rotation
  (default-value (iwd-configuration))
  (description
   "Run @url{https://iwd.wiki.kernel.org/,Iwd},
a network connection manager."


bug#67039: guided installer barrage

2023-11-11 Thread outlook user
I don't know if it's bugs or functionalities, but here they are, on the latest 
GSD guided installer:

When the ISO is written on a partition rather than a drive, GRUB struggles to 
know that it should search on (hdi,gpti) instead of (hdi), the workaround is to 
replace the latter with the former in cmdpath, root, and the last variable then 
ask to proceed, it works

Second is that the ISO is almost 1 GB and doesn't even have what is needed to 
have a minimal working installation. The installer can't even proceed without 
the internet, despite its size

Third is a corollary, which doesn't support all network cards, so the guided 
installer is impossible to proceed because of that even with connectivity

Fourth is maybe more about i18n, but well... About locales, you can't select 
any countries for any language. Only a few countries support vast language set

Fifth, the french layout doesn't have Latin-10

Sixth, the guided installer says that it filters out the installer drive, which 
is problematic because you sometimes want to install on the same drive where 
the installer partition is

Seventh, the guided installer says that it filters out the installer drive, 
which he doesn't even do, the installer drive is available for selection

Eight, the incompatibility prompt doesn't complain about any problems with my 
internal drive but doesn't list it in the drive list, making it impossible to 
install on the computer. I don't know if he has an actual problem with the 
drive hardware or a weird filter filter it out, but I can't do much

Ninth, the documentation says multiple times that the installer lets you go 
back anytime in the installation process, but at the connectivity detection, 
you're stuck, can't do anything else than validate it, and no return is possible


I don't know how these problems would be considered but on my part, it's 
considered critical on the guided perimeter because it literally impeach me 
from installing


bug#67013: Default X cursor showing up in flatpak applications

2023-11-11 Thread Unstable Horse via Bug reports for GNU Guix
Hello,

I have noticed that in some applications I sometimes see the stock X
cursor instead of the one from Adwaita. So far I have only seen it in
some parts of electron applications installed via flatpak: when viewing
photos in Signal Desktop, or hovering over refs in Logseq. I think, the
specific cursor styles that are missing are "zoom in" and "zoom out".

I'm not sure if it's the fault of Flatpak, Electron or Guix, probably
some kind of integration issue between all these components. If I
install signal-desktop via nonguix, for example, all cursor icons work
correctly.





bug#67035: bug report

2023-11-11 Thread Mark Owen
marko@marko-EliteBook-840-G4:~$ guix pull
Updating channel 'flat' from Git repository at '
https://github.com/flatwhatson/guix-channel.git'...
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 71d54f3 (31 new
commits)...
Building from these channels:
  guix  https://git.savannah.gnu.org/git/guix.git 71d54f3
  flat  https://github.com/flatwhatson/guix-channel.git b62ba32
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/zwmzqq608a0b6nbvkbkh36084a748y7p-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://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%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
/guix substitute: warning: while fetching
https://ci.guix.gnu.org/nar/lzip/mzfkrxd4w8vqrmyrx169wj8wyw7r8i37-bash:
server is somewhat slow
guix substitute: warning: try `--no-substitutes' if the problem persists
Backtrace:
  16 (primitive-load "/gnu/store/d9z2dbbhdrb25wa4am76hxjj0rz?")
In guix/ui.scm:
   2185:7 15 (run-guix . _)
  2148:10 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
   771:15 11 (_)
In ice-9/exceptions.scm:
   406:15 10 (process-substitution # _ "/gnu/store/?" ?)
In ice-9/boot-9.scm:
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
479:9  8 (_)
In ice-9/boot-9.scm:
  1747:15  7 (with-exception-handler # ?)
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
Backtrace:
  17 (primitive-load
"/gnu/store/dhb3s7m4c1n1lfixj5lcjf3pw4phqj8m-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:
  2168:24 12 (run-with-store #
# ?)
   1996:8 11 (_ #)
In ./guix/gexp.scm:
   299:22 10 (_ #)
   1180:2  9 (_ #)
   1046:2  8 (_ #)
892:4  7 (_ #)
In ./guix/store.scm:
  2053:12  6 (_ #)
   1401:5  5 (map/accumulate-builds #
# ?)
  1417:15  4 (_ #
("/gnu/store/qqfia834s3f2kymjmphiyxapwfkqz62k-guix-daemon-?") ?)
  1417:15  3 (loop #f)
   711:11  2 (process-stderr # _)
In ./guix/serialization.scm:
   101:11  1 (read-int #)
 79:6  0 (get-bytevector-n* # 8)

./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
ERROR:
  1. &nar-error:
  file: #f
  port: #
guix pull: error: You found a bug: the program
'/gnu/store/dhb3s7m4c1n1lfixj5lcjf3pw4phqj8m-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"71d54f3ac451527d3c741bc1209f6b03329f8571"; system: "x86_64-linux";
host version: "00fd6895322d0b1fd774e79494cfcad721b50b8d"; pull-version: 1).
Please report the COMPLETE output above by email to .

marko@marko-EliteBook-840-G4:~$


bug#67044: C.utf8 locale cannot be built

2023-11-11 Thread Tomas Volf
Hi,

when trying to build a system with C.utf8 locale, I end up with the following
error:

building /gnu/store/v6jma6kmwywr509n4y0vypchnh4y5s3m-locale-2.35.drv...
building locale 'C.utf8'...
[error] LC_MONETARY: value for field `mon_decimal_point' must not be an 
empty string
[error] no output file produced because errors were issued
Backtrace:
   2 (primitive-load "/gnu/store/ccv2qfrqxk166ysg6anrzj1kz4h?")
In ice-9/boot-9.scm:
   285:13  1 (for-each # ?)
In guix/build/utils.scm:
812:6  0 (invoke "localedef" "--no-archive" "--prefix" "/gnu/st?" ?)

guix/build/utils.scm:812:6: In procedure invoke:
ERROR:
  1. &invoke-error:
  program: "localedef"
  arguments: ("--no-archive" "--prefix" 
"/gnu/store/08rlginv27b9v1ba4n94plp7lmxjihja-locale-2.35/2.35" "-i" "C" "-f" 
"UTF-8" "/gnu/store/08rlginv27b9v1ba4n94plp7lmxjihja-locale-2.35/2.35/C.utf8")
  exit-status: 4
  term-signal: #f
  stop-signal: #f
builder for `/gnu/store/v6jma6kmwywr509n4y0vypchnh4y5s3m-locale-2.35.drv' 
failed with exit code 1
build of /gnu/store/v6jma6kmwywr509n4y0vypchnh4y5s3m-locale-2.35.drv failed
View build log at 
'/var/log/guix/drvs/v6/jma6kmwywr509n4y0vypchnh4y5s3m-locale-2.35.drv.gz'.
cannot build derivation 
`/gnu/store/g47g7zqs5la6qpfmn6q1zgbhp291l1ha-system.drv': 1 dependencies 
couldn't be built
guix system: error: build of 
`/gnu/store/g47g7zqs5la6qpfmn6q1zgbhp291l1ha-system.drv' failed

This seems to be a known problem in 2.35,
https://sourceware.org/bugzilla/show_bug.cgi?id=28861 .  On the page there is
also a workaround, and that is to compile with the locales with -c.

So that would be one solution until we update to 2.36 or higher.  I do not see a
way to override this (add the -c) from the operating-system definition.

Tomas Volf

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.


signature.asc
Description: PGP signature


bug#65240: pdfarranger can't be installed

2023-11-11 Thread Jack Hill

On Sat, 12 Aug 2023, Christophe Pisteur wrote:


pdfarranger can't be installed


Christophe,

Sorry you didn't get a response to your report. It's still appreciated. 
The good news is that pdfarranger now builds and can be installed! While I 
can't be sure if it was your issue, it could be that the recent fix for 
the python-pikepdf dependency was what did it.


https://issues.guix.gnu.org/66920

Best,
Jack





bug#63308: [BUG] python-pikepdf build broken

2023-11-11 Thread Jack Hill

On Sat, 19 Aug 2023, kiasoc5--- via Bug reports for GNU Guix wrote:

The build is broken because qpdf in Guix is too old (inferring this from 
https://github.com/pikepdf/pikepdf/issues/497#issuecomment-1646312997)


Therefore a qpdf upgrade would be required, which would involve a patch to 
core-updates.


Some time has passed, and I'm happy to notice that pdfarranger and 
python-pikepdf are currently working! I'll close this issue.


Thanks!
Jack





bug#47397: pdfarranger: will not start due to gobject api breakage

2023-11-11 Thread Jack Hill

On Thu, 25 Mar 2021, Christopher Howard wrote:


pdfarranger builds without trouble, but is unable to start due to an API 
problem:


Christopher,

Sorry you didn't get a response to your report. It's still appreciated. 
The good news is that at some point in the past two years, pdfarranger got 
fixed! Therefore, I'm going to close this report. Feel free to open a new 
one if you're still having problems.


Best,
Jack





bug#67122: encryption and grub.cfg

2023-11-11 Thread outlook user
https://guix.gnu.org/en/manual/en/html_node/Keyboard-Layout-and-Networking-and-Partitioning.html/html/body/div[1]/div[4]/div[5]/pre/text()
 tell that you can encrypt as such


https://guix.gnu.org/en/manual/en/html_node/Keyboard-Layout-and-Networking-and-Partitioning.html/html/body/div[1]/div[4]/p[11]/samp[2]
 tell you to set up esp as such

Now Guix setup grub.cfg in encrypted /boot/grub, but Grub needs it prior to 
decryption to know that it has to decrypt something and its path to begin with

So either the manual commands/instructions needs to be corrected accordingly to 
avoid that issue. Either I haven't understood correctly how Grub can work in 
that disposition, either I haven't understood the manual right and haven't 
applied right the instructions