GNU bug report logs -
#28880
[PATCH] gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Tue, 17 Oct 2017 21:08:01 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This helps with CGI support.
* gnu/packages/web.scm (ikiwik)[arguments]: Add 'include-PERL5LIB-in-wrapper
phase.
---
gnu/packages/web.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 41e52756e..5c633d6bf 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4195,6 +4195,15 @@ NetSurf project.")
#:tests? #f
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'include-PERL5LIB-in-wrapper
+ (lambda _
+ (substitute* "IkiWiki/Wrapper.pm"
+ (("^@wrapper\\_hooks")
+ (string-append
+ "@wrapper_hooks\n"
+ " addenv(\"PERL5LIB\", \""
+ (getenv "PERL5LIB")
+ "\");")))))
(add-after 'install 'wrap-programs
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
--
2.14.2
This bug report was last modified 7 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.