unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49416] [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs.
@ 2021-07-05 13:26 Maxime Devos
  2021-07-05 14:32 ` bug#49416: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Maxime Devos @ 2021-07-05 13:26 UTC (permalink / raw)
  To: 49416


[-- Attachment #1.1: Type: text/plain, Size: 424 bytes --]

%build-inputs was not defined anymore when cross-compiling.
This causes some build failures on core-updates, see e.g.
<https://ci.guix.gnu.org/build/653883/log/raw>;.  According
to civodul on IRC, this removal of %build-inputs was
accidental, so re-introduce it.

This allows "guix build grep --target=aarch64-linux-gnu" to
succeed on a x86_64-linux machine.  The resulting binary
is executable under qemu-aarch64.

[-- Attachment #1.2: Type: text/x-patch, Size: 1579 bytes --]

From 97923752ae25b5fe9d48d43fd2d4a4eab03f8a90 Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Mon, 5 Jul 2021 15:17:53 +0200
Subject: [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs.

%build-inputs was not defined anymore when cross-compiling.
This causes some build failures on core-updates, see e.g.
<https://ci.guix.gnu.org/build/653883/log/raw>.  According
to civodul on IRC, this removal of %build-inputs was
accidental, so re-introduce it.

This allows "guix build grep --target=aarch64-linux-gnu" to
succeed on a x86_64-linux machine.  The resulting binary
is executable under qemu-aarch64.

* guix/build-system/gnu.scm
  (gnu-cross-build)[builder]: Define '%build-inputs', again.
---
 guix/build-system/gnu.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index c74acb51b0..3af848034f 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -516,6 +517,9 @@ platform."
           (append #$(input-tuples->gexp host-inputs)
                   #+(input-tuples->gexp target-inputs)))
 
+        (define %build-inputs
+          (append %build-host-inputs %build-target-inputs))
+
         (define %outputs
           #$(outputs->gexp outputs))
 
-- 
2.32.0


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

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

* bug#49416: [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs.
  2021-07-05 13:26 [bug#49416] [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs Maxime Devos
@ 2021-07-05 14:32 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-07-05 14:32 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 49416-done

Hi Maxime,

Maxime Devos <maximedevos@telenet.be> skribis:

> From 97923752ae25b5fe9d48d43fd2d4a4eab03f8a90 Mon Sep 17 00:00:00 2001
> From: Maxime Devos <maximedevos@telenet.be>
> Date: Mon, 5 Jul 2021 15:17:53 +0200
> Subject: [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs.
>
> %build-inputs was not defined anymore when cross-compiling.
> This causes some build failures on core-updates, see e.g.
> <https://ci.guix.gnu.org/build/653883/log/raw>.  According
> to civodul on IRC, this removal of %build-inputs was
> accidental, so re-introduce it.
>
> This allows "guix build grep --target=aarch64-linux-gnu" to
> succeed on a x86_64-linux machine.  The resulting binary
> is executable under qemu-aarch64.
>
> * guix/build-system/gnu.scm
>   (gnu-cross-build)[builder]: Define '%build-inputs', again.
> ---
>  guix/build-system/gnu.scm | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
> index c74acb51b0..3af848034f 100644
> --- a/guix/build-system/gnu.scm
> +++ b/guix/build-system/gnu.scm
> @@ -1,5 +1,6 @@
>  ;;; GNU Guix --- Functional package management for GNU
>  ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
> +;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -516,6 +517,9 @@ platform."
>            (append #$(input-tuples->gexp host-inputs)
>                    #+(input-tuples->gexp target-inputs)))
>  
> +        (define %build-inputs
> +          (append %build-host-inputs %build-target-inputs))

I pushed the same thing independently as
8a4830231871c578c80523e973ecd85f1f596ba6, sorry for duplicated work!

I had it in store but wanted to fix issues one at a time, and that took
a while…  ‘core-updates’ is starting to be in a better state, so
hopefully we’ll have a better idea of what the status is now.

Thanks,
Ludo’.




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

end of thread, other threads:[~2021-07-05 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 13:26 [bug#49416] [PATCH core-updates] build-system/gnu: Re-introduce %build-inputs Maxime Devos
2021-07-05 14:32 ` bug#49416: " Ludovic Courtès

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