all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#48014] [PATCH] gnu: global: fix globash
@ 2021-04-25 10:08 luhui
  2021-04-28  9:26 ` bug#48014: " Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: luhui @ 2021-04-25 10:08 UTC (permalink / raw)
  To: 48014

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



[-- Attachment #2: 0001-gnu-global-fix-globash.patch --]
[-- Type: text/plain, Size: 1892 bytes --]

From 2ec3b22edadb1db21a006d39f9998fd552d9110d Mon Sep 17 00:00:00 2001
From: luhui <luhuins@163.com>
Date: Sun, 25 Apr 2021 16:49:05 +0800
Subject: [PATCH] gnu: global: fix globash

* gnu/packages/code.scm (global)[#phases]: Add 'fix-globash'.
---
 gnu/packages/code.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index a79d8b4a2b..342ded76ff 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2021 lu hui <luhuins@163.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -135,7 +136,8 @@ highlighting your own code that seemed comprehensible when you wrote it.")
               (base32
                "10vvsgx8v54whb4j9mk5qqyb5h3rdd9da0il3wir8pcpksyk0dww"))))
     (build-system gnu-build-system)
-    (inputs `(("ncurses" ,ncurses)
+    (inputs `(("coreutils" ,coreutils)
+              ("ncurses" ,ncurses)
               ("libltdl" ,libltdl)
               ("sqlite" ,sqlite)
               ("python-wrapper" ,python-wrapper)))
@@ -149,6 +151,13 @@ highlighting your own code that seemed comprehensible when you wrote it.")
 
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-globash
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let* ((echo (string-append
+                           (assoc-ref inputs "coreutils") "/bin/echo")))
+               (substitute* "globash/globash.in"
+                 (("/bin/echo")
+                  echo)))))
         (add-after 'install 'post-install
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Install the plugin files in the right place.
-- 
2.31.1


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

* bug#48014: [PATCH] gnu: global: fix globash
  2021-04-25 10:08 [bug#48014] [PATCH] gnu: global: fix globash luhui
@ 2021-04-28  9:26 ` Efraim Flashner
  2021-04-28 11:32   ` [bug#48014] " Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2021-04-28  9:26 UTC (permalink / raw)
  To: luhui; +Cc: 48014-done

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

It turns out that coreutils is already an implicit input in the build
environment so I removed it from the inputs.o

(ins)efraim@3900XT ~/workspace/guix$ grep '/bin/echo' /gnu/store/q0bvlalzwm1iwdqgmyksxxcm06fhr1l2-global-6.6.5/bin/globash
# Use /gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/echo, because in some systems, built-in echo of /bin/sh
ECHO='/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/echo'

Thanks! Patch pushed.

-- 
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: 833 bytes --]

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

* [bug#48014] [PATCH] gnu: global: fix globash
  2021-04-28  9:26 ` bug#48014: " Efraim Flashner
@ 2021-04-28 11:32   ` Maxime Devos
  2021-04-28 11:38     ` Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Devos @ 2021-04-28 11:32 UTC (permalink / raw)
  To: Efraim Flashner, luhui; +Cc: 48014-done

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

Efraim Flashner schreef op wo 28-04-2021 om 12:26 [+0300]:
> It turns out that coreutils is already an implicit input in the build
> environment so I removed it from the inputs.

coreutils is an implicit native inputs, but is it also an implicit input?
If the latter does not hold, coreutils should still be present when cross-compiling.

On my x86-64-linux-gnu system:
$ guix pull
$ guix build --target=aarch64-linux-gnu globash
> [...]
> phase `unpack' succeeded after 0.1 seconds
> starting phase `fix-globash'
> Backtrace:
> [...]
> In unknown file:
>            1 (string-append #f "/bin/echo")
> In ice-9/boot-9.scm:
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure string-append: Wrong type (expecting string): #f
> builder for `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed with exit code 1
> build of /gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv failed
> View build log at '/var/log/guix/drvs/k4/2zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv.bz2'.
> guix build: error: build of `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed

So it seems coreutils should be present in inputs after all.
Could you re-add coreutils to 'inputs'?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#48014] [PATCH] gnu: global: fix globash
  2021-04-28 11:32   ` [bug#48014] " Maxime Devos
@ 2021-04-28 11:38     ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2021-04-28 11:38 UTC (permalink / raw)
  To: Maxime Devos; +Cc: luhui, 48014-done

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

On Wed, Apr 28, 2021 at 01:32:20PM +0200, Maxime Devos wrote:
> Efraim Flashner schreef op wo 28-04-2021 om 12:26 [+0300]:
> > It turns out that coreutils is already an implicit input in the build
> > environment so I removed it from the inputs.
> 
> coreutils is an implicit native inputs, but is it also an implicit input?
> If the latter does not hold, coreutils should still be present when cross-compiling.
> On my x86-64-linux-gnu system:
> $ guix pull
> $ guix build --target=aarch64-linux-gnu globash
> > [...]
> > phase `unpack' succeeded after 0.1 seconds
> > starting phase `fix-globash'
> > Backtrace:
> > [...]
> > In unknown file:
> >            1 (string-append #f "/bin/echo")
> > In ice-9/boot-9.scm:
> >   1669:16  0 (raise-exception _ #:continuable? _)
> >
> > ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> > In procedure string-append: Wrong type (expecting string): #f
> > builder for `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed with exit code 1
> > build of /gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv failed
> > View build log at '/var/log/guix/drvs/k4/2zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv.bz2'.
> > guix build: error: build of `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed
> 
> So it seems coreutils should be present in inputs after all.
> Could you re-add coreutils to 'inputs'?
> 

Indeed. I should've checked.




-- 
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: 833 bytes --]

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

end of thread, other threads:[~2021-04-28 11:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-25 10:08 [bug#48014] [PATCH] gnu: global: fix globash luhui
2021-04-28  9:26 ` bug#48014: " Efraim Flashner
2021-04-28 11:32   ` [bug#48014] " Maxime Devos
2021-04-28 11:38     ` Efraim Flashner

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.