all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#28880] [PATCH] gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
@ 2017-10-17 21:07 Christopher Baines
  2017-10-19  7:35 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2017-10-17 21:07 UTC (permalink / raw)
  To: 28880

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-19  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-17 21:07 [bug#28880] [PATCH] gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper Christopher Baines
2017-10-19  7:35 ` Ludovic Courtès
2017-11-19  9:19   ` bug#28880: " Christopher Baines

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.