Subject: bug#54618: closed (Re: bug#54618: [PATCH] gnu: lbzip2: Fix cross-compilation.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 30 Mar 2022 10:40:02 +0000

Your bug report

#54618: [PATCH] gnu: lbzip2: Fix cross-compilation.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54618: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54618
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#54618: [PATCH] gnu: lbzip2: Fix cross-compilation.
From: Mathieu Othacehe <[email-masked]>
To: Brian Kubisiak <[email-masked]>
Cc: [email-masked]
Date: Wed, 30 Mar 2022 12:39:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> * gnu/packages/compression.scm (lbzip2)[arguments]: Search (or
> native-inputs inputs) for gnulib-tool.py.

Pushed as 2387adf60022799a8af144ed8dd2b7a46c155374.

Thanks,

Mathieu

Subject: [PATCH] gnu: lbzip2: Fix cross-compilation.
From: Brian Kubisiak <[email-masked]>
To: [email-masked]
Date: Mon, 28 Mar 2022 18:36:41 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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