unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45989] [PATCH 0/2] gnu: python-invoke: Patch reference to bash.
@ 2021-01-19 18:22 Tanguy Le Carrour
  2021-01-19 18:25 ` [bug#45989] [PATCH 1/2] " Tanguy Le Carrour
  2021-02-12 12:16 ` bug#45989: [PATCH 0/2] gnu: python-invoke: Patch reference to bash 宋文武
  0 siblings, 2 replies; 5+ messages in thread
From: Tanguy Le Carrour @ 2021-01-19 18:22 UTC (permalink / raw)
  To: 45989; +Cc: Tanguy Le Carrour

Hi Guix,

Invoke's code contains a reference to `/bin/bash`. This path does not exist
in the build environment of another package I am working on. I don't
know why it seems to work for some other packages, thought !?

Best regards

Tanguy Le Carrour (2):
  gnu: python-invoke: Patch reference to bash.
  gnu: python-invoke: Update to 1.5.0.

 gnu/packages/python-xyz.scm | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

-- 
2.30.0





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

* [bug#45989] [PATCH 1/2] gnu: python-invoke: Patch reference to bash.
  2021-01-19 18:22 [bug#45989] [PATCH 0/2] gnu: python-invoke: Patch reference to bash Tanguy Le Carrour
@ 2021-01-19 18:25 ` Tanguy Le Carrour
  2021-01-19 18:25   ` [bug#45989] [PATCH 2/2] gnu: python-invoke: Update to 1.5.0 Tanguy Le Carrour
  2021-02-12 12:16 ` bug#45989: [PATCH 0/2] gnu: python-invoke: Patch reference to bash 宋文武
  1 sibling, 1 reply; 5+ messages in thread
From: Tanguy Le Carrour @ 2021-01-19 18:25 UTC (permalink / raw)
  To: 45989; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-invoke)[arguments]: Patch
the reference to 'bash' in the source.
[inputs]: Add bash.
---
 gnu/packages/python-xyz.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d08e23936c..de36222bba 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15129,7 +15129,19 @@ projects.")
     (build-system python-build-system)
     (arguments
      ;; XXX: Requires many dependencies that are not yet in Guix.
-     `(#:tests? #f))
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-bash-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((bash (assoc-ref inputs "bash")))
+               (substitute* "invoke/config.py"
+                 (("shell = \"/bin/bash\"")
+                  (string-append "shell = \"" bash "/bin/bash\""))
+                 )
+               #t))))))
+    (inputs
+     `(("bash" ,bash-minimal)))
     (synopsis "Pythonic task execution")
     (description
      "Invoke is a Python task execution tool and library, drawing inspiration
-- 
2.30.0





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

* [bug#45989] [PATCH 2/2] gnu: python-invoke: Update to 1.5.0.
  2021-01-19 18:25 ` [bug#45989] [PATCH 1/2] " Tanguy Le Carrour
@ 2021-01-19 18:25   ` Tanguy Le Carrour
  0 siblings, 0 replies; 5+ messages in thread
From: Tanguy Le Carrour @ 2021-01-19 18:25 UTC (permalink / raw)
  To: 45989; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-invoke): Update to 1.5.0.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index de36222bba..3f83c877b4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15119,13 +15119,13 @@ projects.")
   (package
     (name "python-invoke")
     (home-page "https://www.pyinvoke.org/")
-    (version "1.4.1")
+    (version "1.5.0")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "invoke" version))
               (sha256
                (base32
-                "0pg1lpl4583z83i12262v72y1a4cxdcxi7vqhl8dpqv9wszj6gyy"))))
+                "0l16v7zcbgi36z6pvmdrs5q4ks8lalcafi5d9nhrpcjzbc3n1igh"))))
     (build-system python-build-system)
     (arguments
      ;; XXX: Requires many dependencies that are not yet in Guix.
-- 
2.30.0





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

* bug#45989: [PATCH 0/2] gnu: python-invoke: Patch reference to bash.
  2021-01-19 18:22 [bug#45989] [PATCH 0/2] gnu: python-invoke: Patch reference to bash Tanguy Le Carrour
  2021-01-19 18:25 ` [bug#45989] [PATCH 1/2] " Tanguy Le Carrour
@ 2021-02-12 12:16 ` 宋文武
  2021-02-12 13:46   ` [bug#45989] " Tanguy LE CARROUR
  1 sibling, 1 reply; 5+ messages in thread
From: 宋文武 @ 2021-02-12 12:16 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 45989-done

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Hi Guix,
>
> Invoke's code contains a reference to `/bin/bash`. This path does not exist
> in the build environment of another package I am working on. I don't
> know why it seems to work for some other packages, thought !?
I think they'll failed too unless they configured the shell somehow...

Pushed, thank you!




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

* [bug#45989] [PATCH 0/2] gnu: python-invoke: Patch reference to bash.
  2021-02-12 12:16 ` bug#45989: [PATCH 0/2] gnu: python-invoke: Patch reference to bash 宋文武
@ 2021-02-12 13:46   ` Tanguy LE CARROUR
  0 siblings, 0 replies; 5+ messages in thread
From: Tanguy LE CARROUR @ 2021-02-12 13:46 UTC (permalink / raw)
  To: 宋文武; +Cc: 45989-done

Hi,


Excerpts from 宋文武's message of February 12, 2021 1:16 pm:
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> 
>> Hi Guix,
>>
>> Invoke's code contains a reference to `/bin/bash`. This path does not exist
>> in the build environment of another package I am working on. I don't
>> know why it seems to work for some other packages, thought !?
> I think they'll failed too unless they configured the shell somehow...

You right! I figured out that I had myself the `INVOKE_RUN_SHELL` envvar set.


> Pushed, thank you!

Thanks!

-- 
Tanguy




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

end of thread, other threads:[~2021-02-12 13:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 18:22 [bug#45989] [PATCH 0/2] gnu: python-invoke: Patch reference to bash Tanguy Le Carrour
2021-01-19 18:25 ` [bug#45989] [PATCH 1/2] " Tanguy Le Carrour
2021-01-19 18:25   ` [bug#45989] [PATCH 2/2] gnu: python-invoke: Update to 1.5.0 Tanguy Le Carrour
2021-02-12 12:16 ` bug#45989: [PATCH 0/2] gnu: python-invoke: Patch reference to bash 宋文武
2021-02-12 13:46   ` [bug#45989] " Tanguy LE CARROUR

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