This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new a275ed6a22 gnu: open-iscsi: Fix build.
a275ed6a22 is described below

commit a275ed6a22463316762c1dbc77ec6bc58a47fe7c
Author: Yan Abu Arab <[email protected]>
AuthorDate: Sun Oct 5 15:26:30 2025 +0300

    gnu: open-iscsi: Fix build.
    
    * gnu/packages/disk.scm (open-iscsi)[arguments] <configure-flags>:
    Remove "-Ddbroot" as the utility iscsiadm requires /var/lib to be
    writable.
    <phases>: Add 'dont-install-to-/var.
    
    Signed-off-by: Oleg Pykhalov <[email protected]>
---
 gnu/packages/disk.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 712dae6282..b5db001d0d 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -764,10 +764,15 @@ maintained fork of https://github.com/cleech/open-isns.";)
       #~(list "-Dno_systemd=true"
               (string-append "-Discsi_sbindir="
                              #$output "/sbin")
-              (string-append "-Ddbroot="
-                             #$output "/var/lib/iscsi")
               (string-append "--sbindir="
-                             #$output "/sbin"))))
+                             #$output "/sbin"))
+     #:phases
+     #~(modify-phases %standard-phases
+         (add-after 'unpack 'dont-install-to-/var
+           (lambda _
+             (substitute* "meson.build"
+               (("install_data\\(iscsi_etc_iface_file_src, install_dir: 
db_root \\/ 'ifaces'\\)")
+                "")))))))
     (native-inputs
      (list meson
            ninja

Reply via email to