aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-04-13 23:19:26 +0200
committerW. Kosior <koszko@koszko.org>2024-09-04 21:02:10 +0200
commit3cedc097896aaaaaec06244e6b906994774db110 (patch)
tree0c2eb4b25d75d541d1070fc1f3d6c9499d8ee0ed /gnu
parentf2d9aa228e85a02ceb0aaf6a14208c57581a9ff8 (diff)
downloadguix-3cedc097896aaaaaec06244e6b906994774db110.tar.gz
guix-3cedc097896aaaaaec06244e6b906994774db110.zip
gnu: gmnisrv: Fix config loading.
* gnu/packages/web.scm (gmnisrv)[arguments]<#:phases>: Patch hostname handling in `src/config.c'. Change-Id: Ic79591eb45d63732d0d786a2c9994c60c9b84934
Diffstat (limited to 'gnu')
-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 b045a95b7e..10c8f66d65 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -9108,7 +9108,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