unofficial mirror of guix-patches@gnu.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

* [bug#28880] [PATCH] gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-10-19  7:35 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 28880

Christopher Baines <mail@cbaines.net> skribis:

> This helps with CGI support.
>
> * gnu/packages/web.scm (ikiwik)[arguments]: Add 'include-PERL5LIB-in-wrapper
>   phase.

LGTM, thanks!

Ludo'.

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

* bug#28880: [PATCH] gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
  2017-10-19  7:35 ` Ludovic Courtès
@ 2017-11-19  9:19   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2017-11-19  9:19 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28880-done

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

On Thu, 19 Oct 2017 09:35:34 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Christopher Baines <mail@cbaines.net> skribis:
> 
> > This helps with CGI support.
> >
> > * gnu/packages/web.scm (ikiwik)[arguments]: Add
> > 'include-PERL5LIB-in-wrapper phase.  
> 
> LGTM, thanks!

Thanks for reviewing, I've finally got around to pushing this :)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).