aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-04-13 23:19:26 +0200
committerW. Kosior <koszko@koszko.org>2025-03-21 13:59:31 +0100
commit8b8456dd50b840ac4fcc43576ac5fb5f16a24789 (patch)
tree508dd3e59a7f973d19baba43c6f54c5f4c30b20c
parente79b68e777d451909ea2c84ad32f2dc0ebcbccd2 (diff)
downloadguix-8b8456dd50b840ac4fcc43576ac5fb5f16a24789.tar.gz
guix-8b8456dd50b840ac4fcc43576ac5fb5f16a24789.zip
gnu: gmnisrv: Fix config loading.
* gnu/packages/web.scm (gmnisrv)[arguments]<#:phases>: Patch hostname handling in `src/config.c'. Change-Id: Ic79591eb45d63732d0d786a2c9994c60c9b84934
-rw-r--r--gnu/packages/web.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 318dbda897..da11ee82d1 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -9342,7 +9342,14 @@ concurrency, and return status.")
(string-append "--with-mimedb="
(assoc-ref %build-inputs "mailcap")
"/etc/mime.types"))
- #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))))
+ #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hostname-bugfix
+ (lambda _
+ (substitute* "src/config.c"
+ (("(host->hostname = strdup\\()section" _ prefix)
+ (string-append prefix "hostname"))))))))
(inputs
(list mailcap openssl))
(native-inputs