GNU bug report logs -
#54618
[PATCH] gnu: lbzip2: Fix cross-compilation.
Previous Next
Reported by: Brian Kubisiak <brian <at> kubisiak.com>
Date: Tue, 29 Mar 2022 01:37:02 UTC
Severity: normal
Tags: patch
Done: Mathieu Othacehe <othacehe <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54618 in the body.
You can then email your comments to 54618 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#54618
; Package
guix-patches
.
(Tue, 29 Mar 2022 01:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Brian Kubisiak <brian <at> kubisiak.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 29 Mar 2022 01:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/compression.scm (lbzip2)[arguments]: Add (or
native-inputs inputs) to ASSOC-REF.
---
gnu/packages/compression.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 3edaecd951..34e9fa49de 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -411,8 +411,8 @@ (define-public lbzip2
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-gnulib
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gnulib (assoc-ref inputs "gnulib")))
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((gnulib (assoc-ref (or native-inputs inputs) "gnulib")))
(copy-recursively gnulib "lib")
(setenv "PATH" (string-append "lib:" (getenv "PATH")))
#t)))
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54618
; Package
guix-patches
.
(Tue, 29 Mar 2022 06:08:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 54618 <at> debbugs.gnu.org (full text, mbox):
Am Montag, dem 28.03.2022 um 18:36 -0700 schrieb Brian Kubisiak:
> * gnu/packages/compression.scm (lbzip2)[arguments]: Add (or
> native-inputs inputs) to ASSOC-REF.
> ---
> gnu/packages/compression.scm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/compression.scm
> b/gnu/packages/compression.scm
> index 3edaecd951..34e9fa49de 100644
> --- a/gnu/packages/compression.scm
> +++ b/gnu/packages/compression.scm
> @@ -411,8 +411,8 @@ (define-public lbzip2
> `(#:phases
> (modify-phases %standard-phases
> (add-after 'unpack 'unpack-gnulib
> - (lambda* (#:key inputs #:allow-other-keys)
> - (let ((gnulib (assoc-ref inputs "gnulib")))
> + (lambda* (#:key inputs native-inputs #:allow-other-
> keys)
> + (let ((gnulib (assoc-ref (or native-inputs inputs)
> "gnulib")))
> (copy-recursively gnulib "lib")
> (setenv "PATH" (string-append "lib:" (getenv
> "PATH")))
> #t)))
Note that referring to inputs by name is discouraged. In this case, the
gnulib origin should be inlined (see ppsspp or gnome-recipes for
examples on how that is done). I don't think there is a native vs.
non-native distinction for origins, but if there is, simply use #+
instead of #$.
Cheers
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54618
; Package
guix-patches
.
(Tue, 29 Mar 2022 09:06:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 54618 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Liliana Marie Prikler schreef op di 29-03-2022 om 08:07 [+0200]:
> + (lambda* (#:key inputs native-inputs #:allow-other-
> keys)
> + (let ((gnulib (assoc-ref (or native-inputs inputs)
> "gnulib")))
> (copy-recursively gnulib "lib")
> (setenv "PATH" (string-append "lib:" (getenv
> "PATH")))
> #t)))
Note that referring to inputs by name is discouraged. In this case, the
gnulib origin should be inlined (see ppsspp or gnome-recipes for
examples on how that is done). I don't think there is a native vs.
non-native distinction for origins, but if there is, simply use #+
instead of #$.
I would go with
(let ((gnulib (dirname (search-input-file (or native-inputs inputs) "gnulib-tool.py"))))
[...]).
That way, no input labels are used yet package transformations are
still possible:
(package (inherit lbzip2) (native-inputs [some inputs with a different gnulib]))
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54618
; Package
guix-patches
.
(Wed, 30 Mar 2022 01:47:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 54618 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/compression.scm (lbzip2)[arguments]: Search (or
native-inputs inputs) for gnulib-tool.py.
---
gnu/packages/compression.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 3edaecd951..e1d8f721a3 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -411,8 +411,10 @@ (define-public lbzip2
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-gnulib
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gnulib (assoc-ref inputs "gnulib")))
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((gnulib
+ (dirname (search-input-file (or native-inputs inputs)
+ "gnulib-tool.py"))))
(copy-recursively gnulib "lib")
(setenv "PATH" (string-append "lib:" (getenv "PATH")))
#t)))
--
2.34.0
Reply sent
to
Mathieu Othacehe <othacehe <at> gnu.org>
:
You have taken responsibility.
(Wed, 30 Mar 2022 10:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Brian Kubisiak <brian <at> kubisiak.com>
:
bug acknowledged by developer.
(Wed, 30 Mar 2022 10:40:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 54618-done <at> debbugs.gnu.org (full text, mbox):
> * gnu/packages/compression.scm (lbzip2)[arguments]: Search (or
> native-inputs inputs) for gnulib-tool.py.
Pushed as 2387adf60022799a8af144ed8dd2b7a46c155374.
Thanks,
Mathieu
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 27 Apr 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.