unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: node: Correctly patch npm shebang.
@ 2016-06-15 10:22 Jelle Licht
  2016-06-15 10:39 ` Jelle Licht
  0 siblings, 1 reply; 4+ messages in thread
From: Jelle Licht @ 2016-06-15 10:22 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/node.scm (node): Correctly patch npm shebang.
---
 gnu/packages/node.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 2f269d0..2cedda8 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -51,8 +51,14 @@

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

* Re: [PATCH] gnu: node: Correctly patch npm shebang.
  2016-06-15 10:22 [PATCH] gnu: node: Correctly patch npm shebang Jelle Licht
@ 2016-06-15 10:39 ` Jelle Licht
  2016-06-15 10:57   ` Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: Jelle Licht @ 2016-06-15 10:39 UTC (permalink / raw)
  To: Jelle Licht; +Cc: guix-devel


Jelle Licht <jlicht@fsfe.org> writes:

> * gnu/packages/node.scm (node): Correctly patch npm shebang.
> ---
>  gnu/packages/node.scm | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
> index 2f269d0..2cedda8 100644
> --- a/gnu/packages/node.scm
> +++ b/gnu/packages/node.scm
> @@ -51,8 +51,14 @@

This patch should be applied to core-updates, as it depends on the
correct handling of symlinks in the `patch-shebangs' phase introduced by
Ludo's recent patch [1].

Thanks,
- Jelle

[1]https://lists.gnu.org/archive/html/bug-guix/2016-06/msg00043.html

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

* Re: [PATCH] gnu: node: Correctly patch npm shebang.
  2016-06-15 10:39 ` Jelle Licht
@ 2016-06-15 10:57   ` Efraim Flashner
  2016-06-15 11:03     ` Jelle Licht
  0 siblings, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2016-06-15 10:57 UTC (permalink / raw)
  To: Jelle Licht; +Cc: guix-devel

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

On Wed, Jun 15, 2016 at 12:39:29PM +0200, Jelle Licht wrote:
> 
> Jelle Licht <jlicht@fsfe.org> writes:
> 
> > * gnu/packages/node.scm (node): Correctly patch npm shebang.
> > ---
> >  gnu/packages/node.scm | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
> > index 2f269d0..2cedda8 100644
> > --- a/gnu/packages/node.scm
> > +++ b/gnu/packages/node.scm
> > @@ -51,8 +51,14 @@
> 
> This patch should be applied to core-updates, as it depends on the
> correct handling of symlinks in the `patch-shebangs' phase introduced by
> Ludo's recent patch [1].
> 
> Thanks,
> - Jelle
> 
> [1]https://lists.gnu.org/archive/html/bug-guix/2016-06/msg00043.html
> 

I think you forgot to attach the patch :)

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH] gnu: node: Correctly patch npm shebang.
  2016-06-15 10:57   ` Efraim Flashner
@ 2016-06-15 11:03     ` Jelle Licht
  0 siblings, 0 replies; 4+ messages in thread
From: Jelle Licht @ 2016-06-15 11:03 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

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


Efraim Flashner <efraim@flashner.co.il> writes:

> On Wed, Jun 15, 2016 at 12:39:29PM +0200, Jelle Licht wrote:
>> 
>> Jelle Licht <jlicht@fsfe.org> writes:
>> 
>> > * gnu/packages/node.scm (node): Correctly patch npm shebang.
>> > ---
>> >  gnu/packages/node.scm | 6 ++++++
>> >  1 file changed, 6 insertions(+)
>> >
>> > diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
>> > index 2f269d0..2cedda8 100644
>> > --- a/gnu/packages/node.scm
>> > +++ b/gnu/packages/node.scm
>> > @@ -51,8 +51,14 @@
>> 
>> This patch should be applied to core-updates, as it depends on the
>> correct handling of symlinks in the `patch-shebangs' phase introduced by
>> Ludo's recent patch [1].
>> 
>> Thanks,
>> - Jelle
>> 
>> [1]https://lists.gnu.org/archive/html/bug-guix/2016-06/msg00043.html
>> 
>
> I think you forgot to attach the patch :)

It was in the first message body, but for good measure:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch file --]
[-- Type: text/x-diff, Size: 1270 bytes --]

From d01a35d3ef5b2619807b666e4f4126143a0bf08a Mon Sep 17 00:00:00 2001
From: Jelle Licht <jlicht@fsfe.org>
Date: Wed, 15 Jun 2016 12:22:40 +0200
Subject: [PATCH] gnu: node: Correctly patch npm shebang.
To: guix-devel@gnu.org

* gnu/packages/node.scm (node): Correctly patch npm shebang.
---
 gnu/packages/node.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 2f269d0..2cedda8 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -51,8 +51,14 @@
                            "--shared-zlib"
                            "--shared-libuv"
                            "--without-snapshot")
+       ;#:tests? #f
        #:phases
        (modify-phases %standard-phases
+         (add-after 'patch-shebangs 'patch-npm-shebang
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; XXX: patch-shebangs does not patch this file by default
+             (let ((out (assoc-ref outputs "out"))) 
+               (patch-shebang (string-append out "/lib/node_modules/npm/bin/npm-cli.js") (list (string-append out "/bin"))))))
          (add-before 'configure 'patch-files
            (lambda* (#:key inputs #:allow-other-keys)
              ;; Fix hardcoded /bin/sh references.
-- 
2.8.4


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

end of thread, other threads:[~2016-06-15 11:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 10:22 [PATCH] gnu: node: Correctly patch npm shebang Jelle Licht
2016-06-15 10:39 ` Jelle Licht
2016-06-15 10:57   ` Efraim Flashner
2016-06-15 11:03     ` Jelle Licht

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).