GNU bug report logs - #36477
Add Guix System cross-compilation support

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Mathieu Othacehe <m.othacehe@HIDDEN>; dated Tue, 2 Jul 2019 15:19:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 14 Oct 2019 08:00:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 04:00:46 2019
Received: from localhost ([127.0.0.1]:38033 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJvHZ-00029H-Ld
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:00:45 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:32985)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iJvHX-00021H-Ow
 for 36477 <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:00:44 -0400
Received: by mail-wr1-f68.google.com with SMTP id b9so18507091wrs.0
 for <36477 <at> debbugs.gnu.org>; Mon, 14 Oct 2019 01:00:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=Yccp0jVy/Ad4ZySxzeL0wQXEGNOKkuTT+ppodQfopMo=;
 b=c3BYQN2kKd1l+3btjHhMS1gADbm7KyiUAjHVWYRiz4CChTc8Jg7ZGZGuqUJfJTN41w
 ldljHkMyMiQlhe4VxiHIEPOq+j3GrVMnHkvT1vt5vQjF3A9doO0lj/QK3+d7k5S3dbqg
 Kyj8XHq1Rflf7yeuaZO2kMe24JfdAOjhUjbMyz9nqTOCfIeG47wzTM7Km2eU3+ZkUNY9
 MrffBA0xr21haWo5FpY0CTmMH0NE4YMET23BCehnISPsdZj3jijeVtIvGZW1XWgoRUZL
 ZRH2RMcKuuoUPlfmxjUpExeOOE4EAfGCPdyMamIhas75BbW1rHD/TEm4Tnc76J7a26vO
 tHSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=Yccp0jVy/Ad4ZySxzeL0wQXEGNOKkuTT+ppodQfopMo=;
 b=Aoawh5Hb0EhGUcyFgEbgw0Er8j0YMHZyvEnmbWNJvRFC475PnAlLNL1HCT7mOW0gD2
 t6Kr3ptDM1HxHE2xtR/TbDytKOTVEpYDdr/BAlzJ7LhheS6jTMMt3SCikujHj5w6nMAu
 wkL5wzkR8XF+LsC4AzulrFFwaW/naq8gNwzRjDPe5lbn5CaWLinMvJJzy1a/AvdDeXZH
 vvSJN6e/WWCMdKw8KqNluX11/f7fK3rn2cFfeTZcOvaBw6pmLr7pOKisQF5GTBb79RPH
 F46zZ/6nK6CY0wFRWg48kcW0GNkk7lNN5pU1ANWwklnk2iwkn1i82Jpiy3hxXDnKR2HW
 eWWg==
X-Gm-Message-State: APjAAAWeugtyFrna4Gy3TQAAT0zjv3/0f5hkRUaZlYkcCer+XgqEPv29
 7pG+cr+fbJq4p12452d5gfGeqd87
X-Google-Smtp-Source: APXvYqyUxRnL53Ms6zGOgsL3xJ6wMbtV45f+GgASHxk3EfOyBIAd1wYOKvl9FadNi2y4s3q5e1kf5A==
X-Received: by 2002:adf:f3c9:: with SMTP id g9mr14365615wrp.7.1571040037486;
 Mon, 14 Oct 2019 01:00:37 -0700 (PDT)
Received: from PF1S5GG2 (lfbn-ann-1-367-71.w86-200.abo.wanadoo.fr.
 [86.200.83.71])
 by smtp.gmail.com with ESMTPSA id t123sm30077720wma.40.2019.10.14.01.00.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 14 Oct 2019 01:00:36 -0700 (PDT)
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-19-m.othacehe@HIDDEN>
 <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
 <87blunpoon.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v4 18/23] gexp: Use cross extensions when
 cross-compiling.
In-reply-to: <87blunpoon.fsf@HIDDEN>
Date: Mon, 14 Oct 2019 10:00:35 +0200
Message-ID: <87sgnvdae4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey Ludo,

> Please push to =E2=80=98master=E2=80=99 (I don=E2=80=99t think it trigger=
s a full rebuild, but
> I=E2=80=99d suggest double-checking anyway :-)).

Pushed to master, thanks for the review :)

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 11 Oct 2019 10:22:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 06:22:54 2019
Received: from localhost ([127.0.0.1]:57722 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIs4T-0003H5-Ji
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:22:53 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iIs4Q-0003Gq-CG
 for 36477 <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:22:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33968)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iIs4L-0000IH-8a; Fri, 11 Oct 2019 06:22:45 -0400
Received: from [193.49.49.136] (port=48024 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iIs4K-0001pi-1d; Fri, 11 Oct 2019 06:22:45 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 42/48] gexp: Pass target to
 compiled-modules in lower-gexp.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-43-m.othacehe@HIDDEN>
 <8736hc5jl4.fsf@HIDDEN> <87sgob8psl.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 20 =?utf-8?Q?Vend=C3=A9miaire?= an 228 de la
 =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 11 Oct 2019 12:22:40 +0200
In-Reply-To: <87sgob8psl.fsf@HIDDEN> (Mathieu Othacehe's message of "Wed,
 02 Oct 2019 11:23:20 +0200")
Message-ID: <877e5bponj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Howdy!

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

>> The cross-compilation target should only affect things that the regex
>> refers to with =E2=80=98ungexp=E2=80=99 or =E2=80=98ungexp-splicing=E2=
=80=99.
>
> Well you're right, this is wrong and not needed. However the other patch
> on (guix gexp), titled "Use cross extensions when cross-compiling" seems
> needed.

Indeed, I=E2=80=99ve just replied.

Thanks, and once again, apologies for the delay!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 11 Oct 2019 10:22:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 06:22:11 2019
Received: from localhost ([127.0.0.1]:57719 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIs3n-0003Fp-B3
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:22:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53696)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iIs3l-0003Fa-Sm
 for 36477 <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:22:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33919)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iIs3g-0008PS-PQ; Fri, 11 Oct 2019 06:22:04 -0400
Received: from [193.49.49.136] (port=48006 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iIs3f-0001nZ-QF; Fri, 11 Oct 2019 06:22:04 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v4 18/23] gexp: Use cross extensions when
 cross-compiling.
In-Reply-To: <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
 (Mathieu Othacehe's message of "Wed, 2 Oct 2019 16:47:46 +0200")
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-19-m.othacehe@HIDDEN>
 <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Date: Fri, 11 Oct 2019 12:22:00 +0200
Message-ID: <87blunpoon.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Mathieu,

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> I forget the commit message. It would be:
>
> * guix/gexp.scm (load-path-expression): Use ungexp-splicing instead of
> ungexp-native-splicing
> so that the cross modules are used when target is set.

This one LGTM because =E2=80=98load-path-expression=E2=80=99 is used in =E2=
=80=98gexp->file=E2=80=99 and
=E2=80=98gexp->script=E2=80=99, where, indeed, we want to use the target ex=
tensions (and
target modules too!).

Please push to =E2=80=98master=E2=80=99 (I don=E2=80=99t think it triggers =
a full rebuild, but
I=E2=80=99d suggest double-checking anyway :-)).

Thanks!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 11 Oct 2019 10:21:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 06:21:27 2019
Received: from localhost ([127.0.0.1]:57715 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIs34-0003Dz-Ti
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:21:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53600)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iIs33-0003Dg-07
 for 36477 <at> debbugs.gnu.org; Fri, 11 Oct 2019 06:21:25 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33867)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iIs2x-00083l-S9; Fri, 11 Oct 2019 06:21:19 -0400
Received: from [193.49.49.136] (port=47996 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iIs2w-0001l9-VX; Fri, 11 Oct 2019 06:21:19 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v4 18/23] gexp: Use cross extensions when
 cross-compiling.
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-19-m.othacehe@HIDDEN>
 <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
Date: Fri, 11 Oct 2019 12:21:12 +0200
In-Reply-To: <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
 (Mathieu Othacehe's message of "Wed, 2 Oct 2019 16:47:46 +0200")
Message-ID: <87d0f3popz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Mathieu,

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> I forget the commit message. It would be:
>
> * guix/gexp.scm (load-path-expression): Use ungexp-splicing instead of
> ungexp-native-splicing
> so that the cross modules are used when target is set.

This one LGTM because =E2=80=98load-path-expression=E2=80=99 is used in =E2=
=80=98gexp->file=E2=80=99 and
=E2=80=98gexp->script=E2=80=99, where, indeed, we want to use the target ex=
tensions (and
target modules too!).

Please push to =E2=80=98master=E2=80=99 (I don=E2=80=99t think it triggers =
a full rebuild, but
I=E2=80=99d suggest double-checking anyway :-)).

Thanks!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 14:48:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 10:48:04 2019
Received: from localhost ([127.0.0.1]:38115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFfvA-00081l-LR
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 10:48:04 -0400
Received: from mail-io1-f67.google.com ([209.85.166.67]:40716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFfv9-00081I-FC
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 10:48:03 -0400
Received: by mail-io1-f67.google.com with SMTP id h144so57431870iof.7
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 07:48:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=Wyg3gzy4Jif67HZQ6EaVa0EgRFwAUs9XdTJYI6g6AI0=;
 b=t/xSGVepgjqj6jCley7uK3BjsF980/i+K5rirj/Ebsn5bZJsM9HxnY4SQs28u94+f0
 ELdzZFd/5jd3RYZX73Nn4HzQbBxcgYQf61DvW8Zjw+45Dd+s5dsp0/aFiz/sq7ewxo8x
 JvDg9AB4hvoABDtwdx4TyEcZC82CjAgIrmUQHOalrtBCQj10VLIHVBhrRrh3eaEajIqR
 Bglb7j8yNWR7+lgY6W5+KcJB6acW8IWCRXI0Yu6NoNqgigXKiq1Be/i8BxLv1ZxIxcrQ
 NwcN2TYhYFeRwvCcyvILzIjVN+qXnXhwUSCH7jhizMuqT7+0uj2Z9thilEe76zpTayPG
 NgPg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:content-transfer-encoding;
 bh=Wyg3gzy4Jif67HZQ6EaVa0EgRFwAUs9XdTJYI6g6AI0=;
 b=oVbVp6cPq66RQJfvnHhhrDev03x/Lyip509tzZ9MzvqeqObp6UzapKKuue9wOgdGGS
 Q6QJ4v8Tev72y5H5EA1bTjcXTcGDIWaDOb8yj98fWDI0PTJFVtPhVRbiQnrZpgdkFD0v
 qzccobKSCIvxDZeWHQrSXXQyhQF51gOpShN3KMiNxedT8HD6riALW3Hg6m4ImLsNlOFT
 5Gk+yxq/AM7TfSSG2dGLFZByIx/9iEtn3rqI5HjPbRJFaFBA2IGWpe3HEMrLGjvBn/zP
 dozc6JS5NPPe4xd2Gi81NkxD2xjIHboFMw45BraxDJrWXNK3BVqItoI5xGlmScqgdW8d
 pwTw==
X-Gm-Message-State: APjAAAXqzqI0d4Wdhzml32tzoK+E3wPFMGd4dnXI1WEAmv8hsjTWh3Bz
 8z8oS4pE4Q6HXAPbNY1RarsuGYvmVyhHPB41iy6W7/74uMs=
X-Google-Smtp-Source: APXvYqzyJbeVW4B97j752W/Tuird7IJBJgQT3MYc+GaAFIeMji268BhCojrdIJ1jJag25jeetBiJQTIvim6cW2XJb5s=
X-Received: by 2002:a5d:8541:: with SMTP id b1mr3655903ios.134.1570027677527; 
 Wed, 02 Oct 2019 07:47:57 -0700 (PDT)
MIME-Version: 1.0
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-19-m.othacehe@HIDDEN>
In-Reply-To: <20191002095904.6325-19-m.othacehe@HIDDEN>
From: Mathieu Othacehe <m.othacehe@HIDDEN>
Date: Wed, 2 Oct 2019 16:47:46 +0200
Message-ID: <CANVeeZwqrkWy6aLatiYSoBw9Mh1tw9EtqAY4AAZpAP75ri8kbA@HIDDEN>
Subject: Re: [PATCH v4 18/23] gexp: Use cross extensions when cross-compiling.
To: 36477 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I forget the commit message. It would be:

* guix/gexp.scm (load-path-expression): Use ungexp-splicing instead of
ungexp-native-splicing
so that the cross modules are used when target is set.

Mathieu

Le mer. 2 oct. 2019 =C3=A0 11:59, Mathieu Othacehe <m.othacehe@HIDDEN> a=
 =C3=A9crit :
>
> ---
>  guix/gexp.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/guix/gexp.scm b/guix/gexp.scm
> index d9bdde2e42..514422cb08 100644
> --- a/guix/gexp.scm
> +++ b/guix/gexp.scm
> @@ -1513,7 +1513,7 @@ are searched for in PATH.  Return #f when MODULES a=
nd EXTENSIONS are empty."
>                                                 (string-append extension
>                                                                "/share/gu=
ile/site/"
>                                                                (effective=
-version)))
> -                                             '((ungexp-native-splicing e=
xtensions)))
> +                                             '((ungexp-splicing extensio=
ns)))
>                                          %load-path)))
>                          (set! %load-compiled-path
>                            (cons (ungexp compiled)
> @@ -1522,7 +1522,7 @@ are searched for in PATH.  Return #f when MODULES a=
nd EXTENSIONS are empty."
>                                                                "/lib/guil=
e/"
>                                                                (effective=
-version)
>                                                                "/site-cca=
che"))
> -                                             '((ungexp-native-splicing e=
xtensions)))
> +                                             '((ungexp-splicing extensio=
ns)))
>                                          %load-compiled-path)))))))))
>
>  (define* (gexp->script name exp
> --
> 2.23.0
>




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 13:12:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 09:12:16 2019
Received: from localhost ([127.0.0.1]:35695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFeQR-00034A-Gw
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 09:12:15 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:33403)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFeQO-00033x-Sy
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 09:12:13 -0400
Received: by mail-wr1-f65.google.com with SMTP id b9so19626886wrs.0
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 06:12:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=t1JGwcnXpPxaYIqJR3qQteVc6xmbx5rigD27Zo8qjJA=;
 b=iAynJnXN/Ss/T30LneL/qGKGPqfOEySJoxUGsnbVgHduEq+aUSFYwRSXwqEGRiFh8j
 tldv+V4ksXFIklwq+dDDI1SyipHjWLGVX+wMGmhR0hCbUldfygD/Nhq0y5l41TJWessh
 gUPw5e4YvHjm2lyhOlXWU/o+uObeOUQUs8BR3x+FFD7/I5hA9voyT1uBwGswhuYwy4JE
 Gqp7U+ahy98zb3ac9dl9Nh6AAa1JmbNC5vqfO3ioNkkP9v7/r9ia1HCF/D4KWDWC3vQJ
 pULbRwVoSkxTaVa+WBL+uX6NHBm3AtiqGOTLb2xQ3qqODAxY24iiXyJySIwVWBQaMhzq
 zndw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=t1JGwcnXpPxaYIqJR3qQteVc6xmbx5rigD27Zo8qjJA=;
 b=IZ+LaoxrMoAK0Wa0lFHZ9ZVL/V5pONS7yl3oHAEBz6iIhgtBScNMk1s5ZIkb+cpmox
 nh7f5tsEWVmkLNeTvzxkWvlX+Pz/CZmbyVQhbqE2DHFtYpLYfRG7oe0509a4ql0LtBZ+
 oJQVO8VscupAGjaUbMWbK2CoP3y765i7ABSQKQUlT6ut6TG+O8pZ6/QChfZuXUGmqj2A
 tJwT7Rf2H0YaWNpjxuzxY6WPd9c/ar2H0WSeGU8FZcaEeD/vIyVeQazACpBy2xyyjHLT
 bsRdlNgBBR0jW8gvGtWSO/X2bDCrakZfcnwwhpCr3WG2D/ehxIXAisXgXSjVxvIxF3L4
 CFiw==
X-Gm-Message-State: APjAAAXwFq7ccfa+i0AWcti9AyAunnuDhpeoFwo0stwao2cU95G+6Ssw
 RI2rhTf3ZrrzX1c4IW8QlWuJnmBexDM=
X-Google-Smtp-Source: APXvYqzpOKnwmuBl8MWcuE6sWnKTyPsKgZ2+uqiV/oTpgtSF0N6slDLFcLHYv6dT7SoDEmQIf/uydQ==
X-Received: by 2002:adf:f8cf:: with SMTP id f15mr2621950wrq.292.1570021926582; 
 Wed, 02 Oct 2019 06:12:06 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id q3sm19527054wru.33.2019.10.02.06.12.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 02 Oct 2019 06:12:05 -0700 (PDT)
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-2-m.othacehe@HIDDEN> <20191002101714.GD590@E5400>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#36477] [PATCH v4 01/23] gnu: openssl: Fix cross-compilation.
In-reply-to: <20191002101714.GD590@E5400>
Date: Wed, 02 Oct 2019 15:12:03 +0200
Message-ID: <87h84r8f6k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey Efraim,

Thanks for reviewing.

> This needs a null case. I think I'd try
>                 (_
>                  (string-append "linux-" (string-tokenize
>                                          (%current-target-system)
>                                          (char-set-compliment (char-set #\-)))))
> This would create something somewhat usable for uncovered cases, and in
> the case of x86_64-linux, it would (should) spit out "linux-x86_64"

Ok I'll add it (something like a "car" is missing to take only the first
part of %current-target-system which is referring to the architecture).

> could this be changed to
>              ,@(when (%current-target-system)
>                  '((getenv "CONFIGURE_TARGET_ARCH")))
>
> if it works then you don't need the 'if not' null case.

Nope, sadly it wouldn't work :(

,@(when #t '(1)) -> '(1)

but,

,@(when #f '(1)) -> "Unknown meta command: @"

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:17:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:17:25 2019
Received: from localhost ([127.0.0.1]:35530 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbhF-0000zr-G2
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:17:25 -0400
Received: from flashner.co.il ([178.62.234.194]:53618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1iFbhB-0000za-Sq
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:17:23 -0400
Received: from localhost (unknown [94.230.83.61])
 by flashner.co.il (Postfix) with ESMTPSA id DBC46401AA;
 Wed,  2 Oct 2019 10:17:15 +0000 (UTC)
Date: Wed, 2 Oct 2019 13:17:14 +0300
From: Efraim Flashner <efraim@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v4 01/23] gnu: openssl: Fix cross-compilation.
Message-ID: <20191002101714.GD590@E5400>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
 <20191002095904.6325-2-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="GyRA7555PLgSTuth"
Content-Disposition: inline
In-Reply-To: <20191002095904.6325-2-m.othacehe@HIDDEN>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
User-Agent: Mutt/1.12.2 (2019-09-21)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--GyRA7555PLgSTuth
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 02, 2019 at 11:58:42AM +0200, Mathieu Othacehe wrote:
> * gnu/packages/tls.scm (openssl-next)[arguments]: Pass CROSS_COMPILE
> environment variable and target system to configure script.
> ---
>  gnu/packages/tls.scm | 62 ++++++++++++++++++++++++++++++++------------
>  1 file changed, 45 insertions(+), 17 deletions(-)
>=20
> diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
> index 6689375da6..8797429dcf 100644
> --- a/gnu/packages/tls.scm
> +++ b/gnu/packages/tls.scm
> @@ -13,6 +13,7 @@
>  ;;; Copyright =C2=A9 2017, 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN=
r>
>  ;;; Copyright =C2=A9 2017 Rutger Helling <rhelling@HIDDEN>
>  ;;; Copyright =C2=A9 2018 Cl=C3=A9ment Lassieur <clement@HIDDEN>
> +;;; Copyright =C2=A9 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -301,6 +302,23 @@ required structures.")
>        #:disallowed-references ,(list (canonical-package perl))
>        #:phases
>        (modify-phases %standard-phases
> +	,@(if (%current-target-system)
> +	      '((add-before
> +		    'configure 'set-cross-compile
> +		  (lambda* (#:key target outputs #:allow-other-keys)
> +		    (setenv "CROSS_COMPILE" (string-append target "-"))
> +		    (setenv "CONFIGURE_TARGET_ARCH"
> +			    (cond
> +			     ((string-prefix? "i686" target)
> +			      "linux-x86")
> +			     ((string-prefix? "x86_64" target)
> +			      "linux-x86_64")
> +			     ((string-prefix? "arm" target)
> +			      "linux-armv4")
> +			     ((string-prefix? "aarch64" target)
> +			      "linux-aarch64")))

This needs a null case. I think I'd try
                (_
                 (string-append "linux-" (string-tokenize
                                         (%current-target-system)
                                         (char-set-compliment (char-set #\-=
)))))
This would create something somewhat usable for uncovered cases, and in
the case of x86_64-linux, it would (should) spit out "linux-x86_64"

This is basically the code used in (gnu services desktop) for the
enlightenment-setuid-programs.

> +		    #t)))
> +	      '())
>          (replace 'configure
>            (lambda* (#:key outputs #:allow-other-keys)
>              (let* ((out (assoc-ref outputs "out"))
> @@ -310,7 +328,9 @@ required structures.")
>                  (("/usr/bin/env")
>                   (string-append (assoc-ref %build-inputs "coreutils")
>                                  "/bin/env")))
> -              (invoke "./config"
> +              (invoke ,@(if (%current-target-system)
> +			    '("./Configure")
> +			    '("./config"))
>                        "shared"       ;build shared libraries
>                        "--libdir=3Dlib"
> =20
> @@ -321,7 +341,10 @@ required structures.")
>                                       "/share/openssl-" ,version)
> =20
>                        (string-append "--prefix=3D" out)
> -                      (string-append "-Wl,-rpath," lib)))))
> +                      (string-append "-Wl,-rpath," lib)
> +		      ,@(if (%current-target-system)
> +			    '((getenv "CONFIGURE_TARGET_ARCH"))
> +			    '())))))

could this be changed to
             ,@(when (%current-target-system)
                 '((getenv "CONFIGURE_TARGET_ARCH")))

if it works then you don't need the 'if not' null case.

>          (add-after 'install 'move-static-libraries
>            (lambda* (#:key outputs #:allow-other-keys)
>              ;; Move static libraries to the "static" output.
> @@ -435,21 +458,26 @@ required structures.")
>                     (("^MANDIR[[:blank:]]*=3D.*$")
>                      (string-append "MANDIR =3D " out "/share/man\n")))
>                   #t)))
> -        (replace 'configure
> -          ;; Override this phase because OpenSSL 1.0 does not understand=
 -rpath.
> -          (lambda* (#:key outputs #:allow-other-keys)
> -            (let ((out (assoc-ref outputs "out")))
> -              (invoke "./config"
> -                      "shared"                 ;build shared libraries
> -                      "--libdir=3Dlib"
> -
> -                      ;; The default for this catch-all directory is
> -                      ;; PREFIX/ssl.  Change that to something more
> -                      ;; conventional.
> -                      (string-append "--openssldir=3D" out
> -                                     "/share/openssl-" ,version)
> -
> -                      (string-append "--prefix=3D" out)))))
> +	   (replace 'configure
> +	     ;; Override this phase because OpenSSL 1.0 does not understand -rp=
ath.
> +	     (lambda* (#:key outputs #:allow-other-keys)
> +	       (let ((out (assoc-ref outputs "out")))
> +		 (invoke ,@(if (%current-target-system)
> +			       '("./Configure")
> +			       '("./config"))
> +			 "shared"                 ;build shared libraries
> +			 "--libdir=3Dlib"
> +
> +			 ;; The default for this catch-all directory is
> +			 ;; PREFIX/ssl.  Change that to something more
> +			 ;; conventional.
> +			 (string-append "--openssldir=3D" out
> +					"/share/openssl-" ,version)
> +
> +			 (string-append "--prefix=3D" out)
> +			 ,@(if (%current-target-system)
> +			       '((getenv "CONFIGURE_TARGET_ARCH"))
> +			       '())))))
>          (delete 'move-extra-documentation)
>          (add-after 'install 'move-man3-pages
>            (lambda* (#:key outputs #:allow-other-keys)
> --=20
> 2.23.0
>=20
>=20
>=20
>=20

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--GyRA7555PLgSTuth
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl2UeScACgkQQarn3Mo9
g1Hd6w//dVWoEQoSXc8s2i+pXMQAzZDnRNVOQNEUwqi4+6Js+MO1RlgPeJCFlrKF
WcwlXH1or68SRlqlKGvsnuNcIayTOG8eS4AzhEn9ozr2rM/ja2rDUxmDHspK+c+4
eB1JpTxLYU+2wdfMV5wvsiijlJ29+mBU5R+cSOiAC7b4eqp6yUo0fPki1K/cY5L0
E5PJpSWnqEGxkUcdIqJYayAjof1m8YKSd4T9G4NjwLayMtkWLSRHlNlKdRZdAn8T
OR9UXOqDfhRIcMmFWRx9699enfH0QnC7suUTA1EKyoerSaikfjbxObkzZ+uLXbXR
WQTTxk0YVj8R39Y3ZvuKKkBQAXID+DXXiAtEb/FHlUykMVggkM1MxDstihI9ZBiO
Nzh5SPDYC2GI/FjPxP2V32lsRSV79v1dyl24K2frXge4JiMsp0gS4QfE6z2tGHgA
J1Lz9Ke2v9uW8p6TdtW/ztRRIHW6yAtY/UKKKPyrECJ2R2ZA//q9mjBgh/KpQiuG
6IrfK2j0tr4m+B8j+tmh4kNQKtIp/4APl1C6C6g1EQWEN9T6Fl/LTrbaZJ77yYlH
MXLv6wFKrFoAsjUFHX8WZarA5Zn9dGU88h+vae44x83v6jMEdTclw31vz+Rx8NZL
ZWmMp/MBbLFEJsEYaVumT0Ch5HOerfDFEZkDAq5vGPlNFb6R1q0=
=Z5iI
-----END PGP SIGNATURE-----

--GyRA7555PLgSTuth--




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:06 2019
Received: from localhost ([127.0.0.1]:35499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQU-0000Xs-4c
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:06 -0400
Received: from mail-wr1-f51.google.com ([209.85.221.51]:40945)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQJ-0000VF-41
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:55 -0400
Received: by mail-wr1-f51.google.com with SMTP id l3so18891057wru.7
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=gGzDC9XINHcELOvZUtkpK4S6cduxok+TUNoEMBeStfA=;
 b=K0J2gCkydrCEV/VQVoT5a1DRyKlTqVlQN7VmQpMpQCGzXFPiOzkKn1sGqXF619J4mi
 vmsd86WKvj8ktwkQVBHp/96eSSZ5k9ta6t4hUtE4Wg5WY25uR65Xr+mSZ7szm50n3Y7L
 shUppMKouSwbV0SPGPvsVV5JNykTKKV2c5j/vamXkl2F6hjmhQXKxsE+JCHI7nOo/VnG
 5tM6TWuZXyb6s7UqVfgzgb+ra4Sxj52sGZgxYnBw9lrwrv9Ma5ikSY5WBqJUEen7p4vF
 LDFInK44p0+ouapN/bgi6gmDiMWIMZ3AnUaMecwmUT5OikV/8X1qjhIL+3mzsK4MTWCY
 T1Gw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=gGzDC9XINHcELOvZUtkpK4S6cduxok+TUNoEMBeStfA=;
 b=JPXH2d3jQa9x7GpV1gW3EzY1eWIjzFBbNVvQ7GTMqxP7GmTx6ekkv9oGGNof5c/b7C
 mOWpa5xKO+zEr9Jh6j2zhw9aGFyWVzULTWufelhkoSyFIOG0fjq38zPkpcpp++PYIcy8
 57WVScKBIOVQcnH+HuQc2qABMbI22pXZ8VuRk13ErXqoJPPyis0afWZwg+b9jVYzhLGv
 CTee2s4S5xWplTkKDkN1PzUgmalbI85M1yMYXiwJkpLI0uA0IsnKoK81vJLdYGsOoI4l
 UlNT57bDlR3z2A/G0g0DFmBTZL1MEAeiqoeEoJphsPVbYN/ABS7E8+kBcitJre3ZlyKp
 3SFA==
X-Gm-Message-State: APjAAAWjXNhGToyzm8WXBrp4bfDWoAbFR78nIrWPfQQzYd+lZOzX3g2P
 Z8LKTejwCOw8mGRv1rLrZbqYEEFk
X-Google-Smtp-Source: APXvYqx1lVdeanNXIo0u7tBbdI+oAg7CNjPcs1ItOx2M02Ogr23KvRr/QGIpQ5WzaYjG2iMp9NNJPg==
X-Received: by 2002:adf:df91:: with SMTP id z17mr1977180wrl.116.1570010389121; 
 Wed, 02 Oct 2019 02:59:49 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.47
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:48 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 23/23] scripts: system: Add --target option.
Date: Wed,  2 Oct 2019 11:59:04 +0200
Message-Id: <20191002095904.6325-24-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/system.scm (%options): Add target option,
(%default-options): ditto,
(process-action): Rename existing target variable to target-file and pass new
target variable to run-with-store procedure.
---
 guix/scripts/system.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 27b014db68..d3e10b6dc7 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2016 Alex Kost <alezost@HIDDEN>
 ;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Christopher Baines <mail@HIDDEN>
 ;;;
@@ -931,6 +931,8 @@ Some ACTIONS support additional ARGS.\n"))
       --full-boot        for 'vm', make a full boot sequence"))
   (display (G_ "
       --skip-checks      skip file system and initrd module safety checks"))
+  (display (G_ "
+      --target=TRIPLET   cross-build for TRIPLET--e.g., \"armel-linux-gnu\""))
   (display (G_ "
   -v, --verbosity=LEVEL  use the given verbosity LEVEL"))
   (newline)
@@ -1004,6 +1006,10 @@ Some ACTIONS support additional ARGS.\n"))
                  (lambda (opt name arg result)
                    (alist-cons 'system arg
                                (alist-delete 'system result eq?))))
+         (option '("target") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'target arg
+                               (alist-delete 'target result eq?))))
          (option '(#\r "root") #t #f
                  (lambda (opt name arg result)
                    (alist-cons 'gc-root arg result)))
@@ -1012,6 +1018,7 @@ Some ACTIONS support additional ARGS.\n"))
 (define %default-options
   ;; Alist of default option values.
   `((system . ,(%current-system))
+    (target . #f)
     (substitutes? . #t)
     (build-hook? . #t)
     (print-build-trace? . #t)
@@ -1045,6 +1052,7 @@ resulting from command-line parsing."
                         ((x . _) x)))
          (expr        (assoc-ref opts 'expression))
          (system      (assoc-ref opts 'system))
+         (target      (assoc-ref opts 'target))
          (os          (ensure-operating-system
                        (or file expr)
                        (cond
@@ -1061,7 +1069,7 @@ resulting from command-line parsing."
 
          (dry?        (assoc-ref opts 'dry-run?))
          (bootloader? (assoc-ref opts 'install-bootloader?))
-         (target      (match args
+         (target-file (match args
                         ((first second) second)
                         (_ #f)))
          (bootloader-target
@@ -1103,9 +1111,10 @@ resulting from command-line parsing."
                                                       (_ #f))
                                                     opts)
                              #:install-bootloader? bootloader?
-                             #:target target
+                             #:target target-file
                              #:bootloader-target bootloader-target
                              #:gc-root (assoc-ref opts 'gc-root)))))
+        #:target target
         #:system system))
     (warn-about-disk-space)))
 
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:06 2019
Received: from localhost ([127.0.0.1]:35496 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQT-0000Xc-2W
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:06 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:46337)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQH-0000VD-Su
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:54 -0400
Received: by mail-wr1-f53.google.com with SMTP id o18so18863534wrv.13
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=bdKkVLt+BVm4Z+Syhu8bkVqQiKe+9G9Ke1m+3w5lg6E=;
 b=UYQmAcCLMml0HdHFLhuRsBeAz7U0zlqauyl501IIMRo41XTDgwtMFBYAHQ0wGkKKxt
 9+IIl3lfacIomDQ4gwUXMuKI1WXQ+aJZGJfVhuDH+CZK5qopLIPEFPDIrfvmGEFwLiGo
 ptnDITKaiaAHntT40V77Io/JZ//U72KeqgZ6NCtimk98Zcb0652QF2i3eQoRISXDFXUW
 /wXNs8lANUK675Ba1ZVGz+x/eRz66zbiGssnb5Ja2a3e89LlcHunH7y+v2brjUG0ZLhj
 gPegSh8agwMBFoDV0vJGB+WPAld4l3Q3lukTQpMSbcaVwOyjMZE3l4Qsma1NBptVRcnR
 KEqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=bdKkVLt+BVm4Z+Syhu8bkVqQiKe+9G9Ke1m+3w5lg6E=;
 b=dpnpobDJ64aNsg9hvxo7xt9UzwgELVL7DOen2/YKjdWmpEz9rEZYHPGAa1+JgJPshh
 uHaD/O3kY2z3jaTCO/cdu4nkGpRrKdNdotXDKEdcM9fyMmJuyZRU1l6Gf90I64IR+9iJ
 cPbB9A+u69NrQlNeIgHJ0w5FAwPdyu+N1u/xw43Onta5vM8eDJwgnRx+8X+50cMyAhi4
 Go4p7k4XQbc5A0SKxHVERhlZeRqAbDnPdQsHRL+6f8iLfWgQ2+q9NZpfMG3gjU4/5RBU
 J4HyT+nnepKAlE0OkI4MIx8nbdaxCCjbcmyDo5RNPCgw9qO6oADD1+U+P1M2ckxaND/g
 gwzQ==
X-Gm-Message-State: APjAAAUFI2U4oqGZbfbmnoM4wYiBY7GUmotedFGj75nPft9L77xls0Fh
 ElnIb4LhLWgAG6/Dq5zgkbxTMRtB
X-Google-Smtp-Source: APXvYqxUhebwNiuQdlgNOZnpwtyOLjhkM5LdczPt2d+m5/FV5Z0RkNzAwSbf4Bohd73jATtR06VZvQ==
X-Received: by 2002:adf:f649:: with SMTP id x9mr1941165wrp.163.1570010387884; 
 Wed, 02 Oct 2019 02:59:47 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.46
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:46 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 22/23] system: vm: Support cross-compilation.
Date: Wed,  2 Oct 2019 11:59:03 +0200
Message-Id: <20191002095904.6325-23-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/system.scm (system-linux-image-file-name): Add support for cross-built
systems. Remove system argument that was ignored,
(operating-system-kernel-file): adapt by removing ignored os argument.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Add target
argument and turn inputs into native-inputs. Pass target to qemu-command
and gexp->derivation calls.
(iso9660-image): Add target argument and pass it to
expression->derivation-in-linux-vm. Remove qemu from inputs as it
is not necessary.
(qemu-image): Add target argument, also remove qemu from inputs. Pass
target argument to expression->derivation-in-linux-vm call.
---
 gnu/system.scm    | 15 ++++++++-------
 gnu/system/vm.scm | 18 +++++++++++++-----
 2 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 37573fd153..fcd6203c70 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -447,20 +447,21 @@ from the initrd."
   "Return the list of swap services for OS."
   (map swap-service (operating-system-swap-devices os)))
 
-(define* (system-linux-image-file-name #:optional (system (%current-system)))
+(define* (system-linux-image-file-name)
   "Return the basename of the kernel image file for SYSTEM."
   ;; FIXME: Evaluate the conditional based on the actual current system.
-  (cond
-   ((string-prefix? "arm" (%current-system)) "zImage")
-   ((string-prefix? "mips" (%current-system)) "vmlinuz")
-   ((string-prefix? "aarch64" (%current-system)) "Image")
-   (else "bzImage")))
+  (let ((target (or (%current-target-system) (%current-system))))
+    (cond
+     ((string-prefix? "arm" target) "zImage")
+     ((string-prefix? "mips" target) "vmlinuz")
+     ((string-prefix? "aarch64" target) "Image")
+     (else "bzImage"))))
 
 (define (operating-system-kernel-file os)
   "Return an object representing the absolute file name of the kernel image of
 OS."
   (file-append (operating-system-kernel os)
-               "/" (system-linux-image-file-name os)))
+               "/" (system-linux-image-file-name)))
 
 (define* (operating-system-directory-base-entries os)
   "Return the basic entries of the 'system' directory of OS for use as the
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index de20030848..c900b2d435 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -143,7 +143,7 @@
 
 (define* (expression->derivation-in-linux-vm name exp
                                              #:key
-                                             (system (%current-system))
+                                             (system (%current-system)) target
                                              (linux linux-libre)
                                              initrd
                                              (qemu qemu-minimal)
@@ -214,7 +214,8 @@ made available under the /xchg CIFS share."
               (use-modules (guix build utils)
                            (gnu build vm))
 
-              (let* ((inputs  '#$(list qemu (canonical-package coreutils)))
+              (let* ((native-inputs
+                      '#+(list qemu (canonical-package coreutils)))
                      (linux   (string-append #$linux "/"
                                              #$(system-linux-image-file-name)))
                      (initrd  #$initrd)
@@ -222,16 +223,18 @@ made available under the /xchg CIFS share."
                      (graphs  '#$(match references-graphs
                                    (((graph-files . _) ...) graph-files)
                                    (_ #f)))
+                     (target  #$(or (%current-target-system) (%current-system)))
                      (size    #$(if (eq? 'guess disk-image-size)
                                     #~(+ (* 70 (expt 2 20)) ;ESP
                                          (estimated-partition-size graphs))
                                     disk-image-size)))
 
-                (set-path-environment-variable "PATH" '("bin") inputs)
+                (set-path-environment-variable "PATH" '("bin") native-inputs)
 
                 (load-in-linux-vm loader
                                   #:output #$output
                                   #:linux linux #:initrd initrd
+                                  #:qemu (qemu-command target)
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
@@ -248,6 +251,7 @@ made available under the /xchg CIFS share."
     (gexp->derivation name builder
                       ;; TODO: Require the "kvm" feature.
                       #:system system
+                      #:target target
                       #:env-vars env-vars
                       #:guile-for-build guile-for-build
                       #:references-graphs references-graphs)))
@@ -263,6 +267,7 @@ made available under the /xchg CIFS share."
                         file-system-label
                         file-system-uuid
                         (system (%current-system))
+                        (target (%current-target-system))
                         (qemu qemu-minimal)
                         os
                         bootcfg-drv
@@ -299,7 +304,7 @@ INPUTS is a list of inputs (as for packages)."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools xorriso)
+                  '#$(append (list parted e2fsprogs dosfstools xorriso)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
 
@@ -328,6 +333,7 @@ INPUTS is a list of inputs (as for packages)."
                                  #:volume-uuid #$(and=> file-system-uuid
                                                         uuid-bytevector))))))
    #:system system
+   #:target target
 
    ;; Keep a local file system for /tmp so that we can populate it directly as
    ;; root and have files owned by root.  See <https://bugs.gnu.org/31752>.
@@ -346,6 +352,7 @@ INPUTS is a list of inputs (as for packages)."
 (define* (qemu-image #:key
                      (name "qemu-image")
                      (system (%current-system))
+                     (target (%current-target-system))
                      (qemu qemu-minimal)
                      (disk-image-size 'guess)
                      (disk-image-format "qcow2")
@@ -404,7 +411,7 @@ system."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools)
+                  '#$(append (list parted e2fsprogs dosfstools)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
 
@@ -481,6 +488,7 @@ system."
                                      #:bootloader-installer
                                      #$(bootloader-installer bootloader)))))))
    #:system system
+   #:target target
    #:make-disk-image? #t
    #:disk-image-size disk-image-size
    #:disk-image-format disk-image-format
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:05 2019
Received: from localhost ([127.0.0.1]:35494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQP-0000Wk-O0
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:02 -0400
Received: from mail-wr1-f44.google.com ([209.85.221.44]:38495)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQG-0000Uw-Ni
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:53 -0400
Received: by mail-wr1-f44.google.com with SMTP id w12so18904367wro.5
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=afuyksv9Cdb3+PcqCSw94KVmoYGR3A+lQiujjfQeOWc=;
 b=hlXxSgqBWXLnedLIX2PilbF41PwGH/WoropHlJg/iJJs5nqqzfH8kadQbgivXSgYIg
 0O83bMI1OCcanRlERglXBs9LiO2wvBZ44b39JObuWmQCt2x1y9FvsSvqsJ5qtn4yauvR
 uwFmmrdd7gYy922vQnORICyUaPJ99W37Cmf0/BqCY73FkeFxDQjSMCrw1LMRE7RRuUBG
 BLrng3cxD44I2gSM+LPgkDUAlheWt0ee63a7H5NjJYPwcO1lJSKr3mWWVUs1u2yOm2Jm
 h+V4EUdGYJoloHoDtEWJgP0bRN1MCiuykknh8zWRTY0Tm2t4nKjr/yA1HODuwQ32VuIe
 WX5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=afuyksv9Cdb3+PcqCSw94KVmoYGR3A+lQiujjfQeOWc=;
 b=GRwgUS0GH1LEObn3WyXXchzGiu74657CdvktuHsr5Su4Ypxy6j/oPMVZBts2KjCbnt
 nA+Bi6yWspZsbaNEwpFTUiKiZcIFeu+oMhzVjHgIEKvdWvH8PHecl58p7vmNtAqv6WfB
 3Ar8vKwsn1p6GxNc47/+sT9CEKMUm8bJnYKR7g/jDeOWyUDUiYVQl2vA9vCgnrzQVPd4
 k1baejpgv4WDXPG8T14CzZI+YMxeSyJeWPKbV+ZoaGIjlYwAjzo+X63S+Kni14M9grOu
 f3jTYuTDNWNmZliBwAAst7gkAT3xwluIViTOJsDwnTxjBPSCp8W55RlujyVoiY9Lblok
 kCNw==
X-Gm-Message-State: APjAAAXVQMmo+G+S31x+gPhSIEKGWZSV7lm++dEFuFRXHc4vuk1xtJBZ
 2p3b+PTAnFENr9d/kvutihpr+pH1
X-Google-Smtp-Source: APXvYqwROISJTi4/lHeyjekLKtHSQN1FgV6TV/RGE1hhU/faFvlKLrQCTk71PbkAHwEKqanwSDWDPQ==
X-Received: by 2002:adf:dc43:: with SMTP id m3mr1967958wrj.118.1570010386706; 
 Wed, 02 Oct 2019 02:59:46 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.45
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:45 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 21/23] system: vm: Add arm64 support.
Date: Wed,  2 Oct 2019 11:59:02 +0200
Message-Id: <20191002095904.6325-22-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/build/vm.scm (load-in-linux-vm): Add target-arm64? argument and use it
to pass correct arguments to qemu.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass the new
target-arm64? argument added above. Do not add ESP partition on all ARM
targets. Do not pass grub-efi package to initialize-hard-disk on ARM targets.
---
 gnu/build/vm.scm  | 19 +++++++++++++------
 gnu/system/vm.scm | 15 +++++++++------
 2 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index b85398ed24..6f920aec9e 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -82,6 +82,7 @@
                            make-disk-image?
                            single-file-output?
                            target-arm32?
+                           target-aarch64?
                            (disk-image-size (* 100 (expt 2 20)))
                            (disk-image-format "qcow2")
                            (references-graphs '()))
@@ -97,10 +98,14 @@ access it via /dev/hda.
 REFERENCES-GRAPHS can specify a list of reference-graph files as produced by
 the #:references-graphs parameter of 'derivation'."
 
+  (define target-arm? (or target-arm32? target-aarch64?))
+
   (define arch-specific-flags
     `(;; On ARM, a machine has to be specified. Use "virt" machine to avoid
       ;; hardware limits imposed by other machines.
-      ,@(if target-arm32? '("-M" "virt") '())
+      ,@(if target-arm?
+            '("-M" "virt")
+            '())
 
       ;; On ARM32, if the kernel is built without LPAE support, ECAM conflicts
       ;; with VIRT_PCIE_MMIO causing PCI devices not to show up.  Disable
@@ -112,9 +117,9 @@ the #:references-graphs parameter of 'derivation'."
 
       ;; Only enable kvm if we see /dev/kvm exists.  This allows users without
       ;; hardware virtualization to still use these commands.  KVM support is
-      ;; still buggy on some ARM32 boards. Do not use it even if available.
+      ;; still buggy on some ARM boards. Do not use it even if available.
       ,@(if (and (file-exists? "/dev/kvm")
-                 (not target-arm32?))
+                 (not target-arm?))
             '("-enable-kvm")
             '())
 
@@ -125,11 +130,11 @@ the #:references-graphs parameter of 'derivation'."
                       ;; The serial port name differs between emulated
                       ;; architectures/machines.
                       " console="
-                      (if target-arm32? "ttyAMA0" "ttyS0"))
+                      (if target-arm? "ttyAMA0" "ttyS0"))
 
       ;; NIC is not supported on ARM "virt" machine, so use a user mode
       ;; network stack instead.
-      ,@(if target-arm32?
+      ,@(if target-arm?
             '("-device" "virtio-net-pci,netdev=mynet"
               "-netdev" "user,id=mynet")
             '("-net" "nic,model=virtio"))))
@@ -153,7 +158,9 @@ the #:references-graphs parameter of 'derivation'."
     (_ #f))
 
   (apply invoke qemu "-nographic" "-no-reboot"
-         "-smp" (number->string (parallel-job-count))
+         ;; CPU "max" behaves as "host" when KVM is enabled, and like a system
+         ;; CPU with the maximum possible feature set otherwise.
+         "-cpu" "max"
          "-m" (number->string memory-size)
          "-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng"
          "-device" "virtio-rng-pci,rng=guixsd-vm-rng"
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index ac6e4ded92..de20030848 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -235,10 +235,12 @@ made available under the /xchg CIFS share."
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
-                                  ;; FIXME: ‘target-arm32?’ may not operate on
-                                  ;; the right system/target values.  Rewrite
+                                  ;; FIXME: ‘target-arm32?’ and
+                                  ;; ‘target-aarch64?’ may not operate on the
+                                  ;; right system/target values.  Rewrite
                                   ;; using ‘let-system’ when available.
                                   #:target-arm32? #$(target-arm32?)
+                                  #:target-aarch64? #$(target-aarch64?)
                                   #:disk-image-format #$disk-image-format
                                   #:disk-image-size size
                                   #:references-graphs graphs))))))
@@ -452,10 +454,10 @@ system."
                       ;; bootloaders if we are not targeting ARM because UEFI
                       ;; support in U-Boot is experimental.
                       ;;
-                      ;; FIXME: ‘target-arm32?’ may be not operate on the right
+                      ;; FIXME: ‘target-arm?’ may be not operate on the right
                       ;; system/target values.  Rewrite using ‘let-system’ when
                       ;; available.
-                      (if #$(target-arm32?)
+                      (if #$(target-arm?)
                           '()
                           (list (partition
                                  ;; The standalone grub image is about 10MiB, but
@@ -466,10 +468,11 @@ system."
                                  ;; when mounting. The actual FAT-ness is based
                                  ;; on file system size (16 in this case).
                                  (file-system "vfat")
-                                 (flags '(esp))))))))
+                                 (flags '(esp)))))))
+                    (grub-efi #$(and (not (target-arm?)) grub-efi)))
                (initialize-hard-disk "/dev/vda"
                                      #:partitions partitions
-                                     #:grub-efi #$grub-efi
+                                     #:grub-efi grub-efi
                                      #:bootloader-package
                                      #$(bootloader-package bootloader)
                                      #:bootcfg #$bootcfg-drv
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:01 2019
Received: from localhost ([127.0.0.1]:35492 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQP-0000Wc-8e
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:01 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:38010)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQF-0000Ue-Ik
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:52 -0400
Received: by mail-wr1-f67.google.com with SMTP id w12so18904307wro.5
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=eunw+BE1POGTlpEUjHEnI30eWh4037FKsWvm0c+d6yg=;
 b=JS7iozppw6WyVsPXtOatdzHiE4Ko89ubxwl/rBGIDUsN7AZ5B0ckZgyEEgz1Bf41ir
 omLBW9VbC/vwLrpnqxuQZ/lEax4eyjR5cnRXmkzRGj5qLRDZ+8A4vn9FOShUaCvAgc/N
 tgOxcCa4rU/eCNwDJ+1Yv/QMrewUPlf61PEKfIGw2yXl8neJzkd0i8JBqEejMSnysQgG
 hPDY4WW3rndCz8O0YAB2F8rh+tTnycspSGPVeNQi5w3bI8LIfhGHg/a+osYQ7w14KbPQ
 YXuJW7PBjeE2scQqN30FWTSDt/6RaOZQmYG/6a3jCCfvt92Z9eRRnDUmU4CEoPvEifhk
 cHyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=eunw+BE1POGTlpEUjHEnI30eWh4037FKsWvm0c+d6yg=;
 b=H5tbByvVILV4VW52P8yX5PQSru6EB2ioG9cB3k5s+rEuhxkVrAL+W1fhGKYQW6rKOu
 qYDoKojvvUxIsFtkJZelVn6etM6kYJRM2HY+T35FlBE80KiqMimtzJVtzp751ikS7hIJ
 CRqzq0/+zt12FyWYXZQZbIW6UJ5zAwVZ7BpWsHxlLi4uPZ9MadCfFnWe85R84mPiz5qY
 zI/N61kQGsgiaojV5bz79p6AfQRKLp5lcs/lHsmv0J7KhTBj800DxM6wMNSt//0mkjAx
 SYkSycxSKaNKT4Z/dmErLocrQO7VR1UEEfhkSSBmE4YN8TidLq48zLh4E/AbWf+bbUYB
 9N6w==
X-Gm-Message-State: APjAAAWPQ1ArvzDa9f3dnAocL7vU+7qd8edKBcfhIKZCfuCIsizKev9b
 P65eHpzjnP3xqplaKDftQ95elLeh
X-Google-Smtp-Source: APXvYqzTXoio/v8O4WwMDjniH4gxmYGm+vh3NjNsksDUEkr/CX99hJZlyIuxQesUXHmIClDr95S4Ng==
X-Received: by 2002:a5d:6242:: with SMTP id m2mr1959451wrv.261.1570010385699; 
 Wed, 02 Oct 2019 02:59:45 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.44
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:44 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 20/23] build: vm: Fix arm32 support.
Date: Wed,  2 Oct 2019 11:59:01 +0200
Message-Id: <20191002095904.6325-21-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/build/vm.scm (load-in-linux-vm): Disable qemu highmem support on ARM32
systems.
---
 gnu/build/vm.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index a5d9fefa62..b85398ed24 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -102,6 +102,14 @@ the #:references-graphs parameter of 'derivation'."
       ;; hardware limits imposed by other machines.
       ,@(if target-arm32? '("-M" "virt") '())
 
+      ;; On ARM32, if the kernel is built without LPAE support, ECAM conflicts
+      ;; with VIRT_PCIE_MMIO causing PCI devices not to show up.  Disable
+      ;; explicitely highmem to fix it.
+      ;; See: https://bugs.launchpad.net/qemu/+bug/1790975.
+      ,@(if target-arm32?
+            '("-machine" "highmem=off")
+            '())
+
       ;; Only enable kvm if we see /dev/kvm exists.  This allows users without
       ;; hardware virtualization to still use these commands.  KVM support is
       ;; still buggy on some ARM32 boards. Do not use it even if available.
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:01 2019
Received: from localhost ([127.0.0.1]:35490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQO-0000WV-WB
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:01 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:35658)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQD-0000Tx-G0
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:51 -0400
Received: by mail-wr1-f53.google.com with SMTP id v8so18931199wrt.2
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=HGGC5cnMC+U7ZmgjSzc08ZtmZFHmQilbx9Zkvxk//Ac=;
 b=rIeO3fARGTTB6KLwwFxypngGrBdURtNA8EckuphngnKI4XV78ZNeJGuxnVESF4Oxut
 1sBhddYd95y2qIhZXm7+gZqqPDfImk5V1PV8YaLy3UXtIkoPSbZTioinEDvrbRSd/4i7
 tC8RWFpYIxJf+koKDIPWzpu7q5UMSH6m1ctldyJ/I9rDnwNVC0yPydGjFRoEQnC53A4c
 CYdNz95QyQfAKH5nVmYvvHf3a3roMIDlZBXfOxO3XxhvC3s+6mHmBbaRI84lmlM9NcQF
 LsyYVXT4L5GAjKpCPnuwJac0ORBS2JCnlnLaTTbF77rkGgZkxlqOeXy584NjFFGgMEJQ
 8jvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=HGGC5cnMC+U7ZmgjSzc08ZtmZFHmQilbx9Zkvxk//Ac=;
 b=eNK9oHDsdz9m82ZQucwsVCMlJzxMX0I5RhP3hisYpulfeLb4aN5hIitXcpA9zHWbQs
 iR6YR99cw0TA1yOssldKMn7lFDXf6YRoMCdcEHeehjve4115RC6N+n/WYhCFBshXKmM8
 8zgMSrIvN8HCo9ERWR9UHDwn21PzTRjoEmxGw/oHSglVy42PX1pdDCjkB2FIrmsh+UJg
 jMGQBCvWwnyIaxvQDiB736VaSE/eQBW3YG907v6IljWWYBmY1Zh85hzzwQi2z3VdmrTy
 ygkjCaL6upD2OHzw+mUcrqtUY4uosN5WBMtGeKbjDFnYTWQ/3PkrcXpUY9AP8z681IPb
 XPng==
X-Gm-Message-State: APjAAAVIICNW61B5aQ6+ZNB1XXGeZ6bEvJjR/cycRz0G0V2I5Lf3+nFf
 F1T3VxsWNNLpygD1p+NyF4O34sCh
X-Google-Smtp-Source: APXvYqxAzimb8sO9cj3XeD2tGLnuNH8V3ZwUbDUl/NZzERKYp7sjZU0+NgPaTLkuMWnJXD5zsSXv6g==
X-Received: by 2002:a5d:428d:: with SMTP id k13mr1974159wrq.305.1570010383492; 
 Wed, 02 Oct 2019 02:59:43 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.42
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:42 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 18/23] gexp: Use cross extensions when cross-compiling.
Date: Wed,  2 Oct 2019 11:58:59 +0200
Message-Id: <20191002095904.6325-19-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

---
 guix/gexp.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index d9bdde2e42..514422cb08 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1513,7 +1513,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                (string-append extension
                                                               "/share/guile/site/"
                                                               (effective-version)))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-path)))
                         (set! %load-compiled-path
                           (cons (ungexp compiled)
@@ -1522,7 +1522,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                               "/lib/guile/"
                                                               (effective-version)
                                                               "/site-ccache"))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-compiled-path)))))))))
 
 (define* (gexp->script name exp
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:01 2019
Received: from localhost ([127.0.0.1]:35488 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQO-0000WO-Kg
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:00 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:45909)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQE-0000UH-9e
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:51 -0400
Received: by mail-wr1-f53.google.com with SMTP id r5so18858700wrm.12
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Z32VsnVCIp4SlMoUBOL6TJuR/uSgqcuRy8t1NNgMBhc=;
 b=DRNitoTKngABm8MDI6W63ie2510dL1thh9L7xi3tLkPzDNSktOlE6wB4N2Z03yICAR
 FTTbSE8witKApY0qucoLoeB8ALNQixqSXv/UYmj+dA3PxlZR87lPC+ynv6zW/71xDs6C
 25ax+w0XSA592JhLqTqcLAJAH8XbJVtFRNoh5NsRJ3Udw9YlMr8ASXDvdWZ77cjazJnu
 KGQOyKVf6irbwPpXJMHEVwbdPOzT7R09BomLQO9pmJNMilyQOQlFd1IrJY2WOsgCsWzt
 az4710szRi2NeEryvWagxgOOHSwwXvO9xR+C7fo61mMFv1CWWFkSIj928vcjGMBuljfp
 EfqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Z32VsnVCIp4SlMoUBOL6TJuR/uSgqcuRy8t1NNgMBhc=;
 b=PoDBwYdBKFSkJgUcG1t6QF/kO/IppT3REkhwAi7IRGza/Vn6Fuk+g947kg+S9YgrH+
 IJfSECIF79dx5W1GCwAyxasHo6c7n3KVLRzwrti3z63V6qxn/KG+gK491AqUmzTPYDSX
 3AsAJIhtWXQsHjkfdIewDE7U72tCoVX/8fNp/kQV0iunRR5G1/7+tUOFJHQf1WqUxtHB
 6WDZhY/CTPoKA8ej17jDhP3X6XxMOj4EI3l03hsJB/3iOS1pChYONlqRtOfL2KfYKMbf
 0i82th0L6xrsOP0a1++lN92klxx/oJgl4L04BGXljUYHKygQyVdq3ehJpht9FiiCj+Y+
 ezsA==
X-Gm-Message-State: APjAAAWecCawXtwpkS/k12uNGBn9ytFNUqnShTazsokCjz7ZAMEr/9LM
 nUWSoagrJonhtYSE8Byc6HPP+WUz
X-Google-Smtp-Source: APXvYqxXWKq73HoAvMsMoB4mXIzpiRcqaqYUL8dcdKI+HpC/iJXwlLXzxTKqO0fDaxQW8Es9D/eqJw==
X-Received: by 2002:a5d:6885:: with SMTP id h5mr2037367wru.92.1570010384403;
 Wed, 02 Oct 2019 02:59:44 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.43
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:43 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 19/23] utils: Use target-aarch64? and target-arm? helpers.
Date: Wed,  2 Oct 2019 11:59:00 +0200
Message-Id: <20191002095904.6325-20-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/utils.scm (target-aarch64?, target-arm?): New exported procedures.
---
 guix/utils.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guix/utils.scm b/guix/utils.scm
index 1f99c5b3f5..c9236ad165 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,8 @@
             package-name->name+version
             target-mingw?
             target-arm32?
+            target-aarch64?
+            target-arm?
             target-64bit?
             version-compare
             version>?
@@ -494,6 +496,12 @@ a character other than '@'."
 (define (target-arm32?)
   (string-prefix? "arm" (or (%current-target-system) (%current-system))))
 
+(define (target-aarch64?)
+  (string-prefix? "aarch64" (or (%current-target-system) (%current-system))))
+
+(define (target-arm?)
+  (or (target-arm32?) (target-aarch64?)))
+
 (define (target-64bit?)
   (let ((system (or (%current-target-system) (%current-system))))
     (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" "ppc64"))))
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:00 2019
Received: from localhost ([127.0.0.1]:35486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQO-0000WG-3D
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 06:00:00 -0400
Received: from mail-wr1-f46.google.com ([209.85.221.46]:46317)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQC-0000Tj-8V
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:48 -0400
Received: by mail-wr1-f46.google.com with SMTP id o18so18863254wrv.13
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=91OABdlYn72zL0DZFbIX36KhKVOqZA7+Wim8dmBlUUc=;
 b=iKF+uzBCkupYjg1Ee0j88G4qBwU812wHjN7dx5WKmpuLMn8oDLIR7h/kSovhvV9ocU
 hsVJqRqYTJ2WCuJgYhhrAKU8m9f3ZcIZ1sj6XrCPbDdpZqELBmzLBIVNspNSPKJB6O0U
 Lt4QQohSkYLyzAvIA0ryEClN/osqq9WHY0r2bkezk15KP8AHZP5qziBTdMkTF5dMdOHT
 iDuJmGl6Do6sDy3pEUWldCexAZCLNZOrHdewpUrkLNujG8YHqkvSqHZGezPHxzJnUhIM
 QJsSnN1QHVipUnB70Vd7nwLOkPHjqXrH8CrZm90VY59dFz/EPEqRsju4i/AuOV92WKhv
 XwOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=91OABdlYn72zL0DZFbIX36KhKVOqZA7+Wim8dmBlUUc=;
 b=puRXxjbuTzP9qLHZqsCDfrUn1t4CRzvb0Cxs3XLNR+0wGHeqEJ/CfZpKpnQeKCEkkO
 0vWCal8fcf8tkZevB7e6FqvA/RdqsDFatLlwmBOOAvP0l7L5LidvgIJuEu/vL8CMWRk3
 iD3oLfUc2ljQCH5qBeDHOPABiqOexXYAqNiSAXh1xax8DMwPyTYVkx9SZ9Hox2AY1U/H
 K3T/8uKXsr1E1yaOpGJKBOMdryGZGBuBNPG4JvZ1pjbMckMpqJO7A4h/JKadcXl2riCP
 /0OP1zN4rMZYQvUcJ1qI5Ul08jhnUfoNms4+uenXfK2uXDynCopnLo0/G6fe0q54jZK7
 Rt9A==
X-Gm-Message-State: APjAAAVhsLDQQi4nY7uOApSxh3pqHrdzqnAL+ydVVjo5o/v5QMaDncu8
 pqcxN5R+lUif6AqEUT04s5txJj1C
X-Google-Smtp-Source: APXvYqwAMlw8FKfxTgDkgP1fxkWxb4jcA0nUuFS4755DGByAs926Vlk4EM/35OqDUshXmUeHfJ/L+g==
X-Received: by 2002:adf:ef0d:: with SMTP id e13mr2083242wro.300.1570010382396; 
 Wed, 02 Oct 2019 02:59:42 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.41
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:41 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 17/23] gnu: cmake: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:58 +0200
Message-Id: <20191002095904.6325-18-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/cmake.scm (cmake-minimal)[inputs]: Move all inputs to ...
[native-inputs]: ... here, except for ncurses.
---
 gnu/packages/cmake.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 13252a9486..b9ac84ad7e 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2018 Arun Isaac <arunisaac@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -145,16 +146,17 @@
          (replace 'configure
            (lambda* (#:key (configure-flags '()) #:allow-other-keys)
              (apply invoke "./configure" configure-flags))))))
-    (inputs
+    (native-inputs
      `(("bzip2" ,bzip2)
        ("curl" ,curl)
        ("expat" ,expat)
        ("file" ,file)
        ("libarchive" ,libarchive)
        ("libuv" ,libuv)
-       ("ncurses" ,ncurses) ; required for ccmake
        ("rhash" ,rhash)
        ("zlib" ,zlib)))
+    (inputs
+     `(("ncurses" ,ncurses))) ; required for ccmake
     (native-search-paths
      (list (search-path-specification
             (variable "CMAKE_PREFIX_PATH")
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 10:00:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 06:00:00 2019
Received: from localhost ([127.0.0.1]:35482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQH-0000Vy-Ha
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:59 -0400
Received: from mail-wm1-f41.google.com ([209.85.128.41]:37846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQ8-0000TW-SS
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:48 -0400
Received: by mail-wm1-f41.google.com with SMTP id f22so6285409wmc.2
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=e3634+YG7dB2lcyKcYhye/xrCCn82c4D6aPHgiYWc+8=;
 b=j722RnB2soxEUHGQd1lzcz1LePqY/0WNEqKxNBLonEXpmr9bgzIxSj7+o9WJKs7WVI
 H4+Zy3VSzf16i8U0n7QDhAXHRyUwfbrEdTkx4b8yfB1V+YvM0PBiKEaqB0PpMOFGGgDa
 xNhksHBXdRwoaarBc3NnKVLu3w2hW93jigR7NYtOUU8zSe5Q5yq1FcUw5SXS/fhHXmKK
 mNiyTkAqSwDqd2gAje6TlY5eKqinNU03BkfBHwJuDSDBEWXF/vi6J84PLPd/D9OEvKil
 7+wQsHawsinAxxsjQjt/BgdcSgtOd1z/gbID/eiLRIP2GppTSQq0Xy/1o1btbL1b/fKW
 pDkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=e3634+YG7dB2lcyKcYhye/xrCCn82c4D6aPHgiYWc+8=;
 b=emHqFuw5+rW27shjMd0CeHgKPRhORPob1xMc90QFB60HSM7vRr95Vgk5gwEv1T7GXD
 s1t2LrIS7eIaNJiHMRx4q2rqKezoOq+0YrYlhB1ZC2qJr2iv0B8hsUES/lzFMAKWPKEe
 3e+VwLFghhaPzLT9A0VIPvm7dSBqVK76NCVKf+vCQHyhoQtw0Fn62eVK9aKrMX6drW4s
 7ry01Mp7+O5Sn/q5bvS1VirUmVFpeOQFiBLcE0eYDnNjpXGOJU9cnkG4XPF9+yWmByq1
 0xeEAsmpu85dfxigAgt8PEiZAWRRm1URhx7DP2TDBwiCWfS+itP2hNB8mAS9hiWbBgem
 fmYw==
X-Gm-Message-State: APjAAAXO6bB1fLhiC3KMaVcsvN1kRyq+uVT7E6AQe0mST/dgIQweEfJO
 RzayYMqy9o2sgNWzFnRRzsVq1c9X
X-Google-Smtp-Source: APXvYqyonGKmcKtMZPvKartZCvYfB261X1pm+21UUO6XwLf2zfizZVbpPt7q0bDuzSUpuoKdc/GmUQ==
X-Received: by 2002:a1c:4846:: with SMTP id v67mr2160149wma.120.1570010378796; 
 Wed, 02 Oct 2019 02:59:38 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.37
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:37 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 14/23] gnu: guile-sqlite3: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:55 +0200
Message-Id: <20191002095904.6325-15-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/guile.scm (guile-sqlite3)[source]: Apply previous patch,
[native-inputs]: add guile.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/guile.scm                        |  7 ++-
 .../guile-sqlite3-fix-cross-compilation.patch | 55 +++++++++++++++++++
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 2ec5ffe29e..42bc29783b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -935,6 +935,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/guile-relocatable.patch			\
   %D%/packages/patches/guile-rsvg-pkgconfig.patch		\
   %D%/packages/patches/guile-emacs-fix-configure.patch		\
+  %D%/packages/patches/guile-sqlite3-fix-cross-compilation.patch \
   %D%/packages/patches/gstreamer-buffer-reset-offset.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_PATH.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch \
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 478b8faebe..bc57a55052 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2016, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2017 Andy Wingo <wingo@HIDDEN>
 ;;; Copyright © 2017 Marius Bakke <mbakke@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017, 2018 Amirouche <amirouche@HIDDEN>
 ;;; Copyright © 2018 Danny Milosavljevic <dannym@HIDDEN>
@@ -521,11 +521,14 @@ Guile's foreign function interface.")
               (sha256
                (base32
                 "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+               (search-patches "guile-sqlite3-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
+       ("guile" ,guile-2.2)
        ("pkg-config" ,pkg-config)))
     (inputs
      `(("guile" ,guile-2.2)
diff --git a/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
new file mode 100644
index 0000000000..9ea9a47677
--- /dev/null
+++ b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
@@ -0,0 +1,55 @@
+From a6e9e62a77ecc5012929613e20da23b2636450a5 Mon Sep 17 00:00:00 2001
+From: Mathieu Othacehe <mathieu.othacehe@HIDDEN>
+Date: Mon, 25 Mar 2019 11:00:38 +0100
+Subject: [PATCH] cross compile
+
+---
+ build-aux/guile.am |  2 +-
+ configure.ac       | 19 ++++++++++++-------
+ 2 files changed, 13 insertions(+), 8 deletions(-)
+
+diff --git a/build-aux/guile.am b/build-aux/guile.am
+index dc1e63f..3126372 100644
+--- a/build-aux/guile.am
++++ b/build-aux/guile.am
+@@ -16,4 +16,4 @@ EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
+ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+ SUFFIXES = .scm .go
+ .scm.go:
+-	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
++	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
+diff --git a/configure.ac b/configure.ac
+index f648fcb..2d34d0a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,15 +21,20 @@ PKG_CHECK_MODULES([SQLITE], [sqlite3])
+ SQLITE_LIBDIR="`"$PKG_CONFIG" sqlite3 --variable libdir`"
+ AC_SUBST([SQLITE_LIBDIR])
+ 
+-AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
+-GUILE_CHECK([retval],
+-  [(dynamic-func \"sqlite3_open_v2\"
++if test "$cross_compiling" = "no"; then
++   AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
++   GUILE_CHECK([retval],
++   [(dynamic-func \"sqlite3_open_v2\"
+                  (dynamic-link \"$SQLITE_LIBDIR/libsqlite3\"))])
+-if test "$retval" != 0; then
+-  AC_MSG_RESULT([no])
+-  AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   if test "$retval" != 0; then
++      AC_MSG_RESULT([no])
++      AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   else
++      AC_MSG_RESULT([yes])
++   fi
+ else
+-  AC_MSG_RESULT([yes])
++   GUILE_TARGET="--target=$host_alias"
++   AC_SUBST([GUILE_TARGET])
+ fi
+ 
+ AC_CONFIG_FILES([Makefile sqlite3.scm])
+-- 
+2.17.1
+
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:52 2019
Received: from localhost ([127.0.0.1]:35478 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQF-0000VL-E8
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:52 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:34114)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQB-0000Tf-2y
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:47 -0400
Received: by mail-wr1-f47.google.com with SMTP id a11so18930192wrx.1
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=f9d2DupjaRkm32OV4QRDWYYLU6ZUt74gh28I9p+wHu4=;
 b=XC54AODPrhYgKHwAP6sm1fRm6mTuOMoIbvwreFtELQb2zGdB5BviUszbyTEj+pMpQ5
 U+wLJQk/nCTV29hIFi986iakSdfR5V/dr10JBX67rwrmUaYTMA8O4J/ZfgikrN2eNin1
 nG7ZIZIYM5gwm0BQlqX8FnJEnRkeXkYJeYBSBnpDzxW1J8AEL1SEMUTKZSYVQOVJpVNa
 rjKSo3ieZoRXb/xjOPee6F5B7+JxMFGgLKtpXii4pW2oHDScrkmxJWCfVaWi27++Glei
 ACAnnlWBiFnxDDgeAcaq0Iv0ef2ZIthRdDrWSQPTTFwk9xYZI+Y4yXPUBuUzE3v+TrnR
 dARw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=f9d2DupjaRkm32OV4QRDWYYLU6ZUt74gh28I9p+wHu4=;
 b=jXusHAlYIl+wtb8EdEaa8SKTfQW5c1z8JVbbumdAWxG7AvqyCKXkfAKoM7uwUVTYgI
 VAu0P21LBPDawwbwXLSGfzBLaPFQuSeGt3SbsUADvwKKBt5I+hL0kiEVxGXEId+xATK1
 EPx9LXXJvrVBh3Nqtm+U+xh5IrUk9iRqvuWX0nju9qXB/N8UtDoyVrNRF2JO+HF8kexA
 hAeHm1fmWRB5p1N5JaK23NfaypJsrTE6p+Db+zSv1LiGPUCmip9rc9+pbd4VHyh92Gid
 shkAg1yvMzIe1Cs0Pz+tVB8elUmFljfeizwxZZ/vX7IX8QID1A7MgaOD76N4Tk9tSgpk
 2DjA==
X-Gm-Message-State: APjAAAUrbO3OTmgmwEiFwh4nmGt0Pv1vR1r64C1+EPCpPSRXxrlc3v9M
 0e3bNoJFYzPmURKDetDa6DkBecxh
X-Google-Smtp-Source: APXvYqyuwa4pFCvXz7/MJ0NGZZWjnEMViSHA5GCiBEmmpH4u1IJAWVDfIFD36W9N4FGvhsZ+IY6ZFg==
X-Received: by 2002:adf:df91:: with SMTP id z17mr1976739wrl.116.1570010381081; 
 Wed, 02 Oct 2019 02:59:41 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.39
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:40 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 16/23] gnu: crda: Fix cross-compilation
Date: Wed,  2 Oct 2019 11:58:57 +0200
Message-Id: <20191002095904.6325-17-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/linux.scm (crda)[arguments]: Patch Makefile to use cross
pkg-config when cross-compiling. Also search for wireless-regdb in both
native-inputs and inputs. Set CC variable to cross-compiler when
cross-compiling.
---
 gnu/packages/linux.scm | 67 ++++++++++++++++++++++++++----------------
 1 file changed, 42 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 8ba3c7d9db..177c8f44ed 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2810,13 +2810,23 @@ interface.")
               (patches (search-patches "crda-optional-gcrypt.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
+     `(#:phases (modify-phases %standard-phases
                   (delete 'configure)
                   (add-after 'unpack 'gzip-determinism
                     (lambda _
                       (substitute* "Makefile"
                         (("gzip") "gzip --no-name"))
                       #t))
+                  ,@(if (%current-target-system)
+                        '((add-after
+                            'unpack 'fix-pkg-config
+                            (lambda* (#:key target #:allow-other-keys)
+                                     (substitute*
+                                       "Makefile"
+                                       (("pkg-config")
+                                        (string-append target "-pkg-config")))
+                                     #t)))
+                        '())
                   (add-before
                    'build 'no-werror-no-ldconfig
                    (lambda _
@@ -2826,37 +2836,44 @@ interface.")
                      #t))
                   (add-before
                    'build 'set-regulator-db-file-name
-                   (lambda* (#:key inputs #:allow-other-keys)
+                   (lambda* (#:key native-inputs inputs #:allow-other-keys)
                      ;; Tell CRDA where to find our database.
-                     (let ((regdb (assoc-ref inputs "wireless-regdb")))
+                     (let ((regdb (assoc-ref (or native-inputs inputs)
+                                             "wireless-regdb")))
                        (substitute* "crda.c"
                          (("\"/lib/crda/regulatory.bin\"")
                           (string-append "\"" regdb
                                          "/lib/crda/regulatory.bin\"")))
                        #t))))
        #:test-target "verify"
-       #:make-flags (let ((out   (assoc-ref %outputs "out"))
-                          (regdb (assoc-ref %build-inputs "wireless-regdb")))
-                      (list "CC=gcc" "V=1"
-
-                            ;; Disable signature-checking on 'regulatory.bin'.
-                            ;; The reason is that this simplifies maintenance
-                            ;; on our side (no need to manage a distro key
-                            ;; pair), and we can guarantee integrity of
-                            ;; 'regulatory.bin' by other means anyway, such as
-                            ;; 'guix gc --verify'.  See
-                            ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
-                            ;; for a discssion.
-                            "USE_OPENSSL=0"
-
-                            (string-append "PREFIX=" out)
-                            (string-append "SBINDIR=" out "/sbin/")
-                            (string-append "UDEV_RULE_DIR="
-                                           out "/lib/udev/rules.d")
-                            (string-append "LDFLAGS=-Wl,-rpath="
-                                           out "/lib -L.")
-                            (string-append "REG_BIN=" regdb
-                                           "/lib/crda/regulatory.bin")))))
+       #:make-flags (let ((out     (assoc-ref %outputs "out"))
+                          (regdb   (assoc-ref %build-inputs "wireless-regdb"))
+                          (target ,(%current-target-system)))
+                      (list
+                       (string-append
+                        "CC=" (if target
+                                  (string-append target "-gcc") "gcc"))
+                       "V=1"
+
+                       ;; Disable signature-checking on 'regulatory.bin'.
+                       ;; The reason is that this simplifies maintenance
+                       ;; on our side (no need to manage a distro key
+                       ;; pair), and we can guarantee integrity of
+                       ;; 'regulatory.bin' by other means anyway, such as
+                       ;; 'guix gc --verify'.  See
+                       ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
+                       ;; for a discssion.
+                       "USE_OPENSSL=0"
+
+                       (string-append "PREFIX=" out)
+                       (string-append "SBINDIR=" out "/sbin/")
+                       (string-append "UDEV_RULE_DIR="
+                                      out "/lib/udev/rules.d")
+                       (string-append "LDFLAGS=-Wl,-rpath="
+                                      out "/lib -L.")
+                       (string-append "REG_BIN=" regdb
+                                      "/lib/crda/regulatory.bin")
+                       "all_noverify"))))
     (native-inputs `(("pkg-config" ,pkg-config)
                      ("python" ,python-2)
                      ("wireless-regdb" ,wireless-regdb)))
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:51 2019
Received: from localhost ([127.0.0.1]:35473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQC-0000V7-BU
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:48 -0400
Received: from mail-wm1-f54.google.com ([209.85.128.54]:51815)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQA-0000TZ-03
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:47 -0400
Received: by mail-wm1-f54.google.com with SMTP id 7so6492551wme.1
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=bMZVx5p0lHmdJ0EPD5SDFt3TVr+vXSj9rkCXvPV1yGc=;
 b=PmhWya3N0X87//IIE7Kg/4neDOjybwCcQDoAVbc3fuAU39MPR9endGGDCJdQ/n6W82
 1SWI0InXMBlDlhBIxgtxSuXNb6mujH90/OdQW/t1NmlcLXL7rae5hTGtKKUKhJRf7R+2
 DSw6C3zzSGoYcDXi04Bb3VZOkRSJws5F8XJPs4PYkkGmuMQaolD1crneaDZFou76Eqdq
 zBYPhTtEo2yNilDtCzorhgJg0bmq9czRB9cr3HeQdnfzaU16YpBdcj9Em818EogAZSoi
 LSGuwnXUFKwwtl7elPRrYfogk18v1cyYtQKCwR+fBqAvQIyKzQ+exgfloOR58ExTJjFb
 gQyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=bMZVx5p0lHmdJ0EPD5SDFt3TVr+vXSj9rkCXvPV1yGc=;
 b=d+7aFNoQmQiX3zsWba8pUaEy7i/Wuirx26jtrej1le42Qfsu91vJbx7/cPxTB5Vp69
 pG07mlvG7kRUwR8pFhlqSroaP8OdO5Y/qYdeK+jBYngvep+NzKWwCm2jy5v0bmTYrYNx
 Ej8ZahkzZ/wEUXjARlNHqeBUFeIHR0K9OC0W0ln0GiZxUCoj5hn1GyPnsE+EqvJr+r9w
 l3HPJWMujGy7yQ89NLh+TQjlnhmOvFRznjeU7OJSL6YRUI3Ld4iXQORNiIltSljksEcM
 ByW8j6MVajF/1PXHmx/rMTzcVTTp6JWRR5QklBcEROxLQVlnKVdzYXWAz+Ttj3PMH1pu
 BM6Q==
X-Gm-Message-State: APjAAAVFEDRnEX0nFYp3zmfIYPuDXKLo+M3HdUjiDu+lsluFiUuSv5be
 qj6XIkHHoGHhsX8abVxaUckdZiOX
X-Google-Smtp-Source: APXvYqyvr08FuyB6/YN6GMR/cymk4lhli0vlwMLeEhRQemRmM/V7w6JBIqbUd/1fTWagmDAiLBa0Tg==
X-Received: by 2002:a1c:3b06:: with SMTP id i6mr2161128wma.6.1570010379913;
 Wed, 02 Oct 2019 02:59:39 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.38
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:39 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 15/23] gnu: libnl: Move python outputs to separate packages.
Date: Wed,  2 Oct 2019 11:58:56 +0200
Message-Id: <20191002095904.6325-16-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Cross compiling python extensions is currently broken. To allow libnl
cross compilation, move its python2 and python3 outputs to separate
packages.

* gnu/packages/linux.scm (libnl)[outputs]: Remove python2 and python3
and replace by ...
(libnl-python-package):  ... this new procedure,
(libnl-python2, libnl-python3): new variables.
---
 gnu/packages/linux.scm | 66 +++++++++++++++++++++++++++---------------
 1 file changed, 43 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c40072a706..8ba3c7d9db 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1953,35 +1953,18 @@ transparently through a bridge.")
                  "/libnl-doc-" version ".tar.gz"))
            (sha256
             (base32 "19p5y8q3cm5wqvamqc4s5syxnnkvzxy3gw8ivxk6fv9ybn8jm35h"))))))
-    (inputs
-     `(("python-2" ,python-2)
-       ("python-3" ,python-3)))
-    (outputs '("out" "doc" "python2" "python3"))
+    (outputs `("out" "doc"))
     (arguments
-     `(#:modules ((guix build gnu-build-system)
-                  (guix build utils)
-                  (srfi srfi-1))
-       #:phases
+     `(#:phases
        (modify-phases %standard-phases
-         (add-after 'install 'install-python
-           (lambda* (#:key outputs #:allow-other-keys)
-             (define (python-inst python)
-               (invoke python "setup.py" "build")
-               (invoke python "setup.py" "install"
-                       (string-append "--prefix="
-                                      (assoc-ref %outputs python)))
-               (invoke python "setup.py" "clean"))
-             (setenv "LDFLAGS" (format #f "-Wl,-rpath=~a/lib"
-                                       (assoc-ref %outputs "out")))
-             (with-directory-excursion "./python"
-               (for-each python-inst '("python2" "python3")))
-             #t))
          (add-after 'install 'install-doc
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
              (let ((dest (string-append (assoc-ref outputs "doc")
                                         "/share/doc/libnl")))
                (mkdir-p dest)
-               (invoke "tar" "xf" (assoc-ref inputs "libnl3-doc")
+               (invoke "tar" "xf" (assoc-ref
+                                   (or native-inputs inputs)
+                                   "libnl3-doc")
                        "--strip-components=1" "-C" dest)))))))
     (home-page "https://www.infradead.org/~tgr/libnl/")
     (synopsis "NetLink protocol library suite")
@@ -1996,6 +1979,43 @@ configuration and monitoring interfaces.")
     ;; 'nl-addr-add.c'), so the result is GPLv2-only.
     (license license:gpl2)))
 
+;; libnl python extensions used to be outputs of libnl. However, as
+;; cross-compiling python extensions is currently broken, create separate
+;; packages for libnl python extensions.
+(define (libnl-python-package python)
+  (let ((name (string-append "libnl-" python)))
+    (package
+      (inherit libnl)
+      (name name)
+      (inputs `(,@(cond
+                   ((string=? python "python2")
+                    `(("python-2" ,python-2)))
+                   ((string=? python "python3")
+                    `(("python-3" ,python-3))))))
+      (propagated-inputs `(("libnl" ,libnl)))
+      (outputs '("out"))
+      (arguments
+       `(#:modules ((guix build gnu-build-system)
+                    (guix build utils)
+                    (srfi srfi-1))
+         #:phases
+         (modify-phases %standard-phases
+           (replace 'install
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (define (python-inst python)
+                 (invoke python "setup.py" "build")
+                 (invoke python "setup.py" "install"
+                         (string-append "--prefix="
+                                        (assoc-ref %outputs "out")))
+                 (invoke python "setup.py" "clean"))
+               (setenv "LDFLAGS" (format #f "-Wl,-rpath=~a/lib"
+                                         (assoc-ref inputs "libnl")))
+               (with-directory-excursion "./python" (python-inst ,python))
+               #t))))))))
+
+(define-public libnl-python2 (libnl-python-package "python2"))
+(define-public libnl-python3 (libnl-python-package "python3"))
+
 (define-public iw
   (package
     (name "iw")
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:47 2019
Received: from localhost ([127.0.0.1]:35470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQB-0000Uk-1W
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:47 -0400
Received: from mail-wm1-f49.google.com ([209.85.128.49]:54169)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQ7-0000TP-Ls
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:44 -0400
Received: by mail-wm1-f49.google.com with SMTP id i16so6486021wmd.3
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=CovSUVE41W6pB7EhrSzsWrDAGHgc8VxWxwN42Sriczc=;
 b=rgGTMSXSDmbIUDunwmyp2gT/5R+RXsJFGBJ7Tc6GBgPG1tj1fgu+N+iHWLY+wyl2jt
 5k0JTS0qVSgq8DRiIoCCxehvvFZC59G/41NXx5I5yEBOaadLELqTIl1BFH2urigUSrAQ
 Z14uhq1LtD9tYttoRH4tctucE/2AQ3qQm0AUHEslgOMD6jwFUsmRtAl/fG7qwmFFMOXX
 GGLH9vYfIXOT/Pz1mvblHDvnGIHzrMfiThHOTM/I9p/7lHDdvFWSyfAP5oAKFa3JoOjA
 7naZ28W/ikgOdqAMdguiyf0AAwKLhbQh/1nsI7DRb75e4zeVXcqwFjRWnlPEa99UfekR
 Kp0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=CovSUVE41W6pB7EhrSzsWrDAGHgc8VxWxwN42Sriczc=;
 b=iCe9r12oM1C1pczXniYJxc8rw83tT3n+rAZCCylMrNrZIhCL/SrKqj9O/ubyZylBBl
 Fi8DvwdPw6ZcQ7zF7rYL6gThgSW8vE/OqvI2ZIgfl/ENHzyj4gpKXOeBvFqHCgVjCdO6
 NjG6eWPTyT7Ah8pVbZQkFlwD0OdkMeaEMactD0LRDtorL/dTXnZWlbPbg5S7GnCAwC+f
 SfrbR9FqiHOhD1B7kfkaa7riPvBE8CFZ8doCxpWyoxtOC3E7gWK3v252LcKllbyI051Z
 at9+40AIc3S6Ls3vAEmFg0VgngiOrVTPQqF2lalydnSHxyZOilJanTM++NWfPo8cuABs
 4F4A==
X-Gm-Message-State: APjAAAUgCEZqtSNK7tAf9yVr75MSBCLFMm1cZ9xlQj3u6/pcdhnEUG35
 +PVqTQhyKOTZQnhJ5g/yW6I9oHbn
X-Google-Smtp-Source: APXvYqyVfqMivvHyt5jXvZdXJVXplqgAQ38ZRdWFvHFayesFA1SxwniNlqb1H5IMV6GFwvsz2OXTtw==
X-Received: by 2002:a1c:5f0b:: with SMTP id t11mr2210528wmb.76.1570010377612; 
 Wed, 02 Oct 2019 02:59:37 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.33
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:34 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 13/23] gnu: guile-gcrypt: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:54 +0200
Message-Id: <20191002095904.6325-14-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/gnupg.scm (guile-gcrypt) [native-inputs]: Add guile,
[arguments]: add libgcrypt-config to PATH when cross-compiling.
---
 gnu/packages/gnupg.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 4acc434093..9ec51d8201 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Marius Bakke <mbakke@HIDDEN>
 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -479,11 +480,26 @@ gpgpme starting with version 1.7.")
                 "1mhc5m4xygkfj7x18f8apiqpfdn9mrql0am5sk13cf5xn8x1r63z"))
               (file-name (string-append name "-" version "-checkout"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; When cross-compiling, the bash script libgcrypt-config provided by
+     ;; libgcrypt must be accessible during configure phase.
+     `(,@(if (%current-target-system)
+             '(#:phases
+               (modify-phases %standard-phases
+                 (add-before 'configure 'add-libgrypt-config
+                   (lambda _
+                     (setenv "PATH" (string-append
+                                     (assoc-ref %build-inputs "libgcrypt")
+                                     "/bin:"
+                                     (getenv "PATH")))
+                     #t))))
+             '())))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("autoconf" ,autoconf)
        ("automake" ,automake)
-       ("texinfo" ,texinfo)))
+       ("texinfo" ,texinfo)
+       ("guile" ,guile-2.2)))
     (inputs
      `(("guile" ,guile-2.2)
        ("libgcrypt" ,libgcrypt)))
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:47 2019
Received: from localhost ([127.0.0.1]:35468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQA-0000UY-9v
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:46 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:34099)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQ3-0000Su-TN
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:40 -0400
Received: by mail-wr1-f50.google.com with SMTP id a11so18929754wrx.1
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=O7WDndBJ1aLxKx6MpzWhA5cZiJAOjz++YxyVIEdRMec=;
 b=nY71PqnkV5S81dVvIlYoSfPCkOXG5F7Z7gVqUTe/eApwQbl+65hsb0RUAyACuZAkMX
 2PNWOE+L38GGH1gnAvWxRYAPmT/Q2O5Va+zFEVkiYyR+BU9TZG97erkmH9xaZOBSU4Yd
 ER9gc+xtOa6rjSoU+CmkXshmyD3ZPcONQKWLLqSk552lURjiWW3eamKg+Jyw1LvSQ7rz
 xumpdgmIDy92KZzS3/rNRM8Nf1ha+gf0De4BYXGHwIsIR9SsfZck2782UFAI5bM9Easd
 fpJICWNMydDM4j4rs9Xf3hL8LxAN3U0v9KUElwRII/9EdBDdpkNqN8nim3MCtFE8pHdr
 QEzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=O7WDndBJ1aLxKx6MpzWhA5cZiJAOjz++YxyVIEdRMec=;
 b=V6AIbD6xuCij/YxfAQIPfM3WPRw1S45aBEOAhWxzDu1upeq6yZmQhWq5N4XMLDbG10
 2Tu5X1wyMoKc45h94u2B3Q45TY9k2ahPrfPL0YFFn7vLCE1sHoMVknUoY6KLMnvfuHRF
 5yM5/6OjnldjRz5Wby3ftI4/9SnUCFNDLSBzQiyr01qSJvQtscu+RLu+knnzmKHbcAiP
 jth9UP8g8HLtQD+ND5x7EAsyrkY7bjrN6+mfQy6TE7gpu1gyxmVcCEka/wAOi/tvNIbb
 NVOo0bsEb/SaHwiC0xwC+/47xDwZR4vQCKScI6vrhJfNowolHbAkR6embrdlIr+LN3hv
 0hHg==
X-Gm-Message-State: APjAAAU7N1Zn+ac+Rx1ztwRqqR1JQKUXLVa0gEOuIx9kqTC8PBUAYikB
 KtD5a59nl5cMmOgPHnHTAdlOkS9C
X-Google-Smtp-Source: APXvYqwojMdDB8mrOeeBv6HIN2t7imkJiSuZZdthLRWP/aESjDQzRq92G5PEkUJQ9F0aJFb85Kyrvg==
X-Received: by 2002:adf:f190:: with SMTP id h16mr1332191wro.357.1570010373819; 
 Wed, 02 Oct 2019 02:59:33 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.31
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:32 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 12/23] gnu: doxygen: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:53 +0200
Message-Id: <20191002095904.6325-13-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/documentation.scm (doxygen)[arguments]: Force cmake to use
iconv.h from cross-libc.
---
 gnu/packages/documentation.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 19c42b00eb..eda8ca3368 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2017 Kei Kebreau <kkebreau@HIDDEN>
 ;;; Copyright © 2017 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -31,6 +32,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages python)
   #:use-module (gnu packages bison)
@@ -145,7 +147,15 @@ markup) can be customized and extended by the user.")
     (inputs
      `(("bash" ,bash-minimal)))
     (arguments
-     `(#:test-target "tests"
+     ;; Force cmake to use iconv header from cross-libc instead of the one
+     ;; from native libc.
+     `(,@(if (%current-target-system)
+             '(#:configure-flags
+               (list (string-append "-DICONV_INCLUDE_DIR="
+                                    (assoc-ref %build-inputs "cross-libc")
+                                    "/include")))
+             '())
+       #:test-target "tests"
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'patch-sh
                               (lambda* (#:key inputs #:allow-other-keys)
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:46 2019
Received: from localhost ([127.0.0.1]:35465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQA-0000UR-0i
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:46 -0400
Received: from mail-wr1-f45.google.com ([209.85.221.45]:36240)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQ2-0000Sn-7N
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:38 -0400
Received: by mail-wr1-f45.google.com with SMTP id y19so18915822wrd.3
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=JBAmS30eGz9uKxS+VCM5cx8on0WnEsVZH7Tw8ALKKPg=;
 b=ZHwVzFAjP8JptVDPu+3zD7AoChgRr+ItzFeaJrBOwn3gy8FsTv4UHoFvIXhP83wvKk
 q2n1qw6HJLNkWdXcCGRULUl7uqvIWGigYKIAWzrKsxhzIMaCzoxruFX6PrOc/S0YY0vi
 hmAA3+B791tvz8EC3q1mmjIB+5VDJjS2wf/T+3AhT4z5Vm2TDDHjM+mxUoCrCxgGETWY
 Xs727l6PnylN3YRqnzyovTlnjYUR1BLT9a9SOnLyBIF5IVhv1qDi/CeZ5bzLS0Pg1Yip
 +DgzYg6tneUmgBJhxvfK3gfef4gAq9yE066CFm5w+QL7mZ0XOCJzV6X4B6t4+/b4L0gj
 Lexg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=JBAmS30eGz9uKxS+VCM5cx8on0WnEsVZH7Tw8ALKKPg=;
 b=lWFSoBPQudTMhny6PZ5Va2kveMTfdczdmuWhLkxYYMYzigrzPfCj4COnlMhV3C0Tut
 n4SPZZGAnm5O9DVrw4G1H6VX+ZvDVSbQl4AiSIy2mWPZsQqxod7Y+ksRNEPTFM7efjBE
 8BmKb7dQ8dWSK+WUexewvXE8iCpENUjU0BrUylnv4cunt/G/c1LIFNj/ZcdWrY8K+/e0
 Quz/dSJPckpLd4kJjbponbICWYoeSHQLyx074fkYlsOebYkxo0jkAknxtt5cRrFkPhYl
 FdyoUDwtrxae4ATB09+qVq99sAcgSpingnwHUlERj9E84tv5S2EqKCeyXYrLgU07n5Rq
 aTPw==
X-Gm-Message-State: APjAAAVcDc3fCjfQDJ1JIl7ygT0cy+FUpZJkhKYp8R/WKBVePKfXyQH6
 oA6viI7perX0mR8wMl5Xei1Td0Wk
X-Google-Smtp-Source: APXvYqwSKdv76qHF1XhuF3TLMrLSWo1CHUd2lDR9iJd0RbE/8FhoiNstxTto864hzcHTUa+mpHyFXQ==
X-Received: by 2002:a5d:52c5:: with SMTP id r5mr1991475wrv.160.1570010371394; 
 Wed, 02 Oct 2019 02:59:31 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.30
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:30 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 11/23] gnu: git: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:52 +0200
Message-Id: <20191002095904.6325-12-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/version-control.scm (git-cross-configure-flags): New variable,
(git)[arguments]: add it to configure-flags. Also add cross curl-config script
to PATH.
(git-minimal): Add previous variable to configure-flags.
---
 gnu/packages/version-control.scm | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 192fa666d9..947873e6d5 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -141,6 +141,10 @@ changes to project files over time.  It supports both a distributed workflow
 as well as the classic centralized workflow.")
     (license license:gpl2+)))
 
+(define git-cross-configure-flags
+  '("ac_cv_fread_reads_directories=yes"
+    "ac_cv_snprintf_returns_bogus=no"))
+
 (define-public git
   (package
    (name "git")
@@ -233,7 +237,10 @@ as well as the classic centralized workflow.")
       ;; absolute file name to 'wish'.
       #:configure-flags (list (string-append "--with-tcltk="
                                              (assoc-ref %build-inputs "tk")
-                                             "/bin/wish8.6")) ; XXX
+                                             "/bin/wish8.6")  ; XXX
+                              ,@(if (%current-target-system)
+                                    git-cross-configure-flags
+                                    '()))
 
       #:modules ((srfi srfi-1)
                  (srfi srfi-26)
@@ -250,6 +257,15 @@ as well as the classic centralized workflow.")
                               (remove (cut string-prefix? bash-full <>) path)
                               ":"))
               #t)))
+        ;; Add cross curl-config script to PATH when cross-compiling.
+        ,@(if (%current-target-system)
+              '((add-before 'configure 'add-cross-curl-config
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (setenv "PATH"
+                             (string-append (assoc-ref inputs "curl") "/bin:"
+                                            (getenv "PATH")))
+                     #t)))
+              '())
         (add-after 'configure 'patch-makefiles
           (lambda _
             (substitute* "Makefile"
@@ -506,7 +522,10 @@ everything from small to very large projects with speed and efficiency.")
                   (string-append out "/share/gitweb"))
                  #t)))))
        ((#:configure-flags flags)
-        ''())
+        `(list
+          ,@(if (%current-target-system)
+                git-cross-configure-flags
+                '())))
        ((#:disallowed-references lst '())
         `(,perl ,@lst))))
     (outputs '("out"))
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:46 2019
Received: from localhost ([127.0.0.1]:35463 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQ9-0000UL-Ki
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:45 -0400
Received: from mail-wr1-f46.google.com ([209.85.221.46]:43705)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbQ0-0000SN-41
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:36 -0400
Received: by mail-wr1-f46.google.com with SMTP id q17so18895967wrx.10
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=197cZ6RhYY+WWluGjjSg/s3FT1d6jrEyDazsrJE0Uok=;
 b=pgwRgw2+NLdVdwXAlNa0xKsaas6yrEawUC8t1bvV9fqSVi/tdf7XjNfr1lP2P3bDpW
 6NNp3Q6r1ORwykzexZm7ly46t/El+lz6sL15T0wicxNY442CTxmBqV2WRoEtBPChOcoi
 hjq8eMZwjO/9vBMT3btp0JX/pvf+6byDpiJsFK0rhZiYGI/5IUp/T+ros3xGDw3r6bTD
 Guh1B3jMDZEdIoxyjL2MzOUVpkwv2QN2TE7yGNGgnF27M7uBkHrcj2i0D+vx2oj8mGSb
 rVtiwJXPG0MX5tCP7+dqpnn0hNj1e+DB5CO01bYm2zJBOHIHbyHa+eoWByJVrkckXS8G
 SNwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=197cZ6RhYY+WWluGjjSg/s3FT1d6jrEyDazsrJE0Uok=;
 b=q8mfWjbAS+0eca7mvH19CJad6ZPeULD5LC1hkYFiw1S6O4JmJniVQOZWg4AFrrn7NB
 BmyBVCwu+SQf2r2ta1Hgs/I2Uii2aYTNkHN2vPfmnKsUVZYDJQcHXlsGZMjCFQth8SPN
 p4NRTfOuHZbCjj80SOyHlQTIBNuEDcpAUyAa43jLTuIdbEYexN9XuKuGr46nLdXhrUXd
 Ev18B748c/GaOktdKWNjalhRDV3k6V8m38GZgPM868WRQT6GhRxczZMZukNni6Iu1t6Y
 KYSYrVuEwIbV7K+blb6RrWLVdHkGXQqKGBI+OHV+80EPPPmwGN2GluxpWrRPlTL5VeJz
 PQKA==
X-Gm-Message-State: APjAAAUsVh0PbacuN+pxMBldo/vV1Wi7Kg+hf8dI2GvKFnfqPfHlnRbG
 F4gzgnY5e+ucC54b77X8r1BFEvKG
X-Google-Smtp-Source: APXvYqw9kHWtkKGW1ZBg5W9AtnjtbdmquB9PGnF9o4rctn+tzb94O8WDe0jUhvYebEjoiIQlvdAQWw==
X-Received: by 2002:adf:f9ce:: with SMTP id w14mr2095803wrr.132.1570010370159; 
 Wed, 02 Oct 2019 02:59:30 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.28
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:29 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 10/23] gnu: swig: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:51 +0200
Message-Id: <20191002095904.6325-11-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/swig.scm (swig)[inputs]: Add pcre that is needed when cross-compiling.
---
 gnu/packages/swig.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/swig.scm b/gnu/packages/swig.scm
index b1b17fc68d..90d698a8b4 100644
--- a/gnu/packages/swig.scm
+++ b/gnu/packages/swig.scm
@@ -62,6 +62,7 @@
     (native-inputs `(("boost" ,boost)
                      ("pcre" ,pcre "bin")))       ;for 'pcre-config'
     (inputs `(;; Provide these to run the corresponding tests.
+              ("pcre" ,pcre)
               ("guile" ,guile-2.0)
               ("perl" ,perl)))
               ;; FIXME: reactivate input python as soon as the test failures
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:45 2019
Received: from localhost ([127.0.0.1]:35460 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQ8-0000UG-Vk
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:45 -0400
Received: from mail-wm1-f43.google.com ([209.85.128.43]:54642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPy-0000SA-VN
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:35 -0400
Received: by mail-wm1-f43.google.com with SMTP id p7so6485477wmp.4
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=fmVOYdeeqDuBBhwj3aZNr5DV6sPIrHGCeIwWQebuYIc=;
 b=lZ1WN6uwIwEv8B/+L8FLrmqcFIvmryZqXSEzYzJEIAYXXZnQDUIdxEow/rmd0arwwe
 ZPXKdOeBOGo0TnwN5C6w6D6/TR8Y1BiPufj/rtw4bJ5h15lp9rxgXUiO/C3/RpBLVhLH
 +JV8qo/WT3aeBhgor6mgqFfCEl7NJwY7x3IX3+yA7eSIbyfS2OnGqwpVFPIY+qyURzzy
 TYUQ+KgCiWz26AkH77NGaIaRtwqWQ8CHQWYrXrkAAmhfApdXhnAyCaSr0d5BUpnCztPv
 SO6bfg2Ug5ujk+hMc142zMJkMZQzL0H5WXjkemV8UECepZhKJMtGegI2uMMt/qir2Wfw
 fI4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=fmVOYdeeqDuBBhwj3aZNr5DV6sPIrHGCeIwWQebuYIc=;
 b=KIXiFproLSKq/GlYZirm8xlfBLSmDY5fc8NDDykHDDPSbM/dTrLESFv8bAGYK8Q+LA
 RoGYNqY6f7QTVNkN1lZ+ce+qu3WFXggzArVJSKOr7Kog12Iw1kdhSz1RKMel5ZbFrJgi
 uENw0rapMTH5ka6leylVZ1QTxqp7Xg9Fr/dm5+AVXuWfeX4/QdVkM25cmNRTa6Whg7yB
 q43QPqmL6vh+lUPkP2mRhUDYB9GeE0Q5oLa892gU71yzbVokkeIu6VfX2ICv9boBvpIZ
 XIy3N30DKSdibWRFCfGHQuBMC4HNJ6Bur3610f9xbhUq7g1hEevp+wJgfzwNkQv9V7T7
 x9yg==
X-Gm-Message-State: APjAAAV0cKAZHAO3vsJPG2UmjlOUK/MlhYZ98axLLSW6qyyFy3q6Srsn
 e6RtfGC+ebpVNHU4Knlzuudd/3Kc
X-Google-Smtp-Source: APXvYqwe9TCmgSvcuAVOgq3vAjF4OCuZyvNDJdwp7IhLOigYflqmQKzEHi7Cfj2OyiYHBQN0BG2F6A==
X-Received: by 2002:a05:600c:22d9:: with SMTP id
 25mr2028388wmg.133.1570010368860; 
 Wed, 02 Oct 2019 02:59:28 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.27
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:27 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 09/23] gnu: openldap: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:50 +0200
Message-Id: <20191002095904.6325-10-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/openldap.scm (openldap)[inputs]: Move groff from here to ...
[native-inputs]: ... here. Also add bdb and automake.
[arguments]: Add cross-compilation specific configure-flags. Do not strip when
cross-compiling. Add a new fix-configure phase to update outdated config.sub
and config.guess. Add a fix-cross-gcc phase to set CC variable to
cross-compiler name when cross-compiling.
---
 gnu/packages/openldap.scm | 38 +++++++++++++++++++++++++++++++++++---
 1 file changed, 35 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index 2f80920ed4..2c9b0d428e 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016 Leo Famulari <leo@HIDDEN>
 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +51,7 @@
   #:use-module (gnu packages)
   #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+ gpl3+ psfl))
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python))
@@ -79,16 +81,46 @@
    (inputs `(("bdb" ,bdb-5.3)
              ("cyrus-sasl" ,cyrus-sasl)
              ("gnutls" ,gnutls)
-             ("groff" ,groff)
              ("icu4c" ,icu4c)
              ("libgcrypt" ,libgcrypt)
              ("zlib" ,zlib)))
-   (native-inputs `(("libtool" ,libtool)))
+   (native-inputs `(("libtool" ,libtool)
+                    ("groff" ,groff)
+                    ("bdb" ,bdb-5.3)
+                    ;; For up to date 'config.guess' and 'config.sub'.
+                    ("automake" ,automake)))
    (arguments
     `(#:tests? #f
-      #:configure-flags '("--disable-static")
+      #:configure-flags
+      '("--disable-static"
+        ,@(if (%current-target-system)
+              '("--with-yielding_select=yes"
+                "ac_cv_func_memcmp_working=yes")
+              '()))
+      ;; Disable install stripping as it breaks cross-compiling.
+      #:make-flags '("STRIP=")
       #:phases
       (modify-phases %standard-phases
+        (add-after 'unpack 'fix-configure
+          (lambda* (#:key inputs native-inputs #:allow-other-keys)
+            ;; Replace outdated config.sub and config.guess:
+            (with-directory-excursion "build"
+              (for-each (lambda (file)
+                          (install-file (string-append
+                                         (assoc-ref
+                                          (or native-inputs inputs) "automake")
+                                         "/share/automake-"
+                                         ,(version-major+minor
+                                           (package-version automake))
+                                         "/" file) "."))
+                        '("config.sub" "config.guess")))
+            #t))
+        ,@(if (%current-target-system)
+              '((add-before 'configure 'fix-cross-gcc
+                  (lambda* (#:key target #:allow-other-keys)
+                    (setenv "CC" (string-append target "-gcc"))
+                    #t)))
+              '())
         (add-after 'install 'patch-sasl-path
           ;; Give -L arguments for cyrus-sasl to avoid propagation.
           (lambda* (#:key inputs outputs #:allow-other-keys)
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:44 2019
Received: from localhost ([127.0.0.1]:35458 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQ8-0000Ty-7g
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:44 -0400
Received: from mail-wm1-f53.google.com ([209.85.128.53]:50378)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPx-0000Rw-C6
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:33 -0400
Received: by mail-wm1-f53.google.com with SMTP id 5so6507257wmg.0
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=tFKhO97sjfpfswaeM5Wjh39FT3rexFnXrpbVJD2LEmw=;
 b=UaC+53KEGiB+Be04vTergzmDKHVq51VftOXkRbjzo/Rzi2osR/7ecEQ8lvD8Cu3PoJ
 E6B+ZwZhOGkBscJ4r6M/KKusE1Ri0H/B1KavMer/rmgUS9xSXTYoECyidX333UCgyUaX
 wKgdrNAjdxtygG+tH8xfrOvEEBiMJJ1PfOJGfWD/5sWhfRzhLNLzA3nAqpLlOsY+sEb9
 D9d9P8nJ6/epZi1VfUqqAWBY374tFvpCMeHKCpFt0tBmIQJCi9z+CjBzM15XBWhPtW1i
 ZoP/Vbzz6WRhnhztCE4FFVdIERkPv/7qdPmCvJsoywViqr/xLU7xbznoTGQ9o6KfMPIV
 t9+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=tFKhO97sjfpfswaeM5Wjh39FT3rexFnXrpbVJD2LEmw=;
 b=Tykdqr4uMJnzyrCHP2g88gIqfkk5efouApL3Dqz+KH7Wjr9URJrjR2QLq9zC1oWlf0
 Se99g7jXLmg2nqJ4hahrOBtKg6O22+F4uDeyeM8TYa+ZwcipjXQlYHUlzkzxqqSbGnzR
 XXTtxrdndHqwypDVgDZNuT+idjYwI8BRqc3NspmhZOY3iIMr8WhOXWKVvZKPfBwakGH0
 w6fDQ1wZocEZbo/frVLXBRiRT+R1C5c7Tfv3L3JC2/KvBIlnBKjyDArYE+GzmpoN3aSV
 PW61DICccb+GRa99PEaKWo8eB9yw/B5JGVmY3VsPoE8JWxkvlxtkqVu6lpP5tURxEqx2
 i7TA==
X-Gm-Message-State: APjAAAVVKqAkKbMXUuBE+8Ik83Bd0ISo+wVlgv5FLgZRE/sgsJNRAOQG
 leFl+lbNeXdZ9ifJvhtjzW61C/B3
X-Google-Smtp-Source: APXvYqyxMetv/yGRm58pAPK8HN3pJIIMHyiVlVwUoRG8TReA/etZzB7p0gW2rdF7hWGOd8tvliFQbA==
X-Received: by 2002:a1c:4846:: with SMTP id v67mr2159527wma.120.1570010367367; 
 Wed, 02 Oct 2019 02:59:27 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.25
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:26 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 08/23] gnu: bdb: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:49 +0200
Message-Id: <20191002095904.6325-9-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/dbm.scm (bdb-4.8)[arguments]: Pass host argument to configure
when cross-compiling.
---
 gnu/packages/dbm.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm
index 5191c475c2..84c5817a79 100644
--- a/gnu/packages/dbm.scm
+++ b/gnu/packages/dbm.scm
@@ -55,7 +55,7 @@
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
-           (lambda* (#:key outputs #:allow-other-keys)
+           (lambda* (#:key target outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))
                    (doc (assoc-ref outputs "doc")))
                ;; '--docdir' is not honored, so we need to patch.
@@ -74,6 +74,10 @@
                              '("--build=aarch64-unknown-linux-gnu")
                              '())
 
+                       ,@(if (%current-target-system)         ; cross building
+                             '((string-append "--host=" target))
+                             '())
+
                        ;; Remove 7 MiB of .a files.
                        "--disable-static"
 
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:44 2019
Received: from localhost ([127.0.0.1]:35455 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQ7-0000Tq-PV
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:44 -0400
Received: from mail-wr1-f44.google.com ([209.85.221.44]:45852)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPv-0000Rg-Vq
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:32 -0400
Received: by mail-wr1-f44.google.com with SMTP id r5so18857553wrm.12
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=vDUqeO/8QkaQqGbd8ampa/50/l6TlAdE2E92whWdgt0=;
 b=pOVjJhaE+Dc41x3fj/a36mRHXAZTHrpVzS46vTTUZ4tAtWNuhUXymUkAZWQad7Gc3e
 5MncNzi/JTvrFOqRh2k6W3hBAfjcu3yofPz3uVjQsvzGvN4dSXj5OEjWu1dI2XaqnxRY
 gF2fNrWB/V5ADC4RbV3qctO6Nac2EudtgfSBthqZ2LvLChYdHy507CoPGkB/5SVkqax7
 brogeRL8IMud4VQ615L7i8H890nvW7lqXquN8z1ORriHyczJaPpZDnL02KHQQsnjUxly
 qkrMAnUtJufg580WOMhC7sHiq4ULp491xvfJqzA3+dd8g+XgoL1j852DkQkSqNEDM1oO
 Q/ZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=vDUqeO/8QkaQqGbd8ampa/50/l6TlAdE2E92whWdgt0=;
 b=jFoqeYdQniyBcrv98cMhJFRrSVSIuVTQWb7Fe1kM+p8Nf1huejm8N6DG4Fj8INFbqb
 eGlCCnMVxmvsFTqqWHL49r3W9sNHAZFm4xzVoyao9FJYE4xHldvwOb0INGQWgaIIQg4c
 yOjSm6A2qpj3085Vy1FinLGyUflOwAIZ6Rvo19v+PJanKdw7PXB9alB0egBUM+cg6Z8f
 qGL828dCyYznXUlaTMybpXgrfYNoGyF7zAwmA7UWym0DixDHu8LGjdtSPDDmlnLFOJJv
 He9P/V2QiEHVIdI4LM5WX9mpLgLdvgxf1HSejloTVDXj5nUMcsFWbByzevFAs4ZjJmGn
 XuUg==
X-Gm-Message-State: APjAAAUpOwB46c0QaGiq0HXgmBd1izwZPE4AdpbV5Yo8aNgED3QVSDAK
 QDI/jS7j482mdF7bmjZb0kbYdTcu
X-Google-Smtp-Source: APXvYqzUh/MsLGMipnJQ41+liN/48NMZrA3TXlE2n+cQs+I6FicjX2HakcWF5sOosCcOJc/9d1RdJQ==
X-Received: by 2002:adf:f287:: with SMTP id k7mr2095246wro.206.1570010365972; 
 Wed, 02 Oct 2019 02:59:25 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.24
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:25 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 07/23] gnu: eudev: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:48 +0200
Message-Id: <20191002095904.6325-8-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (eudev)[arguments]: Look for xsltproc in both
native-inputs and inputs. Also, do not run udevadm when cross-compiling.

We need to find another way to generate hwdb.bin file for cross-built systems.
---
 gnu/packages/linux.scm | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 461c019d64..c40072a706 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2576,7 +2576,7 @@ from the module-init-tools project.")
               (patches (search-patches "eudev-rules-directory.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'make-source-writable
            (lambda _
@@ -2585,19 +2585,25 @@ from the module-init-tools project.")
              (for-each make-file-writable (find-files "."))
              #t))
          (add-before 'bootstrap 'patch-file-names
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
             (substitute* "man/make.sh"
               (("/usr/bin/xsltproc")
-                (string-append (assoc-ref inputs "xsltproc")
+               (string-append (assoc-ref
+                               (or native-inputs inputs) "xsltproc")
                                "/bin/xsltproc")))
             #t))
          (add-after 'install 'build-hwdb
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Build OUT/etc/udev/hwdb.bin.  This allows 'lsusb' and
              ;; similar tools to display product names.
+             ;;
+             ;; XXX: This can't be done when cross-compiling. Find another way
+             ;; to generate hwdb.bin for cross-built systems.
              (let ((out (assoc-ref outputs "out")))
-               (invoke (string-append out "/bin/udevadm")
-                       "hwdb" "--update")))))
+               ,@(if (%current-target-system)
+                     '(#t)
+                     '((invoke (string-append out "/bin/udevadm")
+                               "hwdb" "--update")))))))
        #:configure-flags (list "--enable-manpages")))
     (native-inputs
      `(("autoconf" ,autoconf)
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:43 2019
Received: from localhost ([127.0.0.1]:35451 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbQ0-0000TB-Dh
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:43 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:39986)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPv-0000Ra-3V
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:31 -0400
Received: by mail-wm1-f65.google.com with SMTP id b24so6251211wmj.5
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=1RaAbdaRDU7I3w4VSsxVX6OCnzGMJFsHT4wdA720YDI=;
 b=eiP09lbkOMVJwjBUf5yMGz4Zn59jcHxCySUPIpHxl3tkaJmllLhdMxbV8ig9fY8die
 94A0CI9jiPj44VT3ukFAJm5L+TonQ/0JIcyVom0jfM7SwI8SPyLTUskQhrAh4RRfsbVv
 y6pqrxF77Gqlw66fZvHjo1L3VNTDltGklRDEAnmxQfzB0zW2I5gmoTmNjVJJwitE/eyq
 6hVvHQ+TacQP0JMvAqxZ73GVQhLMYyU7hBA04jRaWXUDDKGIYiHPH4dQyEXdzZ4k/X1/
 dX15B7NeVIzbw4OUKsSUI1P0K6/wXg45Mzxr2YQKVj+U1z1DT6gSE8srX9ngwNolhh/N
 jbaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=1RaAbdaRDU7I3w4VSsxVX6OCnzGMJFsHT4wdA720YDI=;
 b=MIozPcqGfKwrN2/cbJ7QmFexZRgnKnmfv1TRHGW4j7M2FAqBIbZtm6P9b9yQzULPuY
 x6dc9sJSw9L9/antrvvi/GrvWrM9MeVPUsSUhXtVeuwzp0MMbsALYT4UBuXm3k/XZ46Y
 hiycGwwt/AKgO9zHdww9gU3xbv8uQZV09rhSjP74Uu0geAyxebIelmy5SPIwHix30FSd
 4iG8douzp3Qg/I2judVU7YiK0o7JR4cUV3BQIw89wiUPw3Q5p6h4qv16Y+Xwi+POLUF2
 J3asbbWVuaSzIKwKbwQuLtpF7bxsO3tvAYQ/k92lq5XzLMQNwaikIKYIrwrpQXB54sQy
 Vw4Q==
X-Gm-Message-State: APjAAAXKBLuY396DKh5bUgGYJarvPRMr5xmV3il6tSSBOEnA+ly2AV3h
 awBDqKhnt+8B4HeKyR837Rzscvii
X-Google-Smtp-Source: APXvYqzceoGLrhIBz0zTWBrJcftOmdp0UT+U9F8Ah/KgOQqMZvmspd60TgP+zN8ge35KGSjaxwgp8w==
X-Received: by 2002:a7b:cb8b:: with SMTP id m11mr2208922wmi.145.1570010364941; 
 Wed, 02 Oct 2019 02:59:24 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.24
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:24 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 06/23] gnu: boost: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:47 +0200
Message-Id: <20191002095904.6325-7-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/boost-dumpversion.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/boost.scm (boost)[source]: Apply it,
[native-inputs]: add python unless cross-compiling,
[arguments]: pass cross-compilation mandatory
flags and fill a user-config.jam file pointing to cross-compiler. Disable
python support that is broken when cross-compiling. Disable
provide-libboost_python when cross-compiling.
---
 gnu/local.mk                                 |  1 +
 gnu/packages/boost.scm                       | 59 +++++++++++++++-----
 gnu/packages/patches/boost-dumpversion.patch | 24 ++++++++
 3 files changed, 71 insertions(+), 13 deletions(-)
 create mode 100644 gnu/packages/patches/boost-dumpversion.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 3acb44e450..2ec5ffe29e 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -715,6 +715,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/binutils-loongson-workaround.patch	\
   %D%/packages/patches/blender-2.79-newer-ffmpeg.patch		\
   %D%/packages/patches/blender-2.79-python-3.7-fix.patch	\
+  %D%/packages/patches/boost-dumpversion.patch 			\
   %D%/packages/patches/byobu-writable-status.patch		\
   %D%/packages/patches/calibre-no-updates-dialog.patch		\
   %D%/packages/patches/calibre-remove-test-bs4.patch		\
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index a2253a9efc..4e1e68204f 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 ;;; Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -54,6 +55,8 @@
                            (string-append "https://dl.bintray.com/boostorg/release/"
                                           version "/source/boost_"
                                           version-with-underscores ".tar.bz2"))))
+              (patches
+               (search-patches "boost-dumpversion.patch"))
               (sha256
                (base32
                 "0y47nc7w0arwgj4x1phadxbvl7wyfcgknbz5kv8lzpl98wsyh2j3"))))
@@ -62,7 +65,9 @@
               ("zlib" ,zlib)))
     (native-inputs
      `(("perl" ,perl)
-       ("python" ,python-2)
+       ,@(if (%current-target-system)
+             '()
+             `(("python" ,python-2)))
        ("tcsh" ,tcsh)))
     (arguments
      `(#:tests? #f
@@ -76,7 +81,24 @@
 
              ;; Set the RUNPATH to $libdir so that the libs find each other.
              (string-append "linkflags=-Wl,-rpath="
-                            (assoc-ref %outputs "out") "/lib"))
+                            (assoc-ref %outputs "out") "/lib")
+             ,@(if (%current-target-system)
+                   `("--user-config=user-config.jam"
+                     ;; Python is not supported when cross-compiling.
+                     "--without-python"
+                     "binary-format=elf"
+                     "target-os=linux"
+                     ,@(cond
+                        ((string-prefix? "arm" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=32"
+                           "architecture=arm"))
+                        ((string-prefix? "aarch64" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=64"
+                           "architecture=arm"))
+                        (else '())))
+                   '()))
        #:phases
        (modify-phases %standard-phases
          (delete 'bootstrap)
@@ -94,6 +116,14 @@
                (setenv "SHELL" (which "sh"))
                (setenv "CONFIG_SHELL" (which "sh"))
 
+               ,@(if (%current-target-system)
+                     `((call-with-output-file "user-config.jam"
+                          (lambda (port)
+                            (format port
+                                    "using gcc : cross : ~a-c++ ;"
+                                    ,(%current-target-system)))))
+                     '())
+
                (invoke "./bootstrap.sh"
                        (string-append "--prefix=" out)
                        ;; Auto-detection looks for ICU only in traditional
@@ -108,17 +138,20 @@
          (replace 'install
            (lambda* (#:key make-flags #:allow-other-keys)
              (apply invoke "./b2" "install" make-flags)))
-         (add-after 'install 'provide-libboost_python
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out")))
-               ;; Boost can build support for both Python 2 and Python 3 since
-               ;; version 1.67.0, and suffixes each library with the Python
-               ;; version.  Many consumers only check for libboost_python
-               ;; however, so we provide it here as suggested in
-               ;; <https://github.com/boostorg/python/issues/203>.
-               (with-directory-excursion (string-append out "/lib")
-                 (symlink "libboost_python27.so" "libboost_python.so"))
-               #t))))))
+         ,@(if (%current-target-system)
+               '()
+               '((add-after 'install 'provide-libboost_python
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let ((out (assoc-ref outputs "out")))
+                        ;; Boost can build support for both Python 2 and
+                        ;; Python 3 since version 1.67.0, and suffixes each
+                        ;; library with the Python version.  Many consumers
+                        ;; only check for libboost_python however, so we
+                        ;; provide it here as suggested in
+                        ;; <https://github.com/boostorg/python/issues/203>.
+                        (with-directory-excursion (string-append out "/lib")
+                          (symlink "libboost_python27.so" "libboost_python.so"))
+                        #t))))))))
 
     (home-page "https://www.boost.org")
     (synopsis "Peer-reviewed portable C++ source libraries")
diff --git a/gnu/packages/patches/boost-dumpversion.patch b/gnu/packages/patches/boost-dumpversion.patch
new file mode 100644
index 0000000000..7df779cfe6
--- /dev/null
+++ b/gnu/packages/patches/boost-dumpversion.patch
@@ -0,0 +1,24 @@
+This issue is described here: https://github.com/openwrt/packages/pull/8685
+and has not been solved as of 1.70.0 release.
+
+--- a/tools/build/src/tools/common.jam
++++ b/tools/build/src/tools/common.jam
+@@ -973,18 +973,6 @@
+         }
+     }
+ 
+-    # From GCC 5, versioning changes and minor becomes patch
+-    if $(tag) = gcc && [ numbers.less 4 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+-    # Ditto, from Clang 4
+-    if ( $(tag) = clang || $(tag) = clangw ) && [ numbers.less 3 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+     # On intel, version is not added, because it does not matter and it is the
+     # version of vc used as backend that matters. Ideally, we should encode the
+     # backend version but that would break compatibility with V1.
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:36 2019
Received: from localhost ([127.0.0.1]:35448 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPz-0000T4-Td
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:36 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:55505)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPt-0000RS-Vy
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:31 -0400
Received: by mail-wm1-f68.google.com with SMTP id a6so6458586wma.5
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=fjXVKqA00qO5p1WiysL/bCpKHq9ohnRt2tYJ3t6RNNY=;
 b=UL68+YJ+PMvkIGKdgXrtvRnsNvfWU07MMJNtgUlBkjMq8XXJa8piPV1lgPfJwSEVg/
 nMeMLUDB8s23eTog4eQqJ7Z5TB5vsE2pRLsljl6skTR83QepkXj70gzTENxZcnyC31+F
 wKoDhm5Fzg+4dL+7LmfSEYWawFk6JePD5UjSHzZFJLhm+I4sC4ICyfSo/zKEqNRKGsN7
 39o5k7lJMAkp8vwvPoxW/pp6EtNhuhuswKfAablYzaH9WTld0IcW3zNVewxbbByec67b
 1mD7/x5GikhebqOHCRfMyNy+A+nXEQHeqZRQTq2BCUmhj22PHr2VjUM4sdPmSzIdBXpV
 n1mQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=fjXVKqA00qO5p1WiysL/bCpKHq9ohnRt2tYJ3t6RNNY=;
 b=a5Kb30J+vfIgLzzpV3kiUPrUT7LQipQCjIs4cBqfnzNJ/YpMpWbHCbQt5jtgUD1fwO
 ezOxox9DFZo2J5KsJemhW4X5znSto7TNNK/dgT0MY/0HO6DoT3ejTQM77W/vRMv6cEL/
 8RpHV431D5aVaE9EOHz5oQKhoSZUuUD7qHAdT/xpywIF3rWIQ8/Bq4jsGPz1aSlW4ZWB
 zreUAfVPH0YJo+ZWR8fboL5HwbrJQz2UoJDhUW7M9HqlBpGTXzXLGaTaVPaHNNypkgw/
 JXG5IuAcgaiceqVWpd7LP2qw+pSMMaBAdcp9ql+HNJLjkDGQXCMTM8yi5KEM5ZMDuxek
 SC+A==
X-Gm-Message-State: APjAAAWdH+yCgPGR7N/6HVtPSSXxMZAg4KJVJ0Gu576Gux57PjPrgAoH
 watk0FmX+8hPQI7z9ur3T4g1DDOZ
X-Google-Smtp-Source: APXvYqxA1N8JZqFxXRu2ZpcFUcwR0dlaTS3SdA73us62av2trfwXfHVaIwIcfaZGDZ0FexNkZrtqMg==
X-Received: by 2002:a1c:5fd6:: with SMTP id t205mr2139747wmb.124.1570010363981; 
 Wed, 02 Oct 2019 02:59:23 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.22
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:23 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 05/23] gnu: icu4c: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:46 +0200
Message-Id: <20191002095904.6325-6-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/icu4c.scm (icu4c-build-root): New variable.
(icu4c)[native-inputs]: Add it.
[arguments]: Pass it as a configure-flag.
---
 gnu/packages/icu4c.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 922dfbd348..c70871f7e7 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Clément Lassieur <clement@HIDDEN>
 ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@
   #:use-module (gnu packages python)
   #:use-module (guix licenses)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system ant)
   #:use-module (guix build-system gnu))
@@ -70,13 +72,23 @@
             (sha256
              (base32 "0v0xsf14xwlj125y9fd8lrhsaych4d8liv8gr746zng6g225szb2"))))
    (build-system gnu-build-system)
+   ;; When cross-compiling, this package needs a source directory of a
+   ;; native-build of itself.
    (native-inputs
-    `(("python" ,python-minimal)))
+    `(("python" ,python-minimal)
+      ,@(if (%current-target-system)
+            `(("icu4c-build-root" ,icu4c-build-root))
+            '())))
    (inputs
     `(("perl" ,perl)))
    (arguments
     `(#:configure-flags
-      '("--enable-rpath")
+      (list
+       "--enable-rpath"
+        ,@(if (%current-target-system)
+              '((string-append "--with-cross-build="
+                                (assoc-ref %build-inputs "icu4c-build-root")))
+              '()))
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'chdir-to-source
@@ -105,6 +117,25 @@ C/C++ part.")
    (license x11)
    (home-page "http://site.icu-project.org/")))
 
+(define-public icu4c-build-root
+  (package
+    (inherit icu4c)
+    (name "icu4c-build-root")
+    (arguments
+     (substitute-keyword-arguments (package-arguments icu4c)
+       ((#:tests? _ '())
+        #f)
+       ((#:out-of-source? _ '())
+        #t)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let ((out (assoc-ref outputs "out")))
+                 (copy-recursively "../build" out)
+                 #t)))))))
+    (native-inputs '())))
+
 (define-public java-icu4j
   (package
     (name "java-icu4j")
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:35 2019
Received: from localhost ([127.0.0.1]:35443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPw-0000Sb-2t
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:35 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:33306)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPs-0000RQ-Up
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:30 -0400
Received: by mail-wm1-f67.google.com with SMTP id r17so4541740wme.0
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=nFkg0qIbp35QLLEDNk6u85RA07fXG5PqFPTPaj94Las=;
 b=DRAWiSSsX+M2oH1uL87wRUeIigAiaKPpVW3W3OhkqTC2JOJbH/+Mfk/+ELXZD6Hc7Z
 C7Kc5bE+ro5KgSxW3ayZgzy0zDf5wU7dzpnIRabww/RKxBh7XBcgaetsvyKz0w6YZAnD
 SsnWwy63pFApLy/6he0R9v/J9i0jkYguoyDYhTqfLAdd1ZmSjDiz6AoTQ8vwTbDXVALJ
 9K0ttpuwKs1dVufylvpJrw6KMIyUV5GAl0IiU50c9Vd0+sX33uW6p9nCIrrgCI1LJjSa
 8z/tykDAIw7YU+NvH9k3GAHPN6neTJFbVI1I3fNS5XKK7siw+XptPjD4qz+XAK4adbJy
 Nf8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=nFkg0qIbp35QLLEDNk6u85RA07fXG5PqFPTPaj94Las=;
 b=TpXldJPEnUO0nce+UiHX54o7qV8Jsd99w+klGwqQAtYMwnRUENL2mKGsllInpHeEHW
 5NMK1rD4ySGUaLTZcP/m1yAh0YKdFQeJkAx3aE1jvwO6a4kYr0ZfLjSks3UfuoBL/S/L
 8JffhOa2XDUyM41+4cFADr2n1RQbpPCWZ4Rdlegkv/Gj4du6CJnnenIbbMvUxFwjhvMY
 dVJL5LIAATdtJ6c8YmsioY9Xg/wI4q0qj5AURfK973rFgBoZpEEsXqktcet5ygFBSbtc
 EFrSgg44SOQekCSkKf7myJ2d4/th/MDWN4R4GIgYpDNMoInFtpxgMMMToS+mO/gi4QxI
 PKfg==
X-Gm-Message-State: APjAAAW6pG4a+HlbsugxW/ib7knUeYGR42PYnlcjBhXsZOhKitgUlhpY
 WpapQAOvNLctvRpwVc0bOrWktqbQ
X-Google-Smtp-Source: APXvYqwJ9QHcHKbJGiC0bIZgn/x3mh0aS2fwSOePQRsUF23wRKJEaxfSTpxiQ1p56d+DYitd+mMiUw==
X-Received: by 2002:a1c:bc46:: with SMTP id m67mr2192826wmf.126.1570010362915; 
 Wed, 02 Oct 2019 02:59:22 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.21
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:22 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 04/23] gnu: cyrus-sasl: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:45 +0200
Message-Id: <20191002095904.6325-5-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[origin]: Apply it.
[native-tools]: Add autoconf, automake and libtool.
[arguments]: Run autoconf to apply m4 modification in patch above.
---
 gnu/local.mk                                    |  1 +
 gnu/packages/cyrus-sasl.scm                     | 17 +++++++++++++++--
 .../patches/cyrus-sasl-ac-try-run-fix.patch     | 12 ++++++++++++
 3 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index a1190af0db..3acb44e450 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -758,6 +758,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/cube-nocheck.patch			\
   %D%/packages/patches/cursynth-wave-rand.patch			\
   %D%/packages/patches/cvs-CVE-2017-12836.patch		\
+  %D%/packages/patches/cyrus-sasl-ac-try-run-fix.patch		\
   %D%/packages/patches/darkice-workaround-fpermissive-error.patch	\
   %D%/packages/patches/dbus-helper-search-path.patch		\
   %D%/packages/patches/dbus-c++-gcc-compat.patch		\
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index f84136e631..3e65a1faf6 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2013 Andreas Enge <andreas@HIDDEN>
 ;;; Copyright © 2016 Leo Famulari <leo@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,6 +21,7 @@
 
 (define-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages dbm)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages tls)
@@ -41,8 +43,13 @@
                         "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-"
                         version ".tar.gz")))
             (sha256 (base32
-                     "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6"))))
+                     "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6"))
+            (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch"))))
    (build-system gnu-build-system)
+   (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
    (inputs `(("gdbm" ,gdbm)
              ("openssl" ,openssl)))
    (propagated-inputs
@@ -57,7 +64,13 @@
       ;; 'plugin_common.c'.  When building the shared libraries there, libtool
       ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can
       ;; fail with EEXIST when building things in parallel.
-      #:parallel-build? #f))
+      #:parallel-build? #f
+
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'autogen
+          (lambda _
+            (invoke "autoreconf" "-vif"))))))
    (synopsis "Simple Authentication Security Layer implementation")
    (description
     "SASL (Simple Authentication Security Layer) is an Internet
diff --git a/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
new file mode 100644
index 0000000000..8662e812e9
--- /dev/null
+++ b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
@@ -0,0 +1,12 @@
+--- a/m4/sasl2.m4	2018-11-18 22:33:29.902625600 +0300
++++ b/m4/sasl2.m4	2018-11-18 22:33:59.828746176 +0300
+@@ -339,7 +339,8 @@
+ ],	
+ 	[ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
+ 	AC_MSG_RESULT(yes) ],
+-	AC_MSG_RESULT(no))
++	AC_MSG_RESULT(no),
++    AC_MSG_RESULT(no))
+   LIBS="$cmu_save_LIBS"
+ 
+ else
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:32 2019
Received: from localhost ([127.0.0.1]:35441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPv-0000SU-ON
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:32 -0400
Received: from mail-wm1-f47.google.com ([209.85.128.47]:54629)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPr-0000RO-UT
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:28 -0400
Received: by mail-wm1-f47.google.com with SMTP id p7so6485050wmp.4
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=I2r7lgWbIpNroSEdP6SwJdKsGrlgbLjO8ONRgr2+d6U=;
 b=ZF0slDCb6rtLxzzbgPQ4774BdJQ06XyHtKCrGRO0P0U9nYBjuJ11oRh0G7q3V0idhC
 qKhgLvyMcmpn5+Uhg+ZtWiE8KJoKKvXAQaxPtpPv1AFckdSFBNAJ0IvZq8gan8+ScKz0
 FfizVPL3hXhVeEs1Cu95XLoNrhmUyuWDRvzvoh88aOEEGcusa9Mx3bYS5d0svsGaRS4x
 my6wy9F0LibRqIJPfJoifPiiNEn403s3TNTnkwVYkEv/get3lcKLmbJ9RpsTgOBzMSi6
 DmT+h+UjNF/8+E8ZUuuJ9xz5TIPlto4jriEgRwEOyoqLQlHqwOEs2aeNl4n9mzZXX2PL
 /2CA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=I2r7lgWbIpNroSEdP6SwJdKsGrlgbLjO8ONRgr2+d6U=;
 b=selIWkgk1KV4kvNFpvckHrsSMKjVIBGheFaJLrzv8qMHqv20CVQkDyJcHdfYW1FxIy
 zkg3iunr8j93CT609YdcK3cAKBSOLokCySXVb4XYWojsqbVzE4IBldEuCd3oUMdQ64Js
 Wm+Tb3cEuMxS9su5COU5ei/pB3wwUajrrItiKEu+PI202QoA00p3jc1lL4dl2QfkIcDz
 YjyUx0ictrtIjGQZFpu5oxRGLgnEn8U9FHh+gyGrlzoVOfg7C3wurZpLISwDVqOBChRq
 GR/6glxWzpCRlEhhAIkAEDWxisR7oNan7XpMuvEL2FXi56swOpAJVQLIaUmThkiOPOiK
 yQog==
X-Gm-Message-State: APjAAAV3uloZY+UQtESAh6CIYA+zyN9uDofkcIc90MJD47Qj9p8wyAk8
 X7NVNc6DdckG/Ht9XYCvuZH5Ywwl
X-Google-Smtp-Source: APXvYqwSbhxXqV/2NKePq6LZ1Egj8rYhyR2A+9HWCDvgdc260K6waFwFFvFebX9Yk360J9QOCmaPgA==
X-Received: by 2002:a1c:cfc9:: with SMTP id f192mr2047740wmg.85.1570010361911; 
 Wed, 02 Oct 2019 02:59:21 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.20
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:21 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 03/23] gnu: groff: Fix cross compilation.
Date: Wed,  2 Oct 2019 11:58:44 +0200
Message-Id: <20191002095904.6325-4-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/groff.scm (groff)[native-inputs]: Add self,
[arguments]: set GROFF_BIN_PATH and GROFFBIN variables when
cross-compiling.
(groff-minimal)[native-inputs]: Add groff.
---
 gnu/packages/groff.scm | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/groff.scm b/gnu/packages/groff.scm
index 98f17914bf..5fe353a901 100644
--- a/gnu/packages/groff.scm
+++ b/gnu/packages/groff.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2019 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2019 Eric Bavier <bavier@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -55,12 +56,28 @@
    ;; from 'inputs'.
 
    (inputs `(("ghostscript" ,ghostscript)))
-   (native-inputs `(("bison" ,bison)
+
+   ;; When cross-compiling, this package depends upon a native install of
+   ;; itself.
+   (native-inputs `(,@(if (%current-target-system)
+                          `(("self" ,this-package))
+                          '())
+                    ("bison" ,bison)
                     ("perl" ,perl)
                     ("psutils" ,psutils)
                     ("texinfo" ,texinfo)))
    (arguments
     `(#:parallel-build? #f   ; parallel build fails
+      ,@(if (%current-target-system)
+            `(#:make-flags
+              ;; In groff-minimal package, that inherits from this package,
+              ;; we'll need to locate "groff" instead of "self".
+              (let ((groff (or (assoc-ref %build-host-inputs "groff")
+                               (assoc-ref %build-host-inputs "self"))))
+                (list
+                 (string-append "GROFF_BIN_PATH=" groff)
+                 (string-append "GROFFBIN=" groff "/bin/groff"))))
+            '())
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'disable-relocatability
@@ -115,7 +132,8 @@ is usually the formatter of \"man\" documentation pages.")
     ;; Omit the DVI, PS, PDF, and HTML backends.
     (inputs '())
     (native-inputs `(("bison" ,bison)
-                     ("perl" ,perl)))
+                     ("perl" ,perl)
+                     ("groff" ,groff)))
 
     (arguments
      `(#:disallowed-references (,perl)
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:29 2019
Received: from localhost ([127.0.0.1]:35437 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPt-0000S9-Fq
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:29 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:39976)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPr-0000RM-71
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:27 -0400
Received: by mail-wm1-f66.google.com with SMTP id b24so6250971wmj.5
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=0/xKezzp3clIb0E78khCoupsd0kxknWZjL8IJ24f42k=;
 b=jKWU3/2o/Lcpu8T4NAaTFju/BkmBAMnvej1F70l9Qn3x8CzVTlJc6wq9b4wXHPXTgz
 qaaoHGc8/gzSQWub7Z+ByXMVS2AB6EkP0+fL01M3TcJI92GO4t1d0NqNhnE7c+WAyPFw
 xIFs9D1WTFkBy/GZv822U2f6szjBRBKqpBoO2Y5BjXg4Vtnh9JeQk/pfJgqPE6wnJ7xK
 MfdP82T3iua8AEUszilzBAswBnBy1qZJuWNT5Xwvde7nOp+i3sRyE+lY7/UJjNexQM7y
 DPf+6Mq5GEEinVMJbD1RUhPKNywLOf1aiHS8TqgMZEQzPmYWos+mGO2WAFXyW/XOcTOl
 u4Fg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=0/xKezzp3clIb0E78khCoupsd0kxknWZjL8IJ24f42k=;
 b=hlKITM0+fHYkZ1EwwnfXujMGPLA9PBlDyNgzGHugNl10fBfndwu5e49M2dfS9Vj8k1
 L/ovEt9NUXtrW1HPxHg0/581Y6gNBpxPGXvi7XuZuOdyX0jB7ZhulEEgcx/0PADTG9/b
 dmNVWDmps1mYoPFcWobnqu/oEncBJa8jb1HlJ48KIPTmUJFLCyytXHPuA61O2dAAXn3r
 I8SaurClyAPI//NUIsrcyExjmsS2tbhNwrb8+qUjmfv2f3TCugsjsXBhcz5UiDsxGt2A
 Dz5TEq5gDYgTLeXQWRmFmEprLurg8DxpOzp8A3YeRDch/OaWH3fHqLTkpnK1qD5KVxZb
 f5Zg==
X-Gm-Message-State: APjAAAXJNN92KV/4esjaT+VWQhEhnXBbG/7ZK01Lo0BuAFD9WGWXxHqr
 MWxX3s1y+jT6g3k0jmjy1b1CVZcB
X-Google-Smtp-Source: APXvYqwsL7ffgg/T0V1dgYA+KDAtzN7DzpS25wOtH9JYe7I79zr4Mu/SIwXdo9K/kNZl0q6y9uxVzg==
X-Received: by 2002:a1c:1f89:: with SMTP id f131mr2068291wmf.72.1570010360868; 
 Wed, 02 Oct 2019 02:59:20 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.19
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:19 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 02/23] gnu: cmake: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:43 +0200
Message-Id: <20191002095904.6325-3-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/cmake.scm (cmake-minimal-cross): New package.
* guix/build-system/cmake.scm (default-cmake): Add new target argument and use
it to select cmake-minimal or cmake-minimal-cross.
(lower): Pass target to default-cmake.
---
 gnu/packages/cmake.scm      | 8 ++++++++
 guix/build-system/cmake.scm | 9 ++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 64349be444..13252a9486 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -219,6 +219,14 @@ and workspaces that can be used in the compiler environment of your choice.")
                (append (search-patches "cmake-curl-certificates.patch")
                        (origin-patches (package-source cmake))))))))
 
+(define-public cmake-minimal-cross
+  (package
+    (inherit cmake-minimal)
+    (name "cmake-minimal-cross")
+    (native-search-paths '())
+    (search-paths
+     (package-native-search-paths cmake-minimal))))
+
 (define-public emacs-cmake-mode
   (package
     (inherit cmake)
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index ca88fadddf..aa0f4187ec 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -43,16 +43,19 @@
   `((guix build cmake-build-system)
     ,@%gnu-build-system-modules))
 
-(define (default-cmake)
+(define (default-cmake target)
   "Return the default CMake package."
 
   ;; Do not use `@' to avoid introducing circular dependencies.
   (let ((module (resolve-interface '(gnu packages cmake))))
-    (module-ref module 'cmake-minimal)))
+    (module-ref module
+                (if target
+                    'cmake-minimal-cross
+                    'cmake-minimal))))
 
 (define* (lower name
                 #:key source inputs native-inputs outputs system target
-                (cmake (default-cmake))
+                (cmake (default-cmake target))
                 #:allow-other-keys
                 #:rest arguments)
   "Return a bag for NAME."
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:28 2019
Received: from localhost ([127.0.0.1]:35434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPs-0000Rv-3J
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:28 -0400
Received: from mail-wr1-f54.google.com ([209.85.221.54]:36217)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPp-0000RK-Nu
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:26 -0400
Received: by mail-wr1-f54.google.com with SMTP id y19so18915118wrd.3
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=eNEcqbvCnwl3+DTASpixa1L+oCaYc/dkJ5rb6f0iszo=;
 b=JaVFgn6KTjSn5mWfLzTHGTInD+MIkcTmv2InJCMgELxxo1anWYTj+zBw53+xbWKSLd
 aPPlwiAr1Z7cvvmYBasS2FYkgomLy6171NkEcG62FHx1P/wbsLEi1NdO3pc0X2CEQyqD
 A7bpwB5V8/MQQ6HJH5OHbxUHQC0YBNqG5JDZsr94pS5+KheEa5ds5rOdecpJNwfCmCPC
 nHTVVpKDedAnrOPMO4KGob6fXZhRYZiBXKKIGiHgQVCeNarFqyokx5pibAbQTXexM/rD
 jRwSx/I1BIWtE+6bRVcsjaSxWOK5KTm2+sCULXKCaPl63UsgYeoT2ok9Fi/lSDNzr0A2
 +WEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=eNEcqbvCnwl3+DTASpixa1L+oCaYc/dkJ5rb6f0iszo=;
 b=ULy5e0MaXNQ1m4sxnzPLq4V8tHcUcTgfPXcnT6IE6iBxfiU+QTEizL0fL7GMlkKetx
 tXr+oP7v568auZaCxe4UN7OHbSyVaag2L42VMZpmwKd6EQTTVdDqjsNpQjEhxz+EZaaN
 PzQKdfUrlkFXyzTs6yYnKm8niviTPA/also4Bri2TJpf2MSzNsdenMFU/T3ujFP6XG2p
 i/4jXHISngSWuUgEWPVYmTFZg16QReTEfewRcaa97Q78hYP8bPOjMmvuYF166fSidXM+
 gg+C2b8n0JpxFro4cUTh2roBZPlaXS2j1sggEwPDVPnYt0hNTLlwtw+O2TcUEnFcMN9V
 9ltw==
X-Gm-Message-State: APjAAAV0ZkqW5MXnex8XSQ9TET3C2gZ1HVDJKzlad5GbxMMJ0N5PutvI
 aKpJRacYQ+6oE0R8zdL5cIjCeibO
X-Google-Smtp-Source: APXvYqzrC0iKPusURck6psfoJyuro7GKP4vNupvY2LEeVVo8AEsw2JbdRUabv07Bz5nWa6lGT8IpNA==
X-Received: by 2002:a5d:4c92:: with SMTP id z18mr1900848wrs.111.1570010359718; 
 Wed, 02 Oct 2019 02:59:19 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.18
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:18 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 01/23] gnu: openssl: Fix cross-compilation.
Date: Wed,  2 Oct 2019 11:58:42 +0200
Message-Id: <20191002095904.6325-2-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
In-Reply-To: <20191002095904.6325-1-m.othacehe@HIDDEN>
References: <20191002095904.6325-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/tls.scm (openssl-next)[arguments]: Pass CROSS_COMPILE
environment variable and target system to configure script.
---
 gnu/packages/tls.scm | 62 ++++++++++++++++++++++++++++++++------------
 1 file changed, 45 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 6689375da6..8797429dcf 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017 Rutger Helling <rhelling@HIDDEN>
 ;;; Copyright © 2018 Clément Lassieur <clement@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -301,6 +302,23 @@ required structures.")
       #:disallowed-references ,(list (canonical-package perl))
       #:phases
       (modify-phases %standard-phases
+	,@(if (%current-target-system)
+	      '((add-before
+		    'configure 'set-cross-compile
+		  (lambda* (#:key target outputs #:allow-other-keys)
+		    (setenv "CROSS_COMPILE" (string-append target "-"))
+		    (setenv "CONFIGURE_TARGET_ARCH"
+			    (cond
+			     ((string-prefix? "i686" target)
+			      "linux-x86")
+			     ((string-prefix? "x86_64" target)
+			      "linux-x86_64")
+			     ((string-prefix? "arm" target)
+			      "linux-armv4")
+			     ((string-prefix? "aarch64" target)
+			      "linux-aarch64")))
+		    #t)))
+	      '())
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
@@ -310,7 +328,9 @@ required structures.")
                 (("/usr/bin/env")
                  (string-append (assoc-ref %build-inputs "coreutils")
                                 "/bin/env")))
-              (invoke "./config"
+              (invoke ,@(if (%current-target-system)
+			    '("./Configure")
+			    '("./config"))
                       "shared"       ;build shared libraries
                       "--libdir=lib"
 
@@ -321,7 +341,10 @@ required structures.")
                                      "/share/openssl-" ,version)
 
                       (string-append "--prefix=" out)
-                      (string-append "-Wl,-rpath," lib)))))
+                      (string-append "-Wl,-rpath," lib)
+		      ,@(if (%current-target-system)
+			    '((getenv "CONFIGURE_TARGET_ARCH"))
+			    '())))))
         (add-after 'install 'move-static-libraries
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Move static libraries to the "static" output.
@@ -435,21 +458,26 @@ required structures.")
                    (("^MANDIR[[:blank:]]*=.*$")
                     (string-append "MANDIR = " out "/share/man\n")))
                  #t)))
-        (replace 'configure
-          ;; Override this phase because OpenSSL 1.0 does not understand -rpath.
-          (lambda* (#:key outputs #:allow-other-keys)
-            (let ((out (assoc-ref outputs "out")))
-              (invoke "./config"
-                      "shared"                 ;build shared libraries
-                      "--libdir=lib"
-
-                      ;; The default for this catch-all directory is
-                      ;; PREFIX/ssl.  Change that to something more
-                      ;; conventional.
-                      (string-append "--openssldir=" out
-                                     "/share/openssl-" ,version)
-
-                      (string-append "--prefix=" out)))))
+	   (replace 'configure
+	     ;; Override this phase because OpenSSL 1.0 does not understand -rpath.
+	     (lambda* (#:key outputs #:allow-other-keys)
+	       (let ((out (assoc-ref outputs "out")))
+		 (invoke ,@(if (%current-target-system)
+			       '("./Configure")
+			       '("./config"))
+			 "shared"                 ;build shared libraries
+			 "--libdir=lib"
+
+			 ;; The default for this catch-all directory is
+			 ;; PREFIX/ssl.  Change that to something more
+			 ;; conventional.
+			 (string-append "--openssldir=" out
+					"/share/openssl-" ,version)
+
+			 (string-append "--prefix=" out)
+			 ,@(if (%current-target-system)
+			       '((getenv "CONFIGURE_TARGET_ARCH"))
+			       '())))))
         (delete 'move-extra-documentation)
         (add-after 'install 'move-man3-pages
           (lambda* (#:key outputs #:allow-other-keys)
-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:59:27 2019
Received: from localhost ([127.0.0.1]:35430 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFbPq-0000Rh-Ou
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:27 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:35498)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFbPo-0000RI-PZ
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:59:25 -0400
Received: by mail-wr1-f67.google.com with SMTP id v8so18929810wrt.2
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:59:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=uP/YFPRRfgDwMlbhiBLWcL7bI+NQp6+gzi8atRk3YNg=;
 b=thEv9ppa+VoWmL0+wfab1T2YGYe60qBZo1VHefcvttPoif+93dAq6tBQLWlfBhf4g+
 QThQXod+E/Se2Q6DTOrAYTsQ1l5sFitTM6Cv0xomitWE0kUA1B434CmB+iJN2GXW7uOU
 waB0lFxDO0zSPtV7Fq8SbxblYMaOf5uapcGPVLzFOo7kD+9s92iqMWVxIB7wRefqoxGv
 jf5UG7XKFcJisgv7XCmqVAI2tbmIFdFrWRo/JpxMHpe/ltNcOEry/dZV+0t4SvQ7cKCl
 SO5a1sSpPZiOkcW8i82vpVFKawaj24IqYK+T0CegSZf3Uwc7U7jjnePBqxmXK5IuWWKO
 WdnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=uP/YFPRRfgDwMlbhiBLWcL7bI+NQp6+gzi8atRk3YNg=;
 b=n2EhFXh3u0xfP1W0hOTDv9RmEsXzVMnVtey4NhCPFJTlrh63eQZ0+w/aH4N+la76zA
 DyOmID3DdBToEaAaEhyzcOTXmSlBM20+MmSszI9cZOibGjeylsqCKujxdg0OSmw0Gl81
 vhSp2cxDb4nqT24lr6LCY9CnGwLGivyMmp6XPRwMwbQplS7p+RK4syGlAwK5iSrGgmaD
 CETdwzF2HaUh9udcoRHOPIQTEkTANpxek/HsUre5DX1kwTzlBvQ8J6bDOdr4WuxVsTly
 0C1SAefgTWHTEc8KvXC2eprOx+4NDwkAADKyLnRoqP783pW3UCwBdi9vbqOyj0Rz8qjb
 7Dlw==
X-Gm-Message-State: APjAAAXRnlrQrte85wJDQn8rHli7HU0VrMOe31iFAs6+VFwzVJzImlV1
 YT6OqcwdWH2tLbLNSvUXh6Ah1YJT
X-Google-Smtp-Source: APXvYqzOYATkf3IoxeCSlyv7ZVG31KWgpS+6oli5QbJb6Ac/LcKfPSrw90UoommPCB2k/w+HhBqoEw==
X-Received: by 2002:a5d:620d:: with SMTP id y13mr1907024wru.86.1570010358276; 
 Wed, 02 Oct 2019 02:59:18 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:fa:a50:21e:67ff:fe5b:4283])
 by smtp.gmail.com with ESMTPSA id w12sm29621318wrg.47.2019.10.02.02.59.16
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 02 Oct 2019 02:59:17 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v4 00/23] System cross-compilation
Date: Wed,  2 Oct 2019 11:58:41 +0200
Message-Id: <20191002095904.6325-1-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.23.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Mathieu Othacehe <m.othacehe@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Here's a v4 of the serie. Since v3, half of the patches were pushed to
core-update-next. Among the remaining patches, I could not find a better
solution to cmake native-search-path issue.

I also turned libl python2 and python3 outputs into separate libnl-python2 and
libnl-python3 packages, so to avoid turning the output field into a thunked
field.

Thanks,

Mathieu

Mathieu Othacehe (21):
  gnu: openssl: Fix cross-compilation.
  gnu: cmake: Fix cross-compilation.
  gnu: groff: Fix cross compilation.
  gnu: cyrus-sasl: Fix cross-compilation.
  gnu: icu4c: Fix cross-compilation.
  gnu: boost: Fix cross-compilation.
  gnu: eudev: Fix cross-compilation.
  gnu: bdb: Fix cross-compilation.
  gnu: openldap: Fix cross-compilation.
  gnu: swig: Fix cross-compilation.
  gnu: git: Fix cross-compilation.
  gnu: doxygen: Fix cross-compilation.
  gnu: guile-gcrypt: Fix cross-compilation.
  gnu: guile-sqlite3: Fix cross-compilation.
  gnu: libnl: Move python outputs to separate packages.
  gexp: Use cross extensions when cross-compiling.
  utils: Use target-aarch64? and target-arm? helpers.
  build: vm: Fix arm32 support.
  system: vm: Add arm64 support.
  system: vm: Support cross-compilation.
  scripts: system: Add --target option.

Pierre-Moana Levesque (2):
  gnu: crda: Fix cross-compilation
  gnu: cmake: Fix cross-compilation.

 gnu/build/vm.scm                              |  27 +++-
 gnu/local.mk                                  |   3 +
 gnu/packages/boost.scm                        |  59 +++++--
 gnu/packages/cmake.scm                        |  14 +-
 gnu/packages/cyrus-sasl.scm                   |  17 +-
 gnu/packages/dbm.scm                          |   6 +-
 gnu/packages/documentation.scm                |  12 +-
 gnu/packages/gnupg.scm                        |  18 ++-
 gnu/packages/groff.scm                        |  22 ++-
 gnu/packages/guile.scm                        |   7 +-
 gnu/packages/icu4c.scm                        |  35 +++-
 gnu/packages/linux.scm                        | 149 +++++++++++-------
 gnu/packages/openldap.scm                     |  38 ++++-
 gnu/packages/patches/boost-dumpversion.patch  |  24 +++
 .../patches/cyrus-sasl-ac-try-run-fix.patch   |  12 ++
 .../guile-sqlite3-fix-cross-compilation.patch |  55 +++++++
 gnu/packages/swig.scm                         |   1 +
 gnu/packages/tls.scm                          |  62 ++++++--
 gnu/packages/version-control.scm              |  23 ++-
 gnu/system.scm                                |  15 +-
 gnu/system/vm.scm                             |  33 ++--
 guix/build-system/cmake.scm                   |   9 +-
 guix/gexp.scm                                 |   4 +-
 guix/scripts/system.scm                       |  15 +-
 guix/utils.scm                                |   8 +
 25 files changed, 535 insertions(+), 133 deletions(-)
 create mode 100644 gnu/packages/patches/boost-dumpversion.patch
 create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
 create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch

-- 
2.23.0





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:39:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:39:06 2019
Received: from localhost ([127.0.0.1]:35405 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFb69-0008ON-P3
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:39:05 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:45593)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFb68-0008Nt-Dh
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:39:04 -0400
Received: by mail-wr1-f65.google.com with SMTP id r5so18782315wrm.12
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:39:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=MOQcnlDAt3B3MYu8H+gXya7qELLaSPy3rPI1Z/nmUjQ=;
 b=jOoatrXysNs1jeQ4Syo31B9pf5xy6DKiwOWaf6Gf41sOFktkKlvNsZZri3hz3GH/2T
 f4PbKwqdb0OCCp5Jvs5ew7lN85P7+Ric0FbdeO6qksGtrF/9Ef99zXhUvv57DKEewsPR
 OIqMUVJBJUbLR3bAuRQmPMzETnWAtpXGoFMvHXyCP7ocZV5fZvfAd/PyMYW9h1+/n8vX
 7ickscDsQ39Ezrj7rjSV1zQr1Og+HRVb+dWupLVe+scvK5m2ypNJYmmo5kYSUCXEnBpr
 0PvWLAJ8lzt+9zmIxaYtNrzVvfJ4sheY2pLYyP3dPuLk+ckPGzanaUPt3M1JITCpk7K7
 vIsw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=MOQcnlDAt3B3MYu8H+gXya7qELLaSPy3rPI1Z/nmUjQ=;
 b=YDuDGTUN1EeOXsmOnj5j0Tb6GFwARfE1O1j5i5+QI8EB8O6DBpIANdrsaAAYO4iXZR
 wSq/XeRhNj3l2FKgwU0jzQHVssob4Y0lxwD2ZHC7VecITel7drkzm+S8Jz86NeoEz/XQ
 AA2F9e2dvZfjB2eQRK3dYxLT9julsQu4Ex8QG7+qQEUdBSIdsKSkOOi7h4vKBoL6dSy4
 cC4PBg7VZhY4RjBx0znqJAKqYtxLipgBxVUmR2ZXQcpgGGldcDPd7AB3OmG/8/mlpWOP
 LBBPdp3ZFTVXKlqU2aibo3Ubas97oJ29qJeKKX8zlW6Tx6Ba904VGvYjlPwDimHP3u1Q
 w6eg==
X-Gm-Message-State: APjAAAW6ginDC0JKfq6k3DL/yjyFM6QHViJF2Xh5J/nLE2fKhH5wEh8O
 Jk/mSkflf+o6rw+d+jFgtpQ=
X-Google-Smtp-Source: APXvYqxfLIouA6blOnMZwJoqZlzib8b7k31TVxjV7tbcOvTv3recHaFYNIqS9JeOPBRH7A8xXXN3Sg==
X-Received: by 2002:a5d:4f8a:: with SMTP id d10mr2062938wru.276.1570009138421; 
 Wed, 02 Oct 2019 02:38:58 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id r20sm22536327wrg.61.2019.10.02.02.38.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 02 Oct 2019 02:38:57 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-17-m.othacehe@HIDDEN> <8736hc2ok4.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation.
In-reply-to: <8736hc2ok4.fsf@HIDDEN>
Date: Wed, 02 Oct 2019 11:38:55 +0200
Message-ID: <87imp78p1s.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey,

>>               (let ((out (assoc-ref outputs "out")))
>> -               (invoke (string-append out "/bin/udevadm")
>> -                       "hwdb" "--update")))))
>
> I guess we=E2=80=99d need to add =E2=80=98this-package=E2=80=99 to =E2=80=
=98native-inputs=E2=80=99 to do that,
> right?

Yes but as this commands produces a binary and there is no "target"
option, some portability issues could arise.

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:30:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:30:34 2019
Received: from localhost ([127.0.0.1]:35383 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFaxt-0008B4-Uv
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:30:34 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:34568)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFaxr-0008Aq-Op
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:30:32 -0400
Received: by mail-wr1-f67.google.com with SMTP id a11so18819402wrx.1
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:30:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=S5RoAY7P0XhoktKah3VK8W1hX34WA4f6NvgA5IGLNVM=;
 b=SJuNEKagJ++KAPZz1heYYUUUz1/0tP+YOzWFT2RwD8VBlJzq/Wc02k4I3fPUo9ucqB
 K/bIExLr1uK+vMOjxFQB/5qb6/mUvSZJBrn9b5u09cgoFGqxKbhkRr5oxeESViSIgnb2
 eF8tqlmkDETFftWF6BqcHZFEDIH+j9czekwFG+pwXbA1lwg06qhYUKoo79LHI9RzGWKY
 NjuVT64QtFvTnXy0aXKNPwZLOjVGqX4rGDYlBAXPInAX3BVwh1tWWMQ4l80kl28/OQi9
 DNEZRkKe6I3+J3k8ve76OdIc/VOp93fJDi2aN3jKvokkCaPKxstPXbrWunpHEHDzgbMY
 Piuw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=S5RoAY7P0XhoktKah3VK8W1hX34WA4f6NvgA5IGLNVM=;
 b=K/b4Ww6ZADeCsJ5RBZQVT6O/NG8M2YIedVN5OpnkogAyfy8ySkY7Hcyc0jrq+bIcwy
 z9QnEbdc15rqDNW26GgD0DmUKAhVAMUNNhwaeoO4bLVjzCYro/DezGjrbQ+DO6BluwRi
 BkqbRQ6AwvOj1JWZW2+Lm1FPTB1k/Xj1yt9X6JNwchh0wU34ED3GSSSHNTg3dun/LKAe
 0VTOv7qhHTSFuhjAhRAP3Fd50jYpl3KZ+ns8IDYJcQI8GX42XWw8GkYk2svaiYsC80yi
 VaU4tTPxKAIgq8DTohNWvXPEz7q8+PeFOT0a/GrybOyAzEyM0NoHntN3g6BIrCqcgeWJ
 m0zA==
X-Gm-Message-State: APjAAAUP9a88AY2MNc4Qz6+eZh5mUA5jgwM3s/5MVyFl6QZpAtghlKik
 vcl+O95zC6nqKoSGVyiwaBI=
X-Google-Smtp-Source: APXvYqyh38q9UhbSG671tvVHxU57jy8D92DHONBMHnl3ixmIv408yTwc9eO7ekJjRxfodS+rz9vrow==
X-Received: by 2002:a5d:5403:: with SMTP id g3mr1778080wrv.338.1570008625891; 
 Wed, 02 Oct 2019 02:30:25 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id d4sm19788127wrq.22.2019.10.02.02.30.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 02 Oct 2019 02:30:25 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-47-m.othacehe@HIDDEN> <878sr444b8.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 46/48] system: vm: Support
 cross-compilation.
In-reply-to: <878sr444b8.fsf@HIDDEN>
Date: Wed, 02 Oct 2019 11:30:23 +0200
Message-ID: <87k19n8pg0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


> Uh, passing =E2=80=98os=E2=80=99 to =E2=80=98system-linux-image-file-name=
=E2=80=99 never worked, right?

Right!

> All these inputs are added to $PATH just after, which shows that we run
> them natively.  Thus, they must all be native.
>
> IOW, all we have to do is replace #$ by #+.

Yes that's true for expression->derivation-in-linux-vm where inputs are
added to PATH an turned to be native-inputs.

> Same here: this is added to $PATH so it must be native.
>
>>             (let ((inputs
>> -                  '#$(append (list qemu parted e2fsprogs dosfstools)
>> +                  '#$(append (list util-linux parted e2fsprogs dosfstoo=
ls)
>>                               (map canonical-package
>>                                    (list sed grep coreutils findutils ga=
wk))))
>> +                 (native-inputs '#+(list qemu))
>
> Likewise.

However, here, those inputs are added to PATH, but this is the PATH on
the running VM, so they are supposed to be inputs and not native-inputs.

The issue I have is that qemu is not cross-compilable for now, plus it
is useless on the running VM. So I just removed it from both inputs
list.

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:25:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:25:22 2019
Received: from localhost ([127.0.0.1]:35379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFass-00082c-8P
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:25:22 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:34873)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFasq-00082Q-6d
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:25:21 -0400
Received: by mail-wr1-f65.google.com with SMTP id v8so18802637wrt.2
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:25:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=8GkOxgQXVXVnPTl3p+Cexnl9oraBakNjhYhLRkmRvfA=;
 b=TK4UzB0496rPqptReZyTOg3llwE5pjcDY2tukiIxkfPKZwbV0KDoEFHR7RlJLhWS/O
 l1lUNP6be8IYqsb0DmUbbMDNdJVHCslIXUXyd5eOyeJcUYD3phFIbN/ke9enS0YDNku3
 jqmmSaqTRb+MPWs7ECT62jzEzscKDWxgADaY5sNfUK3ZJ7I/X7aVbuDbChZSmVe8t1Q9
 cq0xxWmlhIVix3yzPplOb/BLFa+wOmgOKzHRicUPeweTYSE59Z1mEsVVGHl276uYRsre
 j22CnadveK/Ojg9usGDYlOTs+d+n5KTjny4x3o/LvZCVBqcip1qTN6knkdWa7n40OG/y
 Um+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=8GkOxgQXVXVnPTl3p+Cexnl9oraBakNjhYhLRkmRvfA=;
 b=VxPjgOZtxhuuq+oQktrLIQjrEbnclLDiTymV+LypSTnMf6TI+Fr2PqkqxSoCFqLb3s
 LYFENk/kv0nXUibzVWhYj50j+IUbca2sSDrnjU0uedyy24xjWvW00qR7ihtdLVlHZQQM
 emxPTCnDO82QmOm09k3eqOo3R27RpKAlE4qaQLIk+2MSvvoT7rqrq+e9XcZV5YmgVR5a
 RkUyWvJtpcTEUKZbHzuCezbELIt98xDVo/SSPIsi9sC0edpGjVZ85IfnnMeM4S7G1URH
 8zl4KTUOq8qo4gZ9Ed0yFDTV8DD027G3pbGUyyM8l7UTJHigLWd7hmu+NZfuEnRxmZgF
 UB0w==
X-Gm-Message-State: APjAAAUS4oEH+dx6qm7LbteKQD02Uljw/X6/TSt6IVIt2A8Pnw6y8HKr
 bNnq0gfLTE5l028nokQwqsE=
X-Google-Smtp-Source: APXvYqzBJirOtxU9MNbtjzGNNM+fA4RQ2M9NjDu4PKG866wqUgqZv59pY0qQWTuUMfqOh+WbLZ1ezA==
X-Received: by 2002:adf:b1da:: with SMTP id r26mr1831692wra.244.1570008314583; 
 Wed, 02 Oct 2019 02:25:14 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id n14sm15632110wro.83.2019.10.02.02.25.13
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 02 Oct 2019 02:25:13 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-44-m.othacehe@HIDDEN> <87woeo44yn.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 43/48] utils: Use target-arm64? and
 target-arm? helpers.
In-reply-to: <87woeo44yn.fsf@HIDDEN>
Date: Wed, 02 Oct 2019 11:25:12 +0200
Message-ID: <87lfu38pon.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey,

> I=E2=80=99d call it =E2=80=98target-aarch64?=E2=80=99 because that=E2=80=
=99s what it=E2=80=99s called upstream,
> and that=E2=80=99s also the name we use elsewhere in Guix.  WDYT?

Yes I renamed it to target-aarch64? in v4.

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:23:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 05:23:38 2019
Received: from localhost ([127.0.0.1]:35375 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iFarB-0007zo-RL
	for submit <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:23:38 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:40458)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iFarA-0007zb-9Y
 for 36477 <at> debbugs.gnu.org; Wed, 02 Oct 2019 05:23:36 -0400
Received: by mail-wr1-f66.google.com with SMTP id l3so18753365wru.7
 for <36477 <at> debbugs.gnu.org>; Wed, 02 Oct 2019 02:23:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:message-id:in-reply-to
 :date:mime-version:content-transfer-encoding;
 bh=Z4ldRo+CGQde7Wc0ohBNRMUvYSIbDnj8L5klpTBrpBk=;
 b=T97OVH87yzkoIyGEjqvuXq5RVKY0TMO4YYlH588mJsJHjJTTf72NW7S2mBjc3dvZT7
 Lvn5qq7B4WRlL8+ItKuzH25DM/6RcQTU5B7BPA6ElvfeoPfgT1mIpIh4Li8sLGM4VRKd
 YLLqmAbewYLOnk8KqEogGrJVRrAFngjBd7VAV4h0hiA3bOslqt8rsH5lxfX/XPJLc450
 T90ZO8fmuQzh2E7qS5OrLBSrxL6LdY2Mj2/hxvaJT1+dfvg2n1ydeAS9tFdMkGp3jxnP
 52r1bkeewgNveXR0I81qqKKPOW0CZExto2CWCXuD/A3fxcXtrFWc7550+PrdDWha/i3Z
 KmmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :message-id:in-reply-to:date:mime-version:content-transfer-encoding;
 bh=Z4ldRo+CGQde7Wc0ohBNRMUvYSIbDnj8L5klpTBrpBk=;
 b=od6j5SZNDCbQRFWnNlCg93opQi0coKwR328CanOORZDXn47vxPJWBCJRtP2SfKlPfS
 PK8ivhSvidJ1KIuwPCGvV1muwzZM5cTGVuh+awJOfwASXXhpErnZsXSR3NFfFeRme20W
 TqnlMPvlIIA4/Up/FCIUaMd8MhS5wFRf/dcLmf36JOidNeZZ0eaUgtSb42AJihj7kf6O
 s+uAmM/kkF9qHBtkAZQAuUiupZAG5RHH2y3PLGjxuuR9YgByKUalLhHTuez01qFZvxSR
 F7Mri03RFGAZLKqFEs1eiHosUK49jqB0D/Yv+ERlFkxZsZw6tVAmS/W0ejVvDkv4DulK
 tgKA==
X-Gm-Message-State: APjAAAWPkevHhmIvkcBfSNwLa+QaxWNaUMdyvDUeDvXjRUlenFn0uy3t
 XFruSDCr3SmH0J8mHlYQ4/8=
X-Google-Smtp-Source: APXvYqzy3GNkUt0881w9z41dWwnCw8MQUz+uK0I5cOCAqyIFQ4EX64+Q/Z9KIho6yZRBJZMiXjgD2g==
X-Received: by 2002:adf:fc05:: with SMTP id i5mr1928499wrr.134.1570008210369; 
 Wed, 02 Oct 2019 02:23:30 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id g24sm17031969wrb.35.2019.10.02.02.23.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 02 Oct 2019 02:23:29 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-43-m.othacehe@HIDDEN> <8736hc5jl4.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 42/48] gexp: Pass target to
 compiled-modules in lower-gexp.
Message-ID: <87sgob8psl.fsf@HIDDEN>
In-reply-to: <8736hc5jl4.fsf@HIDDEN>
Date: Wed, 02 Oct 2019 11:23:20 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey Ludo,

> The cross-compilation target should only affect things that the regex
> refers to with =E2=80=98ungexp=E2=80=99 or =E2=80=98ungexp-splicing=E2=80=
=99.

Well you're right, this is wrong and not needed. However the other patch
on (guix gexp), titled "Use cross extensions when cross-compiling" seems
needed.

WDYT?

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 20 Sep 2019 14:19:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 10:19:12 2019
Received: from localhost ([127.0.0.1]:58270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iBJkd-0008Vq-Ni
	for submit <at> debbugs.gnu.org; Fri, 20 Sep 2019 10:19:11 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:55534)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1iBJkb-0008Vc-5i
 for 36477 <at> debbugs.gnu.org; Fri, 20 Sep 2019 10:19:09 -0400
Received: by mail-wm1-f67.google.com with SMTP id a6so2692412wma.5
 for <36477 <at> debbugs.gnu.org>; Fri, 20 Sep 2019 07:19:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=6KSxBJqff2ffknNMz2chPASjGBtVBdAJrJhs6+6hmx4=;
 b=lcxDxWeB6MvQDMgFNeb8lMm0gvdPKtGxZ+UU42fTA3po5HZTN5oH7A7mooiKFuq4Pr
 nmhD4iT1R4SRCDBAXBeijjtTOtKKxkQJRaeQ5P1YBStVIz9h8VRRyz3k7nIjOy81+vNq
 6AR/iVR65LvYr8m//1blTctinLLcK+FjWwTPtUSLAh5Dn0el/utYeBGvs/tFY+5Aq9XR
 LIf7Hw4Q69x+MauA1F26HgK3EO+r5W67LL8deD8qkqo4Lfw4MOaAuH8r883ZoTYjK6eg
 tV///VuZPPfbx+mbrWpxLmVFRqOZO968fUcVN6qC1kwTfYYw6okcd07FKCwVQQbopVqY
 8IBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=6KSxBJqff2ffknNMz2chPASjGBtVBdAJrJhs6+6hmx4=;
 b=LKYBeOtNXA2GvAh4PjTBlsSodk3fABizewcVotB2NExPOBbUkJBvpxS4R3D8acIRUp
 Vag1ueQXzKa4AEhIJc7xuj1YTFXELXiXx3+HtZEUwwz9tydHDP5hISzVdSezdrfJRPO4
 RQJKtmfAdqllyhC0XuyKr8mjC/Q7eNO+BH0vq6bIMUKbra+cweWbjJhNuU9ZDwVFgL3Q
 gqemXPGYm7z/pXiAPijqwjRiwWoIw/fyL18kvdZ26lwX06jUmD/Ft8V2unry3Jfk95zI
 NHCglOwuXKsvFuaUp0meYTs3uxlX480c8c7C7cRCq/lSMm/j+vPQ9p+FINJl0WlOOu7B
 851g==
X-Gm-Message-State: APjAAAWaB4/fm/zFHusOgk4Vv9c5CpRiip4KEuu7SvmPjbOI2eKRQt5O
 D6PAPJx3FiOz4BuCD9GB1nU=
X-Google-Smtp-Source: APXvYqywHwHu6bGCCabrmvzJIWbRdMi+Wxz5JhYTK0BmDoThZN1Fw4wHkzFBnzaH8Mh5HqbEtf7jtg==
X-Received: by 2002:a1c:9956:: with SMTP id b83mr3637954wme.63.1568989143274; 
 Fri, 20 Sep 2019 07:19:03 -0700 (PDT)
Received: from meru ([90.114.71.216])
 by smtp.gmail.com with ESMTPSA id h17sm4037171wme.6.2019.09.20.07.19.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 20 Sep 2019 07:19:01 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-5-m.othacehe@HIDDEN> <87d0gg2p30.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.
In-reply-to: <87d0gg2p30.fsf@HIDDEN>
Date: Fri, 20 Sep 2019 16:18:55 +0200
Message-ID: <875zlnt5io.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey Ludo,

> It seems to be enough to just add =E2=80=98search-paths=E2=80=99 to =E2=
=80=98cmake=E2=80=99:
>

I tried to do that but it doesn't work. Let's consider libgit2 which
uses cmake, when cross-compiling, both native-search-paths and
search-paths are set. Both are passed to bag-build in
"bag->cross-derivation".

Then, gnu-build is called from cmake-build and "set-paths" function is
called. "set-path-environment-variable" is called for CMAKE_PREFIX_PATH
which is in search-paths and then called again for CMAKE_PREFIX_PATH in
native-search-paths.

The later will cause the first setenv to be undone, and we end-up with
only native-inputs in CMAKE_PREFIX_PATH variable.

Whereas, with my patch only search-paths is set, so it can't be "undone"
by native-search-paths. CMAKE_PREFIX_PATH is filled with only "inputs"
which is what is expected.

I hope I'm clear and I'm sorry to reply so late, didn't have any slack
in my day job :(

WDYT?

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 5 Sep 2019 08:47:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 04:47:23 2019
Received: from localhost ([127.0.0.1]:34703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5nQJ-0001O4-5P
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:47:23 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5nQG-0001Nr-Kl
 for 36477 <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:47:21 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33319)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5nQB-0006q8-1i; Thu, 05 Sep 2019 04:47:15 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53272 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5nQA-0002Nn-Hs; Thu, 05 Sep 2019 04:47:14 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-4-m.othacehe@HIDDEN> <87imq82pea.fsf@HIDDEN>
 <87ef0wt49r.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Fructidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 05 Sep 2019 10:47:13 +0200
In-Reply-To: <87ef0wt49r.fsf@HIDDEN> (Mathieu Othacehe's message of "Wed,
 04 Sep 2019 18:28:16 +0200")
Message-ID: <87lfv3gmem.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

>> Could you check whether that triggers a full rebuild?  If it doesn=E2=80=
=99t,
>> you can push to master.
>
> No mass-rebuild :) Fixed and pushed.

Apparently it did cause a mass rebuild but Marius reverted it, so we=E2=80=
=99re
fine.

The way I check for a mass rebuild is either by running =E2=80=9Cguix build
libreoffice -n=E2=80=9D after the change :-), or (better) by comparing the
output of:

  ./pre-inst-env guix build texinfo -nd

before and after the change.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 5 Sep 2019 08:45:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 04:45:38 2019
Received: from localhost ([127.0.0.1]:34697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5nOb-0001Ki-Q2
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:45:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56687)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5nOY-0001KU-5R
 for 36477 <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:45:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33294)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5nOP-0005oG-N8; Thu, 05 Sep 2019 04:45:27 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53262 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5nOO-0002Cy-FK; Thu, 05 Sep 2019 04:45:25 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 40/48] gnu: linux-libre: Enable built-in
 ext4 support.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-41-m.othacehe@HIDDEN>
 <87sgpc19vh.fsf@HIDDEN> <87ftlct4s0.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Fructidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 05 Sep 2019 10:45:23 +0200
In-Reply-To: <87ftlct4s0.fsf@HIDDEN> (Mathieu Othacehe's message of "Wed,
 04 Sep 2019 18:17:19 +0200")
Message-ID: <87tv9rgmho.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

>> IIRC Mark was reluctant to this change; or was it more about the longer
>> term?
>
> Yes, but we discussed it together and decided to proceed with this patch
> and in a follow-up, configure ext4 support as a module in all kernel
> configurations and add it to default initrd modules.

Ah OK, so let=E2=80=99s go with this patch.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 5 Sep 2019 08:41:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 04:41:37 2019
Received: from localhost ([127.0.0.1]:34688 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5nKi-0001EF-RY
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:41:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55072)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5nKh-0001E4-Vk
 for 36477 <at> debbugs.gnu.org; Thu, 05 Sep 2019 04:41:36 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33220)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5nKc-0003V5-S7; Thu, 05 Sep 2019 04:41:30 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53230 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5nKc-0001uz-Cs; Thu, 05 Sep 2019 04:41:30 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 30/48] packages: Set outputs field as
 thunked.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-31-m.othacehe@HIDDEN>
 <87zhjk2pn4.fsf@HIDDEN> <87h85st5ij.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 Fructidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 05 Sep 2019 10:41:28 +0200
In-Reply-To: <87h85st5ij.fsf@HIDDEN> (Mathieu Othacehe's message of "Wed,
 04 Sep 2019 18:01:24 +0200")
Message-ID: <878sr3i18n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

>> For which package did you have a needed for that?
>
> That's for libnl which has python2 and python3 outputs for python
> extensions. However, we do not currently support cross compilation of
> python extensions.
>
> Adding cross compilation of Python extension would be the right thing to
> do but it's really hard. Nix is also struggling on that, see:
> https://github.com/NixOS/nixpkgs/issues/53320.
>
> So I don't have anything better to propose. WDYT?

In (gnu packages =E2=80=A6) there are no users of the =E2=80=9Cpython2=E2=
=80=9D and =E2=80=9Cpython3=E2=80=9D
outputs of libnl.  What about making separate =E2=80=98libnl-python=E2=80=
=99 packages?
Marius, WDYT?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 5 Sep 2019 07:53:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 03:53:45 2019
Received: from localhost ([127.0.0.1]:34618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5maP-0008TN-Kq
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 03:53:45 -0400
Received: from mail-io1-f67.google.com ([209.85.166.67]:46921)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i5maN-0008T9-3T
 for 36477 <at> debbugs.gnu.org; Thu, 05 Sep 2019 03:53:44 -0400
Received: by mail-io1-f67.google.com with SMTP id x4so2584721iog.13
 for <36477 <at> debbugs.gnu.org>; Thu, 05 Sep 2019 00:53:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=hMfUsRgsN7CDdCG+uVHn4UkuEgQ2ogX7pBCrec5xpE4=;
 b=pLfVdEZHpQ4cP1hIQLcM4gN9a7XUh1rQM2TRMtFvvP0uF7XaAOvjbiRScK0FPvWOSg
 rrH1G1VhjVF8Wxw/0jwhazwP+lY2LeaXMse4OSWOeiyBpml1hZVb6gtird0fi2IksuQx
 iY5x1ldXf2fSZpR7R/jh0k6+u895hGqGBWXMWHfWSL9kD2FZp/KHkF5jt3Wf2gx47zTx
 aNYSxWDvP7lsW0uyG7RIFOnq3/JK8XiLYqwzbljMdtyEbXDjbl99bz1PrviscfAUGSWo
 7BAU8cePN5rKcpentPWT/SiW9CLCz6dODLPlOHkIBLc9Mbxc6FK/90+9Umz+6o2/8tI5
 tWhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=hMfUsRgsN7CDdCG+uVHn4UkuEgQ2ogX7pBCrec5xpE4=;
 b=DieEyaQ3goANyHFaVsMy75Mna4BqXk2OyFEVrJZ6GzzQt+lFRdTyqpnDVnmW4H1Njh
 wznM9FsUHCDGhMMyXrgXE170uFoICnIqs7S9Uj0gRGkhRNWId6vJCyCefRAssSMKQr7o
 GUZXbTykgA5u+0xkYPkkA3Bl83A8Fqj44+99VftK1IH0EgupO/a/8ZRqI7Wbnm5D0/Lm
 pi3uxVJ4FjwobkLMn+LVMrSxhugnxX31GrULCw7pFZTuDaZCNJLcDZgbYHGekMeUUmQi
 SNPSlUhVr67whq5PLOn6POUm9NQCdFaKx1FJeR2IYTzeQShi5NC0FLRh+vLYLLRxYAz9
 KCwA==
X-Gm-Message-State: APjAAAVIO3uQ94RleIRv40xKEfFd/OdSMt/somi5Ko/Vh+OrQLgrF5Uo
 DaH0KoQG3lLc9+ggkO0RBOJ9NlNtvlni0UhYLmk=
X-Google-Smtp-Source: APXvYqypGwhWR6HHGcmU3Cc3CJYnxtvW3erc4SdKCDRIccMBp/0bdvo3YsT5ckRXysqUL7AEeBvYCQlq8cSuJza9Ml8=
X-Received: by 2002:a05:6638:777:: with SMTP id
 y23mr2782291jad.111.1567670017317; 
 Thu, 05 Sep 2019 00:53:37 -0700 (PDT)
MIME-Version: 1.0
References: <87ef0wt49r.fsf@HIDDEN> <874l1sc5ng.fsf@HIDDEN>
 <87h85rhi5y.fsf@HIDDEN>
In-Reply-To: <87h85rhi5y.fsf@HIDDEN>
From: Mathieu Othacehe <m.othacehe@HIDDEN>
Date: Thu, 5 Sep 2019 09:53:26 +0200
Message-ID: <CANVeeZxEd4OsuELQ=wHSjxmMTaQECR7VjsJa1spptddsnAjkVA@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
To: Marius Bakke <mbakke@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: guix-devel <guix-devel@HIDDEN>, Pierre Neidhardt <mail@HIDDEN>,
 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Marius,

I'm surprised because the derivation was unchanged with this patch
when I tested it locally. Sorry, I must have made a mistake.
Thanks for taking care of this. I applied this patch on core-updates-next.

Mathieu

Le mer. 4 sept. 2019 =C3=A0 23:21, Marius Bakke <mbakke@HIDDEN> a =C3=
=A9crit :
>
> Mathieu Othacehe <m.othacehe@HIDDEN> writes:
>
> >> Could you check whether that triggers a full rebuild?  If it doesn=E2=
=80=99t,
> >> you can push to master.
> >
> > No mass-rebuild :) Fixed and pushed.
>
> This did cause a mass-rebuild, and Cuirass is currently chugging away at
> commit 210b641:
>
> https://ci.guix.gnu.org/jobset/guix-master
> https://ci.guix.gnu.org/jobset/guix-modular-master
>
> I reverted it in 4ab97ef, but don't know how to stop the Cuirass
> evaluations.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 5 Sep 2019 07:45:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 03:45:35 2019
Received: from localhost ([127.0.0.1]:34614 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5mSU-0008HV-NJ
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 03:45:34 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:48043)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1i5mSS-0008HM-PL
 for 36477 <at> debbugs.gnu.org; Thu, 05 Sep 2019 03:45:33 -0400
X-Originating-IP: 92.169.116.127
Received: from bababa (lfbn-1-4117-127.w92-169.abo.wanadoo.fr [92.169.116.127])
 (Authenticated sender: pierre@HIDDEN)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B4C4AFF80E;
 Thu,  5 Sep 2019 07:45:30 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>, guix-devel@HIDDEN,
 Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
In-Reply-To: <87h85rhi5y.fsf@HIDDEN>
References: <874l1sc5ng.fsf@HIDDEN> <87h85rhi5y.fsf@HIDDEN>
Date: Thu, 05 Sep 2019 09:45:28 +0200
Message-ID: <87pnkfb2zr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Thanks Marius!

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl1wvRgACgkQm9z0l6S7
zH9X6ggAoxmNA3yY9aG6K1dfJ07ZDAl7wVsbDLAUmzkqEBZUcV1e7mBep9WEHm2c
v1CIYnUfBt2sA0Rp6I3HfRh1F2V+j9u5yDrfXT+Ulhwf3qUvX21KT+uZ5MZ/r9Qy
Fi7nrARazuTWR+EBhSF+yUjelEAP5VhXo34WopoI+lEBXsqihpWTOjs2NXjWg4Jq
BXOvWH6IT2JUAczht1XRcTBRHOCBk2gFJ/D4En4uaVDyws7UTj4VSEwwyNk2KJWy
stVBTtTa/v5vRxUtpDLQGObOPU+ujd4AgomISpWnFhbqLd2oSy183PDIFZrxCdzi
xIdKZdKfEzsfa1EOoS13WgGdZgmIig==
=jFxe
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 21:21:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 17:21:23 2019
Received: from localhost ([127.0.0.1]:34431 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5ciQ-0006QA-Oq
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 17:21:22 -0400
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36393)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1i5ciP-0006Pu-6U
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 17:21:21 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id F202322110;
 Wed,  4 Sep 2019 17:21:15 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Wed, 04 Sep 2019 17:21:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:cc:subject:in-reply-to:references:references:date
 :message-id:mime-version:content-type; s=fm3; bh=vHxU8rvxhO+VUqd
 hOslt15z+ff+S7uK7P1mNAFo0LCc=; b=OiX0N5hmLdZVqhSsj1wccQIocJcEwdN
 TaZ3KuVrerxRWtSMO6Ix8S4RZElM7/qVUijhkammKHMuMqRFaJucKnyhZHO2JXnI
 tByto7twD5SMemryWxcXDc0DYRlbcNYxTJkt8JtCfjU2bv33sbqKUli4ABM9BKD1
 4JqPrn70jcuoHrXgfbi6A09IqgnGbder3sPjJI/rY4IxWa6DXToRiOOnj3HrEccR
 bKPwwnJWDFBlXgEVlKHQyodPw8zwVR8Feve3Tgchimbfqx/xAxPh/uuTypopnsF0
 vZlrCDjf5vXolkf0I8KLmhiWoTfddCf1uTom+yfr86TWKbph/OQnLCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; bh=vHxU8rvxhO+VUqdhOslt15z+ff+S7uK7P1mNAFo0LCc=; b=qFS1Guky
 Vuf4l+2WCd/34X7COgXYrlvSAHkGhRy0kyTy85phXJLJgHQvyck04+ItvktaOXYB
 SAnzB89OYqVnyL6mvgF9lKSDX5LGTGY44eXzODWPM62QNBKkslgVkHWtZwcb+fvT
 D1edlprOkqgZpNBzIAlwh1G5A5IX5aqR1fiAzpVXu4MUZaTr9gyDlS6UHdCCfZB/
 yGm80al4EmSemvBAh8PVjpE2OC+wkZ1hceVqTLRAUlikAvh66+9rQ8Z6KaW9cdv9
 5sRGlZkH35oyKioYIftMhN+zUrSZyEy+GMQl2c94q9La62D4/B6C7yYtUiVcjvj0
 HfR80ZrYB1/jDQ==
X-ME-Sender: <xms:yypwXcQBh4N5XVjzc_9ZxpREP83H3LLFBfkTJhrJfwZW8VUyiVLRdg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudejhedgudehjecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enogfthfevqddqjfgurhdqufhushhpvggtthdqlhhoficuldehmdenogfthfevqddqjfgu
 rhdqufhushhpvggtthculddvtddmnecujfgurhephffvufgjfhhffgffkfggtgesghdtre
 ertderjeenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs
 thhmrghilhdrtghomheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeeivddrud
 eirdduledvrdduhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgr
 shhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:yypwXRrzljclawHvRSf9eklHQisYv2ynhnJhhl-y6RZ-0aAFvwBwig>
 <xmx:yypwXYpIvL4d1eJDHeGafarsz2U8_s3WtBxJwZrPtdxcErd1of7OlQ>
 <xmx:yypwXWEsZSfoWCcAFl2FoWY3pd0RlNtvDY9m3OFAmHgNXRAaLW2_Vw>
 <xmx:yypwXU5TZ37iNU_9-IalD_p_P3RjtQY6nYWAnE4NdGXhoTyRQnVzkw>
Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150])
 by mail.messagingengine.com (Postfix) with ESMTPA id 4BAD58005A;
 Wed,  4 Sep 2019 17:21:15 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>, guix-devel@HIDDEN,
 Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
In-Reply-To: <874l1sc5ng.fsf@HIDDEN>
References: <874l1sc5ng.fsf@HIDDEN>
References: <87ef0wt49r.fsf@HIDDEN>
User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2
 (x86_64-pc-linux-gnu)
Date: Wed, 04 Sep 2019 23:21:13 +0200
Message-ID: <87h85rhi5y.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36477
Cc: 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Mathieu Othacehe <m.othacehe@HIDDEN> writes:

>> Could you check whether that triggers a full rebuild?  If it doesn=E2=80=
=99t,
>> you can push to master.
>
> No mass-rebuild :) Fixed and pushed.

This did cause a mass-rebuild, and Cuirass is currently chugging away at
commit 210b641:

https://ci.guix.gnu.org/jobset/guix-master
https://ci.guix.gnu.org/jobset/guix-modular-master

I reverted it in 4ab97ef, but don't know how to stop the Cuirass
evaluations.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl1wKskACgkQoqBt8qM6
VPr79AgApSBahvQAIfbnEmzRAZFdvD4aOeOuf0n2SB1GDqTCEjH9R7q+GlzFCXCt
SY0LK0JLs5ifUhObVzkmyYfXHLAeIh95zxmcp8Rt6fy9pcWSkGAEQQaqqq3i3B+1
GXDJyGrhTG3ksOmCtICg4iRwcIpd1Gp+lMq1G7micHTj9tKSHVkUsOrwbAeOXyiU
UfC/7APGFg+BNXxPfQcEin5fZ2dWNjY5bvlblmxjSOUM0roPeFQQSS3vwkz+6/Tp
ViZGmBZuMK5OG0OAKGx7ly9L4Ik90McmAZuMAj1fCgJRUekam8I/SN9pfu9lvRS8
rEVFU25kOEU26SNrO78S4b+Ny6aBkg==
=pqhr
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 16:28:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 12:28:26 2019
Received: from localhost ([127.0.0.1]:34224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Y8w-0006nq-0g
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:28:26 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:40129)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i5Y8u-0006nd-PJ
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:28:25 -0400
Received: by mail-wr1-f65.google.com with SMTP id c3so21963241wrd.7
 for <36477 <at> debbugs.gnu.org>; Wed, 04 Sep 2019 09:28:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=OLhAkfIJBgOGGcd3MTC4UKfRECkPkp2mCDSezr8gHtM=;
 b=FpzFd+/tyMY9BrOXhUp12omq0OUZllapi6h3FlGpgbZ+o7sxv5BwAd0l9tyfGsNt5N
 hRppEAeT1blKkJoRLui4n7JwwfDgrD+dn0Kt1VkBHFttgq+oDIWBIKJ3vkVdxZEbJSAX
 /h05iHzgI8rjAmaQUsHKm8rACbTSUCyiT6k8wLmMWgLoZ2Dbwk6NvUkblXysNdRuCGoC
 lPX/ieCkplE9Ju/VpYES71dXpNQ2jucT/X9+ROX3mK5RstemY2uXGsTWl2FsG4LFjg4U
 w8cJm+aIYgBc5rJYysNdmVdbNstbRk/dKPu+dGoz/XtxEAKEKfFm/ghL7+J7RArCG451
 NL7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=OLhAkfIJBgOGGcd3MTC4UKfRECkPkp2mCDSezr8gHtM=;
 b=PZ3WKwU45yvwHUPbDGgicKPYLyfI9T6QY3ba1LrcYLTWNpKrcZtsl3M2IererO2Lzb
 99JDlxozpRPGY/RLP7Mwsd5TJulKEj/nY1NaUW32Is+jrYexjb6s21l9kfZf0E5HX3Gi
 OLptzZROI8W7uwopoXWU6gvuuyozJAmMkWL+U3b+V89ZXOYLYtKxS5uTM9q7nx/Si4qH
 Rz3HreMB6UCOnjtaPP3SryaKtJ2CngDvAMCESOzUGGAG5YHRM7+7+Sb87x5F/rC/ccUn
 WulICXp53suZrAUKR75J5vB92kN9xziWP2NOahAqXeB6yIxjicJwOnvR9Jq/MKMRs1kq
 cXAw==
X-Gm-Message-State: APjAAAVv0OG6oFEd6y9ehn0nd5zFOohluLVgNYCMKeHLEnksj3zHZ/YX
 z0aN7oBsWMt7mI87cL47yZA=
X-Google-Smtp-Source: APXvYqzlyTjUrhKnQouPlqkEvejQkpzDjh0UNKtgvGXUy8m+Q+xH/n8AzLZoe340j8EfsemmMP7u2Q==
X-Received: by 2002:adf:f282:: with SMTP id k2mr4436260wro.38.1567614498949;
 Wed, 04 Sep 2019 09:28:18 -0700 (PDT)
Received: from cervin ([80.12.63.170])
 by smtp.gmail.com with ESMTPSA id w15sm15682874wru.53.2019.09.04.09.28.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 04 Sep 2019 09:28:17 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-4-m.othacehe@HIDDEN> <87imq82pea.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
In-reply-to: <87imq82pea.fsf@HIDDEN>
Date: Wed, 04 Sep 2019 18:28:16 +0200
Message-ID: <87ef0wt49r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


> Could you check whether that triggers a full rebuild?  If it doesn=E2=80=
=99t,
> you can push to master.

No mass-rebuild :) Fixed and pushed.

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 16:17:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 12:17:31 2019
Received: from localhost ([127.0.0.1]:34220 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5XyM-0006Vz-Ry
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:17:31 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:45082)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i5XyL-0006Vi-0E
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:17:29 -0400
Received: by mail-wr1-f65.google.com with SMTP id l16so3609165wrv.12
 for <36477 <at> debbugs.gnu.org>; Wed, 04 Sep 2019 09:17:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=Je040M6yMYA/hyR90yHHfaT0lWnrszo/OXrFWPRy2hU=;
 b=NjRMtmGyKRxh7UJBlWpqXu6g2VsWQcRgw0v9mAbk0vGbLGi8Qboo3m6AqSIrqj8OM5
 Kxg8r9K1AZItYhaIuCXjnVsNTkWgcg79/2Mw/DSj9IO0xUxL7XorpzPioEZlz3DD5SlK
 DaObrYW4dF0IKUbQqrr9XDvar578gBUNnwXKmcr61SeG5hVHltZMlRA5+AEMq0+iT1/e
 qojkWYpEprTRhC/heWpQZdlx339rmAweB8qpsC241weojw4zHNfFScOmVdaVBUzXzdZA
 Vjv6nq/Ao5QBDXt3rAq8C5GeOtUHlACVzFx1wXQkilvYdWS7H5YSJpDxvAJgKQkhP48I
 ouBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=Je040M6yMYA/hyR90yHHfaT0lWnrszo/OXrFWPRy2hU=;
 b=Ny7DfTAyuyFIj5UlIGiPy3G4rHJ7rFW0LLM/syemx13+AxEHfZfFKHjMPrFM2HUz09
 kC9C7RVC2dw1l2QykcqbauyI0EI7yjZx5/oIzGq76M9apI6uuosUJ1Vl6ClNdjz0nRDh
 7dr6S5cc10O0kc2tcLBSJ3kt6MVwJYRyMagdVEPdJAF+Z6Ed0MW5hD8e8e71rrjJ71zC
 FD5lRCxSVN2DK6ZR8ykDWJKA4jDe2rgLLx9CK+cja2TKXxU0RuTLOGTTIrsN3SwSM5eH
 481PQtJXp8tf9qqr/OtxDDinbSj1WreTtLyNcHJzl8XvxIfmRqHkGFwBt/t9zvp7E2Cv
 HFlg==
X-Gm-Message-State: APjAAAX9jZB0sM6xhyDWe4pbpm2UTtJaSLcc/rtf4e4w+5rr0C7tSTyh
 IyPVJPD3SfEFX2e7mi660CE=
X-Google-Smtp-Source: APXvYqxF51cNnI/rIZ8VBI1HQfrW7eNgiudZspt6rMetYcwr4jYLagX3oAcsDi8543cX5lJk1vXBBw==
X-Received: by 2002:a5d:4446:: with SMTP id x6mr48890088wrr.11.1567613843186; 
 Wed, 04 Sep 2019 09:17:23 -0700 (PDT)
Received: from cervin ([80.12.63.170])
 by smtp.gmail.com with ESMTPSA id 7sm800403wmo.29.2019.09.04.09.17.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 04 Sep 2019 09:17:21 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-41-m.othacehe@HIDDEN> <87sgpc19vh.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 40/48] gnu: linux-libre: Enable built-in
 ext4 support.
In-reply-to: <87sgpc19vh.fsf@HIDDEN>
Date: Wed, 04 Sep 2019 18:17:19 +0200
Message-ID: <87ftlct4s0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


> IIRC Mark was reluctant to this change; or was it more about the longer
> term?

Yes, but we discussed it together and decided to proceed with this patch
and in a follow-up, configure ext4 support as a module in all kernel
configurations and add it to default initrd modules.

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 16:01:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 12:01:35 2019
Received: from localhost ([127.0.0.1]:34194 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Xix-00063G-6z
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:01:35 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:39834)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i5Xiv-000631-Ei
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 12:01:33 -0400
Received: by mail-wm1-f65.google.com with SMTP id q12so2636351wmj.4
 for <36477 <at> debbugs.gnu.org>; Wed, 04 Sep 2019 09:01:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=LdE7oT9lbR/dtQ3rfS67otm+xhG2pN3ConeB7ILm/+k=;
 b=jcJ/j4Z4BxvJQvIapffu5kk5rPYZOHSCxZ9uQEIe/dHFBwMlgoiW3UKi3KSeKGJPBY
 IRxCBJpA1Hq+K3n+OPOYYA1HiSR7bNGU3nuHC47LOg9IgRvWq4SyLS7DNWty5de7dWgs
 WK0+WF/1EM5s2L/FYxOH03BcYt1BMj4MBwqXGjQjvQAdczIVtmXooWdkGXDGprXUL/+9
 v6lI1PZUPT7WXXhNH2OL/EPCEKGAPkSNmN4B/WhdaIaf7EiFfTie7lhA9XB3gpH3aJbe
 IF848502mMLZWVZt/grUe3efu4xrxW+Knuahc6LnIPXSaD9cCyUIG6qTDBRCmZLOZBeZ
 wrlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=LdE7oT9lbR/dtQ3rfS67otm+xhG2pN3ConeB7ILm/+k=;
 b=IsBHSwpXfS6p3ppWKw72IsZEMkrIntQM8btg38Dj4QzG3LDveBQrqyUMEzbrcJ8zUM
 NJ+r+iFyQ4LtrgdoJYrC4TF3z72gInznBZsXUmgGk/COZa81IXABg/pQyr5+MuxtwcfM
 ZBmHI17qbeKNx1rL6ovLQs26VPVwI1O5E8oCJcLerUraTpLma9HPoZ+ZayzrJ5zSA8DW
 W2TvtaJXkBNjLrn9HQ1PeRWYueFeVGqY5zUNHjj5h63dD71KzGIRjd/4PmsuBBva8Avu
 tvqcikgCNorhCGN+NUIRjlK7Mj/02MRHiyJc5cbjBasMNJCaPV/HTwR9cTeKwVr4JI2W
 vUSQ==
X-Gm-Message-State: APjAAAX6YvA8/vWgnQPQ3eGTQyFNYQ2ewc0QPcCrNA2f/L6wpVraaifK
 ZEtObL3B/se7t17WUJLsb/w=
X-Google-Smtp-Source: APXvYqzey6xbtfow2g8OsepVgNyDTgcvZoJ71QZoZF7d1tlbYelCGkP49T8zKYAJEUn+RT2tEjz72g==
X-Received: by 2002:a1c:4846:: with SMTP id v67mr5055085wma.120.1567612886450; 
 Wed, 04 Sep 2019 09:01:26 -0700 (PDT)
Received: from cervin ([80.12.63.170])
 by smtp.gmail.com with ESMTPSA id c6sm36553959wrb.60.2019.09.04.09.01.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 04 Sep 2019 09:01:25 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-31-m.othacehe@HIDDEN> <87zhjk2pn4.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 30/48] packages: Set outputs field as
 thunked.
In-reply-to: <87zhjk2pn4.fsf@HIDDEN>
Date: Wed, 04 Sep 2019 18:01:24 +0200
Message-ID: <87h85st5ij.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey Ludo,

Thanks for you reviews :).

> For which package did you have a needed for that?

That's for libnl which has python2 and python3 outputs for python
extensions. However, we do not currently support cross compilation of
python extensions.

Adding cross compilation of Python extension would be the right thing to
do but it's really hard. Nix is also struggling on that, see:
https://github.com/NixOS/nixpkgs/issues/53320.

So I don't have anything better to propose. WDYT?

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:24:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:24:13 2019
Received: from localhost ([127.0.0.1]:32836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5VGf-0008CV-Ai
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:24:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5VGd-0008CI-2l
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:24:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45485)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5VGX-000759-5b; Wed, 04 Sep 2019 09:24:05 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42522 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5VGT-0004wT-Ua; Wed, 04 Sep 2019 09:24:04 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 06/48] gnu: groff: Fix cross compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-7-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:23:59 +0200
In-Reply-To: <20190902153333.11190-7-m.othacehe@HIDDEN> (Mathieu Othacehe's
 message of "Mon, 2 Sep 2019 17:32:51 +0200")
Message-ID: <87o90019g0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/groff.scm (groff)[arguments]: Replace build phase to pass
> GROFF_BIN_PATH and GROFFBIN variables when cross-compiling.
>
> Also add native groff as a native-input when cross-compiling.

Please mention changes to =E2=80=98groff-minimal=E2=80=99.


[...]

> +	,@(if (%current-target-system)
> +              '((replace 'build
> +		  (lambda* (#:key
> +			    make-flags parallel-build?
> +			    native-inputs target #:allow-other-keys)
> +		    ;; When cross-compiling, native groff is needed, see:
> +		    ;; http://www.mail-archive.com/bug-groff@HIDDEN/msg01335.html
> +		    (let ((parallel
> +			   (if parallel-build?
> +			       `("-j" ,(number->string (parallel-job-count)))
> +			       '()))
> +			  (flags
> +			   (if target
> +			       (let ((groff (or
> +					     (assoc-ref native-inputs "groff")
> +					     (assoc-ref native-inputs "self"))))
> +				 (append
> +				  make-flags
> +				  (list
> +				   (string-append "GROFF_BIN_PATH=3D" groff)
> +				   (string-append "GROFFBIN=3D" groff
> +						  "/bin/groff"))))
> +			       make-flags)))

Wouldn=E2=80=99t it be easier to have:

  (arguments
    `(,@(if (%current-target-system)
            `(#:make-flags (list (string-append "GROFF_BIN_PATH=3D"
                                                (assoc-ref %build-native-in=
puts "self)
                                                =E2=80=A6)))
             '()
      =E2=80=A6))

?

>      (native-inputs `(("bison" ,bison)
> -                     ("perl" ,perl)))
> +                     ("perl" ,perl)
> +                     ("groff" ,groff)))

Should probably be:

  ("self" ,this-package)

for consistency.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:14:51 2019
Received: from localhost ([127.0.0.1]:32818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5V7a-0005sV-PT
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:14:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49681)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5V7Z-0005sK-RH
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:14:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45413)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5V7U-0008SZ-NM; Wed, 04 Sep 2019 09:14:44 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42518 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5V7U-0004H5-5W; Wed, 04 Sep 2019 09:14:44 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 40/48] gnu: linux-libre: Enable built-in
 ext4 support.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-41-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:14:42 +0200
In-Reply-To: <20190902153333.11190-41-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:25 +0200")
Message-ID: <87sgpc19vh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> When running qemu-img from (gnu system vm) with an aarch64 kernel, mounti=
ng
> ext4 partitions fails because no modprobe of ext4 module is made. Like for
> other kernel configs, provide built-in support for ext4 partitions.
>
> * gnu/packages/aux-files/linux-libre/5.2-arm64.conf: Enable built-in ext4,
> like in intel and armhf configs.

IIRC Mark was reluctant to this change; or was it more about the longer
term?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:13:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:13:17 2019
Received: from localhost ([127.0.0.1]:32811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5V64-0005pq-W9
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:13:17 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49356)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5V62-0005pb-Ll
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:13:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45400)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5V5x-0007I9-HW; Wed, 04 Sep 2019 09:13:09 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42516 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5V5w-00049H-WC; Wed, 04 Sep 2019 09:13:09 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 38/48] gnu: grub: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-39-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:13:01 +0200
In-Reply-To: <20190902153333.11190-39-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:23 +0200")
Message-ID: <87y2z419ya.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/bootloaders.scm (grub)[arguments]: Search for unifont in both
> native-inputs and inputs.

LGTM!




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:12:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:12:30 2019
Received: from localhost ([127.0.0.1]:32807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5V5K-0005oT-JJ
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:12:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49066)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5V5G-0005oE-OQ
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:12:27 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45365)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5V57-0006fy-Hp; Wed, 04 Sep 2019 09:12:18 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42514 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5V53-0003zy-Gc; Wed, 04 Sep 2019 09:12:14 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-17-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:12:11 +0200
In-Reply-To: <20190902153333.11190-17-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:01 +0200")
Message-ID: <8736hc2ok4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/linux.scm (eudev)[arguments]: Look for xsltproc in both
> native-inputs and inputs. Also, do not run udevadm when cross-compiling.
>
> We need to find another way to generate hwdb.bin file for cross-built sys=
tems.

[...]

>           (add-before 'bootstrap 'patch-file-names
> -           (lambda* (#:key inputs #:allow-other-keys)
> +           (lambda* (#:key inputs native-inputs #:allow-other-keys)
>              (substitute* "man/make.sh"
>                (("/usr/bin/xsltproc")
> -                (string-append (assoc-ref inputs "xsltproc")
> +               (string-append (assoc-ref
> +                               (or native-inputs inputs) "xsltproc")
>                                 "/bin/xsltproc")))

Put this way this leads to a rebuild.  If you want to have it on master,
you=E2=80=99ll have to use ,@ tricks.  (And =E2=80=98core-updates=E2=80=99 =
is frozen.)

>           (add-after 'install 'build-hwdb
>             (lambda* (#:key outputs #:allow-other-keys)
>               ;; Build OUT/etc/udev/hwdb.bin.  This allows 'lsusb' and
>               ;; similar tools to display product names.
> +             ;;
> +             ;; XXX: This can't be done when cross-compiling. Find anoth=
er way
> +             ;; to generate hwdb.bin for cross-built systems.
>               (let ((out (assoc-ref outputs "out")))
> -               (invoke (string-append out "/bin/udevadm")
> -                       "hwdb" "--update")))))

I guess we=E2=80=99d need to add =E2=80=98this-package=E2=80=99 to =E2=80=
=98native-inputs=E2=80=99 to do that,
right?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:02:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:02:04 2019
Received: from localhost ([127.0.0.1]:32801 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UvE-0005aA-JJ
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:02:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46928)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UvC-0005ZB-Og
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:02:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45205)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5Uv7-0000PW-9e; Wed, 04 Sep 2019 09:01:57 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42506 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5Uv6-0001CM-Lu; Wed, 04 Sep 2019 09:01:57 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 14/48] gnu: glibc-utf8-locales: Fix
 cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-15-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:01:55 +0200
In-Reply-To: <20190902153333.11190-15-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:32:59 +0200")
Message-ID: <878sr42p18.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/base.scm (glibc-utf8-locales)[inputs]: Move to ...
> [native-inputs]: ... here, in order to fix cross-compilation.
> * gnu/packages/commencement.scm (glibc-utf8-locales-final)[inputs]: Move =
to ...
> [native-inputs]: ... here, in order to fix cross-compilation.

LGTM.  If it doesn=E2=80=99t trigger a full rebuild, you can push to master.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 13:01:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 09:01:01 2019
Received: from localhost ([127.0.0.1]:32787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UuC-0005X6-Ou
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:01:01 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46510)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UuA-0005Wt-K1
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 09:00:58 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45199)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5Uu5-0008Fd-Cy; Wed, 04 Sep 2019 09:00:53 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42504 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5Uu4-00019D-Vm; Wed, 04 Sep 2019 09:00:53 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-5-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 15:00:51 +0200
In-Reply-To: <20190902153333.11190-5-m.othacehe@HIDDEN> (Mathieu Othacehe's
 message of "Mon, 2 Sep 2019 17:32:49 +0200")
Message-ID: <87d0gg2p30.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/cmake.scm (cmake-minimal-cross): New package.
> * guix/build-system/cmake.scm (default-cmake): Add new target argument an=
d use
> it to select cmake-minimal or cmake-minimal-cross.
> (lower): Pass target to default-cmake.
> ---
>  gnu/packages/cmake.scm      | 8 ++++++++
>  guix/build-system/cmake.scm | 9 ++++++---
>  2 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
> index 1d8d829ec5..9bf0273f00 100644
> --- a/gnu/packages/cmake.scm
> +++ b/gnu/packages/cmake.scm
> @@ -207,6 +207,14 @@ and workspaces that can be used in the compiler envi=
ronment of your choice.")
>      (outputs '("out" "doc"))
>      (properties (alist-delete 'hidden? (package-properties cmake-minimal=
)))))
>=20=20
> +(define-public cmake-minimal-cross
> +  (package
> +    (inherit cmake-minimal)
> +    (name "cmake-minimal-cross")
> +    (native-search-paths '())
> +    (search-paths
> +     (package-native-search-paths cmake-minimal))))

It seems to be enough to just add =E2=80=98search-paths=E2=80=99 to =E2=80=
=98cmake=E2=80=99:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 7186cf98df..9f517238a0 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -151,6 +151,7 @@
      (list (search-path-specification
             (variable "CMAKE_PREFIX_PATH")
             (files '("")))))
+    (search-paths native-search-paths)
     (home-page "https://cmake.org/")
     (synopsis "Cross-platform build system")
     (description

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


=E2=80=A6 and it doesn=E2=80=99t trigger a full rebuild.

Please push that to =E2=80=98master=E2=80=99 if it works for you!

Ludo=E2=80=99.

--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:54:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:54:16 2019
Received: from localhost ([127.0.0.1]:32782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Ung-0005Mk-1C
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:54:16 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44531)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5Une-0005MM-SG
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:54:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45068)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UnZ-0004Dj-Mv; Wed, 04 Sep 2019 08:54:09 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42486 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UnW-0000lk-MZ; Wed, 04 Sep 2019 08:54:07 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-4-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:54:05 +0200
In-Reply-To: <20190902153333.11190-4-m.othacehe@HIDDEN> (Mathieu Othacehe's
 message of "Mon, 2 Sep 2019 17:32:48 +0200")
Message-ID: <87imq82pea.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/texinfo.scm (texinfo)[arguments]: Do not reset environment
> before running configure with the native compiler, in a cross-compilation
> context,
> [inputs]: move perl from here ...
> [native-inputs]: ... to here. Also add ncurses that is needed in a
> cross-compilation context to build texinfo native tools.

[...]

> +    (arguments
> +     ;; When cross-compiling, the package is configured twice: once with=
 the
> +     ;; native compiler and once with the cross-compiler. During the con=
figure
> +     ;; with the native compiler, the environment is reset. This leads to
> +     ;; multiple environment variables missing. Do not reset the environ=
ment
> +     ;; to prevent that.
> +     `(,@(if (%current-target-system)

Simply: (arguments (if (%current-target-system) =E2=80=A6)).

> +    ;; When cross-compiling, texinfo will build some of it's own binarie=
s with

s/it=E2=80=99s/its/

> +    ;; the native compiler. This means ncurses is needed both in both in=
puts
> +    ;; and native-inputs.
> +    (native-inputs `(("perl" ,perl)
> +                     ("ncurses" ,ncurses)))

Could you check whether that triggers a full rebuild?  If it doesn=E2=80=99=
t,
you can push to master.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:52:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:52:12 2019
Received: from localhost ([127.0.0.1]:32775 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Ulg-0005Ja-8R
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:52:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5Ulf-0005JO-16
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:52:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45033)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UlZ-00033H-QO; Wed, 04 Sep 2019 08:52:05 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42484 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UlZ-0000eL-4z; Wed, 04 Sep 2019 08:52:05 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 23/48] gnu: make-linux-libre: Fix
 cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-24-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:52:03 +0200
In-Reply-To: <20190902153333.11190-24-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:08 +0200")
Message-ID: <87mufk2pho.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/packages/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH=
 to
> make sure that cross-libc is not found. Otherwise, some of its header wou=
ld
> conflict with the one from linux (stdint.h and linux/types.h).
> ---
>  gnu/packages/linux.scm | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index afa860830b..9c1ba6d5b9 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no=
 such configuration."
>           (replace 'configure
>             (lambda* (#:key inputs native-inputs target #:allow-other-key=
s)
>               ;; Avoid introducing timestamps
> +             ,@(if (%current-target-system)
> +                   '((unsetenv "CROSS_CPATH"))
> +                   '())
>               (setenv "KCONFIG_NOTIMESTAMP" "1")

Could you move the comment about timestamps right above
KCONFIG_NOTIMESTAMP, and turn the explanation about CROSS_CPATH that you
put in the commit log into a comment above CROSS_CPATH?

OK with these changes, thanks!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:50:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:50:24 2019
Received: from localhost ([127.0.0.1]:32771 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Ujv-0005Gm-Ri
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:50:24 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43575)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5Uju-0005GY-9w
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:50:22 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45000)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5Ujp-0001xU-32; Wed, 04 Sep 2019 08:50:17 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42482 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5Ujo-0000UR-Mr; Wed, 04 Sep 2019 08:50:16 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 34/48] gnu: guile-wm: Fix cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-35-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:50:15 +0200
In-Reply-To: <20190902153333.11190-35-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:19 +0200")
Message-ID: <87r24w2pko.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
>
> * gnu/packages/guile-wm.scm (guile-wm): Add guile and guile-xcb to native-inputs.

LGTM!




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:49:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:49:24 2019
Received: from localhost ([127.0.0.1]:61000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Uiy-0005F2-Et
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:49:24 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43270)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5Uix-0005Ep-7T
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:49:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44974)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5Uir-0001Ek-Jv; Wed, 04 Sep 2019 08:49:17 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42480 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5Uir-0000Pt-3c; Wed, 04 Sep 2019 08:49:17 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 39/48] linux-initrd: Use native gzip.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-40-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:49:15 +0200
In-Reply-To: <20190902153333.11190-40-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:24 +0200")
Message-ID: <87v9u82pmc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/system/linux-initrd.scm (expression->initrd): Pass native gzip to
> build-initrd procedure.

LGTM!




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:48:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:48:59 2019
Received: from localhost ([127.0.0.1]:60996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UiZ-0005E2-3l
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:48:59 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43102)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UiX-0005Do-A1
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:48:57 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44969)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UiP-0000oc-5g; Wed, 04 Sep 2019 08:48:50 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42478 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UiO-0000P4-Pn; Wed, 04 Sep 2019 08:48:49 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 30/48] packages: Set outputs field as
 thunked.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-31-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:48:47 +0200
In-Reply-To: <20190902153333.11190-31-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:15 +0200")
Message-ID: <87zhjk2pn4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> This allows for instance to use %current-target-system to enable/disable =
some
> outputs in a package.
>
> * guix/packages.scm (<package>): Set outputs field as thunked,
> (package->bag): adapt make-bag call accordingly.

For which package did you have a needed for that?

Thunked fields add some overhead (CPU and memory), so I=E2=80=99d rather av=
oid
it until we have a strong need.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:47:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:47:31 2019
Received: from localhost ([127.0.0.1]:60992 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5Uh8-0005Bt-O8
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:47:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42749)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5Uh7-0005Bh-3u
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:47:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44944)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5Uh1-0008Rt-HU; Wed, 04 Sep 2019 08:47:23 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42476 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5Uh0-0000Iz-VX; Wed, 04 Sep 2019 08:47:23 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 47/48] scripts: system: Add --target option.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-48-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:47:21 +0200
In-Reply-To: <20190902153333.11190-48-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:32 +0200")
Message-ID: <874l1s449y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * guix/scripts/system.scm (%options): Add target option,
> (%default-options): ditto,
> (process-action): Rename existing target variable to target-file and pass new
> target variable to run-with-store procedure.

OK!




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:46:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:46:46 2019
Received: from localhost ([127.0.0.1]:60988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UgQ-0005AY-Aj
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:46:46 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42589)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UgN-0005AE-Se
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:46:44 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44932)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UgI-00086P-Nf; Wed, 04 Sep 2019 08:46:38 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42474 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UgH-0000Hf-P9; Wed, 04 Sep 2019 08:46:38 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 46/48] system: vm: Support
 cross-compilation.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-47-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:46:35 +0200
In-Reply-To: <20190902153333.11190-47-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:31 +0200")
Message-ID: <878sr444b8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/system.scm (system-linux-image-file-name): Add support for cross-bu=
ilt
> systems. Remove system argument that was ignored,
> (operating-system-kernel-file): adapt by removing ignored os argument.
> * gnu/system/vm.scm (expression->derivation-in-linux-vm): Add target argu=
ment,
> move qemu from inputs list to a new native-inputs list and adapt
> set-path-environment-variable call accordingly. Pass target to qemu-comma=
nd
> and gexp->derivation calls.
> (iso9660-image): Move qemu from inputs to a new native-inputs list and ad=
apt
> set-path-environment-variable accordingly.
> (qemu-image): Add target argument, move qemu from inputs list to a new
> native-inputs list and adapt set-path-environment-variable call
> accordingly. Pass target argument to expression->derivation-in-linux-vm c=
all.

[...]

>  (define (operating-system-kernel-file os)
>    "Return an object representing the absolute file name of the kernel im=
age of
>  OS."
>    (file-append (operating-system-kernel os)
> -               "/" (system-linux-image-file-name os)))
> +               "/" (system-linux-image-file-name)))

Uh, passing =E2=80=98os=E2=80=99 to =E2=80=98system-linux-image-file-name=
=E2=80=99 never worked, right?

[...]

> -              (let* ((inputs  '#$(list qemu (canonical-package coreutils=
)))
> +              (let* ((inputs  '#$(list (canonical-package coreutils)))
> +                     (native-inputs '#+(list qemu))

All these inputs are added to $PATH just after, which shows that we run
them natively.  Thus, they must all be native.

IOW, all we have to do is replace #$ by #+.

(Also, make sure to test all this without a qemu-binfmt service set up.)

>             (let ((inputs
> -                  '#$(append (list qemu parted e2fsprogs dosfstools xorr=
iso)
> +                  '#$(append (list parted e2fsprogs dosfstools xorriso)
>                               (map canonical-package
>                                    (list sed grep coreutils findutils gaw=
k))))
> +                 (native-inputs '#+(list qemu))

Same here: this is added to $PATH so it must be native.

>             (let ((inputs
> -                  '#$(append (list qemu parted e2fsprogs dosfstools)
> +                  '#$(append (list util-linux parted e2fsprogs dosfstool=
s)
>                               (map canonical-package
>                                    (list sed grep coreutils findutils gaw=
k))))
> +                 (native-inputs '#+(list qemu))

Likewise.

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:36:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:36:14 2019
Received: from localhost ([127.0.0.1]:60980 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UWD-0004vW-Tm
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:36:14 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40424)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UW9-0004vG-0F
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:36:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44768)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UW3-000057-Rh; Wed, 04 Sep 2019 08:36:03 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42470 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UW3-000827-5c; Wed, 04 Sep 2019 08:36:03 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 45/48] system: vm: Add arm64 support.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-46-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:36:01 +0200
In-Reply-To: <20190902153333.11190-46-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:30 +0200")
Message-ID: <87o90044su.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/build/vm.scm (load-in-linux-vm): Add target-arm64? argument and use=
 it
> to pass correct arguments to qemu.
> * gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass the new
> target-arm64? argument added above. Do not add ESP partition on all ARM
> targets. Do not pass grub-efi package to initialize-hard-disk on ARM targ=
ets.

[...]

> --- a/gnu/build/vm.scm
> +++ b/gnu/build/vm.scm
> @@ -82,6 +82,7 @@
>                             make-disk-image?
>                             single-file-output?
>                             target-arm32?
> +                           target-arm64?

Maybe we should just have a #:target parameter instead, WDYT?


[...]

> +                    (grub-efi #$@(if (target-arm?)
> +                                     '(#f)
> +                                     #~(#$grub-efi))))

Simply:  #$(and (not (target-arm?)) grub-efi).

Otherwise LGTM.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:33:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:33:18 2019
Received: from localhost ([127.0.0.1]:60976 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5UTO-0004rD-DF
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:33:18 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5UTN-0004qx-84
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:33:17 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44715)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5UTH-0006CB-QR; Wed, 04 Sep 2019 08:33:11 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42468 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5UTE-0000U5-SS; Wed, 04 Sep 2019 08:33:09 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 44/48] build: vm: Fix arm32 support.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-45-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:33:07 +0200
In-Reply-To: <20190902153333.11190-45-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:29 +0200")
Message-ID: <87sgpc44xo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * gnu/build/vm.scm (load-in-linux-vm): Disable qemu highmem support on ARM32
> systems.

LGTM!




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:32:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:32:41 2019
Received: from localhost ([127.0.0.1]:60972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5USn-0004pv-2r
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:32:41 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39847)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5USl-0004pi-PZ
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:32:40 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44706)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5USg-0005sf-L1; Wed, 04 Sep 2019 08:32:34 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42466 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5USf-0007UC-Qw; Wed, 04 Sep 2019 08:32:34 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 43/48] utils: Use target-arm64? and
 target-arm? helpers.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-44-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:32:32 +0200
In-Reply-To: <20190902153333.11190-44-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:28 +0200")
Message-ID: <87woeo44yn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * guix/utils.scm (target-arm64?, target-arm?): New exported procedures.
> ---
>  guix/utils.scm | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/guix/utils.scm b/guix/utils.scm
> index f480c3291f..3eb156ad4e 100644
> --- a/guix/utils.scm
> +++ b/guix/utils.scm
> @@ -78,6 +78,8 @@
>              package-name->name+version
>              target-mingw?
>              target-arm32?
> +            target-arm64?
> +            target-arm?
>              target-64bit?
>              version-compare
>              version>?
> @@ -493,6 +495,12 @@ a character other than '@'."
>  (define (target-arm32?)
>    (string-prefix? "arm" (or (%current-target-system) (%current-system))))
>=20=20
> +(define (target-arm64?)
> +  (string-prefix? "aarch64" (or (%current-target-system) (%current-syste=
m))))

I=E2=80=99d call it =E2=80=98target-aarch64?=E2=80=99 because that=E2=80=99=
s what it=E2=80=99s called upstream,
and that=E2=80=99s also the name we use elsewhere in Guix.  WDYT?

Apart from that LGTM!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 4 Sep 2019 12:31:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 08:31:27 2019
Received: from localhost ([127.0.0.1]:60964 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5URb-0004no-FJ
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:31:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39628)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i5URa-0004nb-51
 for 36477 <at> debbugs.gnu.org; Wed, 04 Sep 2019 08:31:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44688)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i5URV-00057S-0d; Wed, 04 Sep 2019 08:31:21 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42464 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i5URU-0005pB-Gq; Wed, 04 Sep 2019 08:31:20 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v3 42/48] gexp: Pass target to
 compiled-modules in lower-gexp.
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-43-m.othacehe@HIDDEN>
Date: Wed, 04 Sep 2019 14:31:19 +0200
In-Reply-To: <20190902153333.11190-43-m.othacehe@HIDDEN> (Mathieu
 Othacehe's message of "Mon, 2 Sep 2019 17:33:27 +0200")
Message-ID: <8736hc5jl4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> * guix/gexp.scm (lower-gexp): Pass target argument to compiled-modules.

This seems obvious at first sight, but actually, I=E2=80=99m not sure it=E2=
=80=99s
correct because Guile code always runs =E2=80=9Cnatively=E2=80=9D.  That is=
, when you
write:

  (computed-file "foo" (with-imported-modules =E2=80=A6 #~(begin =E2=80=A6)=
))

the gexp here necessarily runs =E2=80=9Cnatively=E2=80=9D on the current sy=
stem.  Thus,
the modules have to be compiled natively.

The cross-compilation target should only affect things that the regex
refers to with =E2=80=98ungexp=E2=80=99 or =E2=80=98ungexp-splicing=E2=80=
=99.

WDYT?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:40:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:40:44 2019
Received: from localhost ([127.0.0.1]:58888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oRg-0006oz-67
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:40:44 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:38893)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oRe-0006ol-CV
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:40:42 -0400
Received: by mail-wm1-f65.google.com with SMTP id o184so15077578wme.3
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:40:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version:content-transfer-encoding;
 bh=gt6SeVQgHCW4byNote70lhqAHhyQE3Ea8FNCEj31dpw=;
 b=lByp1mXO2t50qzAXgwHRn304lskVbP0kWnblal+FfhL36cPDq5rq3XLamPPxW4KGWn
 0xDcPMy6QpMqfa7xp2e3DoGMOyCJa54O63t3RAEdIYNJjbC+MwCmm8wjIhMVtwJtlx7K
 tLJMNbjENtODfMURcqdaZ4xiYqY4jeFsZKA0GYcuyr7Y1s88hKMPkhPgKcJWuf5EoRLd
 wdZrLF78Q1Me2xkLTTHkOAcIeg9mJHwgNcEX4tuTZZkkMfVgEAk2kz1yv8m9+Qb+jcy8
 phUBC2kdKvwdlP4qWkPFdkqpqMLf6H5n70WC2Ai4q+H3c8mj/agRRkKITNbBkfSFT6gR
 SP/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version:content-transfer-encoding;
 bh=gt6SeVQgHCW4byNote70lhqAHhyQE3Ea8FNCEj31dpw=;
 b=Cr6d4OuvBEqpMkAM5GrWt4lZWw/W6n/0zDOlIaxspqn5ydUjH3hN94/nPmzSnAeVC/
 cdpf2mkUruB5Bc3KXFKDMvxTDVpzxns8rPXgG4WnffJdJR81sYlOW6FzAjWlffUNRdOp
 GQlByzd9j2ugGH/Ktdozo2uDIKPkSVzo2WdZsg+HukX4dtPv2mg8AgyVW5cpt+qrFJ8/
 s5LKxBKNY7JRok+YqgBwW5csKx3ZqPW3gfqXf85hPFj8AJLzZ9NnA4GUvLy99cqzQTt1
 3hgKdtnf9pJEXEoiuKwzwMxVF1W5X8mA8k9FeIgakAstH7iMCaClgabRS2M0QYrkANSH
 8dGg==
X-Gm-Message-State: APjAAAX8k+6XBfXTb4/pJauCMts2cgsUH80w/c6Nt9lNgF/GbA1czJJu
 fHuObFG2Hy5nqslil5s7jHY5o4t0
X-Google-Smtp-Source: APXvYqyQgpRORTYMTLBeT781H+Ft/y6tpjTkYXQx9MaqULvlJGbbz/nunWBB5jeV+8dRJix83xW9kg==
X-Received: by 2002:a1c:9c52:: with SMTP id f79mr11541120wme.89.1567438836278; 
 Mon, 02 Sep 2019 08:40:36 -0700 (PDT)
Received: from cervin ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id q26sm2629024wmf.45.2019.09.02.08.40.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:40:35 -0700 (PDT)
References: <87zhlwmpmy.fsf@HIDDEN> <87wof6x5v4.fsf@HIDDEN>
 <874l1uamlf.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#36477] [PATCH v2 00/61] Add --target support to guix system
In-reply-to: <874l1uamlf.fsf@HIDDEN>
Date: Mon, 02 Sep 2019 17:40:34 +0200
Message-ID: <87ftlehfkd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: Marius Bakke <mbakke@HIDDEN>, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hey,

> Could you already apply the patches that Marius and I already agreed to?
> Double-check that they can go to =E2=80=98master=E2=80=99 without trigger=
ing a full
> rebuild.

Done! I pushed them to core-updates-next as almost all of them trigger
mass rebuild.

I sent a v3 with the unreviewed patches. The most critical ones are maybe
number 41 and 42 as they hit (guix gexp) module.

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:35:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:35:40 2019
Received: from localhost ([127.0.0.1]:58884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oMl-0006hF-W3
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:35:40 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:36772)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oMj-0006h0-O7
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:35:38 -0400
Received: by mail-wm1-f66.google.com with SMTP id p13so15113912wmh.1
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:35:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=references:user-agent:from:to:cc:subject:in-reply-to:date
 :message-id:mime-version;
 bh=oY0hhGmHiO7xYDseRuNhuOCFpt8PHbyQy4vqciI1T/g=;
 b=Fv2Xk258ZTmBrboLveG8586YF0kMuSTarmo1U6tkuh2i7KDBhHtc0ov71mflBTTRnk
 VPNvHQHtI6lWufcFdR3tpINvK6pA5kIaWr9OppP9WMhKOOAX1ngkV/MyHdiy4yDxDC2c
 xUbScCy45yrWLLnAZ1hhPr7G8Sm2WgbMey/tk6xH2sX/rVCDFSd22kUnoo7hVsE/0zzY
 VFgpeP2gCGv7QXgtG6+ljfbIBZN7T7FpycRUtXzGftA3S/yIOJU0M8vbwcjKoYUuWIDh
 CxWBHwptnxj5asSujU8x7gMvfz44oLyKQtRodu7dMmKq4DYWL1qqgrTL+/BxQFuVP9pZ
 qooA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:references:user-agent:from:to:cc:subject
 :in-reply-to:date:message-id:mime-version;
 bh=oY0hhGmHiO7xYDseRuNhuOCFpt8PHbyQy4vqciI1T/g=;
 b=ZjV1AqfGdC0O5ocsLq0lDHo06DXuWFwVmmRiz1ja/LKusjwuNlrruxayCz5AB4r7dR
 PoCPepN9Au5Z2iKXc9CBYaT0SDv6beFvRUBY4LJjx2UUnQLwiu5BfPmHFY5op67z5/W5
 rNkeygyPLPkDI7CCE38wL8Lgcw207Hk75GI9wq6BYaYt/g3qb8TEWMMvGr2FkhpKY7Hp
 u7k4+Or9nqBrtFEVpVGxgSCeTpvceIPL2RLKxyx+0h/nh0S42qsCj6ZWNMFxqtG7Tti6
 DXvkx87NktI+dkZa4t3pNjDxWonpV1D6GvwymPvd3l2zSZ6wVurjenbLi2l5xmKeqmV6
 A9Wg==
X-Gm-Message-State: APjAAAWetGlIBY6K9ahgZxpy0XqzHpvWAY1UnZdRg+f5qpU4qMzXK+Lo
 M3VBzjabr54CTK2GtI3IdxI6ufyH
X-Google-Smtp-Source: APXvYqx3pK4o3CaOvFXCE7NR/DZejST1lHEvI/yZ0evZwxAL8fzHDRnToxy2y+vHMdYVv1Ub6y64MA==
X-Received: by 2002:a7b:cb89:: with SMTP id m9mr37857999wmi.50.1567438532060; 
 Mon, 02 Sep 2019 08:35:32 -0700 (PDT)
Received: from cervin ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id q14sm29022702wrc.77.2019.09.02.08.35.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:35:31 -0700 (PDT)
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
 <20190902153333.11190-49-m.othacehe@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.3
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: Re: [PATCH v3 48/48] wip: tools.
In-reply-to: <20190902153333.11190-49-m.othacehe@HIDDEN>
Date: Mon, 02 Sep 2019 17:35:30 +0200
Message-ID: <87h85uhfst.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Not for review, sorry!

Mathieu

Mathieu Othacehe writes:

> ---
>  build-sorted-ok-ko-packages.sh          | 354 ++++++++++++++++++++++++
>  deps.scm                                | 184 ++++++++++++
>  gnu/system/examples/mini-beaglebone.scm |  61 ++++
>  gnu/system/examples/mini.scm            |  54 ++++
>  4 files changed, 653 insertions(+)
>  create mode 100755 build-sorted-ok-ko-packages.sh
>  create mode 100644 deps.scm
>  create mode 100644 gnu/system/examples/mini-beaglebone.scm
>  create mode 100644 gnu/system/examples/mini.scm
>
> diff --git a/build-sorted-ok-ko-packages.sh b/build-sorted-ok-ko-packages.sh
> new file mode 100755
> index 0000000000..a2a13dcdfc
> --- /dev/null
> +++ b/build-sorted-ok-ko-packages.sh
> @@ -0,0 +1,354 @@
> +#!/bin/bash -
> +
> +set -o nounset                              # Treat unset variables as an error
> +
> +mngt_dir()
> +{
> +    local dirname=$1
> +
> +    rm -rf ${dirname}.bk
> +    if [ -e $dirname ]; then
> +        mv $dirname ${dirname}.bk
> +    fi
> +    mkdir ${dirname}
> +}
> +
> +DEPENDENCIES_DIR="packages-dependencies"
> +KO_OUT_LOG_DIR="ko-out-log-dir"
> +OUT_FILE_NAME_BASE="packages-status"
> +OUT_FILE_NAME_EXT="wiki"
> +OUT_FILE_NAME=${OUT_FILE_NAME_BASE}.${OUT_FILE_NAME_EXT}
> +
> +rm -f ${OUT_FILE_NAME}.bk
> +if [ -e $OUT_FILE_NAME ]; then
> +    mv $OUT_FILE_NAME ${OUT_FILE_NAME}.bk
> +fi
> +
> +mngt_dir ${DEPENDENCIES_DIR}
> +mngt_dir ${KO_OUT_LOG_DIR}
> +
> +NB_OK=0
> +NB_KO=0
> +NB_UNKNOWN=0
> +
> +file_header()
> +{
> +    local title="Packages status"
> +
> +    echo ""
> +    echo "start file $OUT_FILE_NAME"
> +    echo ""
> +
> +    echo "" >> $OUT_FILE_NAME
> +    echo "= $title =" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +}
> +
> +section_header()
> +{
> +    local title=$1
> +
> +    echo ""
> +    echo ""
> +    echo "start section \"$title\""
> +
> +    echo "" >> $OUT_FILE_NAME
> +    echo "== $title ==" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +    echo "| package | status | nb dependencies |" >> $OUT_FILE_NAME
> +
> +    NB_OK=0
> +    NB_KO=0
> +    NB_UNKNOWN=0
> +}
> +
> +section_footer()
> +{
> +    echo "" >> $OUT_FILE_NAME
> +    echo "nb packages OK in section: $NB_OK" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +    echo "nb packages *KO* in section: $NB_KO" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +    echo "nb packages UNKNOWN in section: $NB_UNKNOWN" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +    echo "" >> $OUT_FILE_NAME
> +}
> +
> +add_package_status()
> +{
> +    local package=$1
> +    local status=$2
> +    local nb_deps=$3
> +
> +    if [ "$status" = "OK" ]; then
> +        NB_OK=$(($NB_OK+1))
> +    elif [ "$status" = "KO" ]; then
> +        status="*KO*"
> +        NB_KO=$(($NB_KO+1))
> +    else
> +        NB_UNKNOWN=$(($NB_UNKNOWN+1))
> +    fi
> +
> +    echo "| $package | $status | $nb_deps |" >> $OUT_FILE_NAME
> +}
> +
> +LIST_PACK_SUPPOSED_OK=""
> +
> +LIST_PACK_SUPPOSED_OK+=" xz"
> +LIST_PACK_SUPPOSED_OK+=" tk"
> +LIST_PACK_SUPPOSED_OK+=" m4"
> +LIST_PACK_SUPPOSED_OK+=" ed"
> +LIST_PACK_SUPPOSED_OK+=" bc"
> +LIST_PACK_SUPPOSED_OK+=" tcl"
> +LIST_PACK_SUPPOSED_OK+=" sed"
> +LIST_PACK_SUPPOSED_OK+=" mpc"
> +LIST_PACK_SUPPOSED_OK+=" lzo"
> +LIST_PACK_SUPPOSED_OK+=" isl"
> +LIST_PACK_SUPPOSED_OK+=" gss"
> +LIST_PACK_SUPPOSED_OK+=" gmp"
> +LIST_PACK_SUPPOSED_OK+=" bdb"
> +LIST_PACK_SUPPOSED_OK+=" acl"
> +LIST_PACK_SUPPOSED_OK+=" zlib"
> +LIST_PACK_SUPPOSED_OK+=" sudo"
> +LIST_PACK_SUPPOSED_OK+=" perl"
> +LIST_PACK_SUPPOSED_OK+=" pcre"
> +LIST_PACK_SUPPOSED_OK+=" mpfr"
> +LIST_PACK_SUPPOSED_OK+=" make"
> +LIST_PACK_SUPPOSED_OK+=" lzip"
> +LIST_PACK_SUPPOSED_OK+=" gzip"
> +LIST_PACK_SUPPOSED_OK+=" grep"
> +LIST_PACK_SUPPOSED_OK+=" gdbm"
> +LIST_PACK_SUPPOSED_OK+=" gawk"
> +LIST_PACK_SUPPOSED_OK+=" fuse"
> +LIST_PACK_SUPPOSED_OK+=" flex"
> +LIST_PACK_SUPPOSED_OK+=" flac"
> +LIST_PACK_SUPPOSED_OK+=" file"
> +LIST_PACK_SUPPOSED_OK+=" fftw"
> +LIST_PACK_SUPPOSED_OK+=" bash"
> +LIST_PACK_SUPPOSED_OK+=" attr"
> +LIST_PACK_SUPPOSED_OK+=" which"
> +LIST_PACK_SUPPOSED_OK+=" unzip"
> +LIST_PACK_SUPPOSED_OK+=" rhash"
> +LIST_PACK_SUPPOSED_OK+=" libuv"
> +LIST_PACK_SUPPOSED_OK+=" libgc"
> +LIST_PACK_SUPPOSED_OK+=" libev"
> +LIST_PACK_SUPPOSED_OK+=" guile"
> +LIST_PACK_SUPPOSED_OK+=" groff"
> +LIST_PACK_SUPPOSED_OK+=" gperf"
> +LIST_PACK_SUPPOSED_OK+=" glibc"
> +LIST_PACK_SUPPOSED_OK+=" expat"
> +LIST_PACK_SUPPOSED_OK+=" bzip2"
> +LIST_PACK_SUPPOSED_OK+=" bison"
> +LIST_PACK_SUPPOSED_OK+=" xtrans"
> +LIST_PACK_SUPPOSED_OK+=" tzdata"
> +LIST_PACK_SUPPOSED_OK+=" sqlite"
> +LIST_PACK_SUPPOSED_OK+=" shishi"
> +LIST_PACK_SUPPOSED_OK+=" shadow"
> +LIST_PACK_SUPPOSED_OK+=" python"
> +LIST_PACK_SUPPOSED_OK+=" nettle"
> +LIST_PACK_SUPPOSED_OK+=" libxft"
> +LIST_PACK_SUPPOSED_OK+=" libxcb"
> +LIST_PACK_SUPPOSED_OK+=" libxau"
> +LIST_PACK_SUPPOSED_OK+=" libx11"
> +LIST_PACK_SUPPOSED_OK+=" libpng"
> +LIST_PACK_SUPPOSED_OK+=" libogg"
> +LIST_PACK_SUPPOSED_OK+=" libidn"
> +LIST_PACK_SUPPOSED_OK+=" libffi"
> +LIST_PACK_SUPPOSED_OK+=" libelf"
> +LIST_PACK_SUPPOSED_OK+=" libcap"
> +LIST_PACK_SUPPOSED_OK+=" libbsd"
> +LIST_PACK_SUPPOSED_OK+=" indent"
> +LIST_PACK_SUPPOSED_OK+=" gnutls"
> +LIST_PACK_SUPPOSED_OK+=" c-ares"
> +LIST_PACK_SUPPOSED_OK+=" texinfo"
> +LIST_PACK_SUPPOSED_OK+=" python2"
> +LIST_PACK_SUPPOSED_OK+=" psutils"
> +LIST_PACK_SUPPOSED_OK+=" ncurses"
> +LIST_PACK_SUPPOSED_OK+=" libxslt"
> +LIST_PACK_SUPPOSED_OK+=" libxml2"
> +LIST_PACK_SUPPOSED_OK+=" libxext"
> +LIST_PACK_SUPPOSED_OK+=" libtool"
> +LIST_PACK_SUPPOSED_OK+=" libtiff"
> +LIST_PACK_SUPPOSED_OK+=" libssh2"
> +LIST_PACK_SUPPOSED_OK+=" libltdl"
> +LIST_PACK_SUPPOSED_OK+=" libjpeg"
> +LIST_PACK_SUPPOSED_OK+=" libidn2"
> +LIST_PACK_SUPPOSED_OK+=" jansson"
> +LIST_PACK_SUPPOSED_OK+=" shepherd"
> +LIST_PACK_SUPPOSED_OK+=" net-base"
> +LIST_PACK_SUPPOSED_OK+=" libxdmcp"
> +LIST_PACK_SUPPOSED_OK+=" libtasn1"
> +LIST_PACK_SUPPOSED_OK+=" libpaper"
> +LIST_PACK_SUPPOSED_OK+=" jemalloc"
> +LIST_PACK_SUPPOSED_OK+=" jbig2dec"
> +LIST_PACK_SUPPOSED_OK+=" gs-fonts"
> +LIST_PACK_SUPPOSED_OK+=" freetype"
> +LIST_PACK_SUPPOSED_OK+=" elfutils"
> +LIST_PACK_SUPPOSED_OK+=" binutils"
> +LIST_PACK_SUPPOSED_OK+=" automake"
> +LIST_PACK_SUPPOSED_OK+=" autoconf"
> +LIST_PACK_SUPPOSED_OK+=" alsa-lib"
> +LIST_PACK_SUPPOSED_OK+=" xorgproto"
> +LIST_PACK_SUPPOSED_OK+=" xcb-proto"
> +LIST_PACK_SUPPOSED_OK+=" linux-pam"
> +LIST_PACK_SUPPOSED_OK+=" libvorbis"
> +LIST_PACK_SUPPOSED_OK+=" libgcrypt"
> +LIST_PACK_SUPPOSED_OK+=" inetutils"
> +LIST_PACK_SUPPOSED_OK+=" findutils"
> +LIST_PACK_SUPPOSED_OK+=" e2fsprogs"
> +LIST_PACK_SUPPOSED_OK+=" diffutils"
> +LIST_PACK_SUPPOSED_OK+=" coreutils"
> +LIST_PACK_SUPPOSED_OK+=" util-linux"
> +LIST_PACK_SUPPOSED_OK+=" libxrender"
> +LIST_PACK_SUPPOSED_OK+=" libsndfile"
> +LIST_PACK_SUPPOSED_OK+=" libsigsegv"
> +LIST_PACK_SUPPOSED_OK+=" libfontenc"
> +LIST_PACK_SUPPOSED_OK+=" guile-json"
> +LIST_PACK_SUPPOSED_OK+=" fontconfig"
> +LIST_PACK_SUPPOSED_OK+=" util-macros"
> +LIST_PACK_SUPPOSED_OK+=" mkfontscale"
> +LIST_PACK_SUPPOSED_OK+=" linux-libre"
> +LIST_PACK_SUPPOSED_OK+=" ghostscript"
> +LIST_PACK_SUPPOSED_OK+=" docbook-xsl"
> +LIST_PACK_SUPPOSED_OK+=" docbook-xml"
> +LIST_PACK_SUPPOSED_OK+=" bash-static"
> +LIST_PACK_SUPPOSED_OK+=" libunistring"
> +LIST_PACK_SUPPOSED_OK+=" libgpg-error"
> +LIST_PACK_SUPPOSED_OK+=" bash-minimal"
> +LIST_PACK_SUPPOSED_OK+=" libsamplerate"
> +LIST_PACK_SUPPOSED_OK+=" libatomic-ops"
> +LIST_PACK_SUPPOSED_OK+=" e2fsck-static"
> +LIST_PACK_SUPPOSED_OK+=" wireless-regdb"
> +LIST_PACK_SUPPOSED_OK+=" python-wrapper"
> +LIST_PACK_SUPPOSED_OK+=" python-minimal"
> +LIST_PACK_SUPPOSED_OK+=" guile-readline"
> +LIST_PACK_SUPPOSED_OK+=" guile-gdbm-ffi"
> +LIST_PACK_SUPPOSED_OK+=" gettext-minimal"
> +LIST_PACK_SUPPOSED_OK+=" libpthread-stubs"
> +LIST_PACK_SUPPOSED_OK+=" openfwwf-firmware"
> +LIST_PACK_SUPPOSED_OK+=" glibc-utf8-locales"
> +LIST_PACK_SUPPOSED_OK+=" ath9k-htc-firmware"
> +LIST_PACK_SUPPOSED_OK+=" linux-libre-headers"
> +LIST_PACK_SUPPOSED_OK+=" guile-static-stripped"
> +LIST_PACK_SUPPOSED_OK+=" python-minimal-wrapper"
> +LIST_PACK_SUPPOSED_OK+=" pkg-config"
> +LIST_PACK_SUPPOSED_OK+=" libarchive"
> +LIST_PACK_SUPPOSED_OK+=" cyrus-sasl"
> +LIST_PACK_SUPPOSED_OK+=" tcsh"
> +LIST_PACK_SUPPOSED_OK+=" xmlto"
> +LIST_PACK_SUPPOSED_OK+=" icu4c" # ?
> +LIST_PACK_SUPPOSED_OK+=" mit-krb5" # ok ?
> +LIST_PACK_SUPPOSED_OK+=" help2man"
> +LIST_PACK_SUPPOSED_OK+=" mkfontdir"
> +LIST_PACK_SUPPOSED_OK+=" lvm2"
> +LIST_PACK_SUPPOSED_OK+=" eudev"
> +LIST_PACK_SUPPOSED_OK+=" procps"
> +LIST_PACK_SUPPOSED_OK+=" alsa-utils"
> +LIST_PACK_SUPPOSED_OK+=" boost"
> +LIST_PACK_SUPPOSED_OK+=" swig"
> +LIST_PACK_SUPPOSED_OK+=" doxygen"
> +LIST_PACK_SUPPOSED_OK+=" curl"
> +LIST_PACK_SUPPOSED_OK+=" nghttp2"
> +LIST_PACK_SUPPOSED_OK+=" openldap"
> +LIST_PACK_SUPPOSED_OK+=" git-minimal"
> +
> +
> +LIST_PACK_SUPPOSED_KO=""
> +
> +LIST_PACK_SUPPOSED_KO+=" libnl"
> +LIST_PACK_SUPPOSED_KO+=" crda" # depends on libnl
> +LIST_PACK_SUPPOSED_KO+=" cmake"
> +LIST_PACK_SUPPOSED_KO+=" guile-wm"
> +LIST_PACK_SUPPOSED_KO+=" guile-xcb"
> +
> +count_dependencies()
> +{
> +    local pack="$1"
> +    local depsfile="$DEPENDENCIES_DIR/${pack}.dot"
> +    guix graph -t bag-emerged $pack > $depsfile
> +    count=$(cat $depsfile | grep "\->" | wc -l)
> +    echo $count
> +}
> +
> +build_pack()
> +{
> +    local pack="$1"
> +    local out_file=$(mktemp /tmp/test-guix.XXXXX)
> +    local result=0
> +
> +    ./pre-inst-env guix build --target=aarch64-linux-gnu $pack > $out_file 2>&1
> +    result=$?
> +
> +    if [ $result -eq 0 ]; then
> +        rm -f $out_file
> +    else
> +        mv $out_file ${KO_OUT_LOG_DIR}/${pack}.log
> +    fi
> +
> +    return $result
> +}
> +
> +build_all_in_list()
> +{
> +    local list_pack="$@"
> +    local status=unknown
> +
> +    for pack in $list_pack; do
> +        echo ""
> +        echo ""
> +        echo "--------------- package $pack ---------------"
> +        echo ""
> +        build_pack $pack
> +        if [ $? -eq 0 ]; then
> +            status="OK"
> +        else
> +            status="KO"
> +        fi
> +
> +        nb_deps="$(count_dependencies $pack)"
> +        echo "  package $pack is $status (and has $nb_deps dependencies)"
> +        echo ""
> +        echo ""
> +
> +        add_package_status $pack $status $nb_deps
> +    done
> +}
> +
> +if [ $# -ge 1 ]; then
> +    EXEC_SUPPOSED_OK=0
> +    EXEC_SUPPOSED_KO=0
> +    while [ $# -ge 1 ]; do
> +        case "$1" in
> +            "--ok")
> +                EXEC_SUPPOSED_OK=1
> +                ;;
> +            "--ko")
> +                EXEC_SUPPOSED_KO=1
> +                ;;
> +            *)
> +                echo "Unknown argument $1"
> +                exit 1
> +                ;;
> +        esac
> +        shift
> +    done
> +else
> +    EXEC_SUPPOSED_OK=1
> +    EXEC_SUPPOSED_KO=1
> +fi
> +
> +file_header
> +
> +if [ $EXEC_SUPPOSED_OK -eq 1 ]; then
> +    section_header "Supposed OK Packages"
> +    build_all_in_list $LIST_PACK_SUPPOSED_OK
> +    section_footer
> +fi
> +
> +if [ $EXEC_SUPPOSED_KO -eq 1 ]; then
> +    section_header "Supposed KO Packages"
> +    build_all_in_list $LIST_PACK_SUPPOSED_KO
> +    section_footer
> +fi
> +
> +
> diff --git a/deps.scm b/deps.scm
> new file mode 100644
> index 0000000000..75e8f106fe
> --- /dev/null
> +++ b/deps.scm
> @@ -0,0 +1,184 @@
> +(use-modules (guix)
> +             (guix scripts build)
> +             (gnu)
> +             (ice-9 receive))
> +
> +(define deps
> +  '("sudo"
> +    "guile-xcb"
> +    "guile-wm"
> +    "tzdata"
> +    "guile-gdbm-ffi"
> +    "gzip"
> +    "expat"
> +    "attr"
> +    "gettext-minimal"
> +    "m4"
> +    "perl"
> +    "gmp"
> +    "acl"
> +    "libcap"
> +    "libsigsegv"
> +    "pkg-config"
> +    "zlib"
> +    "libffi"
> +    "glibc"
> +    "bash-static"
> +    "bison"
> +    "texinfo"
> +    "lzip"
> +    "ed"
> +    "libatomic-ops"
> +    "libltdl"
> +    "libunistring"
> +    "libgc"
> +    "linux-libre-headers"
> +    "bzip2"
> +    "bash-minimal"
> +    "diffutils"
> +    "binutils"
> +    "findutils"
> +    "guile"
> +    "sed"
> +    "make"
> +    "gawk"
> +    "xz"
> +    "grep"
> +    "file"
> +    "coreutils"
> +    "glibc-utf8-locales"
> +    "libpng"
> +    "freetype"
> +    "libfontenc"
> +    "mkfontdir"
> +    "mkfontscale"
> +    "guile-readline"
> +    "lzo"
> +    "rhash"
> +    "libuv"
> +    "libarchive"
> +    "cmake"
> +    "ath9k-htc-firmware"
> +    "openfwwf-firmware"
> +    "inetutils"
> +    "tcsh"
> +    "pcre"
> +    "boost"
> +    "swig"
> +    "libnl"
> +    "wireless-regdb"
> +    "flac"
> +    "libsndfile"
> +    "libvorbis"
> +    "libogg"
> +    "xmlto"
> +    "fftw"
> +    "alsa-lib"
> +    "alsa-utils"
> +    "libsamplerate"
> +    "lvm2"
> +    "fuse"
> +    "crda"
> +    "which"
> +    "help2man"
> +    "indent"
> +    "flex"
> +    "gdbm"
> +    "mit-krb5"
> +    "openldap"
> +    "cyrus-sasl"
> +    "curl"
> +    "icu4c"
> +    "bdb"
> +    "libev"
> +    "jemalloc"
> +    "jansson"
> +    "c-ares"
> +    "linux-pam"
> +    "shishi"
> +    "xtrans"
> +    "libbsd"
> +    "python-minimal-wrapper"
> +    "xcb-proto"
> +    "python-minimal"
> +    "gs-fonts"
> +    "fontconfig"
> +    "libxrender"
> +    "libxft"
> +    "tk"
> +    "xorgproto"
> +    "libpthread-stubs"
> +    "util-macros"
> +    "libxau"
> +    "libxext"
> +    "libxcb"
> +    "sqlite"
> +    "libxdmcp"
> +    "libx11"
> +    "libpaper"
> +    "jbig2dec"
> +    "tcl"
> +    "libjpeg"
> +    "libtiff"
> +    "psutils"
> +    "ghostscript"
> +    "groff"
> +    "libgpg-error"
> +    "libtasn1"
> +    "libssh2"
> +    "python2"
> +    "gss"
> +    "libgcrypt"
> +    "nettle"
> +    "libidn"
> +    "nghttp2"
> +    "libidn2"
> +    "git-minimal"
> +    "gnutls"
> +    "guile-json"
> +    "unzip"
> +    "autoconf"
> +    "automake"
> +    "docbook-xml"
> +    "libtool"
> +    "python"
> +    "python-wrapper"
> +    "libxslt"
> +    "libxml2"
> +    "docbook-xsl"
> +    "gperf"
> +    "eudev"
> +    "shadow"
> +    "bash"
> +    "shepherd"
> +    "isl"
> +    "net-base"
> +    "procps"
> +    "util-linux"
> +    "e2fsprogs"
> +    "e2fsck-static"
> +    "guile-static-stripped"
> +    "libelf"
> +    "ncurses"
> +    "mpc"
> +    "bc"
> +    "elfutils"
> +    "mpfr"
> +    "linux-libre"))
> +
> +(define store (open-connection))
> +
> +(define arguments
> +  (map (lambda (spec)
> +         `(argument . ,spec))
> +       deps))
> +
> +(run-with-store store
> +  (mlet %store-monad
> +      ((derivations ->
> +        ((@@ (guix scripts build) options->derivations)
> +         store
> +         `((target . "aarch64-linux-gnu")
> +           ,@arguments))))
> +    (mbegin %store-monad
> +      (built-derivations derivations))))
> diff --git a/gnu/system/examples/mini-beaglebone.scm b/gnu/system/examples/mini-beaglebone.scm
> new file mode 100644
> index 0000000000..6ce0ab1b1c
> --- /dev/null
> +++ b/gnu/system/examples/mini-beaglebone.scm
> @@ -0,0 +1,61 @@
> +;; This is an operating system configuration template
> +;; for a "bare bones" setup, with no X11 display server.
> +
> +(use-modules (gnu) (gnu bootloader u-boot))
> +(use-service-modules networking ssh)
> +(use-package-modules bootloaders linux screen)
> +
> +(operating-system
> +  (host-name "komputilo")
> +  (timezone "Europe/Berlin")
> +  (locale "en_US.utf8")
> +
> +  ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
> +  ;; target hard disk, and "my-root" is the label of the target
> +  ;; root file system.
> +  (bootloader (bootloader-configuration
> +               (bootloader u-boot-beaglebone-black-bootloader)
> +               (target "/dev/vda")))
> +
> +  (kernel linux-libre-arm-omap2plus)
> +
> +  ;; This module is required to mount the SD card.
> +  (initrd-modules (cons "omap_hsmmc" %base-initrd-modules))
> +
> +  (file-systems (cons (file-system
> +                        (device (file-system-label "my-root"))
> +                        (mount-point "/")
> +                        (type "ext4"))
> +                      %base-file-systems))
> +
> +  ;; This is where user accounts are specified.  The "root"
> +  ;; account is implicit, and is initially created with the
> +  ;; empty password.
> +  (users (cons (user-account
> +                (name "alice")
> +                (comment "Bob's sister")
> +                (group "users")
> +
> +                ;; Adding the account to the "wheel" group
> +                ;; makes it a sudoer.  Adding it to "audio"
> +                ;; and "video" allows the user to play sound
> +                ;; and access the webcam.
> +                (supplementary-groups '("wheel"
> +                                        "audio" "video")))
> +               %base-user-accounts))
> +
> +  ;; Globally-installed packages.
> +  (packages '())
> +
> +  ;; Add services to the baseline: a DHCP client and
> +  ;; an SSH server.
> +  (services (list
> +             (service udev-service-type
> +                      (udev-configuration
> +                       (rules (list lvm2 fuse alsa-utils crda))))
> +             (agetty-service
> +              (agetty-configuration
> +               (extra-options '("-L"))
> +               (baud-rate "115200")
> +               (term "vt100")
> +               (tty "ttyO0"))))))
> diff --git a/gnu/system/examples/mini.scm b/gnu/system/examples/mini.scm
> new file mode 100644
> index 0000000000..f7c7b63308
> --- /dev/null
> +++ b/gnu/system/examples/mini.scm
> @@ -0,0 +1,54 @@
> +;; This is an operating system configuration template
> +;; for a "bare bones" setup, with no X11 display server.
> +
> +(use-modules (gnu))
> +(use-service-modules networking ssh)
> +(use-package-modules linux screen)
> +
> +(define dummy-bootloader
> +  (bootloader
> +   (inherit grub-bootloader)
> +   (installer #f)))
> +
> +(operating-system
> +  (host-name "komputilo")
> +  (timezone "Europe/Berlin")
> +  (locale "en_US.utf8")
> +
> +  ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
> +  ;; target hard disk, and "my-root" is the label of the target
> +  ;; root file system.
> +  (bootloader (bootloader-configuration
> +                (bootloader dummy-bootloader)
> +                (target "/dev/sdX")))
> +  (file-systems (cons (file-system
> +                        (device (file-system-label "my-root"))
> +                        (mount-point "/")
> +                        (type "ext4"))
> +                      %base-file-systems))
> +
> +  ;; This is where user accounts are specified.  The "root"
> +  ;; account is implicit, and is initially created with the
> +  ;; empty password.
> +  (users (cons (user-account
> +                (name "alice")
> +                (comment "Bob's sister")
> +                (group "users")
> +
> +                ;; Adding the account to the "wheel" group
> +                ;; makes it a sudoer.  Adding it to "audio"
> +                ;; and "video" allows the user to play sound
> +                ;; and access the webcam.
> +                (supplementary-groups '("wheel"
> +                                        "audio" "video")))
> +               %base-user-accounts))
> +
> +  ;; Globally-installed packages.
> +  (packages '())
> +
> +  ;; Add services to the baseline: a DHCP client and
> +  ;; an SSH server.
> +  (services (list
> +             (service udev-service-type
> +                      (udev-configuration
> +                       (rules (list lvm2 fuse alsa-utils crda)))))))





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:57 2019
Received: from localhost ([127.0.0.1]:58839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM4-0006bQ-Ft
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:57 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:41758)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLn-0006YH-8v
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:40 -0400
Received: by mail-wr1-f68.google.com with SMTP id j16so14443857wrr.8
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=dOKChSPIa1zVzvJViPzlsRONmF2dFzkQunlCFu0x5xs=;
 b=STsxQkQPSdqjCwUKVOElJCbEqAUHxKwsojn7LoGR9QkQV6RkhNQrRZ6vKv7mU9ePip
 nz56FrhSHMMmK6ofHk9eNNammLc9k561eaXN3PSyXe/GIbBHe4zf3W/sT9VvYkejvm3T
 fnqibcoKEBcnEHPu9SDdDWkiMSVoShWieQyYGGkDu4pLgkPr2l9ukfhdfsmFp92L5n+X
 KGcR+h3FIwAsqFXrOkD23jho4YafgoVVGdAIwHqeKd891mv9ZysBqTFmBmlvilhen8Tf
 EF9Yw4TlLWPTIeDJsSN4jfWP1CwH7N9MjhCNG1M8o3rSJd4pGKHvFDvlbMxPDV08biGn
 1LXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=dOKChSPIa1zVzvJViPzlsRONmF2dFzkQunlCFu0x5xs=;
 b=L26qzuw0tzHnC7x6S2NRNROHwJtlq7zi+LCKcPksLzc9M6dsY5clapLwz2X9V6HX6H
 z+9RAR5sE4OvsS/MO2vCv6ATqnr8LyQQP3RwuSi/9CgI5Qb54NmF9JIxe1xTXZWdr2gH
 Rwa+eS/6enVLGuwrEHs/4zSeU4wLCnrMNURachTX5Zm/3pc6x5bCpqN60HkNehSPh29e
 557X1LaDkbAsGAfz/bsGGZkQzbfT8jjVrf5DRatFUUAQJtiMPZVE/sHJwFhA5GW8c8sx
 pJT3MXnP8urUlM+gZbO6YS6QKdxoV6mQ1TadmeMJ1rm1qS131R+KQtEoJfHxSZ4Aruo1
 /Gfw==
X-Gm-Message-State: APjAAAUtbVDYa647c6yaDlR+Z/YtnjMfHYQifSoD2w2bM1GpfvYJ64R0
 duXtp0guuzrA1TYlbsmCVqfYvBkN
X-Google-Smtp-Source: APXvYqwtOcguFliNB1xxUZv1m4Xypk2TNp2By0jFBRiaTg/LxJ5+jRinx9yXb4EEX5l5P7aXaantag==
X-Received: by 2002:a5d:46c4:: with SMTP id g4mr20156998wrs.189.1567438473304; 
 Mon, 02 Sep 2019 08:34:33 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.32
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:32 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 48/48] wip: tools.
Date: Mon,  2 Sep 2019 17:33:33 +0200
Message-Id: <20190902153333.11190-49-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

---
 build-sorted-ok-ko-packages.sh          | 354 ++++++++++++++++++++++++
 deps.scm                                | 184 ++++++++++++
 gnu/system/examples/mini-beaglebone.scm |  61 ++++
 gnu/system/examples/mini.scm            |  54 ++++
 4 files changed, 653 insertions(+)
 create mode 100755 build-sorted-ok-ko-packages.sh
 create mode 100644 deps.scm
 create mode 100644 gnu/system/examples/mini-beaglebone.scm
 create mode 100644 gnu/system/examples/mini.scm

diff --git a/build-sorted-ok-ko-packages.sh b/build-sorted-ok-ko-packages.sh
new file mode 100755
index 0000000000..a2a13dcdfc
--- /dev/null
+++ b/build-sorted-ok-ko-packages.sh
@@ -0,0 +1,354 @@
+#!/bin/bash -
+
+set -o nounset                              # Treat unset variables as an error
+
+mngt_dir()
+{
+    local dirname=$1
+
+    rm -rf ${dirname}.bk
+    if [ -e $dirname ]; then
+        mv $dirname ${dirname}.bk
+    fi
+    mkdir ${dirname}
+}
+
+DEPENDENCIES_DIR="packages-dependencies"
+KO_OUT_LOG_DIR="ko-out-log-dir"
+OUT_FILE_NAME_BASE="packages-status"
+OUT_FILE_NAME_EXT="wiki"
+OUT_FILE_NAME=${OUT_FILE_NAME_BASE}.${OUT_FILE_NAME_EXT}
+
+rm -f ${OUT_FILE_NAME}.bk
+if [ -e $OUT_FILE_NAME ]; then
+    mv $OUT_FILE_NAME ${OUT_FILE_NAME}.bk
+fi
+
+mngt_dir ${DEPENDENCIES_DIR}
+mngt_dir ${KO_OUT_LOG_DIR}
+
+NB_OK=0
+NB_KO=0
+NB_UNKNOWN=0
+
+file_header()
+{
+    local title="Packages status"
+
+    echo ""
+    echo "start file $OUT_FILE_NAME"
+    echo ""
+
+    echo "" >> $OUT_FILE_NAME
+    echo "= $title =" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+}
+
+section_header()
+{
+    local title=$1
+
+    echo ""
+    echo ""
+    echo "start section \"$title\""
+
+    echo "" >> $OUT_FILE_NAME
+    echo "== $title ==" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+    echo "| package | status | nb dependencies |" >> $OUT_FILE_NAME
+
+    NB_OK=0
+    NB_KO=0
+    NB_UNKNOWN=0
+}
+
+section_footer()
+{
+    echo "" >> $OUT_FILE_NAME
+    echo "nb packages OK in section: $NB_OK" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+    echo "nb packages *KO* in section: $NB_KO" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+    echo "nb packages UNKNOWN in section: $NB_UNKNOWN" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+    echo "" >> $OUT_FILE_NAME
+}
+
+add_package_status()
+{
+    local package=$1
+    local status=$2
+    local nb_deps=$3
+
+    if [ "$status" = "OK" ]; then
+        NB_OK=$(($NB_OK+1))
+    elif [ "$status" = "KO" ]; then
+        status="*KO*"
+        NB_KO=$(($NB_KO+1))
+    else
+        NB_UNKNOWN=$(($NB_UNKNOWN+1))
+    fi
+
+    echo "| $package | $status | $nb_deps |" >> $OUT_FILE_NAME
+}
+
+LIST_PACK_SUPPOSED_OK=""
+
+LIST_PACK_SUPPOSED_OK+=" xz"
+LIST_PACK_SUPPOSED_OK+=" tk"
+LIST_PACK_SUPPOSED_OK+=" m4"
+LIST_PACK_SUPPOSED_OK+=" ed"
+LIST_PACK_SUPPOSED_OK+=" bc"
+LIST_PACK_SUPPOSED_OK+=" tcl"
+LIST_PACK_SUPPOSED_OK+=" sed"
+LIST_PACK_SUPPOSED_OK+=" mpc"
+LIST_PACK_SUPPOSED_OK+=" lzo"
+LIST_PACK_SUPPOSED_OK+=" isl"
+LIST_PACK_SUPPOSED_OK+=" gss"
+LIST_PACK_SUPPOSED_OK+=" gmp"
+LIST_PACK_SUPPOSED_OK+=" bdb"
+LIST_PACK_SUPPOSED_OK+=" acl"
+LIST_PACK_SUPPOSED_OK+=" zlib"
+LIST_PACK_SUPPOSED_OK+=" sudo"
+LIST_PACK_SUPPOSED_OK+=" perl"
+LIST_PACK_SUPPOSED_OK+=" pcre"
+LIST_PACK_SUPPOSED_OK+=" mpfr"
+LIST_PACK_SUPPOSED_OK+=" make"
+LIST_PACK_SUPPOSED_OK+=" lzip"
+LIST_PACK_SUPPOSED_OK+=" gzip"
+LIST_PACK_SUPPOSED_OK+=" grep"
+LIST_PACK_SUPPOSED_OK+=" gdbm"
+LIST_PACK_SUPPOSED_OK+=" gawk"
+LIST_PACK_SUPPOSED_OK+=" fuse"
+LIST_PACK_SUPPOSED_OK+=" flex"
+LIST_PACK_SUPPOSED_OK+=" flac"
+LIST_PACK_SUPPOSED_OK+=" file"
+LIST_PACK_SUPPOSED_OK+=" fftw"
+LIST_PACK_SUPPOSED_OK+=" bash"
+LIST_PACK_SUPPOSED_OK+=" attr"
+LIST_PACK_SUPPOSED_OK+=" which"
+LIST_PACK_SUPPOSED_OK+=" unzip"
+LIST_PACK_SUPPOSED_OK+=" rhash"
+LIST_PACK_SUPPOSED_OK+=" libuv"
+LIST_PACK_SUPPOSED_OK+=" libgc"
+LIST_PACK_SUPPOSED_OK+=" libev"
+LIST_PACK_SUPPOSED_OK+=" guile"
+LIST_PACK_SUPPOSED_OK+=" groff"
+LIST_PACK_SUPPOSED_OK+=" gperf"
+LIST_PACK_SUPPOSED_OK+=" glibc"
+LIST_PACK_SUPPOSED_OK+=" expat"
+LIST_PACK_SUPPOSED_OK+=" bzip2"
+LIST_PACK_SUPPOSED_OK+=" bison"
+LIST_PACK_SUPPOSED_OK+=" xtrans"
+LIST_PACK_SUPPOSED_OK+=" tzdata"
+LIST_PACK_SUPPOSED_OK+=" sqlite"
+LIST_PACK_SUPPOSED_OK+=" shishi"
+LIST_PACK_SUPPOSED_OK+=" shadow"
+LIST_PACK_SUPPOSED_OK+=" python"
+LIST_PACK_SUPPOSED_OK+=" nettle"
+LIST_PACK_SUPPOSED_OK+=" libxft"
+LIST_PACK_SUPPOSED_OK+=" libxcb"
+LIST_PACK_SUPPOSED_OK+=" libxau"
+LIST_PACK_SUPPOSED_OK+=" libx11"
+LIST_PACK_SUPPOSED_OK+=" libpng"
+LIST_PACK_SUPPOSED_OK+=" libogg"
+LIST_PACK_SUPPOSED_OK+=" libidn"
+LIST_PACK_SUPPOSED_OK+=" libffi"
+LIST_PACK_SUPPOSED_OK+=" libelf"
+LIST_PACK_SUPPOSED_OK+=" libcap"
+LIST_PACK_SUPPOSED_OK+=" libbsd"
+LIST_PACK_SUPPOSED_OK+=" indent"
+LIST_PACK_SUPPOSED_OK+=" gnutls"
+LIST_PACK_SUPPOSED_OK+=" c-ares"
+LIST_PACK_SUPPOSED_OK+=" texinfo"
+LIST_PACK_SUPPOSED_OK+=" python2"
+LIST_PACK_SUPPOSED_OK+=" psutils"
+LIST_PACK_SUPPOSED_OK+=" ncurses"
+LIST_PACK_SUPPOSED_OK+=" libxslt"
+LIST_PACK_SUPPOSED_OK+=" libxml2"
+LIST_PACK_SUPPOSED_OK+=" libxext"
+LIST_PACK_SUPPOSED_OK+=" libtool"
+LIST_PACK_SUPPOSED_OK+=" libtiff"
+LIST_PACK_SUPPOSED_OK+=" libssh2"
+LIST_PACK_SUPPOSED_OK+=" libltdl"
+LIST_PACK_SUPPOSED_OK+=" libjpeg"
+LIST_PACK_SUPPOSED_OK+=" libidn2"
+LIST_PACK_SUPPOSED_OK+=" jansson"
+LIST_PACK_SUPPOSED_OK+=" shepherd"
+LIST_PACK_SUPPOSED_OK+=" net-base"
+LIST_PACK_SUPPOSED_OK+=" libxdmcp"
+LIST_PACK_SUPPOSED_OK+=" libtasn1"
+LIST_PACK_SUPPOSED_OK+=" libpaper"
+LIST_PACK_SUPPOSED_OK+=" jemalloc"
+LIST_PACK_SUPPOSED_OK+=" jbig2dec"
+LIST_PACK_SUPPOSED_OK+=" gs-fonts"
+LIST_PACK_SUPPOSED_OK+=" freetype"
+LIST_PACK_SUPPOSED_OK+=" elfutils"
+LIST_PACK_SUPPOSED_OK+=" binutils"
+LIST_PACK_SUPPOSED_OK+=" automake"
+LIST_PACK_SUPPOSED_OK+=" autoconf"
+LIST_PACK_SUPPOSED_OK+=" alsa-lib"
+LIST_PACK_SUPPOSED_OK+=" xorgproto"
+LIST_PACK_SUPPOSED_OK+=" xcb-proto"
+LIST_PACK_SUPPOSED_OK+=" linux-pam"
+LIST_PACK_SUPPOSED_OK+=" libvorbis"
+LIST_PACK_SUPPOSED_OK+=" libgcrypt"
+LIST_PACK_SUPPOSED_OK+=" inetutils"
+LIST_PACK_SUPPOSED_OK+=" findutils"
+LIST_PACK_SUPPOSED_OK+=" e2fsprogs"
+LIST_PACK_SUPPOSED_OK+=" diffutils"
+LIST_PACK_SUPPOSED_OK+=" coreutils"
+LIST_PACK_SUPPOSED_OK+=" util-linux"
+LIST_PACK_SUPPOSED_OK+=" libxrender"
+LIST_PACK_SUPPOSED_OK+=" libsndfile"
+LIST_PACK_SUPPOSED_OK+=" libsigsegv"
+LIST_PACK_SUPPOSED_OK+=" libfontenc"
+LIST_PACK_SUPPOSED_OK+=" guile-json"
+LIST_PACK_SUPPOSED_OK+=" fontconfig"
+LIST_PACK_SUPPOSED_OK+=" util-macros"
+LIST_PACK_SUPPOSED_OK+=" mkfontscale"
+LIST_PACK_SUPPOSED_OK+=" linux-libre"
+LIST_PACK_SUPPOSED_OK+=" ghostscript"
+LIST_PACK_SUPPOSED_OK+=" docbook-xsl"
+LIST_PACK_SUPPOSED_OK+=" docbook-xml"
+LIST_PACK_SUPPOSED_OK+=" bash-static"
+LIST_PACK_SUPPOSED_OK+=" libunistring"
+LIST_PACK_SUPPOSED_OK+=" libgpg-error"
+LIST_PACK_SUPPOSED_OK+=" bash-minimal"
+LIST_PACK_SUPPOSED_OK+=" libsamplerate"
+LIST_PACK_SUPPOSED_OK+=" libatomic-ops"
+LIST_PACK_SUPPOSED_OK+=" e2fsck-static"
+LIST_PACK_SUPPOSED_OK+=" wireless-regdb"
+LIST_PACK_SUPPOSED_OK+=" python-wrapper"
+LIST_PACK_SUPPOSED_OK+=" python-minimal"
+LIST_PACK_SUPPOSED_OK+=" guile-readline"
+LIST_PACK_SUPPOSED_OK+=" guile-gdbm-ffi"
+LIST_PACK_SUPPOSED_OK+=" gettext-minimal"
+LIST_PACK_SUPPOSED_OK+=" libpthread-stubs"
+LIST_PACK_SUPPOSED_OK+=" openfwwf-firmware"
+LIST_PACK_SUPPOSED_OK+=" glibc-utf8-locales"
+LIST_PACK_SUPPOSED_OK+=" ath9k-htc-firmware"
+LIST_PACK_SUPPOSED_OK+=" linux-libre-headers"
+LIST_PACK_SUPPOSED_OK+=" guile-static-stripped"
+LIST_PACK_SUPPOSED_OK+=" python-minimal-wrapper"
+LIST_PACK_SUPPOSED_OK+=" pkg-config"
+LIST_PACK_SUPPOSED_OK+=" libarchive"
+LIST_PACK_SUPPOSED_OK+=" cyrus-sasl"
+LIST_PACK_SUPPOSED_OK+=" tcsh"
+LIST_PACK_SUPPOSED_OK+=" xmlto"
+LIST_PACK_SUPPOSED_OK+=" icu4c" # ?
+LIST_PACK_SUPPOSED_OK+=" mit-krb5" # ok ?
+LIST_PACK_SUPPOSED_OK+=" help2man"
+LIST_PACK_SUPPOSED_OK+=" mkfontdir"
+LIST_PACK_SUPPOSED_OK+=" lvm2"
+LIST_PACK_SUPPOSED_OK+=" eudev"
+LIST_PACK_SUPPOSED_OK+=" procps"
+LIST_PACK_SUPPOSED_OK+=" alsa-utils"
+LIST_PACK_SUPPOSED_OK+=" boost"
+LIST_PACK_SUPPOSED_OK+=" swig"
+LIST_PACK_SUPPOSED_OK+=" doxygen"
+LIST_PACK_SUPPOSED_OK+=" curl"
+LIST_PACK_SUPPOSED_OK+=" nghttp2"
+LIST_PACK_SUPPOSED_OK+=" openldap"
+LIST_PACK_SUPPOSED_OK+=" git-minimal"
+
+
+LIST_PACK_SUPPOSED_KO=""
+
+LIST_PACK_SUPPOSED_KO+=" libnl"
+LIST_PACK_SUPPOSED_KO+=" crda" # depends on libnl
+LIST_PACK_SUPPOSED_KO+=" cmake"
+LIST_PACK_SUPPOSED_KO+=" guile-wm"
+LIST_PACK_SUPPOSED_KO+=" guile-xcb"
+
+count_dependencies()
+{
+    local pack="$1"
+    local depsfile="$DEPENDENCIES_DIR/${pack}.dot"
+    guix graph -t bag-emerged $pack > $depsfile
+    count=$(cat $depsfile | grep "\->" | wc -l)
+    echo $count
+}
+
+build_pack()
+{
+    local pack="$1"
+    local out_file=$(mktemp /tmp/test-guix.XXXXX)
+    local result=0
+
+    ./pre-inst-env guix build --target=aarch64-linux-gnu $pack > $out_file 2>&1
+    result=$?
+
+    if [ $result -eq 0 ]; then
+        rm -f $out_file
+    else
+        mv $out_file ${KO_OUT_LOG_DIR}/${pack}.log
+    fi
+
+    return $result
+}
+
+build_all_in_list()
+{
+    local list_pack="$@"
+    local status=unknown
+
+    for pack in $list_pack; do
+        echo ""
+        echo ""
+        echo "--------------- package $pack ---------------"
+        echo ""
+        build_pack $pack
+        if [ $? -eq 0 ]; then
+            status="OK"
+        else
+            status="KO"
+        fi
+
+        nb_deps="$(count_dependencies $pack)"
+        echo "  package $pack is $status (and has $nb_deps dependencies)"
+        echo ""
+        echo ""
+
+        add_package_status $pack $status $nb_deps
+    done
+}
+
+if [ $# -ge 1 ]; then
+    EXEC_SUPPOSED_OK=0
+    EXEC_SUPPOSED_KO=0
+    while [ $# -ge 1 ]; do
+        case "$1" in
+            "--ok")
+                EXEC_SUPPOSED_OK=1
+                ;;
+            "--ko")
+                EXEC_SUPPOSED_KO=1
+                ;;
+            *)
+                echo "Unknown argument $1"
+                exit 1
+                ;;
+        esac
+        shift
+    done
+else
+    EXEC_SUPPOSED_OK=1
+    EXEC_SUPPOSED_KO=1
+fi
+
+file_header
+
+if [ $EXEC_SUPPOSED_OK -eq 1 ]; then
+    section_header "Supposed OK Packages"
+    build_all_in_list $LIST_PACK_SUPPOSED_OK
+    section_footer
+fi
+
+if [ $EXEC_SUPPOSED_KO -eq 1 ]; then
+    section_header "Supposed KO Packages"
+    build_all_in_list $LIST_PACK_SUPPOSED_KO
+    section_footer
+fi
+
+
diff --git a/deps.scm b/deps.scm
new file mode 100644
index 0000000000..75e8f106fe
--- /dev/null
+++ b/deps.scm
@@ -0,0 +1,184 @@
+(use-modules (guix)
+             (guix scripts build)
+             (gnu)
+             (ice-9 receive))
+
+(define deps
+  '("sudo"
+    "guile-xcb"
+    "guile-wm"
+    "tzdata"
+    "guile-gdbm-ffi"
+    "gzip"
+    "expat"
+    "attr"
+    "gettext-minimal"
+    "m4"
+    "perl"
+    "gmp"
+    "acl"
+    "libcap"
+    "libsigsegv"
+    "pkg-config"
+    "zlib"
+    "libffi"
+    "glibc"
+    "bash-static"
+    "bison"
+    "texinfo"
+    "lzip"
+    "ed"
+    "libatomic-ops"
+    "libltdl"
+    "libunistring"
+    "libgc"
+    "linux-libre-headers"
+    "bzip2"
+    "bash-minimal"
+    "diffutils"
+    "binutils"
+    "findutils"
+    "guile"
+    "sed"
+    "make"
+    "gawk"
+    "xz"
+    "grep"
+    "file"
+    "coreutils"
+    "glibc-utf8-locales"
+    "libpng"
+    "freetype"
+    "libfontenc"
+    "mkfontdir"
+    "mkfontscale"
+    "guile-readline"
+    "lzo"
+    "rhash"
+    "libuv"
+    "libarchive"
+    "cmake"
+    "ath9k-htc-firmware"
+    "openfwwf-firmware"
+    "inetutils"
+    "tcsh"
+    "pcre"
+    "boost"
+    "swig"
+    "libnl"
+    "wireless-regdb"
+    "flac"
+    "libsndfile"
+    "libvorbis"
+    "libogg"
+    "xmlto"
+    "fftw"
+    "alsa-lib"
+    "alsa-utils"
+    "libsamplerate"
+    "lvm2"
+    "fuse"
+    "crda"
+    "which"
+    "help2man"
+    "indent"
+    "flex"
+    "gdbm"
+    "mit-krb5"
+    "openldap"
+    "cyrus-sasl"
+    "curl"
+    "icu4c"
+    "bdb"
+    "libev"
+    "jemalloc"
+    "jansson"
+    "c-ares"
+    "linux-pam"
+    "shishi"
+    "xtrans"
+    "libbsd"
+    "python-minimal-wrapper"
+    "xcb-proto"
+    "python-minimal"
+    "gs-fonts"
+    "fontconfig"
+    "libxrender"
+    "libxft"
+    "tk"
+    "xorgproto"
+    "libpthread-stubs"
+    "util-macros"
+    "libxau"
+    "libxext"
+    "libxcb"
+    "sqlite"
+    "libxdmcp"
+    "libx11"
+    "libpaper"
+    "jbig2dec"
+    "tcl"
+    "libjpeg"
+    "libtiff"
+    "psutils"
+    "ghostscript"
+    "groff"
+    "libgpg-error"
+    "libtasn1"
+    "libssh2"
+    "python2"
+    "gss"
+    "libgcrypt"
+    "nettle"
+    "libidn"
+    "nghttp2"
+    "libidn2"
+    "git-minimal"
+    "gnutls"
+    "guile-json"
+    "unzip"
+    "autoconf"
+    "automake"
+    "docbook-xml"
+    "libtool"
+    "python"
+    "python-wrapper"
+    "libxslt"
+    "libxml2"
+    "docbook-xsl"
+    "gperf"
+    "eudev"
+    "shadow"
+    "bash"
+    "shepherd"
+    "isl"
+    "net-base"
+    "procps"
+    "util-linux"
+    "e2fsprogs"
+    "e2fsck-static"
+    "guile-static-stripped"
+    "libelf"
+    "ncurses"
+    "mpc"
+    "bc"
+    "elfutils"
+    "mpfr"
+    "linux-libre"))
+
+(define store (open-connection))
+
+(define arguments
+  (map (lambda (spec)
+         `(argument . ,spec))
+       deps))
+
+(run-with-store store
+  (mlet %store-monad
+      ((derivations ->
+        ((@@ (guix scripts build) options->derivations)
+         store
+         `((target . "aarch64-linux-gnu")
+           ,@arguments))))
+    (mbegin %store-monad
+      (built-derivations derivations))))
diff --git a/gnu/system/examples/mini-beaglebone.scm b/gnu/system/examples/mini-beaglebone.scm
new file mode 100644
index 0000000000..6ce0ab1b1c
--- /dev/null
+++ b/gnu/system/examples/mini-beaglebone.scm
@@ -0,0 +1,61 @@
+;; This is an operating system configuration template
+;; for a "bare bones" setup, with no X11 display server.
+
+(use-modules (gnu) (gnu bootloader u-boot))
+(use-service-modules networking ssh)
+(use-package-modules bootloaders linux screen)
+
+(operating-system
+  (host-name "komputilo")
+  (timezone "Europe/Berlin")
+  (locale "en_US.utf8")
+
+  ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
+  ;; target hard disk, and "my-root" is the label of the target
+  ;; root file system.
+  (bootloader (bootloader-configuration
+               (bootloader u-boot-beaglebone-black-bootloader)
+               (target "/dev/vda")))
+
+  (kernel linux-libre-arm-omap2plus)
+
+  ;; This module is required to mount the SD card.
+  (initrd-modules (cons "omap_hsmmc" %base-initrd-modules))
+
+  (file-systems (cons (file-system
+                        (device (file-system-label "my-root"))
+                        (mount-point "/")
+                        (type "ext4"))
+                      %base-file-systems))
+
+  ;; This is where user accounts are specified.  The "root"
+  ;; account is implicit, and is initially created with the
+  ;; empty password.
+  (users (cons (user-account
+                (name "alice")
+                (comment "Bob's sister")
+                (group "users")
+
+                ;; Adding the account to the "wheel" group
+                ;; makes it a sudoer.  Adding it to "audio"
+                ;; and "video" allows the user to play sound
+                ;; and access the webcam.
+                (supplementary-groups '("wheel"
+                                        "audio" "video")))
+               %base-user-accounts))
+
+  ;; Globally-installed packages.
+  (packages '())
+
+  ;; Add services to the baseline: a DHCP client and
+  ;; an SSH server.
+  (services (list
+             (service udev-service-type
+                      (udev-configuration
+                       (rules (list lvm2 fuse alsa-utils crda))))
+             (agetty-service
+              (agetty-configuration
+               (extra-options '("-L"))
+               (baud-rate "115200")
+               (term "vt100")
+               (tty "ttyO0"))))))
diff --git a/gnu/system/examples/mini.scm b/gnu/system/examples/mini.scm
new file mode 100644
index 0000000000..f7c7b63308
--- /dev/null
+++ b/gnu/system/examples/mini.scm
@@ -0,0 +1,54 @@
+;; This is an operating system configuration template
+;; for a "bare bones" setup, with no X11 display server.
+
+(use-modules (gnu))
+(use-service-modules networking ssh)
+(use-package-modules linux screen)
+
+(define dummy-bootloader
+  (bootloader
+   (inherit grub-bootloader)
+   (installer #f)))
+
+(operating-system
+  (host-name "komputilo")
+  (timezone "Europe/Berlin")
+  (locale "en_US.utf8")
+
+  ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
+  ;; target hard disk, and "my-root" is the label of the target
+  ;; root file system.
+  (bootloader (bootloader-configuration
+                (bootloader dummy-bootloader)
+                (target "/dev/sdX")))
+  (file-systems (cons (file-system
+                        (device (file-system-label "my-root"))
+                        (mount-point "/")
+                        (type "ext4"))
+                      %base-file-systems))
+
+  ;; This is where user accounts are specified.  The "root"
+  ;; account is implicit, and is initially created with the
+  ;; empty password.
+  (users (cons (user-account
+                (name "alice")
+                (comment "Bob's sister")
+                (group "users")
+
+                ;; Adding the account to the "wheel" group
+                ;; makes it a sudoer.  Adding it to "audio"
+                ;; and "video" allows the user to play sound
+                ;; and access the webcam.
+                (supplementary-groups '("wheel"
+                                        "audio" "video")))
+               %base-user-accounts))
+
+  ;; Globally-installed packages.
+  (packages '())
+
+  ;; Add services to the baseline: a DHCP client and
+  ;; an SSH server.
+  (services (list
+             (service udev-service-type
+                      (udev-configuration
+                       (rules (list lvm2 fuse alsa-utils crda)))))))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:56 2019
Received: from localhost ([127.0.0.1]:58837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM4-0006bJ-3G
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:56 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:43820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLl-0006Xw-VF
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:38 -0400
Received: by mail-wr1-f68.google.com with SMTP id y8so14425556wrn.10
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Rkzeyq0gaMbpHXJoKkrR7H0aWSZHsu3bNHhGLL2halc=;
 b=KXBnj7KG4wVRPBnrOtxQxGYYhMyGt/di3QIia1HIiQZV0tneWbDL1oJJPY7LjRm71u
 mziFjwvXEhoTX3iyZGCOaa1tr/LVlq4n63+lyokKmGNaEvi8UWpqiN09K9yRvOpn1rrt
 9AXuYiXEnV1OolJqwV0SOG2/0vka+iLLo5rxHAPLPe90TA6gbdo9MfEGqcJi+0PuWOLw
 PvRdEDSz2l7t/olNW9k/NHBjf1gosHAJP7kCU2o5v7Q4GA2O0zy/91FSDrpgM4au6jx1
 PFSV5En0r8Fcuf9mQ3wDWj74QPovq3m0Horhl0Ee3dxWRFVxjqNM3T/Nw7EK5FnGXCvO
 7Ehg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Rkzeyq0gaMbpHXJoKkrR7H0aWSZHsu3bNHhGLL2halc=;
 b=RCeDpwUnFf6mgGhbVvocO8+s9nHnvoHPQjdyjgSg2um9h8cdVFdYk80NVVPi6o1sWT
 7xmeDpRhxpG27a0kRQFmK/E+9nmjV8UB3QAmzknBPi8xSbDwwgfTDjB8/Y4ya8C14IoW
 2hD5zLYyb3dYiFzRlgLIioHME0wtW7rkfLoPsVddQBi+FO2IpuYj6kKlRLU3CkhStx5I
 22v0uSBScJFp1b0ptf5thwFnApjKh++ISWsenB0vRNJxXWzVED2Wq8s/5sLDDgEa+SY0
 BHX8+efa4OzM0CaL0fjTuQhUUqym0ZLtH2++QsI++2OevF/sPZxVU56QvEKpKScjSfP2
 IvcA==
X-Gm-Message-State: APjAAAW4p5d3HBZppOGKCQsE1LKTDKVLfddH3gqL+V2uUpg0Bmpipv8X
 waH2y2YwGWVWzuUOOdPAcxbQFHze
X-Google-Smtp-Source: APXvYqz8gPbYH7caXzOzFpGUBEexfuDmWYeIOafN6/Je3lKGXFKdEklzTG+ESTtSJ2klvYEeDNTmqw==
X-Received: by 2002:adf:fd03:: with SMTP id e3mr28393193wrr.291.1567438472252; 
 Mon, 02 Sep 2019 08:34:32 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:31 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 47/48] scripts: system: Add --target option.
Date: Mon,  2 Sep 2019 17:33:32 +0200
Message-Id: <20190902153333.11190-48-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/system.scm (%options): Add target option,
(%default-options): ditto,
(process-action): Rename existing target variable to target-file and pass new
target variable to run-with-store procedure.
---
 guix/scripts/system.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 9fc3a10e98..f8040dd975 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2016 Alex Kost <alezost@HIDDEN>
 ;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Christopher Baines <mail@HIDDEN>
 ;;;
@@ -929,6 +929,8 @@ Some ACTIONS support additional ARGS.\n"))
       --full-boot        for 'vm', make a full boot sequence"))
   (display (G_ "
       --skip-checks      skip file system and initrd module safety checks"))
+  (display (G_ "
+      --target=TRIPLET   cross-build for TRIPLET--e.g., \"armel-linux-gnu\""))
   (display (G_ "
   -v, --verbosity=LEVEL  use the given verbosity LEVEL"))
   (newline)
@@ -1002,6 +1004,10 @@ Some ACTIONS support additional ARGS.\n"))
                  (lambda (opt name arg result)
                    (alist-cons 'system arg
                                (alist-delete 'system result eq?))))
+         (option '("target") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'target arg
+                               (alist-delete 'target result eq?))))
          (option '(#\r "root") #t #f
                  (lambda (opt name arg result)
                    (alist-cons 'gc-root arg result)))
@@ -1010,6 +1016,7 @@ Some ACTIONS support additional ARGS.\n"))
 (define %default-options
   ;; Alist of default option values.
   `((system . ,(%current-system))
+    (target . #f)
     (substitutes? . #t)
     (build-hook? . #t)
     (print-build-trace? . #t)
@@ -1043,6 +1050,7 @@ resulting from command-line parsing."
                         ((x . _) x)))
          (expr        (assoc-ref opts 'expression))
          (system      (assoc-ref opts 'system))
+         (target      (assoc-ref opts 'target))
          (os          (ensure-operating-system
                        (or file expr)
                        (cond
@@ -1059,7 +1067,7 @@ resulting from command-line parsing."
 
          (dry?        (assoc-ref opts 'dry-run?))
          (bootloader? (assoc-ref opts 'install-bootloader?))
-         (target      (match args
+         (target-file (match args
                         ((first second) second)
                         (_ #f)))
          (bootloader-target
@@ -1101,9 +1109,10 @@ resulting from command-line parsing."
                                                       (_ #f))
                                                     opts)
                              #:install-bootloader? bootloader?
-                             #:target target
+                             #:target target-file
                              #:bootloader-target bootloader-target
                              #:gc-root (assoc-ref opts 'gc-root)))))
+        #:target target
         #:system system))
     (warn-about-disk-space)))
 
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:56 2019
Received: from localhost ([127.0.0.1]:58835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM3-0006bF-LP
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:56 -0400
Received: from mail-wr1-f52.google.com ([209.85.221.52]:45300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLk-0006XN-BK
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:36 -0400
Received: by mail-wr1-f52.google.com with SMTP id q12so14413477wrj.12
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=DKHYqcz+TrJYHtYnh41O9JXkw/xT0ZpMscZMzyf8MRU=;
 b=mijFHR7PYP7DzRoc6Rozrt0ETKVox82YjLzwIQLw0QJwsu7HmrEYt5D+nfUJojcyNw
 NK6Y0ksPNRdMrkqPPay0HSe7tyoOdBKaBtnZvVJb5ggcc3DlZp/dXjhhy2aWJVxJNFaJ
 y+EdkZ4fadfqUnOxAoRv7odFrR7/RA3myZ6Uxy8ZHX0IhmOH8k40cnZKMNCL6idhpdrm
 +of2kvUph1iEU5si2opH32SJ5JGbYIHZCW0AAGDSsKdVoyYty2Q2eoe9bf7NVdW/Ck4/
 UDvgMVphaTsoCeZ4NYQk/U1SSKxRuflVq3Q69N70xsusi7uKOnOoNoAoNJH/cIRFVAhh
 rM2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=DKHYqcz+TrJYHtYnh41O9JXkw/xT0ZpMscZMzyf8MRU=;
 b=jcz7YlPIpz5D8OEclGFcrT7SoQyh3ugN1SdazFRPlXd49av4dnRZtba9P+2w43wuwN
 MbTGIrJPBFzgmZmNEaZzwfn20xQwpcWTJPUCw6V+8w4iNm2Qb0qL4JJNWZc0GECu7g3a
 yyn6p+yZZ1SRMUaOiAdQ5w3E7W+0dymC7x7UlWMA2JKE2va1NSQBQU21PhiTqLwanDmi
 L/Ofu7rR6+11wHJPANEFhTTwS3j+GPBreZIZX3HvlDKyfCmx8zB4gp7odvLpm/sJH6xI
 aYNJxb0LaPUFU1axWQFvC6CTkq7iL63zGfgd8URQ4Ma9JpqKuiaHMwxVk9HBDBgeejgs
 vGJQ==
X-Gm-Message-State: APjAAAV1cvNMu2kzAe+LRg0WlJrmi6Yv58kFW4KSEYIRPSXAQjcC9PwV
 abVEPW06KRfUbmFSIkjDxA/i+K4z
X-Google-Smtp-Source: APXvYqwVhcrhsy9h+VEm8kkNE7yOoOu7frVPF98/+SbrqFt0/z8hq3gGkuqAuso06pu0w9hSSbq/zg==
X-Received: by 2002:a5d:6a49:: with SMTP id t9mr2416794wrw.134.1567438470460; 
 Mon, 02 Sep 2019 08:34:30 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:29 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 46/48] system: vm: Support cross-compilation.
Date: Mon,  2 Sep 2019 17:33:31 +0200
Message-Id: <20190902153333.11190-47-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/system.scm (system-linux-image-file-name): Add support for cross-built
systems. Remove system argument that was ignored,
(operating-system-kernel-file): adapt by removing ignored os argument.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Add target argument,
move qemu from inputs list to a new native-inputs list and adapt
set-path-environment-variable call accordingly. Pass target to qemu-command
and gexp->derivation calls.
(iso9660-image): Move qemu from inputs to a new native-inputs list and adapt
set-path-environment-variable accordingly.
(qemu-image): Add target argument, move qemu from inputs list to a new
native-inputs list and adapt set-path-environment-variable call
accordingly. Pass target argument to expression->derivation-in-linux-vm call.
---
 gnu/system.scm    | 15 ++++++++-------
 gnu/system/vm.scm | 25 ++++++++++++++++++-------
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 485896ba0a..85059119cc 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -439,20 +439,21 @@ from the initrd."
   "Return the list of swap services for OS."
   (map swap-service (operating-system-swap-devices os)))
 
-(define* (system-linux-image-file-name #:optional (system (%current-system)))
+(define* (system-linux-image-file-name)
   "Return the basename of the kernel image file for SYSTEM."
   ;; FIXME: Evaluate the conditional based on the actual current system.
-  (cond
-   ((string-prefix? "arm" (%current-system)) "zImage")
-   ((string-prefix? "mips" (%current-system)) "vmlinuz")
-   ((string-prefix? "aarch64" (%current-system)) "Image")
-   (else "bzImage")))
+  (let ((target (or (%current-target-system) (%current-system))))
+    (cond
+     ((string-prefix? "arm" target) "zImage")
+     ((string-prefix? "mips" target) "vmlinuz")
+     ((string-prefix? "aarch64" target) "Image")
+     (else "bzImage"))))
 
 (define (operating-system-kernel-file os)
   "Return an object representing the absolute file name of the kernel image of
 OS."
   (file-append (operating-system-kernel os)
-               "/" (system-linux-image-file-name os)))
+               "/" (system-linux-image-file-name)))
 
 (define* (operating-system-directory-base-entries os)
   "Return the basic entries of the 'system' directory of OS for use as the
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 07cee2d4f5..759745c277 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -143,7 +143,7 @@
 
 (define* (expression->derivation-in-linux-vm name exp
                                              #:key
-                                             (system (%current-system))
+                                             (system (%current-system)) target
                                              (linux linux-libre)
                                              initrd
                                              (qemu qemu-minimal)
@@ -214,7 +214,8 @@ made available under the /xchg CIFS share."
               (use-modules (guix build utils)
                            (gnu build vm))
 
-              (let* ((inputs  '#$(list qemu (canonical-package coreutils)))
+              (let* ((inputs  '#$(list (canonical-package coreutils)))
+                     (native-inputs '#+(list qemu))
                      (linux   (string-append #$linux "/"
                                              #$(system-linux-image-file-name)))
                      (initrd  #$initrd)
@@ -222,16 +223,19 @@ made available under the /xchg CIFS share."
                      (graphs  '#$(match references-graphs
                                    (((graph-files . _) ...) graph-files)
                                    (_ #f)))
+                     (target  #$(or (%current-target-system) (%current-system)))
                      (size    #$(if (eq? 'guess disk-image-size)
                                     #~(+ (* 70 (expt 2 20)) ;ESP
                                          (estimated-partition-size graphs))
                                     disk-image-size)))
 
-                (set-path-environment-variable "PATH" '("bin") inputs)
+                (set-path-environment-variable "PATH" '("bin")
+                                               (append inputs native-inputs))
 
                 (load-in-linux-vm loader
                                   #:output #$output
                                   #:linux linux #:initrd initrd
+                                  #:qemu (qemu-command target)
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
@@ -248,6 +252,7 @@ made available under the /xchg CIFS share."
     (gexp->derivation name builder
                       ;; TODO: Require the "kvm" feature.
                       #:system system
+                      #:target target
                       #:env-vars env-vars
                       #:guile-for-build guile-for-build
                       #:references-graphs references-graphs)))
@@ -299,9 +304,10 @@ INPUTS is a list of inputs (as for packages)."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools xorriso)
+                  '#$(append (list parted e2fsprogs dosfstools xorriso)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
+                 (native-inputs '#+(list qemu))
 
 
                  (graphs     '#$(match inputs
@@ -315,7 +321,8 @@ INPUTS is a list of inputs (as for packages)."
                             ((name thing output) `(,thing ,output)))
                           inputs)))
 
-             (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
+             (set-path-environment-variable "PATH" '("bin" "sbin")
+                                            (append inputs native-inputs))
              (make-iso9660-image #$xorriso
                                  '#$grub-mkrescue-environment
                                  #$(bootloader-package bootloader)
@@ -346,6 +353,7 @@ INPUTS is a list of inputs (as for packages)."
 (define* (qemu-image #:key
                      (name "qemu-image")
                      (system (%current-system))
+                     (target (%current-target-system))
                      (qemu qemu-minimal)
                      (disk-image-size 'guess)
                      (disk-image-format "qcow2")
@@ -404,9 +412,10 @@ system."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools)
+                  '#$(append (list util-linux parted e2fsprogs dosfstools)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
+                 (native-inputs '#+(list qemu))
 
                  ;; This variable is unused but allows us to add INPUTS-TO-COPY
                  ;; as inputs.
@@ -416,7 +425,8 @@ system."
                             ((name thing output) `(,thing ,output)))
                           inputs)))
 
-             (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
+             (set-path-environment-variable "PATH" '("bin" "sbin")
+                                            (append inputs native-inputs))
 
              (let* ((graphs     '#$(match inputs
                                      (((names . _) ...)
@@ -483,6 +493,7 @@ system."
                                      #:bootloader-installer
                                      #$(bootloader-installer bootloader)))))))
    #:system system
+   #:target target
    #:make-disk-image? #t
    #:disk-image-size disk-image-size
    #:disk-image-format disk-image-format
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:55 2019
Received: from localhost ([127.0.0.1]:58833 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM3-0006b3-8c
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:55 -0400
Received: from mail-wm1-f44.google.com ([209.85.128.44]:35823)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLj-0006Wu-5g
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:36 -0400
Received: by mail-wm1-f44.google.com with SMTP id n10so4388205wmj.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=JesS3RUSqQBP4XclD5L5+e5n2bnMhV49weQtJOwx7EU=;
 b=Qy05xCRN4GUFk4xr42dzclfWE8FbDlc3HVsZO2gIAtwk6omPVi1GEKfhHCU11ZEhWK
 tdtJuFAwaK2Uw0UZbx3ACNOOSM8LYL/xemBVL9lLZQEVyBhVSG58SP23jZMN7kRInWkq
 VLBZVlfA3qtGT5NJYthhXinj8OrOQSi0OBwSdbzVjQSEvVrbxQ5KJRXefZJR8XA/q4Q/
 yNg4rsN3sBOFSqZ1I2ovwSXQkQ8l87Ky8ny/4ZB+TEduIMeHInYqtQqig0UZreZdkboZ
 PXp28Q3W+TjlOArS+l09FPWe6/6rI0ireYrJDzWv1+9Ssdnigiq98s5raKLEildE7XUK
 V3Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=JesS3RUSqQBP4XclD5L5+e5n2bnMhV49weQtJOwx7EU=;
 b=iThf8n35qIg5P38mDBYiVxfamYg34XeO3hB7dEpAMTilB46NC5Cf8XgN/0A6CUZyY0
 8lD1IVLIxCYYWyECUsSnVjWO9nlTXqrEoyiS3fWjmcmD4D0jZBioXZfIMcIjWDkP/OdS
 utrpet4GDi9/QrNJSrHSVUCjdKgQivTCd1H9I6qwxpBNIe55EYWF7ww7MQ73QWcwDPDP
 n7KaEFbNf4g+sY2CUz++BvpXVi2QOwNZESpp8ahbzjwNNL1TPXpI1qbS4ZCxueWwQmle
 KSiiZU2snTY6bhaSDoePk7IryeWd0TVpGrh8Woj7ToN2FDl9ivc0SC1Dg9EQIqQ3yio9
 11tg==
X-Gm-Message-State: APjAAAXJAZ2b6Mm+lhEGVpV5bvTjeASY5UEYsEuZSLO+r5OZnZd8VoBc
 EFmWjOaRpBK7hG3frf70J6E9S1ZQ
X-Google-Smtp-Source: APXvYqwPEkNzEwhKbZAIIHy6JK7cJNryo89KKyzFt47VNqb6YSvMOVZwqNctOF2IOXjjaG1qOYzUAA==
X-Received: by 2002:a1c:a94b:: with SMTP id s72mr15741390wme.9.1567438469421; 
 Mon, 02 Sep 2019 08:34:29 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:28 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 45/48] system: vm: Add arm64 support.
Date: Mon,  2 Sep 2019 17:33:30 +0200
Message-Id: <20190902153333.11190-46-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/build/vm.scm (load-in-linux-vm): Add target-arm64? argument and use it
to pass correct arguments to qemu.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass the new
target-arm64? argument added above. Do not add ESP partition on all ARM
targets. Do not pass grub-efi package to initialize-hard-disk on ARM targets.
---
 gnu/build/vm.scm  | 22 +++++++++++++++++-----
 gnu/system/vm.scm | 17 +++++++++++------
 2 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index b85398ed24..e57917a9e5 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -82,6 +82,7 @@
                            make-disk-image?
                            single-file-output?
                            target-arm32?
+                           target-arm64?
                            (disk-image-size (* 100 (expt 2 20)))
                            (disk-image-format "qcow2")
                            (references-graphs '()))
@@ -97,10 +98,14 @@ access it via /dev/hda.
 REFERENCES-GRAPHS can specify a list of reference-graph files as produced by
 the #:references-graphs parameter of 'derivation'."
 
+  (define target-arm? (or target-arm32? target-arm64?))
+
   (define arch-specific-flags
     `(;; On ARM, a machine has to be specified. Use "virt" machine to avoid
       ;; hardware limits imposed by other machines.
-      ,@(if target-arm32? '("-M" "virt") '())
+      ,@(if target-arm?
+            '("-M" "virt")
+            '())
 
       ;; On ARM32, if the kernel is built without LPAE support, ECAM conflicts
       ;; with VIRT_PCIE_MMIO causing PCI devices not to show up.  Disable
@@ -110,11 +115,18 @@ the #:references-graphs parameter of 'derivation'."
             '("-machine" "highmem=off")
             '())
 
+      ;; On ARM64, we have to specify the CPU. "max" behaves as "host" when
+      ;; KVM is enabled, and like a system CPU with the maximum possible
+      ;; feature set otherwise.
+      ,@(if target-arm64?
+            '("-cpu" "max")
+            '())
+
       ;; Only enable kvm if we see /dev/kvm exists.  This allows users without
       ;; hardware virtualization to still use these commands.  KVM support is
-      ;; still buggy on some ARM32 boards. Do not use it even if available.
+      ;; still buggy on some ARM boards. Do not use it even if available.
       ,@(if (and (file-exists? "/dev/kvm")
-                 (not target-arm32?))
+                 (not target-arm?))
             '("-enable-kvm")
             '())
 
@@ -125,11 +137,11 @@ the #:references-graphs parameter of 'derivation'."
                       ;; The serial port name differs between emulated
                       ;; architectures/machines.
                       " console="
-                      (if target-arm32? "ttyAMA0" "ttyS0"))
+                      (if target-arm? "ttyAMA0" "ttyS0"))
 
       ;; NIC is not supported on ARM "virt" machine, so use a user mode
       ;; network stack instead.
-      ,@(if target-arm32?
+      ,@(if target-arm?
             '("-device" "virtio-net-pci,netdev=mynet"
               "-netdev" "user,id=mynet")
             '("-net" "nic,model=virtio"))))
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index ac6e4ded92..07cee2d4f5 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -235,10 +235,12 @@ made available under the /xchg CIFS share."
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
-                                  ;; FIXME: ‘target-arm32?’ may not operate on
-                                  ;; the right system/target values.  Rewrite
+                                  ;; FIXME: ‘target-arm32?’ and
+                                  ;; ‘target-arm64?’ may not operate on the
+                                  ;; right system/target values.  Rewrite
                                   ;; using ‘let-system’ when available.
                                   #:target-arm32? #$(target-arm32?)
+                                  #:target-arm64? #$(target-arm64?)
                                   #:disk-image-format #$disk-image-format
                                   #:disk-image-size size
                                   #:references-graphs graphs))))))
@@ -452,10 +454,10 @@ system."
                       ;; bootloaders if we are not targeting ARM because UEFI
                       ;; support in U-Boot is experimental.
                       ;;
-                      ;; FIXME: ‘target-arm32?’ may be not operate on the right
+                      ;; FIXME: ‘target-arm?’ may be not operate on the right
                       ;; system/target values.  Rewrite using ‘let-system’ when
                       ;; available.
-                      (if #$(target-arm32?)
+                      (if #$(target-arm?)
                           '()
                           (list (partition
                                  ;; The standalone grub image is about 10MiB, but
@@ -466,10 +468,13 @@ system."
                                  ;; when mounting. The actual FAT-ness is based
                                  ;; on file system size (16 in this case).
                                  (file-system "vfat")
-                                 (flags '(esp))))))))
+                                 (flags '(esp)))))))
+                    (grub-efi #$@(if (target-arm?)
+                                     '(#f)
+                                     #~(#$grub-efi))))
                (initialize-hard-disk "/dev/vda"
                                      #:partitions partitions
-                                     #:grub-efi #$grub-efi
+                                     #:grub-efi grub-efi
                                      #:bootloader-package
                                      #$(bootloader-package bootloader)
                                      #:bootcfg #$bootcfg-drv
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:55 2019
Received: from localhost ([127.0.0.1]:58831 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM2-0006aw-U0
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:55 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:38135)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLi-0006WU-5G
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:34 -0400
Received: by mail-wr1-f68.google.com with SMTP id l11so5631293wrx.5
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=XT6qp/+wmXe73rnlmrAHfRJZYHBLVFXEAYydfmrh97E=;
 b=Sg0+eOvXkM/zwsMC58+Cs6/rZbYiMnmNaoqZjY0XHM9UAZFWGHZ/xHwX+eCCVdWWeZ
 +8fN/R4XjvXo2cDvxgmXN8Skrxx2JUbl0uLEo+ltF8PjUVeZ4j1oTloSuZD61k0xQV0v
 BJJwJ42nHblDcB5tanViUencStXdVnNtoTTpVcUhDrKNONwq23OIfzUcqlNdDGVNtX/C
 12neVvRCI7VVHH5tstUzVGB3wFG5fIp0ntKAYPBjo0zrxXZIZChuyGMc7CWNY2lyqzXy
 UMjhZY/sz6reN/qCwrm/WxZ/1c5hlXt4CYOaGFhgecPr+QdfeOEv8/qQ8mclsmNp3Lce
 exIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=XT6qp/+wmXe73rnlmrAHfRJZYHBLVFXEAYydfmrh97E=;
 b=TNH31gaY1LmcSFgjlZBCIBIyQeXL4j14Q6VrxafD54/n22OATPV/IYZy28zSbQkiWn
 YvO4lTXpglVnIZiPqv21J4B4o7Ny8pWBzuU6JFOn52cvnf7VAoZ0sR2qxl1rETzW1ik8
 LFcyjzz4uowWkvloIw1DUphh+W9GoV0hP+YcgtAsE7J0SgPU9IzDzxSmBBF27hbv1TP2
 QcUAljlD1cVOM3PZ2WLNAubxRF5XdjxdilhS9L28LKI85Fa9o2wK/gPnQFvUjCp9PhBM
 t1TAtOL/ukt+tHyxN6cocmQd8E+Es/1HRZBIefDunZwWQoLgShwSf7jxyvTdxApnBjDe
 RGcQ==
X-Gm-Message-State: APjAAAVnjo4yz30BoTLcJYryBpDjJ/nnxtnisyMZBJ2cVLUqzEpOT67C
 dBqTzZEvf6vfKvPw1846+cmUMvJz
X-Google-Smtp-Source: APXvYqy8iVZAMIYph/JiyvuanADzaDTAi6KGauSu4FYlfajl+HjpNo0n27jGEAs1eognMxX9O/cHug==
X-Received: by 2002:adf:ef05:: with SMTP id e5mr7555731wro.127.1567438468456; 
 Mon, 02 Sep 2019 08:34:28 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:27 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 44/48] build: vm: Fix arm32 support.
Date: Mon,  2 Sep 2019 17:33:29 +0200
Message-Id: <20190902153333.11190-45-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/build/vm.scm (load-in-linux-vm): Disable qemu highmem support on ARM32
systems.
---
 gnu/build/vm.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index a5d9fefa62..b85398ed24 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -102,6 +102,14 @@ the #:references-graphs parameter of 'derivation'."
       ;; hardware limits imposed by other machines.
       ,@(if target-arm32? '("-M" "virt") '())
 
+      ;; On ARM32, if the kernel is built without LPAE support, ECAM conflicts
+      ;; with VIRT_PCIE_MMIO causing PCI devices not to show up.  Disable
+      ;; explicitely highmem to fix it.
+      ;; See: https://bugs.launchpad.net/qemu/+bug/1790975.
+      ,@(if target-arm32?
+            '("-machine" "highmem=off")
+            '())
+
       ;; Only enable kvm if we see /dev/kvm exists.  This allows users without
       ;; hardware virtualization to still use these commands.  KVM support is
       ;; still buggy on some ARM32 boards. Do not use it even if available.
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:54 2019
Received: from localhost ([127.0.0.1]:58829 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM2-0006ap-Js
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:54 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:35641)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLh-0006WI-BH
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:33 -0400
Received: by mail-wr1-f49.google.com with SMTP id g7so14487546wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=XWB/EGaWDv6QzekBaWsXiba8kcGeuqFJbTWeR6aTROM=;
 b=B2bHYGuF6Pebmqgc2jCri2XxucFxKVKagOgE9zAlbI+fj2xASfnsm7xdXI0OKQbCkP
 iDT/1G/uFTMzCoe/5ffxapEJdwCX1OlTomyR8V0IWKZAwgRnz2NrlGujYZ0du9Ec/0lj
 IcY7jySpynQpQo0UvTSyuuu3MEUCJkHvFuc6pY4v6cUEdxpEcYgbZEQCtis0eXR+FUmQ
 rwgNd6VQyZwsbc5/aGYxV3EheMzlHq6/crr8/b7r2L5szmLHabJ8zuylzJxdsGawayIp
 aKL6DwUUqZhk26qHC8DNx8RV/J4w3tfsdtzQwdkVXto6t+Kb5b8LvO5aS2WaSB0HKYHl
 2j6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=XWB/EGaWDv6QzekBaWsXiba8kcGeuqFJbTWeR6aTROM=;
 b=YC1nHhZAAFd4KO2C3X/2bXi7vkDb/AdPiyD0zz3HfNbqEXAtdYCaSMX1hmkg2DVfcz
 iHjzHZjw0bT8K9B6BC1b8IIXDkpJsZbain5a0ZyDbGxOefheDcGSGkuyzWiVy8GAUSXr
 En+48nEIh2YqRgkMZC5p9sXQdG/wdWet8prsNaYkg1GVVD0nG7h4Mbn55g/vDjWXRaFX
 wz/0DoV3/zsqWewgTQfsMRqYLfn0n7D2VBwcRW3vh3wIDj/rRCt2vU7+dzrAWpixwuNY
 TkIjCen10GA+9N874cbb7LRECpmj2yRlVPDc7W/SmUKpEWurkMjVOZyIKV1MkIVHk8sZ
 nK4Q==
X-Gm-Message-State: APjAAAXFaWqqjGSyHp7tKqatLMdNMSS/M2TdGDoFHMnTQ7Yx/ymIcw5f
 w1WIdQ7lhjGntV8HM3WI4PU5xiLM
X-Google-Smtp-Source: APXvYqyYCt6Vds7AH9R/+rmA2BEnYYX/HUNPpD4x1dT9V4TZ0x/o52LxBJ8oTgEzZf0A/C84UmoK7Q==
X-Received: by 2002:adf:d1a4:: with SMTP id w4mr38664693wrc.331.1567438465406; 
 Mon, 02 Sep 2019 08:34:25 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:24 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 41/48] gexp: Use cross extensions when cross-compiling.
Date: Mon,  2 Sep 2019 17:33:26 +0200
Message-Id: <20190902153333.11190-42-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

---
 guix/gexp.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index d9bdde2e42..514422cb08 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1513,7 +1513,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                (string-append extension
                                                               "/share/guile/site/"
                                                               (effective-version)))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-path)))
                         (set! %load-compiled-path
                           (cons (ungexp compiled)
@@ -1522,7 +1522,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                               "/lib/guile/"
                                                               (effective-version)
                                                               "/site-ccache"))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-compiled-path)))))))))
 
 (define* (gexp->script name exp
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:53 2019
Received: from localhost ([127.0.0.1]:58827 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM1-0006ah-8z
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:53 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:38139)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLh-0006WS-5v
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:33 -0400
Received: by mail-wr1-f50.google.com with SMTP id l11so5631254wrx.5
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=tOPPkls69kv9Lkg6E8gEaO9JlsfXS8SFgBkf0UuFSEo=;
 b=fdr0W0hp1JYlaNe2q6q3tU9OB2zzXTee/0BC9rGMYSj9/1v6ZrbtRoyjxznuM3HyZ/
 uD4qrSg1vas2uokBbzPAkbq3eCJbWu9AGqt2KQslX+aorYhx2sjLzOataRzGiR4KUnhg
 8HfV3v4fVNONAc13Xhtp5ndG08YK1yp5lhDuUxqKS8Wwpq/uXOkZwxEZWr3twxwV7nXE
 RzaeenBEcd3Tyak2kpTwZGfvqty6MGDx3gS7sy6H4nN5dJrhyMun/vVBg1WHLmHyYvf2
 sjQVOLg/Y00qwK6s6uMQMpQU+ihW8E1heenzs/211rxcrPZCg1+F4fjg0mv3Izzc65tk
 fhQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=tOPPkls69kv9Lkg6E8gEaO9JlsfXS8SFgBkf0UuFSEo=;
 b=CepLtP4czfCe8ZjJlZE9YmQJsbp4H0eo8C93DAWKboI+Z53u3OebD/wAhHIl5YPKoW
 1ZyGg5vCUjpHeWobR6SPyprLBi09M7FHurIEJL1MOsbTb3dV/g0hCVAlCg7vZU+23Y4V
 Hfaf8VxyEK+bDyD6ketwRHwgsYUZLZEESau01uvXgiaOg949KkDkCr6munvOEVmZz/mF
 7jFsmUQLQDs4055Ojm4UaWB/re0ZOuEwUH+hnYjyf+qK4obxogFl7uesrAp90MaHN8qD
 u82sJa/0XPT3z3OKQK1IZDQYqP8yuQFlPGxLIZA4YW1TKKCnSQcScUra0H9PyZY5zeig
 ZzLg==
X-Gm-Message-State: APjAAAV/K58ut4CkOotDCxzCh5AaN59HY3Os+Rey6AwzP0FczmE6CsNk
 BP8M4h1ZNl6Y2zq2EAhYur+PbZ6A
X-Google-Smtp-Source: APXvYqwJ6cu7RjE/ULKmn37i88y8cEWQj7ZRWKP8NHN6qn+sKUkt8UnvZ9rPyfoJRZFgmtEIHS0sgg==
X-Received: by 2002:adf:fad0:: with SMTP id a16mr36527946wrs.195.1567438467492; 
 Mon, 02 Sep 2019 08:34:27 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:27 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 43/48] utils: Use target-arm64? and target-arm? helpers.
Date: Mon,  2 Sep 2019 17:33:28 +0200
Message-Id: <20190902153333.11190-44-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/utils.scm (target-arm64?, target-arm?): New exported procedures.
---
 guix/utils.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guix/utils.scm b/guix/utils.scm
index f480c3291f..3eb156ad4e 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,8 @@
             package-name->name+version
             target-mingw?
             target-arm32?
+            target-arm64?
+            target-arm?
             target-64bit?
             version-compare
             version>?
@@ -493,6 +495,12 @@ a character other than '@'."
 (define (target-arm32?)
   (string-prefix? "arm" (or (%current-target-system) (%current-system))))
 
+(define (target-arm64?)
+  (string-prefix? "aarch64" (or (%current-target-system) (%current-system))))
+
+(define (target-arm?)
+  (or (target-arm32?) (target-arm64?)))
+
 (define (target-64bit?)
   (let ((system (or (%current-target-system) (%current-system))))
     (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" "ppc64"))))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:53 2019
Received: from localhost ([127.0.0.1]:58825 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM0-0006aZ-Qd
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:53 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:35644)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLg-0006WP-46
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:32 -0400
Received: by mail-wr1-f50.google.com with SMTP id g7so14487599wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=/D2IEq7JeyMybWRF2sAS9Sb18h3lrskN+qUB1l+f4Oo=;
 b=AAkOTXPd9xoxaZ0uZRGynyC68HsA1ZeyO4t6ehOGIr+fCEhO9HJUpXa4DFbQ64z4lG
 oFBjqy1UIUMH+X4IDZF6j/LYMPLm7KXSAPjhg7ZX8wblOVsRMu8jOcZsEPGbvV6EEuVT
 7YazhrLGRHsXVWzKFCuHgQHli1y8KOJ0uumpYdPIdkVpDLNOg80MONUeTfWh84BP9ujN
 ECNQ+lz38aZ5s5MM6Mj2NojkZXzRtEMLb/f61XqeJa1L7nx7ALC/Ok9Gh/VCD7IYgt1f
 QY2Bqx5gvHzLabD6wwxhNapNNmzxiMHOieP8X/z/94d4UG1qhu8xnfqIdN2lc+hn1t0l
 2dzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=/D2IEq7JeyMybWRF2sAS9Sb18h3lrskN+qUB1l+f4Oo=;
 b=bZCvknhcamkjuomojHOseq0Z9i9xhwlrazFrHx+ShEWWTEMXa3UE5kIX7Hw7KfoqJU
 vLMqfucWxofaVLam2ycfwAjiyKveTQpXgHrCWUG/ZjHER/L+49Zk+AcYpDM33Sf9IBHz
 V7uTXmXgIWbrdKL7l+1jTptyxrBol5RytaAxliwGIwO+OSQ3K1fTsorElmZ0n8A/O4JK
 mbwUOHAhQ5neKS5n8pEz945YXp6Wg/Xwsah+XCRXcuLhe3H+11V5NvuB0T9fygxAD3qF
 /U2LPksHq32PLoAFQQka+NqWywmkilzni6nZu8g0sVZsYY9E2YDPMQ96nxcBP+LyhCmK
 HFUQ==
X-Gm-Message-State: APjAAAXXVwc89Xc5fViwjsTQ7LsrDI0+xcE5fq4jOxoALRyYUnF/RO17
 bB7xjrt2W0jdN4iwo1Z02LOuqkU1
X-Google-Smtp-Source: APXvYqwBwoOrvZ+2GUBkJbw7OMG/Cp8xv50cBC/ktSCBkquzTY6lQMM/l1qyDn1BGNvBYTPDS0jt0A==
X-Received: by 2002:adf:fd03:: with SMTP id e3mr28392543wrr.291.1567438466447; 
 Mon, 02 Sep 2019 08:34:26 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:25 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 42/48] gexp: Pass target to compiled-modules in lower-gexp.
Date: Mon,  2 Sep 2019 17:33:27 +0200
Message-Id: <20190902153333.11190-43-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/gexp.scm (lower-gexp): Pass target argument to compiled-modules.
---
 guix/gexp.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index 514422cb08..afa28779c8 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -727,6 +727,7 @@ derivations--e.g., code evaluated for its side effects."
                        (compiled (if (pair? %modules)
                                      (compiled-modules %modules
                                                        #:system system
+                                                       #:target target
                                                        #:module-path module-path
                                                        #:extensions extensions
                                                        #:guile guile
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:52 2019
Received: from localhost ([127.0.0.1]:58823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM0-0006aS-Gk
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:52 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:35640)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLd-0006WB-Vp
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:30 -0400
Received: by mail-wr1-f50.google.com with SMTP id g7so14487485wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=qU6oLDFaC4yT+BULQmMYMm4JY47OkseXzW2BO2iaNs4=;
 b=JSnhaWPru3MK4CozfE+9G/u8DubnH1jzt7Uhjw2t3N/Qi7mcj62xvsuG937QKQ2eA6
 OEjg/8k7RFqpw+bKl4E9xEChpuqaVprGWHqGucZajy6RtZu6IdbGH8pZ/CvLNCkIs9Oa
 u0BUxy5ScLQz4IKcfwFbQslIKHQ+alvcdkc0RtibMqrS/b7dXRWbZ+cI2k+qHFp+GheR
 aMFiDgp8wa+drAD2Zwjr33rIvL8IfoxCuT90lXmlQPldTj/XY5g4fnfzrgGJhNxbQC0q
 mvacRW/zw+0e9UoSAkcYjmKH+eyDPDqY0HTIYoTgs+gVdbqcL4ew7QiiDMpLapwEMCCq
 47nw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=qU6oLDFaC4yT+BULQmMYMm4JY47OkseXzW2BO2iaNs4=;
 b=rAo1SXpYf4raK8xnh62VFaymvsxyIdiUqKiucv71EPY6Ku8HC3KnyC4/qx/o2TORl+
 Hnt0MASG1NMwShdpLbFKR29IccvldGtG+yHImJokVyJWN9/pv7soVsbhG6zN68q1yl06
 iwiZ3pEJ83ctxa9rHZO80NCrGPsJp42kzTOQeJQPof/6hB32iLGTp6Rb8gWijKbOe723
 hEV+uuHa4tMQDMvJh+Kzw4FQQXE+ITvW+y3EVk/2o5HeHx1M4gfZeTBZpkpa+OT1xjyD
 Xr6K/ZHufeJsraRkwUc8zXjpafmDU0N8uKyfZEDI+BKGVb3ReNpLiBmuNWakO9UwyqFk
 TiFQ==
X-Gm-Message-State: APjAAAXmVlBxEBvFg0tMH+7UmspIAkx2Gfo+GfGbKDWUuv5zy7cRU+u5
 9eJRe7j+kfV8ymmPjgalBlDhsQGs
X-Google-Smtp-Source: APXvYqwohPgwAzFHgSl0b8CJLbrgfucSswaaqmz0mmCnxwVPG2qqKBMCkkEEQ7fHv8Q8RQW0P873LA==
X-Received: by 2002:adf:ff8e:: with SMTP id j14mr36011221wrr.141.1567438464294; 
 Mon, 02 Sep 2019 08:34:24 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:23 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 40/48] gnu: linux-libre: Enable built-in ext4 support.
Date: Mon,  2 Sep 2019 17:33:25 +0200
Message-Id: <20190902153333.11190-41-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

When running qemu-img from (gnu system vm) with an aarch64 kernel, mounting
ext4 partitions fails because no modprobe of ext4 module is made. Like for
other kernel configs, provide built-in support for ext4 partitions.

* gnu/packages/aux-files/linux-libre/5.2-arm64.conf: Enable built-in ext4,
like in intel and armhf configs.
---
 gnu/packages/aux-files/linux-libre/5.2-arm64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/aux-files/linux-libre/5.2-arm64.conf b/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
index bfd8c18ddb..4ad652a78f 100644
--- a/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
+++ b/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
@@ -8023,7 +8023,7 @@ CONFIG_VALIDATE_FS_PARSER=y
 CONFIG_FS_IOMAP=y
 # CONFIG_EXT2_FS is not set
 # CONFIG_EXT3_FS is not set
-CONFIG_EXT4_FS=m
+CONFIG_EXT4_FS=y
 CONFIG_EXT4_USE_FOR_EXT2=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_EXT4_FS_SECURITY=y
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:52 2019
Received: from localhost ([127.0.0.1]:58821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oM0-0006aL-7D
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:52 -0400
Received: from mail-wm1-f42.google.com ([209.85.128.42]:38740)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLd-0006Vz-2f
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:29 -0400
Received: by mail-wm1-f42.google.com with SMTP id o184so15058349wme.3
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=LlWhpW15OOU45xxpjkGbwzNiPaHrdH0yvAUEHcMFAQk=;
 b=AtHJXQiVr8kTtl0X431Ert14DIe8bTHfT6BlS+N0guPikznembYLeRt8BnyndYHsWH
 8yWe4aDxnapjKt0jYuQV/t8lcGjvT3d4seJO9cmqEw2mrmwaqF9THcPt1TUe/rY9NVhA
 09N3O4lFJERenZMxovG26GvjnHCP5jQyaPETxVVVwihPDq0cUiTgs+VZTo91bxreQYmF
 E7sqT/w0BopiVZ3xWWHRs2K8BTJpzESnXGfTWrESTnYv2zeAxRkXAAZUDhBj3qT7Vo/q
 QsXWRWDLCVyLAWgV5fz4SZQS2X4AL8xO10cvkY9EpGE0/ufTT+DNTN7zb0ZAHLLpsWZX
 /9XQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=LlWhpW15OOU45xxpjkGbwzNiPaHrdH0yvAUEHcMFAQk=;
 b=dX2herDp9E5jjd4nLRKaNk9Py9ORmWXSlkXq698tF4ZSoh4Z+yicaI/HVSZgQZ4xTD
 mhHY+Kn+TbmMCoDSpgTP8DZ0w5Hqq1qCqRfpaneB8ehAmXGJXjyHARZMurJBPSDE6Brd
 fP8F4yiSJEAunewa8V4wV3g4nhQm8ZMQMSTK1YQ8Rzjsotszgz9fYJQIxziXX9r55sPq
 vzXj4gFbalvWPADwUjYkgkazvD6nP/ZW9lR8lVHTVk/whusT7Ee2X6lkSy36XQLzA/UY
 Ef4uz9iYPUALoqbuMpCF5yHYjYDWF1kOAwpVRg3iFOrEu0IOQHPAt6Vuf3GKd+t3lHlm
 cRjg==
X-Gm-Message-State: APjAAAUP4jqpqI8pxIptf6Vt6lwefn9sa2tOfWbVaNqHDpEwYMV81E24
 OjEo67Z421QpuJOqovcbotg08ssZ
X-Google-Smtp-Source: APXvYqy112AR5Lu60zSEx/5+zXkv9lLHqREAiKThZtqoic/0dCbbdNHQfYRrVyX7uCdCkHwzEHLFrQ==
X-Received: by 2002:a1c:e709:: with SMTP id e9mr1363030wmh.65.1567438463267;
 Mon, 02 Sep 2019 08:34:23 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:22 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 39/48] linux-initrd: Use native gzip.
Date: Mon,  2 Sep 2019 17:33:24 +0200
Message-Id: <20190902153333.11190-40-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/system/linux-initrd.scm (expression->initrd): Pass native gzip to
build-initrd procedure.
---
 gnu/system/linux-initrd.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
index 7e9563b923..0efb8fb222 100644
--- a/gnu/system/linux-initrd.scm
+++ b/gnu/system/linux-initrd.scm
@@ -99,7 +99,7 @@ the derivations referenced by EXP are automatically copied to the initrd."
                         #:init #$init
                         ;; Copy everything INIT refers to into the initrd.
                         #:references-graphs '("closure")
-                        #:gzip (string-append #$gzip "/bin/gzip")))))
+                        #:gzip (string-append #+gzip "/bin/gzip")))))
 
   (file-append (computed-file name builder
                               #:options
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:52 2019
Received: from localhost ([127.0.0.1]:58819 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLz-0006aC-TV
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:52 -0400
Received: from mail-wm1-f44.google.com ([209.85.128.44]:36764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLc-0006Vn-3h
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:29 -0400
Received: by mail-wm1-f44.google.com with SMTP id p13so15109903wmh.1
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=WL7fLKNr1JLrU6WnaMLxQEHw/j7lWiyZabyrZtNEyqE=;
 b=KN6SLWwvdchkgTSl33I42ZTBsNCH3I9dIXfKY9bqGpdWAOfM7JtuAsbdDSbdoEzh1B
 Wh9yVwkiWrEk3DVxdxVA/5xQWDzv17tx9n7BNhhY0sAPV+XspOaTMoJqwZauh8JdIULI
 g6PP7r3mOlHgBjR/Fd8htTDJvtJc/zUsQwKgN7/2wimpWu+pXMqBLVxUcS7IuEeF5vtD
 +kjUWBIvNNl1xJHMc/FLpmPnmxGjGeOWElaDoSo6G6SOWLNDOQJ/kuSScBB8qh+XGZ7H
 F3RBETE4xoWSRHDwrAZoY/0HxJfhR5bxDQOk+Ul6Js7imAvgtOgEK1ShcQn474+tS+Z+
 3kKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=WL7fLKNr1JLrU6WnaMLxQEHw/j7lWiyZabyrZtNEyqE=;
 b=uThqVIxcObIoQs0M7GksQ+9mnYsAd9hyBldy9Kgatr96e3xuZL/JOddfnx+lA5xWe6
 I5eO9BfGju63BTXR/kQ7ycOTiOONRiId7XkBEr8L8eJUSCu16TCKrbqEmsiPosDbMzSl
 FEw2moz1I5h51kk28UWQGPcmDFVndjYLxHoU9b6BRAaYjVNShB544jc0cwkfatiqSCM0
 u3izMuIWExcGZpE78TDVrTLV/qbpK6+pOc9fkCZ1mkxEmJhMNq6xbKwnS37IM3Rkblr5
 V5UFZps60hevpoqE1oQQKopy9id6uKpyElQ3F3pFlIzJ6Fd43G/70CLM6mznDiPRJUGC
 mPZw==
X-Gm-Message-State: APjAAAX0yljyajsh0JVHSEmoFs5ZKS2ZEbvZNkSC4lNHQBLVPAGDLqzJ
 SEU5LMm+tCM7n4ASo1J0BizCg6YV
X-Google-Smtp-Source: APXvYqwgZgJR2jNyqpu1baDpMvXtHgmxGiF/p/PBaAg2lCRdHi6q7W/cl4PB+EZ8FNbVN3h+CMzAXQ==
X-Received: by 2002:a1c:9a46:: with SMTP id c67mr8144679wme.115.1567438462302; 
 Mon, 02 Sep 2019 08:34:22 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:21 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 38/48] gnu: grub: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:23 +0200
Message-Id: <20190902153333.11190-39-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/bootloaders.scm (grub)[arguments]: Search for unifont in both
native-inputs and inputs.
---
 gnu/packages/bootloaders.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 41a2de9706..b235e1bc78 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -99,7 +99,7 @@
        (list "PYTHON=true")
        #:phases (modify-phases %standard-phases
                   (add-after 'unpack 'patch-stuff
-                   (lambda* (#:key inputs #:allow-other-keys)
+                   (lambda* (#:key native-inputs inputs #:allow-other-keys)
                      (substitute* "grub-core/Makefile.in"
                        (("/bin/sh") (which "sh")))
 
@@ -114,7 +114,9 @@
                                        "/sbin/mdadm\"")))
 
                      ;; Make the font visible.
-                     (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
+                     (copy-file (assoc-ref (or native-inputs inputs)
+                                           "unifont")
+                                "unifont.bdf.gz")
                      (system* "gunzip" "unifont.bdf.gz")
 
                      ;; Give the absolute file name of 'ckbcomp'.
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:50 2019
Received: from localhost ([127.0.0.1]:58817 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLy-0006a4-JL
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:50 -0400
Received: from mail-wm1-f49.google.com ([209.85.128.49]:39670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLb-0006Vc-16
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:29 -0400
Received: by mail-wm1-f49.google.com with SMTP id n2so13671027wmk.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=udBFUCNutACftLpZ59EMTMbN6CgXVp9+ZHfQ4Mho5Lk=;
 b=cWN6nYFariykjcNfLpivgrtW0sQ3XDyP865agnOtRd8vhodRtqLHuhBvWzL7/jfDnR
 cuSVlwzphVG+ONC9Z1g7xKNj9kBdc6RaBe+zgdgURX+LlYT0kHDgii4PthqDYDK+ad/d
 QNR84HbLGoFwq6bXneLrnX7sDld8sKpd3+VeKxOl41T7ZO84B+jzlCd9DhB4IWPG7/jp
 6W1vHUqTWLObHmWnhm/UmOzFu7waglSWvPyVvuT5froLK2aXm0zbvVQJR6N1V3gsNrAK
 eiu+5Ry/bk0VT9ceLZsw0NNn+BewlQKq0h6y4CGT/ptxTvG5Idw3hdHisSo/qnARrSbw
 UzUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=udBFUCNutACftLpZ59EMTMbN6CgXVp9+ZHfQ4Mho5Lk=;
 b=QTK03phyR6ReAleYkbjWplIoqLE8rJPgf6pAM1Yvp+hhZaggaPLaKgmE7S8mnW6oVP
 9fLqEI9OPJ+9IL+kPXxQJomog4tWepvzzR0fEpN2DfH3UUUmp4MykEZx1+tQ+YhY6wRc
 jUvl2ZKaexAPYnB/EhiyHt6nDFgwk4ht7MsiAQDWAqsfaLnUIqrW0do2umSZZJACp+QR
 JK191KC5kaRWWoO2ySqOsI4QFWqTRwruQZMKJIEhz5XWXwX1LOM0pvbMsEPKSAZeg5we
 e97a0h9GSjGNctTDQLpCrlXExhPP9AbACRTb3oyZtGpT75Ep2I8j27inTTDRrpBBbcBy
 XMoQ==
X-Gm-Message-State: APjAAAWkFKf8j8aBba0HBZ+zJueTiN+cwPCzuSkobiNVi7t3pxo2lsL7
 cNq0yGApEl5rkmMr1AzEKIegSz3P
X-Google-Smtp-Source: APXvYqzw+vVHKQF5ebB+a4M90etInwbPz+rw/VgaSjc7btsAZukg4U/0zOS+FPA17vNoK4p9Dq5J6w==
X-Received: by 2002:a7b:cb81:: with SMTP id m1mr36053460wmi.124.1567438461339; 
 Mon, 02 Sep 2019 08:34:21 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:20 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 37/48] gnu: mdadm: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:22 +0200
Message-Id: <20190902153333.11190-38-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (mdadm)[arguments]: Search for coreutils in both
native-inputs and inputs.
---
 gnu/packages/linux.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ed2d21859d..47e6c1da53 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3528,8 +3528,9 @@ MPEG-2 and audio over Linux IEEE 1394.")
        #:phases
        (modify-phases %standard-phases
          (add-before 'build 'patch-program-paths
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((coreutils (assoc-ref inputs "coreutils")))
+           (lambda* (#:key native-inputs inputs #:allow-other-keys)
+             (let ((coreutils (assoc-ref (or native-inputs inputs)
+                                         "coreutils")))
                (substitute* "udev-md-raid-arrays.rules"
                  (("/usr/bin/(readlink|basename)" all program)
                   (string-append coreutils "/bin/" program))))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:50 2019
Received: from localhost ([127.0.0.1]:58815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLy-0006a1-98
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:50 -0400
Received: from mail-wr1-f45.google.com ([209.85.221.45]:43776)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLZ-0006VL-S6
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:26 -0400
Received: by mail-wr1-f45.google.com with SMTP id y8so14424950wrn.10
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=2hUwGhd40iT1PoZDCsybzx2mAEWdbIGvIb4CBmaOLOU=;
 b=r5kRVLtFZCj5CF3IrzNRAQ1Fbnh1mSjeyh/ck/01LQh9ZliXrnO8lEjm0tgbOjN89O
 mPIMHPIxQGAooTjoQXsWK3odnyzOPe2hD/uqFDe8r8yTcM/nrpTm3FHtviz4Qv3bAUX5
 vlF0MkgcJ0jnV9odiJSyElWa2L1V5kPLnSQUkKa83z9D5y0ZTJByuy91dKr0ZdIXEbWl
 Fshnszzb3YGqObHDyywviZSDCXPwV81gcBWuUPbW+5HpNQxhsvRQ+zsPopJnyuaWgqgy
 w/kcyL31A2MnynhZF0QDKsyP6QnJZIatbYlq4ESm5KnxyXrIrRBqwUwX3dqtdgehWqHV
 ynmg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=2hUwGhd40iT1PoZDCsybzx2mAEWdbIGvIb4CBmaOLOU=;
 b=q9pQ+2JhFScE8KTHLOBAlN1O6h+6vh9+e39bR5k3JGj57n8yBcjUJ70b4aHqwBarTU
 ipIRWnMfO9tKe4bbCo1x5ZJyiSTklpRlhV/JdwmGHLcqCODJsvvkx1e1Calun1Rg7Ybq
 rDD+tra9hCoXDkttMzPMLLKgM0/0H7SSVliVgXIrHv0iGLrf90KJXmqg6NP//1ZJ9U3I
 48Vdlh9+uExgL8+enMkEidnI0ddNBVRNCNMtKxzzPuQGdtze3nQFhUhw7z8BIUh6lziz
 eaQECEqEA8CtIERO/EfviSwY35ItcN8bNJZGZu9kQUyyo8y32+3/e+NTmg775OcOa7SO
 XnYQ==
X-Gm-Message-State: APjAAAUise/ERKmvdowokCrXYRaJy/IccYYLhz2TKpo2yFuLChODQ3k4
 Gy0GGp5l8eGE2GdCNhUBjyviSccQ
X-Google-Smtp-Source: APXvYqxStFWxzMMd8j0tZ0L3pZw7s30aEoDOTk52iXZR4fdTIGd9ikdkmGUQI4Wuiisf6K7ekb9D4g==
X-Received: by 2002:adf:ce8e:: with SMTP id r14mr22251276wrn.35.1567438460008; 
 Mon, 02 Sep 2019 08:34:20 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.19
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:19 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 36/48] gnu: console-setup: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:21 +0200
Message-Id: <20190902153333.11190-37-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/xorg.scm (console-setup)[native-inputs]: Add perl,
[arguments]: search for bash in both native-inputs and inputs.
---
 gnu/packages/xorg.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index d5d983a8d2..ecd8c29f21 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -6412,25 +6412,28 @@ output.")
                                " ")))
              #t))
          (add-before 'build 'make-doubled-bdfs
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs #:allow-other-keys)
              (invoke "make" "-C" "Fonts"
                      "doubled_bdfs"
                      (string-append "SHELL="
-                                    (assoc-ref inputs "bash")
+                                    (assoc-ref (or native-inputs inputs)
+                                               "bash")
                                     "/bin/bash"))))
          (replace 'install
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref %outputs "out")))
                (invoke "make" "install-linux"
                        (string-append "prefix=" out)
                        (string-append "SHELL="
-                                      (assoc-ref inputs "bash")
+                                      (assoc-ref (or native-inputs inputs)
+                                                 "bash")
                                       "/bin/bash"))))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("bdftopcf" ,bdftopcf)
        ("bdfresize" ,bdfresize)
-       ("sharutils" ,sharutils)))                 ;for 'uuencode'
+       ("sharutils" ,sharutils)                   ;for 'uuencode'
+       ("perl" ,perl)))
     (inputs
      `(("perl" ,perl)))                           ;used by 'ckbcomp'
     (synopsis "Set up the Linux console font and keyboard")
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:50 2019
Received: from localhost ([127.0.0.1]:58813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLx-0006Zu-Ty
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:50 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:40291)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLY-0006Uz-JZ
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:25 -0400
Received: by mail-wr1-f65.google.com with SMTP id c3so14448894wrd.7
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=0MAPnUr8Tohay1gp24tM41PzXsX2DlTuOBJ6lWAXYq8=;
 b=YetFmPsb6X2BJT0if18QxKxyKr/wGEjOhc7J++CRdtabTTmd9BOoezx2BS6JKfF1lt
 PxtQYFN/oPtVCeeM8sIH1pNk5w9n6adMvLrhhrscnAePssNr73We2LVagPLtrIHyiEjR
 k2i8Sy1a0caY0N218o4NfNp3KZmXpVtwYn6SzGMKO39KZPDysj+GW23Dyt2b0iUNBjT3
 Cs6r6zAEDGYSz2/1xiaAgnfqcR+hjWia+s+BwSiB/Mr8DGtJ+QNAY0CwwGA/tMoCqfNz
 1/WpCwlL5bjx9B3ch20uQ5BYH24MiwwyYXRu+qEz4qDerxlNRSZVC0hUI9LiCPq+WZFX
 WghQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=0MAPnUr8Tohay1gp24tM41PzXsX2DlTuOBJ6lWAXYq8=;
 b=YiOiO8fdpcsOGgECU/RZshESX0REGkao+UuAiQJWhR9ZMgZhCqU03ZA7KzdwW7qreD
 BqxyNn/vUcsCvNfkpuJ28zlpv+yTU8ZL5MNo8kwquww8L5ZZ1Elb9ZsepJsK9MG0OmeF
 4qakmIXUhY1UrsgBigWq1636vvkLXBKwuHRH+akaHzdI7DkfiXx0boIl+GR4HWF2QLaP
 guM9FkbCxNvuGlnmg9BoJJfphAnczUinbqG9Gv6ksvx5+EhXwPO5yKf6ZY//PMHLTydz
 Hwsf6CaAkDTWhl+5KFr5CRf2pHn3XWQgMcgMVcuPIu36k+wQm1O5SbBfzp/wYsarqHAB
 +8tw==
X-Gm-Message-State: APjAAAW2++0Xp7nRKoU/8sEOTuiiov0IQXrBnFSxEj461Li7u848ve0w
 eV/PGtuKJ+CRqSrKX8HGfQu92wFj
X-Google-Smtp-Source: APXvYqziaGxFh0at2e9YvCOlB8WUIcsigY72VHLKvvcUfaEGK4FkMQBhyy1WfKvqbfaIIP9jyi4EWg==
X-Received: by 2002:a5d:6911:: with SMTP id t17mr36646559wru.255.1567438458920; 
 Mon, 02 Sep 2019 08:34:18 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:18 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 35/48] gnu: cmake: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:20 +0200
Message-Id: <20190902153333.11190-36-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/cmake.scm (cmake-minimal)[inputs]: Move all inputs to ...
[native-inputs]: ... here, except for ncurses.
---
 gnu/packages/cmake.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 9bf0273f00..cae66f2525 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2018 Arun Isaac <arunisaac@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -145,16 +146,17 @@
          (replace 'configure
            (lambda* (#:key (configure-flags '()) #:allow-other-keys)
              (apply invoke "./configure" configure-flags))))))
-    (inputs
+    (native-inputs
      `(("bzip2" ,bzip2)
        ("curl" ,curl)
        ("expat" ,expat)
        ("file" ,file)
        ("libarchive" ,libarchive)
        ("libuv" ,libuv)
-       ("ncurses" ,ncurses) ; required for ccmake
        ("rhash" ,rhash)
        ("zlib" ,zlib)))
+    (inputs
+     `(("ncurses" ,ncurses))) ; required for ccmake
     (native-search-paths
      (list (search-path-specification
             (variable "CMAKE_PREFIX_PATH")
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:49 2019
Received: from localhost ([127.0.0.1]:58811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLp-0006ZW-S5
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:49 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:47020)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLP-0006Sx-78
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:24 -0400
Received: by mail-wr1-f68.google.com with SMTP id h7so13115808wrt.13
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=JfxmM9/3xpeOOvigmlE2zqbOCm4RWsvNg6lyp2tkml4=;
 b=TVKiFFoAte3jF3NNCfMhWEl6JW1t4SpFPOIfaZEKLteE7sQ9Mp01c0otV09Y/g5p+e
 hlgDWHcAXQujJMuu0SaF8xGXzWFIy7dNMFEr/CqjKn2wSSudvCxUINH3nYZb5xB6rvIV
 IxCjZcdFrYdbqG1SV+l4kM/JoA7MgTEK9oYxmlJ6dLncwmeR2a0u3SeF/Ms42dKwEAAJ
 pZIqVlTj2cMmRepgZWwPGl68M1FR30iSokSCK+cqGXGwGwFF8IPw9Hc1G6BdmZU05/mP
 tFV2cJNIwUPT6kg9nT8b5Q9yLPdE6x4ky4j4bi/8A1VdIyeH8a73E4jbqXNEFYZq/5Qm
 dBOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=JfxmM9/3xpeOOvigmlE2zqbOCm4RWsvNg6lyp2tkml4=;
 b=Rgfo4fntJSoQSLe+uKms4ZwC6loXR3Rx+5BrDJtqHWuIufZo82LtmF/b2pQZfcWbys
 WXz4STuzc5oqQPo3rsKeoNVAYlKmGCDFVEZmSbCmJ7bBVnJqthOAHP0hnv0OnaCrYh99
 SUZVaksge4dmnNPXOsqF8NSF50AeKbJZdFtQ5JoMZEsWBqYmA6HFKQ/mAWPknohECbGP
 1TQTmmsjASDTH6LhhF2lW4THm/rQ/7dfemPS+BZxid38esnOAQ2Y5YHDP39GQeLMGL5F
 DYwKGbowomH4zpseSUFIxLHGjejTLrrYwz21X+fRqZbtMycsLZ86SVH1/jb054EC9gE0
 ZgtQ==
X-Gm-Message-State: APjAAAV+ef8DF/WRso5hnuJpLj4qVzPys0Dd4J6EpxTcPtLYJrOv1TxO
 cLSw+tzNeRuTgN3mo31K4zdy7bUG
X-Google-Smtp-Source: APXvYqyhS2vn4RBvgQqvKO/eMalunlMsMyR0x8icYX35BO9Ix5/cYvSB0VomougUzGT2uEN5mZrRPQ==
X-Received: by 2002:a5d:6911:: with SMTP id t17mr36645457wru.255.1567438449484; 
 Mon, 02 Sep 2019 08:34:09 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.08
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:08 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 26/48] gnu: guile-sqlite3: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:11 +0200
Message-Id: <20190902153333.11190-27-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/guile.scm (guile-sqlite3)[source]: Apply previous patch,
[native-inputs]: add guile.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/guile.scm                        |  7 ++-
 .../guile-sqlite3-fix-cross-compilation.patch | 55 +++++++++++++++++++
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index ae53257a77..2cf92e4478 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -928,6 +928,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/guile-relocatable.patch			\
   %D%/packages/patches/guile-rsvg-pkgconfig.patch		\
   %D%/packages/patches/guile-emacs-fix-configure.patch		\
+  %D%/packages/patches/guile-sqlite3-fix-cross-compilation.patch \
   %D%/packages/patches/gstreamer-buffer-reset-offset.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_PATH.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch \
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index b07a570654..713390ada1 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2016, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2017 Andy Wingo <wingo@HIDDEN>
 ;;; Copyright © 2017 Marius Bakke <mbakke@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017, 2018 Amirouche <amirouche@HIDDEN>
 ;;; Copyright © 2018 Danny Milosavljevic <dannym@HIDDEN>
@@ -521,11 +521,14 @@ Guile's foreign function interface.")
               (sha256
                (base32
                 "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+               (search-patches "guile-sqlite3-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
+       ("guile" ,guile-2.2)
        ("pkg-config" ,pkg-config)))
     (inputs
      `(("guile" ,guile-2.2)
diff --git a/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
new file mode 100644
index 0000000000..9ea9a47677
--- /dev/null
+++ b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
@@ -0,0 +1,55 @@
+From a6e9e62a77ecc5012929613e20da23b2636450a5 Mon Sep 17 00:00:00 2001
+From: Mathieu Othacehe <mathieu.othacehe@HIDDEN>
+Date: Mon, 25 Mar 2019 11:00:38 +0100
+Subject: [PATCH] cross compile
+
+---
+ build-aux/guile.am |  2 +-
+ configure.ac       | 19 ++++++++++++-------
+ 2 files changed, 13 insertions(+), 8 deletions(-)
+
+diff --git a/build-aux/guile.am b/build-aux/guile.am
+index dc1e63f..3126372 100644
+--- a/build-aux/guile.am
++++ b/build-aux/guile.am
+@@ -16,4 +16,4 @@ EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
+ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+ SUFFIXES = .scm .go
+ .scm.go:
+-	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
++	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
+diff --git a/configure.ac b/configure.ac
+index f648fcb..2d34d0a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,15 +21,20 @@ PKG_CHECK_MODULES([SQLITE], [sqlite3])
+ SQLITE_LIBDIR="`"$PKG_CONFIG" sqlite3 --variable libdir`"
+ AC_SUBST([SQLITE_LIBDIR])
+ 
+-AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
+-GUILE_CHECK([retval],
+-  [(dynamic-func \"sqlite3_open_v2\"
++if test "$cross_compiling" = "no"; then
++   AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
++   GUILE_CHECK([retval],
++   [(dynamic-func \"sqlite3_open_v2\"
+                  (dynamic-link \"$SQLITE_LIBDIR/libsqlite3\"))])
+-if test "$retval" != 0; then
+-  AC_MSG_RESULT([no])
+-  AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   if test "$retval" != 0; then
++      AC_MSG_RESULT([no])
++      AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   else
++      AC_MSG_RESULT([yes])
++   fi
+ else
+-  AC_MSG_RESULT([yes])
++   GUILE_TARGET="--target=$host_alias"
++   AC_SUBST([GUILE_TARGET])
+ fi
+ 
+ AC_CONFIG_FILES([Makefile sqlite3.scm])
+-- 
+2.17.1
+
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:41 2019
Received: from localhost ([127.0.0.1]:58809 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLp-0006ZP-G2
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:41 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:43794)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLX-0006Ui-Gt
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:23 -0400
Received: by mail-wr1-f68.google.com with SMTP id y8so14424861wrn.10
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Tr0sOugmVwyaTXR3L2Jn4JxWg2hDSaaB+Mv8mWbmnHk=;
 b=rYD5ytoWGwb0PM6CaON+PbtpdkTRuBYANncAgsB3ke0qMdpjOUBI+kvvgDib8EHGER
 CVq2WQfTBdZEXegrPG09WUy6i1Suczw0HMUwESxpj/BmoMNyopjOjqBgc1pHfJ05VH49
 W6Bh1KwkKvlYsHyqRJdZXoGsFYaiafpYMe64tOIM0Xd5No52q80RCropjdH+IdhE8sw8
 izV5FIG/FyCb7B3kpkdmoL/D4L0JU+hcKwPgQV7KUqCeFfVci9yUYBwvHPLmYjD12IOt
 9pieAMIQ2oiBRjd2uf+YCqRHb3XO+rydTOM7nNgK/BpA3YcAw6gbblzNSET5HZyxiwDq
 kx8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Tr0sOugmVwyaTXR3L2Jn4JxWg2hDSaaB+Mv8mWbmnHk=;
 b=iZE0+t6i85KtE9hPIU0EM0/CvahwJO9qJeVz3GrlLyoAM/NgF72+ZRuGL4FUkf0lCS
 t/ofutoKs/e+yPU53jrI4Lh9MDEJVhOp1wH6ID719vxiS67smsnUKPXEr4pMQTwkn9mI
 RTaoLxjifCvlg/AzjeiofJy88lyD8f/lH8SDRcTpv+lgrpdRMlUPnsNT2H3sEyrHZEHh
 UsQautTMdnpZx0C+fg4MRZpvj6SjA5NKmRidIi8OlGHHY1tGKXMQXGgs9oz9rwMhV2sK
 AMV2LDSq1WR2SFSIK44JhhjrnQJOajcMTEF0fCiaPvTNqQnQnZHMs12i9PfRjrKhnptP
 Y4Jg==
X-Gm-Message-State: APjAAAWxY5KL7z9hinVm+zExZELtmJXRo5ui2GGTc+0VVJy4aWiR8UZ0
 1tLWi53CaNzq8WHIJj0b8YbKQzcX
X-Google-Smtp-Source: APXvYqzcrmu22umKqijBc+z4/l87iLAgvj4l/BydNp0LOGpAk+3i01qqPoTIwf0jBTwoQYIzobX85A==
X-Received: by 2002:a5d:46c4:: with SMTP id g4mr20155360wrs.189.1567438457831; 
 Mon, 02 Sep 2019 08:34:17 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.16
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:17 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 34/48] gnu: guile-wm: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:19 +0200
Message-Id: <20190902153333.11190-35-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/guile-wm.scm (guile-wm): Add guile and guile-xcb to native-inputs.
---
 gnu/packages/guile-wm.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-wm.scm b/gnu/packages/guile-wm.scm
index 6d17413901..3a6eebc91a 100644
--- a/gnu/packages/guile-wm.scm
+++ b/gnu/packages/guile-wm.scm
@@ -174,7 +174,9 @@ dependencies.")
                                     Type=Application~%"
                              ,name ,synopsis %output))))
                #t)))))
-      (native-inputs `(("pkg-config" ,pkg-config)
+      (native-inputs `(("guile" ,guile-2.2)
+                       ("guile-xcb" ,guile-xcb)
+                       ("pkg-config" ,pkg-config)
                        ("texinfo" ,texinfo)))
       (inputs `(("guile" ,guile-2.2)
                 ("guile-xcb" ,guile-xcb)))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:41 2019
Received: from localhost ([127.0.0.1]:58807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLp-0006ZH-1W
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:41 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:36990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLU-0006Ty-B0
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:23 -0400
Received: by mail-wr1-f50.google.com with SMTP id z11so14454017wrt.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=0+GuQDDI58k33AT968scC+piSTN9/sNYcscllq3AvvI=;
 b=ldwGYlyrhlEpwefKrEWwfqafG7Bf/5eHElk4/dmT2GWHZRG0DCYIRguRuWpPU+2Ovb
 35cNIEYS9xAzipcoldrzo1QBM0Z3eB4UZbjTTau+rp5qfl3HjnytTA97sEgHnwcpN66I
 Fbb2UXZ8fuxexNEtbZWn/9Y2iZCeGrYVI7WRtp0Fd6AQda1ekI2UwfeGlZ6CZ3ERdyCY
 j1M6DGUH/WgtIndwje4tohuaad31kIJZbSqdEACROnonLk6lKHjSbsuZpH2PHQR4dohK
 mI3hi4hgTekLrp9zm3p86r8tWEfvtO0WHY7bIzsS0NN3nWkHoK/4dLM/pzA4i8IMKfvg
 SVDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=0+GuQDDI58k33AT968scC+piSTN9/sNYcscllq3AvvI=;
 b=l3rYM19NADds4C+Y9N2pBA/pZssH05SdYcGN4q99rnNCinwXtJR0m83Nq8IdCDh5XI
 cWx1EZeXYmn/ZC8GawtzHYqXVdBz2ef+vN3P8HW30RrUhpCtLrqXRtlucNbN2DTI0q1a
 /KgN9PoBwXnDx46e4YNiHG+4TTmJwymHVqug8OPliiT7IEVjgBFB35ZyoKHoBjJumXPH
 FbINEQrmc8XKFbDB2DlpTjgnLk6orezGWtPPNu5VJzsThQEJbof9vDcRxVaB7jY3+ics
 WXdbCeKUvfLq2f0+BGgb/wU1yhdswIzQAVsmzIt+r+/FglCJB/9PdVUGc9AgxqpphrrX
 RwrA==
X-Gm-Message-State: APjAAAWRBf7HGmj3QAQWxpgAxWLpxsT1At206HCi9y1WET2BnbHpBghz
 mDHV0Hq/Zzhjl7bKT1QzMCHLrWPX
X-Google-Smtp-Source: APXvYqyakYHVphvD19yg0hfFCwlMSsmQruD8VHqEScsMPTWBTju3UfdrmZBgtKaZaUfF4a2EBjon4A==
X-Received: by 2002:a5d:68cd:: with SMTP id p13mr30288136wrw.18.1567438454555; 
 Mon, 02 Sep 2019 08:34:14 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.13
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:14 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 31/48] gnu: libnl: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:16 +0200
Message-Id: <20190902153333.11190-32-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/linux.scm (libnl)[inputs]: Add python-2 and python-3 unless cross-compiling,
[outputs]: disable python2 and python3 outputs when cross-compiling,
[arguments]: Disable install-python phase when cross-compiling. In install-doc
phase, search libnl3-doc in both inputs and native-inputs.
---
 gnu/packages/linux.scm | 49 +++++++++++++++++++++++++-----------------
 1 file changed, 29 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 874fa819e5..9c38bbcfc0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 ;;; Copyright © 2019 Stefan Stefanović <stefanx2ovic@HIDDEN>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1949,36 +1950,44 @@ transparently through a bridge.")
                  (string-join (string-split version #\.) "_")
                  "/libnl-doc-" version ".tar.gz"))
            (sha256
-            (base32 "1m5cnzviv31gjnz6fz5rgyl6ah4dbp2akm49j9973sgwl36gs8jx"))))))
-    (inputs
-     `(("python-2" ,python-2)
-       ("python-3" ,python-3)))
-    (outputs '("out" "doc" "python2" "python3"))
+            (base32 "1m5cnzviv31gjnz6fz5rgyl6ah4dbp2akm49j9973sgwl36gs8jx"))))
+       ,@(if (%current-target-system)
+             '()
+             '(("python-2" ,python-2)
+               ("python-3" ,python-3)))))
+    (outputs `("out" "doc"
+               ,@(if (%current-target-system)
+                     '()
+                     '("python2" "python3"))))
     (arguments
      `(#:modules ((guix build gnu-build-system)
                   (guix build utils)
                   (srfi srfi-1))
        #:phases
        (modify-phases %standard-phases
-         (add-after 'install 'install-python
-           (lambda* (#:key outputs #:allow-other-keys)
-             (define (python-inst python)
-               (invoke python "setup.py" "build")
-               (invoke python "setup.py" "install"
-                       (string-append "--prefix="
-                                      (assoc-ref %outputs python)))
-               (invoke python "setup.py" "clean"))
-             (setenv "LDFLAGS" (format #f "-Wl,-rpath=~a/lib"
-                                       (assoc-ref %outputs "out")))
-             (with-directory-excursion "./python"
-               (for-each python-inst '("python2" "python3")))
-             #t))
+         ,@(if (%current-target-system)
+               '()
+               ;; Cross building Python extensions is not supported.
+               '((add-after 'install 'install-python
+                   (lambda* (#:key outputs #:allow-other-keys)
+                     (define (python-inst python)
+                       (invoke python "setup.py" "build")
+                       (invoke python "setup.py" "install"
+                               (string-append "--prefix="
+                                              (assoc-ref %outputs python)))
+                       (invoke python "setup.py" "clean"))
+                     (setenv "LDFLAGS" (format #f "-Wl,-rpath=~a/lib"
+                                               (assoc-ref %outputs "out")))
+                     (with-directory-excursion "./python"
+                       (for-each python-inst '("python2" "python3")))
+                     #t))))
          (add-after 'install 'install-doc
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
              (let ((dest (string-append (assoc-ref outputs "doc")
                                         "/share/doc/libnl")))
                (mkdir-p dest)
-               (invoke "tar" "xf" (assoc-ref inputs "libnl3-doc")
+               (invoke "tar" "xf"
+                       (assoc-ref (or native-inputs inputs) "libnl3-doc")
                        "--strip-components=1" "-C" dest)))))))
     (home-page "https://www.infradead.org/~tgr/libnl/")
     (synopsis "NetLink protocol library suite")
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:41 2019
Received: from localhost ([127.0.0.1]:58805 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLo-0006Z9-KU
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:40 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:33389)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLW-0006UV-Gx
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:22 -0400
Received: by mail-wr1-f68.google.com with SMTP id u16so14481253wrr.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=RbuilhkFq4wYLkhYBMifi+T0mOz0cKmWGvKEx3gmQ7U=;
 b=FXV/M85u6HMQt2ZRIXieaogrWbceBIax++6opFdHZYwbFqIgWEb0XU6kENJ0B7+RzX
 qSSuvcCb26nySv5s2VGUP4QWEfyx2cXVsPTEi3IH1oGfj8KUBQdhz3M16A7BDKid/h7j
 s2S1QGdrHkuS6h4D/nsIHEEKt6hJTHxcgVFPiI09NlHyE6r27ityHue0VQhUdvT/tJSz
 NpiwbvnBqsfr8GSf5zDNcI+c8Zn17MIBo1toCn526qt2c9l8j8cRaum+hVpZyOAqSs0I
 JWu7HxnH2tklRECqY8caCV7DoRjT5ahrRDg4dMMlE/GgpWdhGHVWPEfS/1PoumNnHJ2G
 B5dg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=RbuilhkFq4wYLkhYBMifi+T0mOz0cKmWGvKEx3gmQ7U=;
 b=hkBEi8zhI21i99m1XcGaweMyvy3Ysbnh4IpKmJlY1TsDjCGrT8RPP5Oj62cnW3zWJG
 mWFB+OoyNTNAGWDKYl6rPgJPaR6GMSDswZIq93VZhUT3y2t3iB92F5NZCsjuAowsdHrR
 vy51usjNigHuSOAbmDAeERAiZAlhjLNbbkEswpcbq1gP7g6IqtajSQCQWezorgic2Y9m
 aOGd3NzHsJyEenTHssApmEL9gSOLOJKhayepBmgYE0YbAvLQHMmzQ0o/fEQA/oBfPZs7
 4OhyvdSvY+9RhmvsI9uGjvChPI4E7EFaUpRHhqn5C1kV4qYCBJ9zC5ZguJLpb7XTuSPU
 Xglw==
X-Gm-Message-State: APjAAAXHVc5zSucFamGr4RzL8sV8Crn8dz1RfUl22MR65rCdXc4soAiZ
 nieqw/t6apeaHc+PbCAme5llctEU
X-Google-Smtp-Source: APXvYqx+mpWl7LNm9WjTKl0sL6AmI6BVUbqGBYLqsztynEJzwdOHy9BeexOcOYlDmtY54oS6syL0bw==
X-Received: by 2002:adf:fc03:: with SMTP id i3mr30410920wrr.48.1567438456840; 
 Mon, 02 Sep 2019 08:34:16 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:16 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 33/48] gnu: guile-xcb: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:18 +0200
Message-Id: <20190902153333.11190-34-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/guile-wm.scm (guile-xcb)[native-inputs]: Add guile.
---
 gnu/packages/guile-wm.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-wm.scm b/gnu/packages/guile-wm.scm
index 2955c06a0d..6d17413901 100644
--- a/gnu/packages/guile-wm.scm
+++ b/gnu/packages/guile-wm.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016 Alex ter Weele <alex.ter.weele@HIDDEN>
 ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2017 ng0 <ng0@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -57,7 +58,8 @@
                                             "--with-guile-site-ccache-dir="
                                             (assoc-ref %outputs "out")
                                             "/lib/guile/2.2/site-ccache"))))
-      (native-inputs `(("pkg-config" ,pkg-config)
+      (native-inputs `(("guile" ,guile-2.2)
+                       ("pkg-config" ,pkg-config)
                        ("texinfo" ,texinfo)))
       (inputs `(("guile" ,guile-2.2)
                 ("xcb" ,xcb-proto)))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:40 2019
Received: from localhost ([127.0.0.1]:58799 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLj-0006Yc-2w
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:40 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:37260)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLQ-0006Tc-Ut
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:22 -0400
Received: by mail-wm1-f65.google.com with SMTP id d16so15057846wme.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=kCGs/Y6CEahz95Yz/59s7XpjfVQl8u+eWQldsTZxVQY=;
 b=ZvBNnLslqm1hMJbxhlw/6xWM9lJnyepBAriTcV94tAfxuFbtr5GZX52GiqTPTAB111
 PvlgpONFeVffiJijar7M3sbUMgTd91JP8ICVewMgtTCC4hGL/RTS9sK9FrW8vNx1b6wM
 pAon5tHxcRXpdKyaSk3I9fo7Evd9hczmysbE+PforGmFMhmZoqsFTNvn1CzvHSwEEQD3
 CxcxaHHuFi5bfMib/NizC+1LaPJQUxBO4PLUsHe3nkb9jah0QDOGHDGg01BxSklABfH5
 Q5WZAs4Ir+1lZAGHwnqKUg7p93rNaljG51J1wqKSpCmaBZXujwPjRPUUzeWP9EgrdSbl
 S8Sg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=kCGs/Y6CEahz95Yz/59s7XpjfVQl8u+eWQldsTZxVQY=;
 b=C1l+doVW4Na8SuxP0d6cmib54/YZgR4ux7aehJBmD0Kz5VEkcw1XTAJqJjwvP/dIPA
 PLQX5/oDtxTDEZC6h4H1hXerPtpBC8e59wxnwSOv033Ah4k+IemgG3SDosZIL/5Xs48E
 +PgPfoJN4qWLEycf/Sd7IaucwL58BGivxO6edzzHIa3JgTABtMEPjENodWw2rpoRh6Qz
 o2gXpUKiXGUN+j8stHus/aMzCbZNl+dDj1Il5NkaBhZ8dA3CLgvUTB+VHcIH9ediUeF6
 Kjup+9sHQszAtyVi1Px1wjqesQqjAB0eP0QPafSdlLgSB+9weaw6c+mIaFrqENVnRm0a
 6L+g==
X-Gm-Message-State: APjAAAXeTv8AkB1ccKytrB3ErdTBmaqz4SZUfhImzCZ730dIvcD9hTmH
 NiKeTQ2uCQQNtPIBnv9dpCjUJZYY
X-Google-Smtp-Source: APXvYqzEdqkVBJTcQRLXH0WBaiH/nHnMkHFpnK2HUzrYkIE3x4cVJUWys9DHMjmI3l9cdyeG1q3BeA==
X-Received: by 2002:a1c:720e:: with SMTP id n14mr27715900wmc.54.1567438450739; 
 Mon, 02 Sep 2019 08:34:10 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.09
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:10 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 27/48] gnu: guile-gcrypt: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:12 +0200
Message-Id: <20190902153333.11190-28-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gnupg.scm (guile-gcrypt)[source]: Apply previous patch,
[native-inputs]: add guile,
[arguments]: add libgcrypt-config to PATH when cross-compiling.
---
 gnu/local.mk                                  |   1 +
 gnu/packages/gnupg.scm                        |  22 +-
 .../guile-gcrypt-fix-cross-compilation.patch  | 431 ++++++++++++++++++
 3 files changed, 452 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 2cf92e4478..bc31682035 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -928,6 +928,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/guile-relocatable.patch			\
   %D%/packages/patches/guile-rsvg-pkgconfig.patch		\
   %D%/packages/patches/guile-emacs-fix-configure.patch		\
+  %D%/packages/patches/guile-gcrypt-fix-cross-compilation.patch \
   %D%/packages/patches/guile-sqlite3-fix-cross-compilation.patch \
   %D%/packages/patches/gstreamer-buffer-reset-offset.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_PATH.patch	\
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index c7e6aabf79..69da60b972 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Petter <petter@HIDDEN>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@HIDDEN>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -477,13 +478,30 @@ gpgpme starting with version 1.7.")
               (sha256
                (base32
                 "1lhgh3105yi0ggrjsjibv4wp1ipz8s17pa820hk2wln3rc04wpvf"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+              (search-patches "guile-gcrypt-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; When cross-compiling, the bash script libgcrypt-config provided by
+     ;; libgcrypt must be accessible during configure phase.
+     `(,@(if (%current-target-system)
+             '(#:phases
+               (modify-phases %standard-phases
+                 (add-before 'configure 'add-libgrypt-config
+                   (lambda _
+                     (setenv "PATH" (string-append
+                                     (assoc-ref %build-inputs "libgcrypt")
+                                     "/bin:"
+                                     (getenv "PATH")))
+                     #t))))
+             '())))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("autoconf" ,autoconf)
        ("automake" ,automake)
-       ("texinfo" ,texinfo)))
+       ("texinfo" ,texinfo)
+       ("guile" ,guile-2.2)))
     (inputs
      `(("guile" ,guile-2.2)
        ("libgcrypt" ,libgcrypt)))
diff --git a/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch b/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch
new file mode 100644
index 0000000000..cdf15b39b0
--- /dev/null
+++ b/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch
@@ -0,0 +1,431 @@
+From 4ec6cb5209461452f7ebb0aae3ae916e28198dc9 Mon Sep 17 00:00:00 2001
+From: Mathieu Othacehe <m.othacehe@HIDDEN>
+Date: Sun, 18 Aug 2019 09:42:39 +0200
+Subject: [PATCH] build: Fix cross-compilation.
+
+---
+ Makefile.am          |  2 +-
+ configure.ac         |  7 ++++++-
+ gcrypt/common.scm    | 42 ++++++++++++++++++++++++++++--------------
+ gcrypt/hash.scm      | 28 +++++++++++-----------------
+ gcrypt/hmac.scm      | 40 +++++++++++++++++++---------------------
+ gcrypt/pk-crypto.scm | 41 ++++++++++++++++++-----------------------
+ gcrypt/random.scm    |  7 ++++---
+ 7 files changed, 87 insertions(+), 80 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 0537256..7a3d1b2 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -39,7 +39,7 @@ $(guile_install_go_files): install-nobase_modDATA
+ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+ SUFFIXES = .scm .go
+ .scm.go:
+-	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
++	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
+ 
+ moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
+ godir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
+diff --git a/configure.ac b/configure.ac
+index e7ef6cf..7d0f569 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -73,6 +73,11 @@ AC_SUBST([LIBGCRYPT])
+ AC_SUBST([LIBGCRYPT_PREFIX])
+ AC_SUBST([LIBGCRYPT_LIBDIR])
+ 
+-GUIX_ASSERT_LIBGCRYPT_USABLE
++if test "$cross_compiling" = "no"; then
++   GUIX_ASSERT_LIBGCRYPT_USABLE
++else
++   GUILE_TARGET="--target=$host_alias"
++   AC_SUBST([GUILE_TARGET])
++fi
+ 
+ AC_OUTPUT
+diff --git a/gcrypt/common.scm b/gcrypt/common.scm
+index 189003f..a42f609 100644
+--- a/gcrypt/common.scm
++++ b/gcrypt/common.scm
+@@ -21,7 +21,8 @@
+   #:use-module (system foreign)
+   #:use-module (ice-9 match)
+   #:export (gcrypt-version
+-            libgcrypt-func
++            libgcrypt->pointer
++            libgcrypt->procedure
+             error-source error-string))
+ 
+ ;;; Commentary:
+@@ -31,34 +32,47 @@
+ ;;;
+ ;;; Code:
+ 
+-(define libgcrypt-func
+-  (let ((lib (dynamic-link %libgcrypt)))
+-    (lambda (func)
+-      "Return a pointer to symbol FUNC in libgcrypt."
+-      (dynamic-func func lib))))
++(define (libgcrypt->pointer name)
++  "Return a pointer to symbol FUNC in libgcrypt."
++  (catch #t
++    (lambda ()
++      (dynamic-func name (dynamic-link %libgcrypt)))
++    (lambda args
++      (lambda _
++        (throw 'system-error name  "~A" (list (strerror ENOSYS))
++               (list ENOSYS))))))
++
++(define (libgcrypt->procedure return name params)
++  "Return a pointer to symbol FUNC in libgcrypt."
++  (catch #t
++    (lambda ()
++      (let ((ptr (dynamic-func name (dynamic-link %libgcrypt))))
++        ;; The #:return-errno? facility was introduced in Guile 2.0.12.
++        (pointer->procedure return ptr params
++                            #:return-errno? #t)))
++    (lambda args
++      (lambda _
++        (throw 'system-error name  "~A" (list (strerror ENOSYS))
++               (list ENOSYS))))))
+ 
+ (define gcrypt-version
+   ;; According to the manual, this function must be called before any other,
+   ;; and it's not clear whether it can be called more than once.  So call it
+   ;; right here from the top level.
+-  (let* ((ptr     (libgcrypt-func "gcry_check_version"))
+-         (proc    (pointer->procedure '* ptr '(*)))
+-         (version (pointer->string (proc %null-pointer))))
++  (let ((proc (libgcrypt->procedure '* "gcry_check_version" '(*))))
+     (lambda ()
+       "Return the version number of libgcrypt as a string."
+-      version)))
++      (pointer->string (proc %null-pointer)))))
+ 
+ (define error-source
+-  (let* ((ptr  (libgcrypt-func "gcry_strsource"))
+-         (proc (pointer->procedure '* ptr (list int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_strsource" (list int))))
+     (lambda (err)
+       "Return the error source (a string) for ERR, an error code as thrown
+ along with 'gcry-error'."
+       (pointer->string (proc err)))))
+ 
+ (define error-string
+-  (let* ((ptr  (libgcrypt-func "gcry_strerror"))
+-         (proc (pointer->procedure '* ptr (list int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_strerror" (list int))))
+     (lambda (err)
+       "Return the error description (a string) for ERR, an error code as
+ thrown along with 'gcry-error'."
+diff --git a/gcrypt/hash.scm b/gcrypt/hash.scm
+index dad06e4..1b3fa67 100644
+--- a/gcrypt/hash.scm
++++ b/gcrypt/hash.scm
+@@ -50,13 +50,13 @@
+   (identifier-syntax 2))
+ 
+ (define bytevector-hash
+-  (let ((hash (pointer->procedure void
+-                                  (libgcrypt-func "gcry_md_hash_buffer")
+-                                  `(,int * * ,size_t))))
++  (let ((proc (libgcrypt->procedure void
++                                    "gcry_md_hash_buffer"
++                                    `(,int * * ,size_t))))
+     (lambda (bv type size)
+       "Return the hash TYPE, of SIZE bytes, of BV as a bytevector."
+       (let ((digest (make-bytevector size)))
+-        (hash type (bytevector->pointer digest)
++        (proc type (bytevector->pointer digest)
+               (bytevector->pointer bv) (bytevector-length bv))
+         digest))))
+ 
+@@ -67,30 +67,24 @@
+   (cut bytevector-hash <> GCRY_MD_SHA256 (/ 256 8)))
+ 
+ (define open-sha256-md
+-  (let ((open (pointer->procedure int
+-                                  (libgcrypt-func "gcry_md_open")
+-                                  `(* ,int ,unsigned-int))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_md_open"
++                                    `(* ,int ,unsigned-int))))
+     (lambda ()
+       (let* ((md  (bytevector->pointer (make-bytevector (sizeof '*))))
+-             (err (open md GCRY_MD_SHA256 0)))
++             (err (proc md GCRY_MD_SHA256 0)))
+         (if (zero? err)
+             (dereference-pointer md)
+             (throw 'gcrypt-error err))))))
+ 
+ (define md-write
+-  (pointer->procedure void
+-                      (libgcrypt-func "gcry_md_write")
+-                      `(* * ,size_t)))
++  (libgcrypt->procedure void "gcry_md_write" `(* * ,size_t)))
+ 
+ (define md-read
+-  (pointer->procedure '*
+-                      (libgcrypt-func "gcry_md_read")
+-                      `(* ,int)))
++  (libgcrypt->procedure '* "gcry_md_read" `(* ,int)))
+ 
+ (define md-close
+-  (pointer->procedure void
+-                      (libgcrypt-func "gcry_md_close")
+-                      '(*)))
++  (libgcrypt->procedure void "gcry_md_close" '(*)))
+ 
+ 
+ (define (open-sha256-port)
+diff --git a/gcrypt/hmac.scm b/gcrypt/hmac.scm
+index 0d8cc61..b9e1a9e 100644
+--- a/gcrypt/hmac.scm
++++ b/gcrypt/hmac.scm
+@@ -42,11 +42,11 @@
+     (format port "#<mac ~x>"
+             (pointer-address (mac->pointer mac)))))
+ 
+-
+ (define %gcry-mac-open
+-  (pointer->procedure int (libgcrypt-func "gcry_mac_open")
+-                      `(* ,int ,unsigned-int *)))  ; gcry_mac_hd_t *HD, int ALGO,
+-                                                   ; unsigned int FLAGS, gcry_ctx_t CTX
++  (libgcrypt->procedure int "gcry_mac_open"
++                        ;; gcry_mac_hd_t *HD, int ALGO,
++                        ;; unsigned int FLAGS, gcry_ctx_t CTX
++                        `(* ,int ,unsigned-int *)))
+ 
+ (define mac-algorithms-mapping
+   (alist->hashq-table
+@@ -59,9 +59,8 @@
+   (hashq-ref mac-algorithms-mapping sym))
+ 
+ (define mac-algo-maclen
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_get_algo_maclen")
+-               `(,int))))
++  (let ((proc (libgcrypt->procedure
++               int "gcry_mac_get_algo_maclen" `(,int))))
+     (lambda (sym)
+       "Get expected length in bytes of mac yielded by algorithm SYM"
+       (proc (mac-algo-ref sym)))))
+@@ -76,8 +75,7 @@
+         (throw 'gcry-error 'mac-open err))))
+ 
+ (define %gcry-mac-setkey
+-  (pointer->procedure int (libgcrypt-func "gcry_mac_setkey")
+-                      `(* * ,size_t)))
++  (libgcrypt->procedure int "gcry_mac_setkey" `(* * ,size_t)))
+ 
+ (define (mac-setkey mac key)
+   "Set the KEY on <mac> object MAC
+@@ -96,9 +94,9 @@ In our case, KEY is either a string or a bytevector."
+         (throw 'gcry-error 'mac-setkey err))))
+ 
+ (define mac-close
+-  (let ((proc (pointer->procedure
+-               void (libgcrypt-func "gcry_mac_close")
+-               '(*))))  ; gcry_mac_hd_t H
++  (let ((proc (libgcrypt->procedure void
++                                    "gcry_mac_close"
++                                    '(*))))  ; gcry_mac_hd_t H
+     (lambda (mac)
+       "Release all resources of MAC.
+ 
+@@ -106,9 +104,9 @@ Running this on an already closed <mac> might segfault :)"
+       (proc (mac->pointer mac)))))
+ 
+ (define mac-write
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_write")
+-               `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_write"
++                                    `(* * ,size_t))))
+     (lambda (mac obj)
+       "Writes string or bytevector OBJ to MAC"
+       (let* ((bv (match obj
+@@ -124,9 +122,9 @@ Running this on an already closed <mac> might segfault :)"
+             (throw 'gcry-error 'mac-write err))))))
+ 
+ (define mac-read
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_read")
+-               `(* * *))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_read"
++                                    `(* * *))))
+     (lambda (mac algorithm)
+       "Get bytevector representing result of MAC's written, signed data"
+       (define (int-bv* n)
+@@ -148,9 +146,9 @@ Running this on an already closed <mac> might segfault :)"
+ ;; rather than the gcry_error_t type.
+ 
+ (define mac-verify
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_verify")
+-               `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_verify"
++                                    `(* * ,size_t))))
+     (lambda (mac bv)
+       "Verify that BV matches result calculated in MAC
+ 
+diff --git a/gcrypt/pk-crypto.scm b/gcrypt/pk-crypto.scm
+index be664a3..5d614a0 100644
+--- a/gcrypt/pk-crypto.scm
++++ b/gcrypt/pk-crypto.scm
+@@ -81,7 +81,7 @@
+                             16))))
+ 
+ (define finalize-canonical-sexp!
+-  (libgcrypt-func "gcry_sexp_release"))
++  (libgcrypt->pointer "gcry_sexp_release"))
+ 
+ (define-inlinable (pointer->canonical-sexp ptr)
+   "Return a <canonical-sexp> that wraps PTR."
+@@ -96,8 +96,9 @@
+     sexp))
+ 
+ (define string->canonical-sexp
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_new"))
+-         (proc (pointer->procedure int ptr `(* * ,size_t ,int))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_sexp_new"
++                                    `(* * ,size_t ,int))))
+     (lambda (str)
+       "Parse STR and return the corresponding gcrypt s-expression."
+ 
+@@ -115,8 +116,9 @@
+   (identifier-syntax 3))
+ 
+ (define canonical-sexp->string
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_sprint"))
+-         (proc (pointer->procedure size_t ptr `(* ,int * ,size_t))))
++  (let ((proc (libgcrypt->procedure size_t
++                                    "gcry_sexp_sprint"
++                                    `(* ,int * ,size_t))))
+     (lambda (sexp)
+       "Return a textual representation of SEXP."
+       (let loop ((len 1024))
+@@ -134,8 +136,7 @@
+              read-string)))
+ 
+ (define canonical-sexp-car
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_car"))
+-         (proc (pointer->procedure '* ptr '(*))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_car" '(*))))
+     (lambda (lst)
+       "Return the first element of LST, an sexp, if that element is a list;
+ return #f if LST or its first element is not a list (this is different from
+@@ -146,8 +147,7 @@ the usual Lisp 'car'.)"
+             (pointer->canonical-sexp result))))))
+ 
+ (define canonical-sexp-cdr
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_cdr"))
+-         (proc (pointer->procedure '* ptr '(*))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_cdr" '(*))))
+     (lambda (lst)
+       "Return the tail of LST, an sexp, or #f if LST is not a list."
+       (let ((result (proc (canonical-sexp->pointer lst))))
+@@ -156,8 +156,7 @@ the usual Lisp 'car'.)"
+             (pointer->canonical-sexp result))))))
+ 
+ (define canonical-sexp-nth
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_nth"))
+-         (proc (pointer->procedure '* ptr `(* ,int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_nth" `(* ,int))))
+     (lambda (lst index)
+       "Return the INDEXth nested element of LST, an s-expression.  Return #f
+ if that element does not exist, or if it's an atom.  (Note: this is obviously
+@@ -174,8 +173,7 @@ different from Scheme's 'list-ref'.)"
+                        (sizeof size_t)))
+ 
+ (define canonical-sexp-length
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_length"))
+-         (proc (pointer->procedure int ptr '(*))))
++  (let ((proc (libgcrypt->procedure int "gcry_sexp_length" '(*))))
+     (lambda (sexp)
+       "Return the length of SEXP if it's a list (including the empty list);
+ return zero if SEXP is an atom."
+@@ -194,8 +192,7 @@ return zero if SEXP is an atom."
+            (not (char-set-contains? char-set:digit (string-ref str 0)))))))
+ 
+ (define canonical-sexp-nth-data
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_nth_data"))
+-         (proc (pointer->procedure '* ptr `(* ,int *))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_nth_data" `(* ,int *))))
+     (lambda (lst index)
+       "Return as a symbol (for \"sexp tokens\") or a bytevector (for any other
+ \"octet string\") the INDEXth data element (atom) of LST, an s-expression.
+@@ -266,8 +263,7 @@ Return #f if DATA does not conform."
+         (values #f #f))))
+ 
+ (define sign
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_sign"))
+-         (proc (pointer->procedure int ptr '(* * *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_sign" '(* * *))))
+     (lambda (data secret-key)
+       "Sign DATA, a canonical s-expression representing a suitable hash, with
+ SECRET-KEY (a canonical s-expression whose car is 'private-key'.)  Note that
+@@ -281,8 +277,7 @@ DATA must be a 'data' s-expression, as returned by
+             (throw 'gcry-error 'sign err))))))
+ 
+ (define verify
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_verify"))
+-         (proc (pointer->procedure int ptr '(* * *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_verify" '(* * *))))
+     (lambda (signature data public-key)
+       "Verify that SIGNATURE is a signature of DATA with PUBLIC-KEY, all of
+ which are gcrypt s-expressions."
+@@ -291,8 +286,7 @@ which are gcrypt s-expressions."
+                    (canonical-sexp->pointer public-key))))))
+ 
+ (define generate-key
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_genkey"))
+-         (proc (pointer->procedure int ptr '(* *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_genkey" '(* *))))
+     (lambda (params)
+       "Return as an s-expression a new key pair for PARAMS.  PARAMS must be an
+ s-expression like: (genkey (rsa (nbits 4:2048)))."
+@@ -303,8 +297,9 @@ s-expression like: (genkey (rsa (nbits 4:2048)))."
+             (throw 'gcry-error 'generate-key err))))))
+ 
+ (define find-sexp-token
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_find_token"))
+-         (proc (pointer->procedure '* ptr `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure '*
++                                    "gcry_sexp_find_token"
++                                    `(* * ,size_t))))
+     (lambda (sexp token)
+       "Find in SEXP the first element whose 'car' is TOKEN and return it;
+ return #f if not found."
+diff --git a/gcrypt/random.scm b/gcrypt/random.scm
+index 5391f94..ea6f9d3 100644
+--- a/gcrypt/random.scm
++++ b/gcrypt/random.scm
+@@ -33,7 +33,8 @@
+ (define %gcry-very-strong-random 2)
+ 
+ (define %gcry-randomize
+-  (pointer->procedure void (libgcrypt-func "gcry_randomize")
++  (libgcrypt->procedure void
++                      "gcry_randomize"
+                       `(* ,size_t ,int)))  ; buffer, length, level
+ 
+ (define* (gen-random-bv #:optional (bv-length 50)
+@@ -44,8 +45,8 @@
+     bv))
+ 
+ (define %gcry-create-nonce
+-  (pointer->procedure void (libgcrypt-func "gcry_create_nonce")
+-                      `(* ,size_t)))  ; buffer, length
++  (libgcrypt->procedure void "gcry_create_nonce"
++                        `(* ,size_t)))  ; buffer, length
+ 
+ 
+ (define* (gen-random-nonce #:optional (bv-length 50))
+-- 
+2.20.1
+
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:35 2019
Received: from localhost ([127.0.0.1]:58797 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLi-0006YQ-Gd
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:35 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:33384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLV-0006UH-HC
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:22 -0400
Received: by mail-wr1-f65.google.com with SMTP id u16so14481189wrr.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=aklKo+dbX0aVxf0JJx7CZaktBU7tPb8ga9itqxLwWIA=;
 b=WCBbLlxsmklPHhYkAXgEo+3P36/zrmkwllJDBFbVJnHPt/qVV73/cBBbR/lFACKq0w
 i+cgHzE37yNvUVezaHuj4ElCMX5gl4mH0id43d1GaMAopf2e4w8NqLWE723jmp14hsmf
 1XtmRnTT4vMrSt33GSVVJbj80pF0RKW/LPwmADR+tIltiMW2nTcbWUSY6H+IBUolP3VC
 BCSuzK4wnldMsovR01fKYCxOTYFTmH5yQZfpJ4DwefOXBqAxzIM3B61yj9ujU4MkRf5q
 NHqE+hdZjyvhmBW8atBNKRxoLi6ZkDRQRHM2VOOolxX09tDb3oCATPO06HzLdmvSMOkQ
 5xvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=aklKo+dbX0aVxf0JJx7CZaktBU7tPb8ga9itqxLwWIA=;
 b=IN02Z7CxOlh/0f/W77ca2vxWwCvj7ud/Egfuq/qQbiWRkV3oZA9MlLJ7CS1xWi9lA3
 Y0w+1IT/aRSa/h/+zC/R6/kq2Pcrqprn3378qy4vJdFrMJZUUFbeNhLc6lNQ6VXO1k9s
 8TdX+d/i2GdBocR/ChRO+Fm/zMTfHFWCmUqWmgrHEIHmKnNxjcKTOHZPWsx+zeavDgMd
 e1p7+zrc1feEEsvfFOVg3IkeJ+bCRT1H+BzPX2CGUDkOagBbbZ3FwFpi1DWwurf/RKfg
 Rd5Bn0deeKObKRRSjTaKqYKWPBcEp5GzR/YRTH+F8vAI24V/BSCot1Ll67heLtH0RJBO
 lSQA==
X-Gm-Message-State: APjAAAX2WZRp/K+07z/ONsMg2qQNJwBBuy30BGh2ySjb/bzW+0b0Bp9W
 GKcPfsnsyIz5SNYF95avWUHHsuVS
X-Google-Smtp-Source: APXvYqx/bFZ9op9LR/QKbLrsNU534OnrQOEXoEllFx03pOyPN1y0+uZcXf9XcPJf7jkguKaCHxrN4g==
X-Received: by 2002:adf:e3ce:: with SMTP id k14mr34485332wrm.303.1567438455766; 
 Mon, 02 Sep 2019 08:34:15 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.14
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:15 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 32/48] gnu: crda: Fix cross-compilation
Date: Mon,  2 Sep 2019 17:33:17 +0200
Message-Id: <20190902153333.11190-33-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/linux.scm (crda)[arguments]: Patch Makefile to use cross
pkg-config when cross-compiling. Also search for wireless-regdb in both
native-inputs and inputs. Set CC variable to cross-compiler when
cross-compiling.
---
 gnu/packages/linux.scm | 67 ++++++++++++++++++++++++++----------------
 1 file changed, 42 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9c38bbcfc0..ed2d21859d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2796,13 +2796,23 @@ interface.")
               (patches (search-patches "crda-optional-gcrypt.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
+     `(#:phases (modify-phases %standard-phases
                   (delete 'configure)
                   (add-after 'unpack 'gzip-determinism
                     (lambda _
                       (substitute* "Makefile"
                         (("gzip") "gzip --no-name"))
                       #t))
+                  ,@(if (%current-target-system)
+                        '((add-after
+                            'unpack 'fix-pkg-config
+                            (lambda* (#:key target #:allow-other-keys)
+                                     (substitute*
+                                       "Makefile"
+                                       (("pkg-config")
+                                        (string-append target "-pkg-config")))
+                                     #t)))
+                        '())
                   (add-before
                    'build 'no-werror-no-ldconfig
                    (lambda _
@@ -2812,37 +2822,44 @@ interface.")
                      #t))
                   (add-before
                    'build 'set-regulator-db-file-name
-                   (lambda* (#:key inputs #:allow-other-keys)
+                   (lambda* (#:key native-inputs inputs #:allow-other-keys)
                      ;; Tell CRDA where to find our database.
-                     (let ((regdb (assoc-ref inputs "wireless-regdb")))
+                     (let ((regdb (assoc-ref (or native-inputs inputs)
+                                             "wireless-regdb")))
                        (substitute* "crda.c"
                          (("\"/lib/crda/regulatory.bin\"")
                           (string-append "\"" regdb
                                          "/lib/crda/regulatory.bin\"")))
                        #t))))
        #:test-target "verify"
-       #:make-flags (let ((out   (assoc-ref %outputs "out"))
-                          (regdb (assoc-ref %build-inputs "wireless-regdb")))
-                      (list "CC=gcc" "V=1"
-
-                            ;; Disable signature-checking on 'regulatory.bin'.
-                            ;; The reason is that this simplifies maintenance
-                            ;; on our side (no need to manage a distro key
-                            ;; pair), and we can guarantee integrity of
-                            ;; 'regulatory.bin' by other means anyway, such as
-                            ;; 'guix gc --verify'.  See
-                            ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
-                            ;; for a discssion.
-                            "USE_OPENSSL=0"
-
-                            (string-append "PREFIX=" out)
-                            (string-append "SBINDIR=" out "/sbin/")
-                            (string-append "UDEV_RULE_DIR="
-                                           out "/lib/udev/rules.d")
-                            (string-append "LDFLAGS=-Wl,-rpath="
-                                           out "/lib -L.")
-                            (string-append "REG_BIN=" regdb
-                                           "/lib/crda/regulatory.bin")))))
+       #:make-flags (let ((out     (assoc-ref %outputs "out"))
+                          (regdb   (assoc-ref %build-inputs "wireless-regdb"))
+                          (target ,(%current-target-system)))
+                      (list
+                       (string-append
+                        "CC=" (if target
+                                  (string-append target "-gcc") "gcc"))
+                       "V=1"
+
+                       ;; Disable signature-checking on 'regulatory.bin'.
+                       ;; The reason is that this simplifies maintenance
+                       ;; on our side (no need to manage a distro key
+                       ;; pair), and we can guarantee integrity of
+                       ;; 'regulatory.bin' by other means anyway, such as
+                       ;; 'guix gc --verify'.  See
+                       ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
+                       ;; for a discssion.
+                       "USE_OPENSSL=0"
+
+                       (string-append "PREFIX=" out)
+                       (string-append "SBINDIR=" out "/sbin/")
+                       (string-append "UDEV_RULE_DIR="
+                                      out "/lib/udev/rules.d")
+                       (string-append "LDFLAGS=-Wl,-rpath="
+                                      out "/lib -L.")
+                       (string-append "REG_BIN=" regdb
+                                      "/lib/crda/regulatory.bin")
+                       "all_noverify"))))
     (native-inputs `(("pkg-config" ,pkg-config)
                      ("python" ,python-2)
                      ("wireless-regdb" ,wireless-regdb)))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:34 2019
Received: from localhost ([127.0.0.1]:58794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLi-0006YJ-6X
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:34 -0400
Received: from mail-wm1-f49.google.com ([209.85.128.49]:35793)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLT-0006Tp-At
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:19 -0400
Received: by mail-wm1-f49.google.com with SMTP id n10so4387245wmj.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=BdPZS6mt/3o0dctz9JlOGfKDFh4tjhphGSATVcB7Hlk=;
 b=PYm3PD1CjqwDD8gdrrhnVL3uIB8a6N+DPOkr79nSW1LtOuStnkphOfV4lfmSxVhA2b
 HSIZYhn9l4CAzeWjuMHb8T7UASrdJYr3s/+4eOj0l2tzggMmA1TOJ6Wa6w8x0ZdnrQYx
 lY3GMlf1fBhngA5QSbOaQo0ePeka891m3T2iwIlO7E3ttm0K3nn3Qe7/zxkNagnSTTi9
 T4taL2yTfb189DMvNPI7zzeYOBK4uQko2laEE9JBHZNuGVg7POBqQWrnI5ZP+wp52fMQ
 uQ/y1nqidwtzhHvANfgcBrBp7SBHNxlR5Ng387PvZznZRqJIdDPE6QLHEuDT69Y0IjzN
 1lVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=BdPZS6mt/3o0dctz9JlOGfKDFh4tjhphGSATVcB7Hlk=;
 b=M3OfYhhZoyru9zQMJgWRIILiXYP7IO5t8HITt+Z/kuTQYW6cCOcVuyvZqWeGj5qCFl
 FxT+MSfqd0mT+WBBp6SUdKSbdwlS2x56tgvlelA9yDGHDzdm7rRC/v4X641OsvvDQ27h
 eStyvPaR0MS3hHPtfEwYnc55RvsFIOg5JPbCf6SJ4F5Ppu0mSMNbl0SCmozjN/GP6NZM
 //nsN++CEWNaxmxrL30R1oQmX/wxP62jnuaskkkLKNA07mNEKbkON9I+X/pdEU3Wt9Ht
 SbZV1/og5CGFZuaTBchwkUtr8iK8XQgTAGWXW8VG5FsKhhRaLyGPCboTverORHiZaqyf
 CSnA==
X-Gm-Message-State: APjAAAVUmdQFiZjjQ4Q6ArdsCFAlXl1w1l7aNDsNiVvLLPS3R/SfK0Ms
 jQGw0sC97JCCWZYIddGZTxwPML6f
X-Google-Smtp-Source: APXvYqy/VSLEzgH3iAU1wpdZ1/XKIccI4ytHkLOBXm1yVHfXIR0RkLBhTf3W5TJ3kLrF8nizmGvz2g==
X-Received: by 2002:a7b:c0d4:: with SMTP id s20mr8637421wmh.110.1567438453546; 
 Mon, 02 Sep 2019 08:34:13 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:13 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 30/48] packages: Set outputs field as thunked.
Date: Mon,  2 Sep 2019 17:33:15 +0200
Message-Id: <20190902153333.11190-31-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This allows for instance to use %current-target-system to enable/disable some
outputs in a package.

* guix/packages.scm (<package>): Set outputs field as thunked,
(package->bag): adapt make-bag call accordingly.
---
 guix/packages.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/packages.scm b/guix/packages.scm
index ac965acd2f..6889dbf116 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -266,7 +266,7 @@ name of its URI."
                  (default '()) (thunked))
 
   (outputs package-outputs                ; list of strings
-           (default '("out")))
+           (default '("out")) (thunked))
 
                                                   ; lists of
                                                   ; <search-path-specification>,
@@ -1046,7 +1046,7 @@ and return it."
                              #:source source
                              #:inputs (append (inputs self)
                                               (propagated-inputs self))
-                             #:outputs outputs
+                             #:outputs (outputs self)
                              #:native-inputs (native-inputs self)
                              #:arguments (args self))
                    (raise (if target
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:34 2019
Received: from localhost ([127.0.0.1]:58792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLh-0006Y5-Pj
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:34 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:51474)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLS-0006Tn-9P
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:19 -0400
Received: by mail-wm1-f65.google.com with SMTP id k1so15053906wmi.1
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=D5OnrboWQ1nkSf8HkR5A2ChVg84h8Cq2BRx6QZNx8RU=;
 b=haceCxKwXF6xtHbM7oz9BvTa9PAna8xjqavpQR6n0gEyVIlJhld1SBX86vUUniMTzW
 SKuoU1s2TNatW1bpk0RVV/F/RV9HZ9qsU2O0NBkjhCHrzidq/mRRDLPX11glYVd8SlXu
 TOBHmUV1Wx4FM+xdtaCaMuaLB3F1mAmTyQ+/am9DVFHxwgNCDwgEbc/ncracfDAlKgt3
 nAc2rcCzszzYDbrjjSsl4r9iRX8oXpqf3An47w8+qdUARdxEsxmDH+joHWNQDylBBWYK
 nUemTc8B2Wz++yHlnwUfuAx/80jpe7HTUnVzHBTPGK2DpKpAwXqRW9mEPHkttP4ht5uK
 0hqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=D5OnrboWQ1nkSf8HkR5A2ChVg84h8Cq2BRx6QZNx8RU=;
 b=MqmuVsrWvYBGce5YmVg5ldxNR7vplyOXAQMyIXRys3ROKlyolhJkILHcL9bljPW4X4
 uO0zEMLGmQMR4/QFLD/41GRQLm98pQg/PQOG5EhJ73K/c4393cy1giAeyncuE0LJbVkN
 ZKOaYt7q70zStP+fFJFxHayv2KIUz+hIpMbrKGXElWD3tm0Wu6NLSXDSMPVNMyzWNEZq
 r8+9js5IEo80KvechyJSE1bv7FwHtB44FxFyC2bgmV5Iw8uJBaIXjRinDtRTFagGXbnt
 ZVXLtNcsNi56W4qBoNuO3rHm05QyUOF6594+ehelIuo7zPxfmCYJ4TGs3abN3FqabrzH
 e3Sw==
X-Gm-Message-State: APjAAAWa/+iex0792hVLxiDNcm4kfvTvmgBZYo7Tdw1lmVRSOoSPqQeb
 mbfK51qUpHEAT10ygAv6OkYSggMa
X-Google-Smtp-Source: APXvYqz1FoIRCXhPtz1gJxn03x/nsvy8oIGlejnJfYfd0X1o0a2GgLNWd+QFmzFSabPBasrNJ5yALw==
X-Received: by 2002:a7b:cf0a:: with SMTP id l10mr5052761wmg.4.1567438452595;
 Mon, 02 Sep 2019 08:34:12 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.11
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:12 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 29/48] gnu: texinfo-4: Fix cross compilation
Date: Mon,  2 Sep 2019 17:33:14 +0200
Message-Id: <20190902153333.11190-30-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/texinfo.scm (texinfo-4)[native-inputs]: Add automake and
native-inputs from texinfo package,
[arguments]: Replace outdated config.sub and config.guess by the ones
taken from automake above. Also make sure native tools are built before build
phase.
---
 gnu/packages/texinfo.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 19f87a4de9..fde1a12a91 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -21,9 +21,11 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu packages texinfo)
+  #:use-module (gnu packages autotools)
   #:use-module (guix licenses)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix utils)
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages)
   #:use-module (gnu packages compression)
@@ -106,8 +108,37 @@ is on expressing the content semantically, avoiding physical markup commands.")
               (sha256
                (base32
                 "1rf9ckpqwixj65bw469i634897xwlgkm5i9g2hv3avl6mv7b0a3d"))))
-    (native-inputs '())
-    (inputs `(("ncurses" ,ncurses) ("xz" ,xz)))))
+    (inputs `(("ncurses" ,ncurses)
+              ("xz" ,xz)))
+    (native-inputs
+      `(("automake" ,automake)
+        ,@(package-native-inputs texinfo)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments texinfo)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (add-after 'unpack 'fix-configure
+             (lambda* (#:key inputs native-inputs #:allow-other-keys)
+               ;; Replace outdated config.sub and config.guess.
+               (with-directory-excursion "build-aux"
+                 (for-each
+                  (lambda (file)
+                    (install-file (string-append
+                                   (assoc-ref
+                                    (or native-inputs inputs) "automake")
+                                   "/share/automake-"
+                                   ,(version-major+minor
+                                     (package-version automake))
+                                   "/" file) "."))
+                  '("config.sub" "config.guess")))
+               #t))
+           ;; Build native version of tools before running 'build phase.
+           ,@(if (%current-target-system)
+                 `((add-before 'build 'make-native-gnu-lib
+                      (lambda* (#:key inputs #:allow-other-keys)
+                        (invoke "make" "-C" "tools/gnulib/lib")
+                        #t)))
+                 '())))))))
 
 (define-public info-reader
   ;; The idea of this package is to have the standalone Info reader without
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:33 2019
Received: from localhost ([127.0.0.1]:58788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLh-0006Xn-8d
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:33 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:33295)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLR-0006Tj-Aj
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:18 -0400
Received: by mail-wm1-f68.google.com with SMTP id r17so12227703wme.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=6rgnidP1c1WnyztbQAYAHBDpHNviswxFnrUVkVp3c9U=;
 b=Js9rjFKUm+pHIRuCPgFIPt8bdaAk9E8o51NNKm1pkZJG7KrovwdaOSqSynQwEfn/EA
 WxkNoHdZUTXOj+AeWVKr1hzOQIzj7Vq6mEuHi9Fo/bl9phft4KJKs0Cfw7lM0PXD+RLT
 /Azy3yzYw/TaYKXH++kcjxGreEe2D/GzRTJLbxIdopNQLtgUA/6gWIhBVg1GQw5Yvi23
 kShxIBLky2jy3c/15FqVY06pd0wPZ6vWhSbVgsz2eMjl3ufYk6GtDB+Pb8efdESie9Hv
 AogEvvesj+0eGlVHYNXhpjvbd8b4XfSrhrRMpmjo0TQt149M6Ui5ctpFvGv7GBe/8S74
 nSYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=6rgnidP1c1WnyztbQAYAHBDpHNviswxFnrUVkVp3c9U=;
 b=W1g5KOQe9qNo+rqKr0a5PiolyOvKW+tWfTLwWTVYUtb7ImxnCC89C2lQkXdKLKwCtX
 9RTLL3da+HyDKep7C3OPvbWCj/uZMbZJg4SOlScBYKQ+HhIThZmPCw1w9CPY1bU+PG2E
 O4tth1en9bCUrBscuylwxqXW1uOutFOz/WjkUrpMnGnfldl0Og0kRwvZrcTf3LYZxfju
 cz/OQT3dcy5k10k3XF+79qQLB5sVjeEx/g5aS6QMinXcOcbIkdeMfKm50NI27avjNdB8
 Ki/h4ObwqN+yk8KwPNDeCrElEY66EBJiAAC+q3VaLb91pjBGKC8A1BNb1DKSoj9bZP+I
 K9oA==
X-Gm-Message-State: APjAAAWYg0DtHbxHFrq36K3wJkwRj0iyjOLTdrfFpsW3d8V9PYae5h9J
 2H35t/uOLohx26AdkpROyX42Q8lp
X-Google-Smtp-Source: APXvYqxIJjzI95JG4X1FoEfb/M9AGGJwW62dSrwytdN36Wh10tJ4jjOioe7ok7778mlVxmo0RdqGFQ==
X-Received: by 2002:a1c:9a46:: with SMTP id c67mr8143431wme.115.1567438451613; 
 Mon, 02 Sep 2019 08:34:11 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:11 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 28/48] gnu: libtool: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:13 +0200
Message-Id: <20190902153333.11190-29-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/autotools.scm (libtool)[arguments]: Do not run tests and use
bash from native-inputs when cross-compiling.
---
 gnu/packages/autotools.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index ceb70dfee7..98f31f6bca 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017, 2019 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -354,21 +355,22 @@ Makefile, simplifying the entire process for the developer.")
 
        ;; XXX: There are test failures on mips64el-linux starting from 2.4.4:
        ;; <http://hydra.gnu.org/build/181662>.
-       #:tests? ,(not (string-prefix? "mips64"
-                                      (or (%current-target-system)
+       ;; Also, do not run tests when cross compiling
+       #:tests? ,(not (or (%current-target-system)
+                          (string-prefix? "mips64"
                                           (%current-system))))
 
        #:phases
        (modify-phases %standard-phases
          (add-before 'check 'pre-check
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
              ;; Run the test suite in parallel, if possible.
              (setenv "TESTSUITEFLAGS"
                      (string-append
                       "-j"
                       (number->string (parallel-job-count))))
            ;; Patch references to /bin/sh.
-           (let ((bash (assoc-ref inputs "bash")))
+           (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
              (substitute* "tests/testsuite"
                (("/bin/sh")
                 (string-append bash "/bin/sh")))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:32 2019
Received: from localhost ([127.0.0.1]:58785 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLf-0006Xe-TW
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:32 -0400
Received: from mail-wr1-f42.google.com ([209.85.221.42]:44847)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLN-0006SC-7j
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:16 -0400
Received: by mail-wr1-f42.google.com with SMTP id 30so3508778wrk.11
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=9hjR3+4eM0GBKFqxXfhhnIEaiXyPg25y/KMRDi4m/rs=;
 b=l9eja4to7LLAGf6z6OesIMsQI+8VqZVAsqCvY1LD7ZcfhakBWWrQuFcx7iSEWRi7M6
 +KLfGwcDvr4ESaRdKOEtM3s9i6q3PJnWlyiL7JZgAUdepARJFFsiNIqohhyiEp+nR/aD
 FTrZytbWpiWSXpcyoTGx1BsuyLYlz9hNSLnACDs8b4+wwXOB/sJKrynCAcsDPhs6nPIG
 XYRy1CPTFDrCLyLAOizVZLOU7zteMuPocYkjw7qDDifxQFggXWSaBn6GyfLnUBdXFhvC
 va4S1eLR+kOg3Ty51ijZrCTSUsxmahRAGAYVRLdsOpEdcl4INabVrx8SXEoIf3RjSSTn
 VPmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=9hjR3+4eM0GBKFqxXfhhnIEaiXyPg25y/KMRDi4m/rs=;
 b=BBu388fIDl8TnTlKu7tdRWZFhtCY9GLHp4A+uLvTZhRnMnCtVqycMpAUlL9cqmLgQ0
 eXe+0mc+K1RuGYkJ6McMEt9u2EeXHCqbDGmgnNiLNF6rxSyAVBkoj4X/XFRV9rgJardA
 gBvWtNqQY9h0Cp5F42lmaGETGZ3wXiHB6SOGzhyXAVheyaEfZYaGsEqMAJIae9yp3839
 iQtQKMBE7M7fuA8tsaMSmIS0VFtjVRNKuYezlupF5qaT2xh4LJX+4/tpxwA2Zt86NIQJ
 Y9p4wDvISdEhfAfPz3OrO5bOrQIRh/8DU2J76TmNHsHnVFsqRJ3QjIz8ZPlumPm0LRXy
 hdSA==
X-Gm-Message-State: APjAAAWAWL8wS+B5h7AUENftzTckCjXmKrbV2+YVNVk1Y5hK69EoBRGB
 TVjdlaZPxak90R9HQ2TQ0jVcYkoB
X-Google-Smtp-Source: APXvYqwakvs/k6HdUWwoXhVpb5xDEPP+9B9un8EMuKMX+QJgYn78SA6iOjn+Q1TKws96bAvXcfYR6Q==
X-Received: by 2002:adf:fd03:: with SMTP id e3mr28390100wrr.291.1567438447411; 
 Mon, 02 Sep 2019 08:34:07 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:06 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 24/48] gnu: procps: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:09 +0200
Message-Id: <20190902153333.11190-25-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (procps)[arguments]: Add configure flags needed from
cross-compilation.
---
 gnu/packages/linux.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 9c1ba6d5b9..874fa819e5 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1138,10 +1138,16 @@ by Robert Shea and Robert Anton Wilson.")
                 "0r84kwa5fl0sjdashcn4vh7hgfm7ahdcysig3mcjvpmkzi7p9g8h"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:modules ((guix build utils)
+     `(#:modules ((guix build utils)
                   (guix build gnu-build-system)
                   (srfi srfi-1)
                   (srfi srfi-26))
+       ,@(if (%current-target-system)
+             '(#:configure-flags
+               (list
+                "ac_cv_func_malloc_0_nonnull=yes"
+                "ac_cv_func_realloc_0_nonnull=yes"))
+             '())
        #:phases
        (modify-phases %standard-phases
          (add-after
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:31 2019
Received: from localhost ([127.0.0.1]:58783 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLf-0006XW-IY
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:31 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:35330)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLL-0006Rq-Ts
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:15 -0400
Received: by mail-wm1-f67.google.com with SMTP id n10so4386893wmj.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=BLVterHn1ZjqgF7EPe9bVrpAit+Ue7YIkov6w1wQdhQ=;
 b=dKVuujmqU1c89INce8dKw+jRu6H+IFQe0D/p/khuIlz+rXzjGZbY+hvvko/nQ+tkxQ
 AqIJ411tpuTDOSeAPGGsN3AJqsFCEKTWptkOF0a7XHC6QdhhABa0dfqripiJm9/3KdbJ
 dhkzEd7m3tJGECWmqKWO5blQKH8hrtwIa+hne6Ay/H5WBQu7UxTkk1NnBHG3Id4b1Mzk
 YRJjo9pxCNi4d/+PddxRARQlhpkOCH0OB5OMHfUL3TYtr0zMYkgFnBbcXIRYQhbdumUJ
 FuyexGVPOUhrhwyKM7RICI8aK6aWDypNNq9IaG8eLqtKKN9o9D5bQxizqzJOAX0v9GFG
 pG3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=BLVterHn1ZjqgF7EPe9bVrpAit+Ue7YIkov6w1wQdhQ=;
 b=gBnySOIMO16JAna2VmYtVJdgf121c3wo9ZTGasa1pXEdg7Fy9Hs1OzDNFNjYBy1j4x
 mJ/eIQTSd2g8g7H6c461xdN4T7fZmav8VUf/sDcf/6i06LNCtpz8WknKmwHIr4HcZoS1
 FOFykxydJU30PCDQKW+EwcnmFx2ST7/KNO4nggJOiQGo7yCRf77rJRFBddgbu9Ui1U7R
 Csw6pemKEtStSfTyDgTuC0CfiJX0QunOsu7AILSFwjz2Xojq391d+xWm0vH1b4CExgTh
 Y7cShGVf05gwnhuVsnnp4TnFjk6fcmgFptWfu1GnEfOPdn6IuJaIYSUfsX5Xgh5mTi3K
 ViHQ==
X-Gm-Message-State: APjAAAUqLfvGkKnIZuHmMkD+4ZXqjR54KHYNy/VxFCgDZ9XNqlzbI0Su
 Kj1cBvF0pmHDQ7KwHFEEipIGsQAu
X-Google-Smtp-Source: APXvYqzZv5stxdlPr482OG5k7zXufKciYM4H8Rns9lJAAo0P1RlxTLccLCG+/CfpxI+k7n82Bj5wLA==
X-Received: by 2002:a7b:cf09:: with SMTP id l9mr35839387wmg.20.1567438446225; 
 Mon, 02 Sep 2019 08:34:06 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:05 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 23/48] gnu: make-linux-libre: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:08 +0200
Message-Id: <20190902153333.11190-24-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH to
make sure that cross-libc is not found. Otherwise, some of its header would
conflict with the one from linux (stdint.h and linux/types.h).
---
 gnu/packages/linux.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index afa860830b..9c1ba6d5b9 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
          (replace 'configure
            (lambda* (#:key inputs native-inputs target #:allow-other-keys)
              ;; Avoid introducing timestamps
+             ,@(if (%current-target-system)
+                   '((unsetenv "CROSS_CPATH"))
+                   '())
              (setenv "KCONFIG_NOTIMESTAMP" "1")
              (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
 
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:31 2019
Received: from localhost ([127.0.0.1]:58781 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLf-0006XP-85
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:31 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:42695)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLO-0006Sc-6B
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:15 -0400
Received: by mail-wr1-f53.google.com with SMTP id b16so14430106wrq.9
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=czHKW4TdSXROEWA29LMwHzb1inQWIOdBRxWArsNGNuY=;
 b=ABxDA0+7VCZQYExcsy5Am8fLV/ol1tYwMOPiMBGfBoQO3gtRDBW3v3Ga4P4mPdhx09
 MRmBlt/DgQDfz1e2HaJ1jTxkHAVgKbX4BJyCLMHZ9AKuvGc4ozBY37SRIy5ZJdtvLkEw
 AbTVla8y6xVAHwM4Tgy6jSDDwHeGwBw+AXJa8xDwTSo9RgN4mOI98TToTW1m/CQKGNe2
 5tcQrN8lOrRDYBywgBKCMw6JrV/G2ZHsQLFGHq3zhiTwIgMIaALmURD3hAX9RcQLISNg
 w1LbXzU0/tAk3zkmUHWb/Ao8RlLUKUbH4S9KeAmbLRp2pedtkiR6+2Uw2a0p36ouRI9a
 CsJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=czHKW4TdSXROEWA29LMwHzb1inQWIOdBRxWArsNGNuY=;
 b=t0gmZDnSgBvHiuDHiDaYXJQ3l6169Rm03wltU5W2mJbSP7XIUsaOp3GL7j5aMX0Un8
 9frfjlDI0cZXZeRs4TzwbesA7RGjMl+6bqoHPXbEoN0WKCiSzWPDQHzq4CehJkSaTUaH
 F77QLbNnsy8a6hyF2gfWiniaN29UpHWKyKpVBEPLl/DzIe8J2z2JVtjLRJ+pKEWqpkX+
 dvv9J7awfmJuw0BUtGYBtoG7S2OSQJxNdiUV5kg0fpLEyoIlJsWALau9mGrB6g3uypP3
 NConL0t9XQKP70Xwrc/fcZslwjwNbCpPiKLW4bZhM06Bl7BfLh73SBcXJRSKFIWsccMb
 wfgQ==
X-Gm-Message-State: APjAAAWPvOdpN2KMNI+hAebucj0neGtlYtWG4+3DuH9hOfJBExkL9lHI
 oAtVAV2/DTGISymOsjO7GNHr+DHw
X-Google-Smtp-Source: APXvYqyVyroqnCZ3BBeUL0p2FloMbHHgM4T2TmCQ1QOqGfFKbKEVH2hpksNh2/UEbTz9xCw3jHgrSA==
X-Received: by 2002:a5d:46c4:: with SMTP id g4mr20154301wrs.189.1567438448470; 
 Mon, 02 Sep 2019 08:34:08 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.07
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:07 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 25/48] gnu: doxygen: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:10 +0200
Message-Id: <20190902153333.11190-26-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/documentation.scm (doxygen)[arguments]: Force cmake to use
iconv.h from cross-libc.
---
 gnu/packages/documentation.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 19c42b00eb..eda8ca3368 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2017 Kei Kebreau <kkebreau@HIDDEN>
 ;;; Copyright © 2017 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -31,6 +32,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages python)
   #:use-module (gnu packages bison)
@@ -145,7 +147,15 @@ markup) can be customized and extended by the user.")
     (inputs
      `(("bash" ,bash-minimal)))
     (arguments
-     `(#:test-target "tests"
+     ;; Force cmake to use iconv header from cross-libc instead of the one
+     ;; from native libc.
+     `(,@(if (%current-target-system)
+             '(#:configure-flags
+               (list (string-append "-DICONV_INCLUDE_DIR="
+                                    (assoc-ref %build-inputs "cross-libc")
+                                    "/include")))
+             '())
+       #:test-target "tests"
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'patch-sh
                               (lambda* (#:key inputs #:allow-other-keys)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:31 2019
Received: from localhost ([127.0.0.1]:58779 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLe-0006XH-U9
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:31 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:34887)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLL-0006Rb-2v
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:11 -0400
Received: by mail-wr1-f65.google.com with SMTP id g7so14486489wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=4Y/ydxnmL4y0uCr03V0jUgPtiBT/HQ4Ex9qdOFEtzwE=;
 b=V5XrbOf9CAaaihrEL0EdOBve8kJFn/0tWnPXD/l7jP4U5eMAYR4juGS58JYpq7byqc
 ZznqtnIK1Ygx13f2646WTNG5niJ26h3Cqg9c+J6ZL9s+5wFi43b3QGtWVWpzxjgICIwj
 YvalFYQ0Hsjku3fQ62R11SNbiJzmBnmmldudbwPOfnWWdruSjBKS+ZF1a8eBLZ8MUX0s
 OBX/gLPcPQegAqAF7sAdaHqL9Zjh9FJgYGde0gUSSJ4Au6H5Gq+N6i7B7Hf1479Aj2/P
 QxhrDu0np3fQ0gUrrRHWPWQEl+Y6/AY3BjSTt2svQsK4DIGPq35AdSVudbUg3TvsD3OT
 S4Hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=4Y/ydxnmL4y0uCr03V0jUgPtiBT/HQ4Ex9qdOFEtzwE=;
 b=Kh37Pf2lKEmMl9t01to0bCM6P+bKl7QTdaL6FJNsRspVd/V4Kuq2/m131WDnisCrwa
 jfvPNm2GoPheLupD7WRffUN0TkU1pP4/AiBe4owOM2m/l4e2z3gFgtWz3+NE1A3GZHCe
 sysDX5zECoqVRc65xjcc5IQMkR9CdJBD42XzkWuQrES7r4JJo6BLcWXSmqupoLAw9pgk
 X5Lg4yU8BGGPPb+HoDBMegnLDxxWR/wtYFWgEIluaGXetBsYDsgnSyod7kJgcq6ZCybY
 czCQhFNYTuG1k9YKYC5SizN4TE0ggxg9EeTebvNsYhQZ21jdEstPquB5UR0sHpmLgjg8
 6cMg==
X-Gm-Message-State: APjAAAWsEkxKJdrhsVCRK3jnyEe3D+ZdQ94Zn/qeXaFJ2ibZrDWoY2IZ
 4jGtd5M0Bu8dVVibzPcOkIlNDHsJ
X-Google-Smtp-Source: APXvYqz6uUz3L0PeQYTLUAtGySdfE1C6TPaSpfIOzuWvaJzcB/cZkoaKX9srq98iYClcLawJdL//iw==
X-Received: by 2002:a5d:6588:: with SMTP id q8mr16714705wru.184.1567438445182; 
 Mon, 02 Sep 2019 08:34:05 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:04 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 22/48] gnu: git: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:07 +0200
Message-Id: <20190902153333.11190-23-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/version-control.scm (git-cross-configure-flags): New variable,
(git)[arguments]: add it to configure-flags. Also add cross curl-config script
to PATH.
(git-minimal): Add previous variable to configure-flags.
---
 gnu/packages/version-control.scm | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 192fa666d9..947873e6d5 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -141,6 +141,10 @@ changes to project files over time.  It supports both a distributed workflow
 as well as the classic centralized workflow.")
     (license license:gpl2+)))
 
+(define git-cross-configure-flags
+  '("ac_cv_fread_reads_directories=yes"
+    "ac_cv_snprintf_returns_bogus=no"))
+
 (define-public git
   (package
    (name "git")
@@ -233,7 +237,10 @@ as well as the classic centralized workflow.")
       ;; absolute file name to 'wish'.
       #:configure-flags (list (string-append "--with-tcltk="
                                              (assoc-ref %build-inputs "tk")
-                                             "/bin/wish8.6")) ; XXX
+                                             "/bin/wish8.6")  ; XXX
+                              ,@(if (%current-target-system)
+                                    git-cross-configure-flags
+                                    '()))
 
       #:modules ((srfi srfi-1)
                  (srfi srfi-26)
@@ -250,6 +257,15 @@ as well as the classic centralized workflow.")
                               (remove (cut string-prefix? bash-full <>) path)
                               ":"))
               #t)))
+        ;; Add cross curl-config script to PATH when cross-compiling.
+        ,@(if (%current-target-system)
+              '((add-before 'configure 'add-cross-curl-config
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (setenv "PATH"
+                             (string-append (assoc-ref inputs "curl") "/bin:"
+                                            (getenv "PATH")))
+                     #t)))
+              '())
         (add-after 'configure 'patch-makefiles
           (lambda _
             (substitute* "Makefile"
@@ -506,7 +522,10 @@ everything from small to very large projects with speed and efficiency.")
                   (string-append out "/share/gitweb"))
                  #t)))))
        ((#:configure-flags flags)
-        ''())
+        `(list
+          ,@(if (%current-target-system)
+                git-cross-configure-flags
+                '())))
        ((#:disallowed-references lst '())
         `(,perl ,@lst))))
     (outputs '("out"))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:30 2019
Received: from localhost ([127.0.0.1]:58777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLe-0006X8-Ks
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:30 -0400
Received: from mail-wr1-f50.google.com ([209.85.221.50]:35597)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLK-0006RA-0H
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:10 -0400
Received: by mail-wr1-f50.google.com with SMTP id g7so14486416wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=2EZ6hLkwUZ00Nl7nd2uvqj1PaCk3VL9cVVF16tNjJ6Q=;
 b=Lnmu9pTQy9xlC0k6i01C389Ud4sacKPHZ9D6aBQx7MEtehB9LyCpMayzOX4ituI29w
 e3wDOnDAw7NTTOifs37jfaxpt7rKrD7SrbmRCaSMVm9XDSuH3HHx3LjjV7s4gSa989Ez
 RyIWYigesG8MMjyqFBOI9AYbqmvG06d1OEtyLKmwaLwoa2DfQ/gay7Mg95T+glXdBrga
 YTAn/no9QYIj9lXqTaXRdu/f6oanjIJWUyHL9PlXao5tSplTXav1Ntm4gxxSN67sgq2V
 Go/s7+25TbOBR1AWOVAtU/jEKaF75nfqBlrJMZaHUmIViz7sw3v7Ir5Xz6lGpQGrJmgP
 ND4Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=2EZ6hLkwUZ00Nl7nd2uvqj1PaCk3VL9cVVF16tNjJ6Q=;
 b=RRryzIbItCPnpGAoUpA78Hp3YdKuMZcYkINd9Sjsu5lWGgmXvjq+wy+ul+AI8qBfpe
 35/DYyj5i8wmnluCpn2azEJsGkYG8zg0MPLaIpbHMV6ohEzDmOq8H3ykxBxZvbBBU/go
 ldePi4hn+lQLIkDU6kzORScWFDERehLzd4rHhNfRn8//BjIVzE3BigbAqlYC0RTh7e2I
 yB3fJCFf7HUR7+DTs4H64HW9X0mNbLP0lxGaqS5HfLsgfVPDGaFaXVBi3yaOBdJTLADa
 29jJaK8LM68osIRy7S7lAD2EDYCwqpqoiNmMLVt3BLGvOIXTN6Rz0OaJdWyHWcXAmhyt
 J5ww==
X-Gm-Message-State: APjAAAW2zp+N9tvTJ7YDoXfOT5bWdf2vldMLe854OQO9drZp20G9yAlk
 wVG4VDoScgFkw3D+XuTpkHedV0PX
X-Google-Smtp-Source: APXvYqzN0EoIDOIuLgchn++oHS/QgscV59b0Qzyqe4+QVP9XVH3yvodLPzFA0/T2poiIL1MEJhjaLw==
X-Received: by 2002:adf:cd86:: with SMTP id q6mr5748995wrj.44.1567438443999;
 Mon, 02 Sep 2019 08:34:03 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.03
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:03 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 21/48] gnu: swig: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:06 +0200
Message-Id: <20190902153333.11190-22-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/swig.scm (swig)[inputs]: Add pcre that is needed when cross-compiling.
---
 gnu/packages/swig.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/swig.scm b/gnu/packages/swig.scm
index b1b17fc68d..90d698a8b4 100644
--- a/gnu/packages/swig.scm
+++ b/gnu/packages/swig.scm
@@ -62,6 +62,7 @@
     (native-inputs `(("boost" ,boost)
                      ("pcre" ,pcre "bin")))       ;for 'pcre-config'
     (inputs `(;; Provide these to run the corresponding tests.
+              ("pcre" ,pcre)
               ("guile" ,guile-2.0)
               ("perl" ,perl)))
               ;; FIXME: reactivate input python as soon as the test failures
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:30 2019
Received: from localhost ([127.0.0.1]:58775 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLe-0006Ww-3p
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:30 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:36967)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLG-0006Pv-Pc
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:10 -0400
Received: by mail-wr1-f53.google.com with SMTP id z11so14453341wrt.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Hg86Or2key+gbohgqErU2PmhMrs9VhmbwRrk3kAC8I4=;
 b=l6Eds4xhG1V10PXm5/FWpR/e1QYXWzFURoKgS3cNyhJq/HU4HV/YUy++miKdMS7X0k
 2MxIKEezaHJv7dwlFpc2XWXO7mrAO7OzssOtAgFWcudn4MeG4IzTtruygkMfeSC8eUEN
 iULI+TDz/mJKPUluN2ZSGFx1XXbS45oX1iWJNXLfWZFq8Fx3ngzPXQioaFrA7ptFbON0
 qUG9C4fj7Mx+lN2QwDj2wApHKi4AO5gQiZFgeiJgBOfygAMSBm+2TSoctRSKsY9UoI1x
 TiaTytPlF6DRGqSb+7GtPbft0ehji4cLyD+OtOJsFXE90LMPiI44e1iFcLex0zrfzLQ7
 Blig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Hg86Or2key+gbohgqErU2PmhMrs9VhmbwRrk3kAC8I4=;
 b=T/c74r1WVzJ88mIlt5CnKCgFvY86WAKlNKNl/h3PfP4kys+nWNMA8HwFoyCI+ELvWs
 4CVev5/KdCsaS2BM1uP7fzX7xCeUcMOedsIoEhdSBXeaVWaHEcbwFVBbjswzLIXsGSFA
 J+HpR8HMln+Rk5UZB20ceQPCf2/cvF+hhL3q0B2mH9+fMu/II661stFfrCZYXpm8LUqw
 BbWBxFASz1QK5nU8BMJ3X8oR43De62S3Y6mJvEtCym2XieUE7AkITjCVLrSpxDD20jik
 rzItZCat7ZPidGCbRPNjf1iQjwQrwc9i4UdNGQq8b0tf8HS3Ir7fpiZxDlWCwhaD92kE
 R9FQ==
X-Gm-Message-State: APjAAAWAqwrp38PsSrtJEPzHLOrrvMcbwvDJ3zI95PoEBfTIjbxehxJs
 STGHDPP/pFiTAWDpiKTrv57YczN2
X-Google-Smtp-Source: APXvYqxAQLQXkXy1gFOvhMmRgtn0O4xOdk612f5PN1+1mckIsi1zb7+G8mJtHjEMlloeDZXDjQvLxg==
X-Received: by 2002:adf:fd03:: with SMTP id e3mr28389274wrr.291.1567438440928; 
 Mon, 02 Sep 2019 08:34:00 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.59
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:00 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 18/48] gnu: nghttp2: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:03 +0200
Message-Id: <20190902153333.11190-19-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/web.scm (nghttp2)[arguments]: In set-timezone-directory
phase, search in both inputs and native-inputs.
---
 gnu/packages/web.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 8e4424be8d..c5ec216a72 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@HIDDEN>
 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@HIDDEN>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6441,9 +6442,10 @@ derivation by David Revoy from the original MonsterID by Andreas Gohr.")
                 (assoc-ref outputs "lib")))
              #t))
          (add-before 'check 'set-timezone-directory
-           (lambda* (#:key inputs #:allow-other-keys)
-             (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
-                                            "/share/zoneinfo"))
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
+             (setenv "TZDIR" (string-append
+                               (assoc-ref (or native-inputs inputs) "tzdata")
+                               "/share/zoneinfo"))
              #t)))))
     (home-page "https://nghttp2.org/")
     (synopsis "HTTP/2 protocol client, proxy, server, and library")
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:30 2019
Received: from localhost ([127.0.0.1]:58771 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLd-0006WW-50
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:30 -0400
Received: from mail-wr1-f54.google.com ([209.85.221.54]:40228)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLI-0006Qi-Pz
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:09 -0400
Received: by mail-wr1-f54.google.com with SMTP id c3so14448102wrd.7
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=M9kLbK9Yufkwn6OkKkwWXAXth9AIGN5tOPh0rJyG59M=;
 b=MFqUqdWrnt+GROBz6HAUDvwbhYUeY9KvejtJufzBeQyVDuAZkaZx+72laVA+xk9xfc
 Rhw8iSuxEZSdNBn2O2MPplD4b9WRTMthmSTpolFVfJYaoqAr1xhm8kX0JfXZL6Y3XpQN
 phHeVhQZJZoe5kNolar8Fqi1w8OmHfXhmRpGc5xmmBh9j6lCQeqpR0YPnIxNERB7DeBi
 dDfr+nrk2hDaEkQrbeHsN2rJDolvHnxCKcj3rNE78+c8uZZNwXLBJbGquhkJOi3ZyD1S
 k25N8TNsLrWChzHUl61h3nkoemlwPCFY+PjcgN7fN2E2JknGgWNGxk24xXv6T2NOoCF7
 R5MA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=M9kLbK9Yufkwn6OkKkwWXAXth9AIGN5tOPh0rJyG59M=;
 b=V5bab0BQaK4Q/Xv3YeHBuoNwe0L8/15PyZboolUB8B2VGGk8Lg6OtuVwWSvy2aCZij
 OY2hxMO/o1Sw4MLzak2eH9sYXrgSN5s8LB3wdDs51av4y0MEqOKS3j73wUM4D4haNo7A
 PBPvsg7B/651UI4h40pGGUBxhMW5X7L0quVimCE/kKIEG1uDI0BaxrG1xR6WWdNcBG4L
 XI3W2EwiW2j0M8UEc1+our/l1nE9otYnUXvB3bFYYt9B0MUA88vlwNRjjqaz/AVX9gQ4
 kEINjws0WXZubuvARwxTnuwMrytz1YoaIdlnulRkZmcxUW87m0jYJmLJm9+/BvjySg6F
 X2wg==
X-Gm-Message-State: APjAAAV9AkHDj9OOgrIpT75i2ZHj/QBNX0WZX9n43IkIEHnybMUW8rto
 LW1gpMU+5dUAauKKzE6S6VxvD4il
X-Google-Smtp-Source: APXvYqze3/ES+TQFbrv8yZURmcrYHrzbcgcK0LAoD3wSHgIf2yCRztPQQW93Ze6H86PmLJj8bBsdaw==
X-Received: by 2002:a5d:6911:: with SMTP id t17mr36644707wru.255.1567438442980; 
 Mon, 02 Sep 2019 08:34:02 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.01
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:02 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 20/48] gnu: openldap: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:05 +0200
Message-Id: <20190902153333.11190-21-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/openldap.scm (openldap)[inputs]: Move groff from here to ...
[native-inputs]: ... here. Also add bdb and automake.
[arguments]: Add cross-compilation specific configure-flags. Do not strip when
cross-compiling. Add a new fix-configure phase to update outdated config.sub
and config.guess. Add a fix-cross-gcc phase to set CC variable to
cross-compiler name when cross-compiling.
---
 gnu/packages/openldap.scm | 38 +++++++++++++++++++++++++++++++++++---
 1 file changed, 35 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index 2f80920ed4..2c9b0d428e 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016 Leo Famulari <leo@HIDDEN>
 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +51,7 @@
   #:use-module (gnu packages)
   #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+ gpl3+ psfl))
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python))
@@ -79,16 +81,46 @@
    (inputs `(("bdb" ,bdb-5.3)
              ("cyrus-sasl" ,cyrus-sasl)
              ("gnutls" ,gnutls)
-             ("groff" ,groff)
              ("icu4c" ,icu4c)
              ("libgcrypt" ,libgcrypt)
              ("zlib" ,zlib)))
-   (native-inputs `(("libtool" ,libtool)))
+   (native-inputs `(("libtool" ,libtool)
+                    ("groff" ,groff)
+                    ("bdb" ,bdb-5.3)
+                    ;; For up to date 'config.guess' and 'config.sub'.
+                    ("automake" ,automake)))
    (arguments
     `(#:tests? #f
-      #:configure-flags '("--disable-static")
+      #:configure-flags
+      '("--disable-static"
+        ,@(if (%current-target-system)
+              '("--with-yielding_select=yes"
+                "ac_cv_func_memcmp_working=yes")
+              '()))
+      ;; Disable install stripping as it breaks cross-compiling.
+      #:make-flags '("STRIP=")
       #:phases
       (modify-phases %standard-phases
+        (add-after 'unpack 'fix-configure
+          (lambda* (#:key inputs native-inputs #:allow-other-keys)
+            ;; Replace outdated config.sub and config.guess:
+            (with-directory-excursion "build"
+              (for-each (lambda (file)
+                          (install-file (string-append
+                                         (assoc-ref
+                                          (or native-inputs inputs) "automake")
+                                         "/share/automake-"
+                                         ,(version-major+minor
+                                           (package-version automake))
+                                         "/" file) "."))
+                        '("config.sub" "config.guess")))
+            #t))
+        ,@(if (%current-target-system)
+              '((add-before 'configure 'fix-cross-gcc
+                  (lambda* (#:key target #:allow-other-keys)
+                    (setenv "CC" (string-append target "-gcc"))
+                    #t)))
+              '())
         (add-after 'install 'patch-sasl-path
           ;; Give -L arguments for cyrus-sasl to avoid propagation.
           (lambda* (#:key inputs outputs #:allow-other-keys)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:29 2019
Received: from localhost ([127.0.0.1]:58762 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLV-0006VV-CC
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:27 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:45018)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLD-0006Pe-LO
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:08 -0400
Received: by mail-wr1-f66.google.com with SMTP id 30so3508332wrk.11
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=qd3oR80x1Kco8K4vFHHAoiwrzSHulBUBLrAi7hpOrVk=;
 b=TdnAQxUR8xgOqEOh0t3GPE78a8aTJ2G10yVBnVs3kjNlJnT+vxytX2iLaPJYGF6FZ9
 BFIvyCn/G6aH2ElNskF1OyUt3vBb5YNF2zxWsjid5iigLOpf9TA/mQsfgAbFhZLW08I+
 gbQsNeBcA+Hlbuvhm6hYbl+3GY4o74dUasgOrarX5wkLdga5yPGo6hfkrXXDw3cZOHv4
 evar0JcSOVkZtkxgqMr2HnsK4U5Kn6ts9YG7BN4L4i1pYBrUqDsWKbqAPNOEuaw2sElq
 Fa4V9fcCmOwKF6PRFvnw0acNOwT5T552ZBEY3DQqQrbrA8I02CJ1PuUZ53QZ+tRpHVrg
 ecPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=qd3oR80x1Kco8K4vFHHAoiwrzSHulBUBLrAi7hpOrVk=;
 b=En7KddxGslexS5knccA7la/hIFvhnOBgV8+MJ6ZITygwwBHvgqK87SzAqS3djL28Bv
 EU090pqhXKl7YE9Ic10tIPVPh57qgvlgtWfRalS4Dr3ZbDZ2fsG4IA7k72pWPTbpJXnY
 9RRQ1ZLjK5ld0HOn0aDrO/3NWiksLDL4bpN1opT3PglmC4Wa+j/nAJKc/9hq6qi7jpiT
 T3Qf/wzwMdiFwls1x+KVm3h7a2ph6ZuS3nF6rGreZC2CYwAt9qQ1YiPKPuRD2j1hCQro
 IlXtHbe14s/G8vFICcj0C30QlO9f7CDHj1zaMN93A7k9jsMhpznd0uZnDfwQuYth4rVC
 HavA==
X-Gm-Message-State: APjAAAX3nzLK5fDBz/Rd2+zrahKbo3OmNg+3w8zkiTaIRJyEP7i+Ym22
 S1F+pzlgDOkohVl+nWI6pzZKa6J9
X-Google-Smtp-Source: APXvYqxC7amPP72e32fSo2Zpfbos+FReAidiT+gmffQDVJoEKKaofPi8wKqN0E8Pr3CB0vjNnHp1tw==
X-Received: by 2002:a5d:46c4:: with SMTP id g4mr20153092wrs.189.1567438437864; 
 Mon, 02 Sep 2019 08:33:57 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:57 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 15/48] gnu: boost: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:00 +0200
Message-Id: <20190902153333.11190-16-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/boost-dumpversion.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/boost.scm (boost)[source]: Apply it,
[native-inputs]: add python unless cross-compiling,
[arguments]: pass cross-compilation mandatory
flags and fill a user-config.jam file pointing to cross-compiler. Disable
python support that is broken when cross-compiling. Disable
provide-libboost_python when cross-compiling.
---
 gnu/local.mk                                 |  1 +
 gnu/packages/boost.scm                       | 59 +++++++++++++++-----
 gnu/packages/patches/boost-dumpversion.patch | 24 ++++++++
 3 files changed, 71 insertions(+), 13 deletions(-)
 create mode 100644 gnu/packages/patches/boost-dumpversion.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 3550479ae6..ae53257a77 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -710,6 +710,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/binutils-loongson-workaround.patch	\
   %D%/packages/patches/blender-2.79-newer-ffmpeg.patch		\
   %D%/packages/patches/blender-2.79-python-3.7-fix.patch	\
+  %D%/packages/patches/boost-dumpversion.patch 			\
   %D%/packages/patches/byobu-writable-status.patch		\
   %D%/packages/patches/calibre-no-updates-dialog.patch		\
   %D%/packages/patches/calibre-remove-test-bs4.patch		\
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index a2253a9efc..4e1e68204f 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 ;;; Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -54,6 +55,8 @@
                            (string-append "https://dl.bintray.com/boostorg/release/"
                                           version "/source/boost_"
                                           version-with-underscores ".tar.bz2"))))
+              (patches
+               (search-patches "boost-dumpversion.patch"))
               (sha256
                (base32
                 "0y47nc7w0arwgj4x1phadxbvl7wyfcgknbz5kv8lzpl98wsyh2j3"))))
@@ -62,7 +65,9 @@
               ("zlib" ,zlib)))
     (native-inputs
      `(("perl" ,perl)
-       ("python" ,python-2)
+       ,@(if (%current-target-system)
+             '()
+             `(("python" ,python-2)))
        ("tcsh" ,tcsh)))
     (arguments
      `(#:tests? #f
@@ -76,7 +81,24 @@
 
              ;; Set the RUNPATH to $libdir so that the libs find each other.
              (string-append "linkflags=-Wl,-rpath="
-                            (assoc-ref %outputs "out") "/lib"))
+                            (assoc-ref %outputs "out") "/lib")
+             ,@(if (%current-target-system)
+                   `("--user-config=user-config.jam"
+                     ;; Python is not supported when cross-compiling.
+                     "--without-python"
+                     "binary-format=elf"
+                     "target-os=linux"
+                     ,@(cond
+                        ((string-prefix? "arm" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=32"
+                           "architecture=arm"))
+                        ((string-prefix? "aarch64" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=64"
+                           "architecture=arm"))
+                        (else '())))
+                   '()))
        #:phases
        (modify-phases %standard-phases
          (delete 'bootstrap)
@@ -94,6 +116,14 @@
                (setenv "SHELL" (which "sh"))
                (setenv "CONFIG_SHELL" (which "sh"))
 
+               ,@(if (%current-target-system)
+                     `((call-with-output-file "user-config.jam"
+                          (lambda (port)
+                            (format port
+                                    "using gcc : cross : ~a-c++ ;"
+                                    ,(%current-target-system)))))
+                     '())
+
                (invoke "./bootstrap.sh"
                        (string-append "--prefix=" out)
                        ;; Auto-detection looks for ICU only in traditional
@@ -108,17 +138,20 @@
          (replace 'install
            (lambda* (#:key make-flags #:allow-other-keys)
              (apply invoke "./b2" "install" make-flags)))
-         (add-after 'install 'provide-libboost_python
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out")))
-               ;; Boost can build support for both Python 2 and Python 3 since
-               ;; version 1.67.0, and suffixes each library with the Python
-               ;; version.  Many consumers only check for libboost_python
-               ;; however, so we provide it here as suggested in
-               ;; <https://github.com/boostorg/python/issues/203>.
-               (with-directory-excursion (string-append out "/lib")
-                 (symlink "libboost_python27.so" "libboost_python.so"))
-               #t))))))
+         ,@(if (%current-target-system)
+               '()
+               '((add-after 'install 'provide-libboost_python
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let ((out (assoc-ref outputs "out")))
+                        ;; Boost can build support for both Python 2 and
+                        ;; Python 3 since version 1.67.0, and suffixes each
+                        ;; library with the Python version.  Many consumers
+                        ;; only check for libboost_python however, so we
+                        ;; provide it here as suggested in
+                        ;; <https://github.com/boostorg/python/issues/203>.
+                        (with-directory-excursion (string-append out "/lib")
+                          (symlink "libboost_python27.so" "libboost_python.so"))
+                        #t))))))))
 
     (home-page "https://www.boost.org")
     (synopsis "Peer-reviewed portable C++ source libraries")
diff --git a/gnu/packages/patches/boost-dumpversion.patch b/gnu/packages/patches/boost-dumpversion.patch
new file mode 100644
index 0000000000..7df779cfe6
--- /dev/null
+++ b/gnu/packages/patches/boost-dumpversion.patch
@@ -0,0 +1,24 @@
+This issue is described here: https://github.com/openwrt/packages/pull/8685
+and has not been solved as of 1.70.0 release.
+
+--- a/tools/build/src/tools/common.jam
++++ b/tools/build/src/tools/common.jam
+@@ -973,18 +973,6 @@
+         }
+     }
+ 
+-    # From GCC 5, versioning changes and minor becomes patch
+-    if $(tag) = gcc && [ numbers.less 4 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+-    # Ditto, from Clang 4
+-    if ( $(tag) = clang || $(tag) = clangw ) && [ numbers.less 3 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+     # On intel, version is not added, because it does not matter and it is the
+     # version of vc used as backend that matters. Ideally, we should encode the
+     # backend version but that would break compatibility with V1.
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:21 2019
Received: from localhost ([127.0.0.1]:58760 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLU-0006VQ-QO
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:21 -0400
Received: from mail-wr1-f46.google.com ([209.85.221.46]:33264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLH-0006QP-OE
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:08 -0400
Received: by mail-wr1-f46.google.com with SMTP id u16so14480425wrr.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=3EcgO52Zak7elerfXoIDCPEpo/QGSntGgGGeWWtNTXU=;
 b=TUEg3Lmm+3rswRYkmam8wXgJAA6j79SFrS9Ch6Km6SURBaSeg+hB87Mp/wq8aPMcV9
 e/2POfJDns8t5kYT+G+1edktyjKewsC7qPvI3vuNxyG7MW6GqC0BzTZ3fH/18q0NrzIo
 pdcsFHO/xqsQj8WdRep6ZCuoFkTLMsRC4x5hoGJ3j3Qtil+k5FYos/dJORY+Enze2J44
 YbNdJX36uVSG4UTJB2HZGpqg/s0HxJZHJpPOjf9E+t741aBxYeRAoBtl7YtGdQMS2sox
 mJoMIVVGdeOP5dSrtGeNSamqpJWfz/pcxCaTzQ3DhBy5mJYiUMkv1tUA4IjSkduvr19w
 Dncg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=3EcgO52Zak7elerfXoIDCPEpo/QGSntGgGGeWWtNTXU=;
 b=AXTdsS82ds/vQSkI0n/wYDTaVfXKW3k3nfUWQY6YMLSw8ChotljynTUqaSbMVWGTlf
 nuwXNbBCT2So6+YchbOVi3nxUuelR6ExfJaiXi7x3YOELJ/PnJUrP87BTvNqwEaJRRRH
 /2fitZArX1OmvgAA2NxVY/Gkofovv65UnBkbCR9cSFeAkvIx8Rfxv4iaMQvAvMpLmuSy
 CnZfRIdIlBNPBrImCFArNY08yjhna6pmQ63fQ5SWhv+ucIF5mcuHYv/yG0IVHUiYtDm2
 GIYjSYn2n5z8RyMIEZJl68rP+K7Ec0RfTqGTrsnKSou8RXB1lj18nN8r6F9d5Lb5rxSM
 KfaA==
X-Gm-Message-State: APjAAAV2KPygEdnuDHiFWe+P//EADXwPLAb16Z9WNIz9ZE6pD2x8otAL
 ivoAfKybBLSnGjN/lCr0s0AwJ4c3
X-Google-Smtp-Source: APXvYqy8/Ief2J1XFIlVq35p2vcwCpeB912KOzaxaGEL0YF6679E+GZ53ez6AKgC4yR8niw4y/KiEQ==
X-Received: by 2002:a5d:460e:: with SMTP id t14mr38921526wrq.171.1567438441931; 
 Mon, 02 Sep 2019 08:34:01 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.01
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:34:01 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 19/48] gnu: bdb: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:04 +0200
Message-Id: <20190902153333.11190-20-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/dbm.scm (bdb-4.8)[arguments]: Pass host argument to configure
when cross-compiling.
---
 gnu/packages/dbm.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm
index 5191c475c2..84c5817a79 100644
--- a/gnu/packages/dbm.scm
+++ b/gnu/packages/dbm.scm
@@ -55,7 +55,7 @@
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
-           (lambda* (#:key outputs #:allow-other-keys)
+           (lambda* (#:key target outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))
                    (doc (assoc-ref outputs "doc")))
                ;; '--docdir' is not honored, so we need to patch.
@@ -74,6 +74,10 @@
                              '("--build=aarch64-unknown-linux-gnu")
                              '())
 
+                       ,@(if (%current-target-system)         ; cross building
+                             '((string-append "--host=" target))
+                             '())
+
                        ;; Remove 7 MiB of .a files.
                        "--disable-static"
 
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:20 2019
Received: from localhost ([127.0.0.1]:58757 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLU-0006VF-A2
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:20 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:40845)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLF-0006Ph-Oo
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:06 -0400
Received: by mail-wm1-f65.google.com with SMTP id t9so15056838wmi.5
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=bT9wjUOMiQhRKjfvHRtEPKAeNdFX83u0rDJyRcK/lfo=;
 b=gGhkyz2XXExPpwINZCflOMplo57KyLX2AWu/Y/w6tMa6pb53+jLR+l+jWqsPCHV0pT
 s3cY7cW+iW7OB3S633Rnohj03zniw0nbu6CsrpPuW1y6Q+uvPKOYwiEUih2q/8vMPzow
 WzL/Tfzy2uSSHIceqQcjoLWxSR9zHrHk0vp/hI/4UT9HHV2Z0sU2yyRagGBU2ObFnmPQ
 CILLpaAfupbNdwnGTBd6YmPU7AbFDGcKQ13F0wNwfn+gm1L6scR72hB1SCZZ8d+eBVWK
 FPPZrcaD3lGhy13VID76MnMFaHoHBYfKmRRywx/0s96A+rlXNe27qdhFDZsxJLMEqDw5
 Mnng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=bT9wjUOMiQhRKjfvHRtEPKAeNdFX83u0rDJyRcK/lfo=;
 b=UwWl0ij4oXSyyhzZf7HtKjtW8B5LFak6+6OkjZ+Oy4FEvGY8gumuKiagI00TCstuJc
 0xwIqwCiOsfXoFc3U5ePFxZeoTgFu6zQxjlroUsMC2Bso51bEg4tiZE39dxT3Tm57T5Y
 e8d/b/VqvdeXdequizx/QzExc1m1rM7yN/E7eI6Wpd+HAJTrgkkh9st1xc1d+CUCK1b5
 qKFOtzLZXC3Ym6C5y2YysomYA4JQlXub+3u38k/a/W1Yge0/1cIF8P8HeLojz+D+/lFE
 zCUwC65CBj+kqT7rSZOIUdvNyyZJPUy7hf9ZbfEEgvCOmcMhOrVuJ8opxJ+0WymV5vxN
 l4+Q==
X-Gm-Message-State: APjAAAWw8Va/3EEJ0WjYOFbvfOzLIvZMWzSx7UUvA2fzvaJyaRa/GvhT
 Wc1omqQVDb35UinvalFdEsG6Tzm9
X-Google-Smtp-Source: APXvYqz2Poxfrx8v3E3yzsaxN04TmOh40/yio+86WH0wflFyJrC/Tk6KEOTBtS9+D5neM/3j60zc7Q==
X-Received: by 2002:a1c:1f89:: with SMTP id
 f131mr35362015wmf.140.1567438439944; 
 Mon, 02 Sep 2019 08:33:59 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.59
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:59 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 17/48] gnu: lvm2: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:02 +0200
Message-Id: <20190902153333.11190-18-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (lvm2)[arguments]: Add cross-compilation specific
configure-flags.
---
 gnu/packages/linux.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0225f8c376..afa860830b 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2654,7 +2654,7 @@ time.")
     (inputs
      `(("udev" ,eudev)))
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (add-after 'configure 'set-makefile-shell
            (lambda _
@@ -2689,7 +2689,12 @@ time.")
                                               (assoc-ref %outputs "out")
                                               "/lib,-rpath="
                                               (assoc-ref %outputs "out")
-                                              "/lib/device-mapper"))
+                                              "/lib/device-mapper")
+                               ;; This is needed when cross-compiling.
+                               ,@(if (%current-target-system)
+                                     '("ac_cv_func_malloc_0_nonnull=yes"
+                                       "ac_cv_func_realloc_0_nonnull=yes")
+                                     '()))
 
        ;; The tests use 'mknod', which requires root access.
        #:tests? #f))
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:20 2019
Received: from localhost ([127.0.0.1]:58755 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLT-0006V1-HZ
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:20 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:36631)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLE-0006Pg-Oq
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:05 -0400
Received: by mail-wr1-f49.google.com with SMTP id y19so14465443wrd.3
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=aDAa2BlU6B/fitBrTPKqzMNRl1YlSbVrJswXkqmObQE=;
 b=ETW2HYRsJCFjKviWPLNtCKmwJnax+s2F53qTtJRU5vFWWRUbrBOKACHfO5cnFYIj0H
 41qvsxDq5STr/bpLc7cSg7aW9ePpZT9Gj0fwkgX8ZKC4aM6Tbhlc5IZP9Uon7Csup0FS
 ERBycmYC+ur93u95NwHqsuZxjIwXyccxKI/HOBU79BAW9qkCcMGmOIkPORhdZcVSDm74
 ynMxynaeBhHtae6nqRrh1hy6/bQL3ss4kmywPN8xb2GFEz23bSHsr2QQ2bWSXaB8geGh
 uRsu0Ace7ifiVr6PaFm43QsDEajhrsR96Kv/u7MS8WoiLaYF5aOUZidTJ2jS5Mba+cwz
 dcxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=aDAa2BlU6B/fitBrTPKqzMNRl1YlSbVrJswXkqmObQE=;
 b=pF0CwR1MGlP1SDUik+WjQwHIk9J39Q6BbscQtkPimRYuVkBHG4oMls0fmG7iIK/ntr
 yx8ELTnCC8g5zPaTVAde40GrSz4BOkcpt36jfyyG0G5DIm5gXHhKT9wud76ICx97M7DA
 eQPsYE/tWykHf0zAXMNZHvOeMfhpxzHHLkRwjW4fy0mSX2VbA3XN2qPog1TY5RqkNyx/
 lEwxZtiYF5uH4HykI3hEEuvi8jCQsY818WeIu0F6QhOCNnF5bi4YoqVFl8p+TFIodGZr
 IA5+pfx8t89w+g/+AsbuCIlqsdsaVvWhXjj85Edy3U4JMJ7Pq5B7lAcaVilH30ok483s
 biDA==
X-Gm-Message-State: APjAAAW1TwTgKILftfcbf7bxnXOoTFXzfrODXtTVR4NdUbIVuMqSpG9l
 dqRYizFwF6ENpKhAGXr/gPAK9SaU
X-Google-Smtp-Source: APXvYqy5X7tzbEosLWV7bBRmfC8oRwhVkRlsWqOitu/Hdn3TLU1Rkc+W7rqB4g/I6xe39U57uVyb+A==
X-Received: by 2002:a5d:6588:: with SMTP id q8mr16713900wru.184.1567438438970; 
 Mon, 02 Sep 2019 08:33:58 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.57
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:58 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 16/48] gnu: eudev: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:33:01 +0200
Message-Id: <20190902153333.11190-17-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (eudev)[arguments]: Look for xsltproc in both
native-inputs and inputs. Also, do not run udevadm when cross-compiling.

We need to find another way to generate hwdb.bin file for cross-built systems.
---
 gnu/packages/linux.scm | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index bf1e00421f..0225f8c376 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2564,7 +2564,7 @@ from the module-init-tools project.")
               (patches (search-patches "eudev-rules-directory.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'make-source-writable
            (lambda _
@@ -2573,19 +2573,25 @@ from the module-init-tools project.")
              (for-each make-file-writable (find-files "."))
              #t))
          (add-before 'bootstrap 'patch-file-names
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
             (substitute* "man/make.sh"
               (("/usr/bin/xsltproc")
-                (string-append (assoc-ref inputs "xsltproc")
+               (string-append (assoc-ref
+                               (or native-inputs inputs) "xsltproc")
                                "/bin/xsltproc")))
             #t))
          (add-after 'install 'build-hwdb
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Build OUT/etc/udev/hwdb.bin.  This allows 'lsusb' and
              ;; similar tools to display product names.
+             ;;
+             ;; XXX: This can't be done when cross-compiling. Find another way
+             ;; to generate hwdb.bin for cross-built systems.
              (let ((out (assoc-ref outputs "out")))
-               (invoke (string-append out "/bin/udevadm")
-                       "hwdb" "--update")))))
+               ,@(if (%current-target-system)
+                     '(#t)
+                     '((invoke (string-append out "/bin/udevadm")
+                               "hwdb" "--update")))))))
        #:configure-flags (list "--enable-manpages")))
     (native-inputs
      `(("autoconf" ,autoconf)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:19 2019
Received: from localhost ([127.0.0.1]:58741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLL-0006TS-0f
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:19 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:39664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL6-0006OY-Fi
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:04 -0400
Received: by mail-wm1-f67.google.com with SMTP id n2so13669399wmk.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=iNlm7lejLUO4LF27OJRpsPNwY4c9reHKEXZ/UbOpFSY=;
 b=gGhAVoslF2mect+/bRAvbGGVFdLv6dH2DfMGlNR9ZWyg9+askjrnRt8pymGjgAMDIn
 oEWtqQeWaBi89n4kHnXo6OkpvD3b8HGA4cYtUIphGciP7wB4OtjQyvAUD4lV5/Ren4jN
 M+ACpy9e29SsK7f8qiUjsak29wK/euAZ6u+eZeeYUuSUegJmxIKK8jZ6uvY9ZRhMf1vr
 xrVSI+M9zftNlY3tPV1h+sDBD+w8LnaqMvs/cKFCK1v4/shodSydG1h7IM3NwrrQYWiV
 STWgNHbR9nULXWMQXzFspmYdnCW72nP2E/jB1KvpAYd1y6dw92+E0F/3jwoW/HOS8rke
 nang==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=iNlm7lejLUO4LF27OJRpsPNwY4c9reHKEXZ/UbOpFSY=;
 b=SMLUFRetWXEAk24rJgqvIX0WHtlp6rG5hiOggbwXWdMlDzplukp2Twky8ZogcmSuP7
 5eIgRWecbgkH6kjNAhHh5qEwNEhHI4S3V9SUvDmn0ifyX+9rNBVfwtRsFkFtBpKuzCgq
 axMR1AssN8kRxXVpkdc/NjRnl0vICyOpvxdqu/6IGNN0z5HP3YWdhbteVU452djxi9Dm
 1lyrK+1pID35BgB/P18htKZq5xGkRz8KYEnK/ilz+2np7CsdrHhq40pE4fOx7dYx2ClO
 hV8Przlv8wdmeyaktuKqvJAp7cNa2HYi9SeOGfsM/yk/fEQGrDvJAetK31j3r4pove52
 tR1Q==
X-Gm-Message-State: APjAAAVSswip7ZsJiOTkYzjjTR3Gxyfewu5XzqHnnWkyH0+6WrUScYeu
 HNPs0E6fsWqIljeB59qYa5rEL8Vk
X-Google-Smtp-Source: APXvYqxzQ4C9dZL5XoK9k0AE3wCSKPZNugFnyAL7qMzR3azpFkD2Qp4sADyQKSt1/bBvK+ndLIcZwg==
X-Received: by 2002:a1c:c589:: with SMTP id v131mr9943423wmf.163.1567438430641; 
 Mon, 02 Sep 2019 08:33:50 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:50 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 08/48] gnu: bc: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:53 +0200
Message-Id: <20190902153333.11190-9-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/bc-fix-cross-compilation.patch: New patch file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/algebra.scm (bc)[origin]: Apply it,
[native-inputs]: Add automake and autoconf,
[arguments]: Add a new 'autogen phase that is needed by the new patch.
---
 gnu/local.mk                                  |   1 +
 gnu/packages/algebra.scm                      |  15 +-
 .../patches/bc-fix-cross-compilation.patch    | 171 ++++++++++++++++++
 3 files changed, 184 insertions(+), 3 deletions(-)
 create mode 100644 gnu/packages/patches/bc-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index d60370fc3d..0bfde340ec 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -701,6 +701,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/bash-linux-pgrp-pipe.patch		\
   %D%/packages/patches/bastet-change-source-of-unordered_set.patch	\
   %D%/packages/patches/bazaar-CVE-2017-14176.patch		\
+  %D%/packages/patches/bc-fix-cross-compilation.patch		\
   %D%/packages/patches/beets-python-3.7-fix.patch		\
   %D%/packages/patches/beignet-correct-file-names.patch		\
   %D%/packages/patches/benchmark-unbundle-googletest.patch	\
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index fb9e78bf92..2b43e5f2a8 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017 Marius Bakke <mbakke@HIDDEN>
 ;;; Copyright © 2017, 2019 Eric Bavier <bavier@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -681,15 +682,23 @@ binary.")
              (uri (string-append "mirror://gnu/bc/bc-" version ".tar.gz"))
              (sha256
               (base32
-               "0amh9ik44jfg66csyvf4zz1l878c4755kjndq9j0270akflgrbb2"))))
+               "0amh9ik44jfg66csyvf4zz1l878c4755kjndq9j0270akflgrbb2"))
+             (patches (search-patches "bc-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
     (native-inputs
-     `(("ed" ,ed)
+     `(("automake" ,automake)
+       ("autoconf" ,autoconf)
+       ("ed" ,ed)
        ("flex" ,flex)
        ("texinfo" ,texinfo)))
     (arguments
      '(#:configure-flags
-       (list "--with-readline")))
+       (list "--with-readline")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autogen
+           (lambda _
+             (invoke "autoreconf" "-vif"))))))
     (home-page "https://www.gnu.org/software/bc/")
     (synopsis "Arbitrary precision numeric processing language")
     (description
diff --git a/gnu/packages/patches/bc-fix-cross-compilation.patch b/gnu/packages/patches/bc-fix-cross-compilation.patch
new file mode 100644
index 0000000000..14dfecdbde
--- /dev/null
+++ b/gnu/packages/patches/bc-fix-cross-compilation.patch
@@ -0,0 +1,171 @@
+Patch taken from nix.
+
+commit fdda59736ddc048cf38a2c7103f4f5d9eeaf995e
+Author: Ben Gamari <ben@HIDDEN>
+Date:   Tue Oct 17 10:51:34 2017 -0400
+
+    Try implementing cross-compilation
+
+diff --git a/bc/Makefile.am b/bc/Makefile.am
+index d9d412e..fdef633 100644
+--- a/bc/Makefile.am
++++ b/bc/Makefile.am
+@@ -17,6 +17,7 @@ MAINTAINERCLEANFILES = Makefile.in bc.c bc.h scan.c \
+ 
+ AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../h
+ LIBBC = ../lib/libbc.a
++LIBBC_HOST = ../lib/libbc_host.a
+ LIBL = @LEXLIB@
+ LDADD = $(LIBBC) $(LIBL) @READLINELIB@
+ 
+@@ -29,12 +30,20 @@ $(PROGRAMS): libmath.h $(LIBBC)
+ scan.o: bc.h
+ global.o: libmath.h
++
++main_host.c : main.c
++	cp $< $@
+ 
+-fbcOBJ = main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o
++fbcOBJ = $(addsuffix _host,main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o)
++
++%.o_host : CC:=$(CC_FOR_BUILD)
++
++%.o_host : %.c
++	$(COMPILE) -c $(CFLAGS) $(INCLUDES) -o $@ $<
+ 
+-libmath.h: libmath.b $(fbcOBJ) $(LIBBC)
++libmath.h: libmath.b $(fbcOBJ) $(LIBBC_HOST)
+ 	echo '{0}' > libmath.h
+-	$(MAKE) global.o
+-	$(LINK) -o fbc $(fbcOBJ) global.o $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS)
++	$(MAKE) global.o_host
++	$(CC_FOR_BUILD) -o fbc $(fbcOBJ) global.o_host $(LIBBC_HOST) $(LIBL) ${READLINELIB} $(LIBS)
+ 	./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h
+ 	$(srcdir)/fix-libmath_h
+ 	rm -f ./fbc ./global.o
+diff --git a/configure.ac b/configure.ac
+index fc74573..5cabb73 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -20,6 +20,7 @@ m4_define([dc_version], 1.4.1)
+ 
+ AC_INIT([bc],[bc_version])
+ AC_CONFIG_SRCDIR(doc/bc.1)
++AC_CONFIG_MACRO_DIR([m4])
+ AM_INIT_AUTOMAKE([dist-bzip2])
+ AC_CONFIG_HEADERS(config.h)
+ 
+@@ -35,6 +36,7 @@ AC_DEFINE([DC_COPYRIGHT],
+ 	  [Define the dc copyright line.])
+ 
+ AC_PROG_CC
++AX_CC_FOR_BUILD
+ AC_USE_SYSTEM_EXTENSIONS
+ 
+ AM_PROG_LEX
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index ec4bf59..c670f5b 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -1,5 +1,5 @@
+ ## Process this file with automake to produce Makefile.in
+-noinst_LIBRARIES = libbc.a
++noinst_LIBRARIES = libbc.a libbc_host.a
+ 
+ AM_CPPFLAGS = -I. -I.. -I$(srcdir)/../h
+ 
+@@ -24,3 +24,11 @@ testmul: testmul.o number.o
+ 
+ specialnumber: newnumber.o
+ 	cp newnumber.o number.o
++
++%.o_host : CC:=$(CC_FOR_BUILD)
++%.o_host : %.c
++	$(COMPILE) -c $(CFLAGS) $(INCLUDES) -o $@ $<
++
++libbc_host.a : $(addsuffix _host,$(libbc_a_OBJECTS))
++	ar cru $@ $+
++	ranlib $@
+diff --git a/m4/cc_for_build.m4 b/m4/cc_for_build.m4
+new file mode 100644
+index 0000000..c62ffad
+--- /dev/null
++++ b/m4/cc_for_build.m4
+@@ -0,0 +1,77 @@
++# ===========================================================================
++#     https://www.gnu.org/software/autoconf-archive/ax_cc_for_build.html
++# ===========================================================================
++#
++# SYNOPSIS
++#
++#   AX_CC_FOR_BUILD
++#
++# DESCRIPTION
++#
++#   Find a build-time compiler. Sets CC_FOR_BUILD and EXEEXT_FOR_BUILD.
++#
++# LICENSE
++#
++#   Copyright (c) 2010 Reuben Thomas <rrt@HIDDEN>
++#   Copyright (c) 1999 Richard Henderson <rth@HIDDEN>
++#
++#   This program is free software: you can redistribute it and/or modify it
++#   under the terms of the GNU General Public License as published by the
++#   Free Software Foundation, either version 3 of the License, or (at your
++#   option) any later version.
++#
++#   This program is distributed in the hope that it will be useful, but
++#   WITHOUT ANY WARRANTY; without even the implied warranty of
++#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
++#   Public License for more details.
++#
++#   You should have received a copy of the GNU General Public License along
++#   with this program. If not, see <https://www.gnu.org/licenses/>.
++#
++#   As a special exception, the respective Autoconf Macro's copyright owner
++#   gives unlimited permission to copy, distribute and modify the configure
++#   scripts that are the output of Autoconf when processing the Macro. You
++#   need not follow the terms of the GNU General Public License when using
++#   or distributing such scripts, even though portions of the text of the
++#   Macro appear in them. The GNU General Public License (GPL) does govern
++#   all other use of the material that constitutes the Autoconf Macro.
++#
++#   This special exception to the GPL applies to versions of the Autoconf
++#   Macro released by the Autoconf Archive. When you make and distribute a
++#   modified version of the Autoconf Macro, you may extend this special
++#   exception to the GPL to apply to your modified version as well.
++
++#serial 3
++
++dnl Get a default for CC_FOR_BUILD to put into Makefile.
++AC_DEFUN([AX_CC_FOR_BUILD],
++[# Put a plausible default for CC_FOR_BUILD in Makefile.
++if test -z "$CC_FOR_BUILD"; then
++  if test "x$cross_compiling" = "xno"; then
++    CC_FOR_BUILD='$(CC)'
++  else
++    CC_FOR_BUILD=gcc
++  fi
++fi
++AC_SUBST(CC_FOR_BUILD)
++# Also set EXEEXT_FOR_BUILD.
++if test "x$cross_compiling" = "xno"; then
++  EXEEXT_FOR_BUILD='$(EXEEXT)'
++else
++  AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext,
++    [rm -f conftest*
++     echo 'int main () { return 0; }' > conftest.c
++     bfd_cv_build_exeext=
++     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
++     for file in conftest.*; do
++       case $file in
++       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
++       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
++       esac
++     done
++     rm -f conftest*
++     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no])
++  EXEEXT_FOR_BUILD=""
++  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
++fi
++AC_SUBST(EXEEXT_FOR_BUILD)])dnl
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:10 2019
Received: from localhost ([127.0.0.1]:58738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLK-0006T0-B4
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:10 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:36440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLC-0006Pc-IS
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:03 -0400
Received: by mail-wr1-f67.google.com with SMTP id y19so14465339wrd.3
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=oR0O2ITFHC3dR1dw6cRrC8+PxeIBzLUwTsqQ352esIE=;
 b=qGJvIFCM5PK3O6oHlpQsOMg/ffkloXtnHFg72PJ9MDV0x81ahykhawuuKUEXOdEfUV
 Lks8QnLz07RN/lPv4pM4MaP85zbsJpsluKdT//VvWOotKjZQWjQjDtAOAXFsU53ldZbb
 /PCarDiv1ioH/+ohImubv0/R6Jf54Wx6WrSXAQtkh+naXflUEdLkImidau2YjisKbMtn
 yJCRvDIwLzE5+TvhTH4pTl8aIbbMuAnr7vvAqIfOhfy2q4WVmtlAhBoN2kmYjL/nUifF
 OfYHGljX+PQfBXOagfRaFOacOzRFO8DaoWnRBe4Rf76CvryrjF6PfutmNHU6Ijfg3dGW
 7Spw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=oR0O2ITFHC3dR1dw6cRrC8+PxeIBzLUwTsqQ352esIE=;
 b=CYuDZhvk8Emjk7U4X/MuQVdIOt7mj7r24QzKnye6X2HQ7uNWl68lIwM2f00XG8WNrY
 wK6FDOqFomcxdcZoekg6RMnW8Z9NuvOscsezN/wjhUWtNkqR6kbecOSfvbZGdj/w+PI6
 KSCF03GGmmQ3K9MUG98+AYfz6LbTpXQ3//feUdxfeOI1VoM0SnRAzn2O8M5VHay6WMv+
 19gnkvKJ1ZhtL2GcKFdyNV5mPRleWLwuCUFzxbmrxGMDbTRpUQIV1sfxUS1OfBUrGxru
 zaB/Z0IJ8Sf5keLdtGQ70UnGqIOeIu8zt5UpRVy7r1krnzCcMpqIvnWHYq6Qd8bj713v
 XACA==
X-Gm-Message-State: APjAAAX2CsnMChnxEQCmBs7O7hlxsV/HVpxNIyfYj+n7ixKgQCJ5gu5U
 5OOug5Mdy6/f2zqAL6M/ov7W8b/F
X-Google-Smtp-Source: APXvYqw/wYT4q803rB7XjEL6qabShQ79K2U5WPAWR7Sl5xVyjkTSFX7Zso+h5mOEXozxmO24pr+oSQ==
X-Received: by 2002:adf:f48e:: with SMTP id l14mr20767463wro.234.1567438436874; 
 Mon, 02 Sep 2019 08:33:56 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:56 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 14/48] gnu: glibc-utf8-locales: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:59 +0200
Message-Id: <20190902153333.11190-15-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/base.scm (glibc-utf8-locales)[inputs]: Move to ...
[native-inputs]: ... here, in order to fix cross-compilation.
* gnu/packages/commencement.scm (glibc-utf8-locales-final)[inputs]: Move to ...
[native-inputs]: ... here, in order to fix cross-compilation.
---
 gnu/packages/base.scm         |  4 ++--
 gnu/packages/commencement.scm | 11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 791647d848..ebaa93f092 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1112,8 +1112,8 @@ to the @code{share/locale} sub-directory of this package.")
                                ;; tests---e.g., in Guile's i18n tests.
                                '("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
                      #t))))
-    (inputs `(("glibc" ,glibc)
-              ("gzip" ,gzip)))
+    (native-inputs `(("glibc" ,glibc)
+                     ("gzip" ,gzip)))
     (synopsis "Small sample of UTF-8 locales")
     (description
      "This package provides a small sample of UTF-8 locales mostly useful in
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 69d1f87605..615d97dbd5 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2350,11 +2350,12 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
   ;; function.)
   (package
     (inherit glibc-utf8-locales)
-    (inputs `(("glibc" ,glibc-final)
-              ("gzip"
-               ,(package-with-explicit-inputs gzip %boot4-inputs
-                                              (current-source-location)
-                                              #:guile %bootstrap-guile))))))
+    (native-inputs
+     `(("glibc" ,glibc-final)
+       ("gzip"
+        ,(package-with-explicit-inputs gzip %boot4-inputs
+                                       (current-source-location)
+                                       #:guile %bootstrap-guile))))))
 
 (define-public ld-wrapper
   ;; The final 'ld' wrapper, which uses the final Guile and Binutils.
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:10 2019
Received: from localhost ([127.0.0.1]:58734 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLJ-0006Sm-Jd
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:10 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:46999)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLC-0006Pa-Cz
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:02 -0400
Received: by mail-wr1-f68.google.com with SMTP id h7so13115159wrt.13
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=diWb2r+CtGsA56kRxg55pygW7W5hCA/KMHXmhvcq3rw=;
 b=F63WWnYiCAyesQ/lEQxP/qQki3bsQkvwh6Rvyjxrefv8NQ01Dww9LilDKSUbE7boqp
 juLrOMSppH0YvxdakzCZtGPcI4juaB44igalZWeLEnqb/213e6CBTxBFZu8a5ksieZKs
 C65qTeL7CTv7Ba6pU0gxG7T4WEJ1luV+5BuQ1jdmWgh03j5RwuG4F6Mg1TdjKgvp199w
 WvCC6pJJHhXRH0t3Y+t4N3auBXr9Zgj1yRrcrOadzaQ/YI8XMSXt+cTji+fqn9vaSIDP
 gIW9Qyb8Uw+a/FZSt1PEb3DMiiTDuVemENJFma2GzFANHIwXy4AqZniaqTY90SIfX5Lt
 0IdA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=diWb2r+CtGsA56kRxg55pygW7W5hCA/KMHXmhvcq3rw=;
 b=OOmGpzcPcrlDltUETNwYs0d0GlRcegh4RVp9ApRddElOtJE+YcjuoXPaIhjZWZ7lPZ
 DROcmx2N2tJxInNeeQtQmtD+qCMMpF33x3OAL6H9X9PExBQJxIRyABrI6euYnvv4RrFw
 ypPcQ6hpnw7bsc27L1fkk+t34nJWNpGmynRrqQdJozSSb2UjdZmKm3r7O8dQOFeJPU9l
 fEEjIC0LUHkWb2IDupSH2mnhSx5bzW6rCFnOwrxf496Qu/Aw93ZqiR0HnblkDeW5I0wU
 V0zcFRTYGasIV3QYfkzocDSE5CmMRIRjddpYx0cP1rNMbpqsVz+jjZTmnOlE0vS4aW70
 CEnQ==
X-Gm-Message-State: APjAAAVTw4d14e3BLo3qBBT9ZystcsZNenBZsB6DPhymL3JmVxh9GGr5
 haiiKGqf+XhmA6kYmhqT3FdhMq57
X-Google-Smtp-Source: APXvYqzVIIGTu/+FTnWzPwGAirU5FO17yPGblu/7FzWwdLlKfGN3uwplCNEkb/c9xAilhWPjoOUY4g==
X-Received: by 2002:adf:9482:: with SMTP id 2mr36464179wrr.91.1567438435907;
 Mon, 02 Sep 2019 08:33:55 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.55
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:55 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 13/48] gnu: icu4c: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:58 +0200
Message-Id: <20190902153333.11190-14-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/icu4c.scm (icu4c-build-root): New variable.
(icu4c)[native-inputs]: Add it.
[arguments]: Pass it as a configure-flag.
---
 gnu/packages/icu4c.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 922dfbd348..c70871f7e7 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Clément Lassieur <clement@HIDDEN>
 ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@
   #:use-module (gnu packages python)
   #:use-module (guix licenses)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system ant)
   #:use-module (guix build-system gnu))
@@ -70,13 +72,23 @@
             (sha256
              (base32 "0v0xsf14xwlj125y9fd8lrhsaych4d8liv8gr746zng6g225szb2"))))
    (build-system gnu-build-system)
+   ;; When cross-compiling, this package needs a source directory of a
+   ;; native-build of itself.
    (native-inputs
-    `(("python" ,python-minimal)))
+    `(("python" ,python-minimal)
+      ,@(if (%current-target-system)
+            `(("icu4c-build-root" ,icu4c-build-root))
+            '())))
    (inputs
     `(("perl" ,perl)))
    (arguments
     `(#:configure-flags
-      '("--enable-rpath")
+      (list
+       "--enable-rpath"
+        ,@(if (%current-target-system)
+              '((string-append "--with-cross-build="
+                                (assoc-ref %build-inputs "icu4c-build-root")))
+              '()))
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'chdir-to-source
@@ -105,6 +117,25 @@ C/C++ part.")
    (license x11)
    (home-page "http://site.icu-project.org/")))
 
+(define-public icu4c-build-root
+  (package
+    (inherit icu4c)
+    (name "icu4c-build-root")
+    (arguments
+     (substitute-keyword-arguments (package-arguments icu4c)
+       ((#:tests? _ '())
+        #f)
+       ((#:out-of-source? _ '())
+        #t)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let ((out (assoc-ref outputs "out")))
+                 (copy-recursively "../build" out)
+                 #t)))))))
+    (native-inputs '())))
+
 (define-public java-icu4j
   (package
     (name "java-icu4j")
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:09 2019
Received: from localhost ([127.0.0.1]:58721 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLE-0006RD-VC
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:09 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:34196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL9-0006P1-MS
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:02 -0400
Received: by mail-wm1-f66.google.com with SMTP id y135so10149751wmc.1
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=iuXs1KR+SYXViEeS/rJH9BUU5Wfs75GDGiD2Uw5o7kM=;
 b=vNlQG8Ky7Fz1rgFO2ywSZqssF4BR2GoiLxpI/VxRgbQbLGwRCmh7k9/ekeSYSncL6w
 PDcVS1fivrNVXV+/HvErHVidHfPoNSWVTISYIirSTe85m+jHKraWE4K95C3FRvES94MK
 E/LeeDy5xRRaTrWVMRorQFGn8CdS3B+tSLHHcMIvzkl/GD6eJipZztbcXa/eAmh5OCLB
 NRSwte6rIr5IBwv3bceqONqYqW6hK2n+vzfX464y2I0CEqvu24lsXZZGjICgWYeoc01h
 1NgDHHmv+W+mum3Gll5g+xSSWPChWN/s5/cQe+csWgOJ6IkjuGwHUNLpHhVuvDyqmPYG
 02ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=iuXs1KR+SYXViEeS/rJH9BUU5Wfs75GDGiD2Uw5o7kM=;
 b=YWRWSEnF5NgYo61SMcFlFsr2p7lNZ9pj8Y/+2/hT2zlJ5v5IExuxyuteVZqdiwrmVz
 T/8hCiSGvtRWbEEMncc4Y93VWY++R/JyeQMa4LIZH1gulw7x9j1XfPc5jDQHnRyFf7Wm
 e6PihMgu7TsreAgeE4Ba+khGAYeyp0pnAKyRDCWYC5tpVTK/CmMHvGdkHrBjGVBdKG7O
 1cSKqBO7UKJJugt8dzSeQvpWIEo3D/Gkdwr9V3NymCtluID58qLQAShv15fPuE7uRF/t
 1pjwqs1mbDmQF9ExBxzvzmXptguC5ERqF8qIJnzz2DlxdN/y+tDZFWFHBjXsCjrtErJj
 ibog==
X-Gm-Message-State: APjAAAUbHs04ZYAwynNwIXwmWOmUCXUhcbtmITYCYJUGQICxkKlDic9P
 b0Bhh378tu0WhJvnpPelthEFWGzu
X-Google-Smtp-Source: APXvYqxmXNa309ctsFhih8zU+/OqumiyiIpnddiMH1/s0DXKYzObrRa7cIlZDIJCasT3rym4unqqeA==
X-Received: by 2002:a1c:e709:: with SMTP id e9mr1359562wmh.65.1567438433908;
 Mon, 02 Sep 2019 08:33:53 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:53 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 11/48] gnu: cyrus-sasl: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:56 +0200
Message-Id: <20190902153333.11190-12-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[origin]: Apply it.
[native-tools]: Add autoconf, automake and libtool.
[arguments]: Run autoconf to apply m4 modification in patch above.
---
 gnu/local.mk                                    |  1 +
 gnu/packages/cyrus-sasl.scm                     | 17 +++++++++++++++--
 .../patches/cyrus-sasl-ac-try-run-fix.patch     | 12 ++++++++++++
 3 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 0bfde340ec..3550479ae6 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -752,6 +752,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/cube-nocheck.patch			\
   %D%/packages/patches/cursynth-wave-rand.patch			\
   %D%/packages/patches/cvs-CVE-2017-12836.patch		\
+  %D%/packages/patches/cyrus-sasl-ac-try-run-fix.patch		\
   %D%/packages/patches/darkice-workaround-fpermissive-error.patch	\
   %D%/packages/patches/dbus-helper-search-path.patch		\
   %D%/packages/patches/dbus-c++-gcc-compat.patch		\
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index f84136e631..3e65a1faf6 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2013 Andreas Enge <andreas@HIDDEN>
 ;;; Copyright © 2016 Leo Famulari <leo@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,6 +21,7 @@
 
 (define-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages dbm)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages tls)
@@ -41,8 +43,13 @@
                         "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-"
                         version ".tar.gz")))
             (sha256 (base32
-                     "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6"))))
+                     "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6"))
+            (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch"))))
    (build-system gnu-build-system)
+   (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
    (inputs `(("gdbm" ,gdbm)
              ("openssl" ,openssl)))
    (propagated-inputs
@@ -57,7 +64,13 @@
       ;; 'plugin_common.c'.  When building the shared libraries there, libtool
       ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can
       ;; fail with EEXIST when building things in parallel.
-      #:parallel-build? #f))
+      #:parallel-build? #f
+
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'autogen
+          (lambda _
+            (invoke "autoreconf" "-vif"))))))
    (synopsis "Simple Authentication Security Layer implementation")
    (description
     "SASL (Simple Authentication Security Layer) is an Internet
diff --git a/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
new file mode 100644
index 0000000000..8662e812e9
--- /dev/null
+++ b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
@@ -0,0 +1,12 @@
+--- a/m4/sasl2.m4	2018-11-18 22:33:29.902625600 +0300
++++ b/m4/sasl2.m4	2018-11-18 22:33:59.828746176 +0300
+@@ -339,7 +339,8 @@
+ ],	
+ 	[ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO])
+ 	AC_MSG_RESULT(yes) ],
+-	AC_MSG_RESULT(no))
++	AC_MSG_RESULT(no),
++    AC_MSG_RESULT(no))
+   LIBS="$cmu_save_LIBS"
+ 
+ else
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:05 2019
Received: from localhost ([127.0.0.1]:58717 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLE-0006R1-G6
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:04 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:33343)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oLA-0006PM-Ox
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:02 -0400
Received: by mail-wr1-f67.google.com with SMTP id u16so14480038wrr.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=nXYw+zN9bYBenszDgLFfhduj1r7/E4Vvk+eezGBCloI=;
 b=fsW1xnjinJ5/beDFqLwk0jPxa/j6WdDCjma9pnM9LBhPbwBm/UAhILcAjhOTdnbX0Q
 83dY026QXRbZSQ/iEaI+pxZ/XHCd+1kvFfvDxQDpaFPUi9EKjvy6YiFLk+zLOlMvBfeo
 bKLlFoQNgIo6dTxzBEAu2+wD39iUA8SP0jz8Ka0s8YfPqsJqPzmDDzhbZGvf8/CHkKRL
 7mXLi7K8DSsWrDK16DwEzi7q70t3NJTpvk9HeCakgVsRzxHUIyElap1Qkj7FrTE1fyOI
 iIWC8yCXiPiUdyS3sm3Z0rR73RNPHMKrVEQDkQ4FnHdaZBKxTsSnzJMV+vI7Krqrz7E1
 Va6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=nXYw+zN9bYBenszDgLFfhduj1r7/E4Vvk+eezGBCloI=;
 b=Th1Hhccas0ovSJMWmr7m7i/2vj27Y3gM/Sly+vPrnpm+Ciyoj+/J6NGHjWjHJDF1zM
 rbdkpZPMaoTbUkFWFWlhzRqVQk3B/x8nCeR4bpZ/GDpa6kc5dCx4SFCZ2qHyE9snQDJz
 SJzwEi72Y7rxWyJUn94yB/xAwxEcvJ5yaNpDG6tvA535nXuk7LQopfvwItVy3QwEseCj
 sBPdT6G/k0SvxHvh/Z3C5jtOZ11N2exr24qLUU76qYQdmg0ePy6d4wJ1oCHJ2/teKiGu
 y9rmg0EK6ZYLeT/jIJiUR2lfxIaf/TNwMLxFtMl7TFGcnVYCaIlKH4+7y3w3bF4z3whl
 5sKQ==
X-Gm-Message-State: APjAAAVlJ9JBLYuKn6gVkoZRSKcukrNwzOGDvZgcvMka2iEFsM90HwTi
 BES0pwed2s6MBs857uO3Wt4fJn3v
X-Google-Smtp-Source: APXvYqwVwIoyToYY4C8QFYmCJWoe546RZ8q+78BB1csvF/4z08so/iYPveR8uN4/tcnbbOfwVrpeig==
X-Received: by 2002:a5d:5642:: with SMTP id j2mr12633755wrw.345.1567438434971; 
 Mon, 02 Sep 2019 08:33:54 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:54 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 12/48] gnu: mkfontdir: Fix aarch64 cross-compilation.
Date: Mon,  2 Sep 2019 17:32:57 +0200
Message-Id: <20190902153333.11190-13-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

The packaged config.sub and config.guess do not have aarch64 support. Replace
them by the ones from automake.

* gnu/packages/xorg.scm (mkfontdir)[arguments]: Replace outdated config.sub and
config.guess, by the ones taken from ...
[native-inputs]: ... here, by adding automake.
---
 gnu/packages/xorg.scm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index d7cd585664..d5d983a8d2 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2018 Benjamin Slade <slade@HIDDEN>
 ;;; Copyright © 2019 nee <nee@HIDDEN>
 ;;; Copyright © 2019 Yoshinori Arai <kumagusu08@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4742,8 +4743,21 @@ protocol and arbitrary X extension protocol.")
             "0c3563kw9fg15dpgx4dwvl12qz6sdqdns1pxa574hc7i5m42mman"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-configure
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
+             ;; Replace outdated config.sub and config.guess:
+             (for-each (lambda (file)
+                         (install-file (string-append
+                                        (assoc-ref
+                                         (or native-inputs inputs) "automake")
+                                        "/share/automake-"
+                                        ,(version-major+minor
+                                          (package-version automake))
+                                        "/" file) "."))
+                       '("config.sub" "config.guess"))
+             #t))
          (add-after 'install 'wrap-mkfontdir
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (wrap-program (string-append (assoc-ref outputs "out")
@@ -4755,7 +4769,8 @@ protocol and arbitrary X extension protocol.")
     (inputs
       `(("mkfontscale" ,mkfontscale)))
     (native-inputs
-      `(("pkg-config" ,pkg-config)))
+     `(("pkg-config" ,pkg-config)
+       ("automake" ,automake))) ;For up to date 'config.guess' and 'config.sub'.
     (home-page "https://www.x.org/wiki/")
     (synopsis "Create an index of X font files in a directory")
     (description
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:04 2019
Received: from localhost ([127.0.0.1]:58714 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLD-0006Qo-Pu
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:04 -0400
Received: from mail-wm1-f41.google.com ([209.85.128.41]:39603)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL8-0006Ot-IP
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:01 -0400
Received: by mail-wm1-f41.google.com with SMTP id n2so13669529wmk.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=mY2FkG0vR4e3pmvL4B5XN1RoOZdmfFqkodnWOUzt9Aw=;
 b=NUwPfWd2sT0do4ZRpiH/Lf1GUC9eWqAp4VU+YupwCJ5IyqwI3IROvq9dXMaSUXGe5v
 LCKDaONRpGj0XbpNcgqyG4IPuXJ0ZZmotxwmq3xjxVXcvU5kvtNyhWVze4b0xBYg1IBs
 nf3D2n+S9qGxEfhH3opbPteZ8M2TKN/6PULBWFYsXM120ngGkQyU+AsYy4rPQn92yQr/
 ckWCsVdwAeIU8StDEF0iP5jgj2vBDsQO0L53lWRI83XWndGsmSAwK6J+MH2bZHVm9uz1
 vznpVmIQlq+6UC4qHwEgTGFtVM3aPtoHILKey/9xJvaygRFTOOmOefaTnVtxGoTYBN+O
 YlOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=mY2FkG0vR4e3pmvL4B5XN1RoOZdmfFqkodnWOUzt9Aw=;
 b=oiYmTCKKuDhUDVb1vZ3HnojgSXZ0HDBk1PfM8KMe/hOqavV9tEpPD5z1Q6WYrI/txM
 SSnz7tT2RTgIq7UqXxqCEs9fww6ff/O8VjtqKgQfc0XHw+KqJBvmMDh8RDMOve6B82yI
 SZOC59u1e3W46qKOfHk+jPVWNNIlPG+uM2jQz3InDjhyDF5WHspU0LlYmq56hEovzxYn
 EPH5VReCRoHEnOP3Rcnw/5j4gOzmPyVNT/prEfEyioE/X2IeQxuKFYD7mWoX/keGMgG2
 R27u+nYgn+38siKLItvxIB90iMBPhaUr7SJoXeD6gAc8Rm4mutmx65t9CCEWlJ4JHxFN
 Jn0w==
X-Gm-Message-State: APjAAAVpKOr+jbz82/zEkuWzGJhHw6Oi25bTLvEy8cAqb355PLP1FXDw
 x764RcZEB3JVE8CeKrg1yu9coEwK
X-Google-Smtp-Source: APXvYqzXY7FEsxKR8+mVfsksG85RO6ObMsFEiiqxJdGu5GxPZHfxabIXZXmjjVEicC+d6B7CttnzSg==
X-Received: by 2002:a1c:f604:: with SMTP id w4mr36899776wmc.169.1567438432710; 
 Mon, 02 Sep 2019 08:33:52 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:52 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 10/48] gnu: libsamplerate: Fix aarch64 cross-compilation.
Date: Mon,  2 Sep 2019 17:32:55 +0200
Message-Id: <20190902153333.11190-11-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

The packaged config.sub and config.guess do not have aarch64 support. Replace
them by the ones from automake.

* gnu/packages/pulseaudio.scm (libsamplerate)[arguments]: Replace outdated config.sub and
config.guess, taken from ...
[native-inputs]: ... here, by adding automake.
---
 gnu/packages/pulseaudio.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm
index ff4049d707..89773d8be2 100644
--- a/gnu/packages/pulseaudio.scm
+++ b/gnu/packages/pulseaudio.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Pierre Langlois <pierre.langlois@HIDDEN>
 ;;; Copyright © 2019 Alex Griffin <a@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29,6 +30,7 @@
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix l:)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
@@ -102,10 +104,28 @@ for reading and writing new sound file formats.")
                "1ha46i0nbibq0pl0pjwcqiyny4hj8lp1bnl4dpxm64zjw9lb2zha"))))
     (build-system gnu-build-system)
     (native-inputs
-     `(("pkg-config" ,pkg-config)))
+     `(("pkg-config" ,pkg-config)
+       ("automake" ,automake))) ;For up to date 'config.guess' and 'config.sub'.
     (propagated-inputs
      `(("libsndfile" ,libsndfile)
        ("fftw" ,fftw)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-configure
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
+             ;; Replace outdated config.sub and config.guess:
+             (with-directory-excursion "Cfg"
+               (for-each (lambda (file)
+                           (install-file (string-append
+                                          (assoc-ref
+                                           (or native-inputs inputs) "automake")
+                                          "/share/automake-"
+                                          ,(version-major+minor
+                                            (package-version automake))
+                                          "/" file) "."))
+                         '("config.sub" "config.guess")))
+             #t)))))
     (home-page "http://www.mega-nerd.com/SRC/index.html")
     (synopsis "Audio sample rate conversion library")
     (description
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:03 2019
Received: from localhost ([127.0.0.1]:58711 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLD-0006Qf-9h
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:03 -0400
Received: from mail-wm1-f51.google.com ([209.85.128.51]:55015)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL7-0006Og-IG
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:01 -0400
Received: by mail-wm1-f51.google.com with SMTP id k2so13606233wmj.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=J4EVlF9NjWGdbp6RUKSnrF114qb0famxMcdmDQ4iU10=;
 b=iCiKAyELlxozG5QbUbb6nWD76oWlcCEnzcNpSw3EvXcnpbpMruoizYzU1657SYi5GR
 5yz1m6xBq/pH87I0SuxeydGAMoVKhknbChJqJBJJrodvAGP5GC87ncKq3afzuVRVSaml
 OuMZ3CDa20BPFydLpV4NYcviKfdDGhZgTYGg0VhlKRCh2MIQD3CVTpvZkoaHXcLiovtx
 Cgf3I/F03VbEPgrsZkHgqL6dV2jCY9HvA+OWeoFXCY5kedoHpSNIsIxawSItXghPWMTd
 /XWGXKemqtXRz+vpuRB24xe2Yn7Y1mAUfPPQrqToSmT2DSictSUvQ2WaappauFhq0InE
 tvJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=J4EVlF9NjWGdbp6RUKSnrF114qb0famxMcdmDQ4iU10=;
 b=fJ0ShB+j6RVpq/Ml4Zj7B82A6gt9UbU6LGGA3evlYf8ooc7x9WCKWX9LIeTQyW+ybr
 bkNvt9o7OS1LY2izR/ay03IF77jBqpWycad+c8zZt7si+wFhL1+PngDWFXe97z2pF6UI
 uqKouzKFkusMeJbPJueukFg5bi5RM+wNFEF9I+R2+00zOB+MmI/BiHFlTnCqar6Fzxlf
 d0cdry76HNSNbsrWqysZzUtuXKRhL0eGEMDmz9zg8gtqvNh1l7GAdHVYMp6zFAko+GSP
 UEwDcrDqrKRf5mkoPIkXUQZofkmzLv8YqeZGpiYbk7hqcZWWQowJc5vJ6qAhz4sMqPZ0
 JwQA==
X-Gm-Message-State: APjAAAWv6pnttPNbaipwkw9foTi+PpVzL2lUz5BOUSCIIWLYYU9DlEsg
 FbZhNznwzH0v/KOBuhvBjQbwI3nJ
X-Google-Smtp-Source: APXvYqwxRadX6kQBeLzMMYehVUcTWXkvKEEygy2GZg9Ji3BTo7syzYXDwkjERS4J0uB1t3lp5mlOXg==
X-Received: by 2002:a1c:4383:: with SMTP id q125mr37634036wma.16.1567438431736; 
 Mon, 02 Sep 2019 08:33:51 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.50
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:51 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 09/48] gnu: indent: Fix aarch64 cross-compilation.
Date: Mon,  2 Sep 2019 17:32:54 +0200
Message-Id: <20190902153333.11190-10-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

The packaged config.sub and config.guess do not have aarch64 support. Replace
them by the ones from automake.

* gnu/packages/code.scm (indent)[arguments]: Replace outdated config.sub and
config.guess, taken from ...
[native-inputs]: ... here, by adding automake.
(indent-2.2.12)[native-inputs]: Inherit from indent native-inputs to keep
automake that is added above.
---
 gnu/packages/code.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 13e2c4ad44..50d6870bc7 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -29,6 +29,7 @@
 
 (define-module (gnu packages code)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
@@ -644,9 +645,24 @@ the C, C++, C++/CLI, Objective‑C, C#, and Java programming languages.")
             ;; overrides this to be in PREFIX/doc.  Fix this.
             (substitute* "doc/Makefile.in"
               (("^docdir = .*$") "docdir = @docdir@\n"))
+            #t))
+        (add-after 'unpack 'fix-configure
+          (lambda* (#:key inputs native-inputs #:allow-other-keys)
+            ;; Replace outdated config.sub and config.guess:
+            (with-directory-excursion "config"
+              (for-each (lambda (file)
+                          (install-file
+                           (string-append (assoc-ref
+                                           (or native-inputs inputs) "automake")
+                                          "/share/automake-"
+                                          ,(version-major+minor
+                                            (package-version automake))
+                                          "/" file) "."))
+                        '("config.sub" "config.guess")))
             #t)))))
    (native-inputs
-    `(("texinfo" ,texinfo)))
+    `(("texinfo" ,texinfo)
+      ("automake" ,automake))) ; For up to date 'config.guess' and 'config.sub'.
    (synopsis "Code reformatter")
    (description
     "Indent is a program that makes source code easier to read by
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:02 2019
Received: from localhost ([127.0.0.1]:58707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oLA-0006Pk-VO
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:02 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:35298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL5-0006OC-7p
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:55 -0400
Received: by mail-wm1-f68.google.com with SMTP id n10so4385981wmj.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=QgEosa+JuN/2tF/22Iuzgl9bBc6yclBToJTHYX3YTKw=;
 b=W8sPHhZNIYpOrdJKgticr1jtEm/fc+zUI71B48X7IPxheqcKUtL3EYeRDLAt5bo4bE
 nHRgRdNHTin1JMBx+jZ8pzMIg05ox8/yTq72U90Y480KkerkOhtx8GxqnUsdLBcPoAOs
 VILcCRAFG22XVceqZTFYSdeCaQPYh+tBPmOyAwGo849aVBxcTyvI9XBokFO6AItUaxYq
 A6QjHzAY+rwcY3z6E33P7T+pCcRsWB5xOUT5JRy9MUo2EnjmkM2XM+HZOuG8PnOqFF69
 yk6NXJl3b/NKfA5MLXnieXq/eMlcFh/o29f5Za5/4QseaRSK/uz+tOfqUiiburngy691
 AONQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=QgEosa+JuN/2tF/22Iuzgl9bBc6yclBToJTHYX3YTKw=;
 b=OV0fQ8uFnYWDFi0LLsUXI9i459k4ZJ3iSWqQ+G+7yW7Y9nkjXFykyTZRDPRt5XzhF2
 f4+QGvBbUgrhX9AxaLZSCtS4v3fZvGbLEbeAYlw7Cas+XSnoeipPZ1OlHXM1dPa/aFj2
 k/VNQFtWl/wyOfx4z9Y37Spou/gXbJyKGq6N94qkSPVaNADsRKGFvf2zk8P2FViSSo5T
 mikWnV9j2+6zUNNdnqta2Q6cTABJI5Kos/nCe+7xVrSguPmG+IP7g+9gyIASa+DrcwbZ
 J+PhuRViKNfUl1FwRXQynRAKUWpbA2vWNfwNSvJeHveW9Jp7R+f/NZR1FQ3tsQFneWcW
 1RcQ==
X-Gm-Message-State: APjAAAXjY/wAwJ+Lg5FnlE9/92OY6BQBev+cx9EwbyUu7/dWeVm9G4r0
 cgJtRvgtCTLN3TUSwjsGcnNJixy+
X-Google-Smtp-Source: APXvYqxDtBnt/h+pdLYR0DExMXj7oRs+vcRSdkxCQ/RNvvAj+zyfSpnHWVFta/mm6Wzv5M5V7xNo+Q==
X-Received: by 2002:a1c:6a0b:: with SMTP id f11mr34075299wmc.87.1567438429511; 
 Mon, 02 Sep 2019 08:33:49 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.48
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:49 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 07/48] gnu: texinfo-5: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:52 +0200
Message-Id: <20190902153333.11190-8-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/texinfo.scm (texinfo-5)[native-inputs]: Keep
native-inputs from inherited package texinfo.
---
 gnu/packages/texinfo.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index c93c7fc353..19f87a4de9 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014, 2016 Eric Bavier <bavier@HIDDEN>
 ;;; Copyright © 2015 Mark H Weaver <mhw@HIDDEN>
 ;;; Copyright © 2017 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -91,8 +92,7 @@ is on expressing the content semantically, avoiding physical markup commands.")
               (patches (search-patches "texinfo-5-perl-compat.patch"))
               (sha256
                (base32
-                "1njfwh2z34r2c4r0iqa7v24wmjzvsfyz4vplzry8ln3479lfywal"))))
-    (native-inputs '())))
+                "1njfwh2z34r2c4r0iqa7v24wmjzvsfyz4vplzry8ln3479lfywal"))))))
 
 (define-public texinfo-4
   (package (inherit texinfo)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:34:00 2019
Received: from localhost ([127.0.0.1]:58701 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL6-0006PZ-Kq
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:34:00 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:34863)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL4-0006O5-BN
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:54 -0400
Received: by mail-wr1-f68.google.com with SMTP id g7so14485624wrx.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=MLoKM26KiDKSQJBPaWe+0gl5V43a258D4sP2wVkGi5c=;
 b=E+h2QSkwjPskIoMy9bj8dAvs+Ug0aVLWT/oXnq5DjtUtGw0AfoqT7+MIa31+uUJ+MH
 Mgqu2bskKIWPioc9o4oBGU5mTqSLsAnDUYdCJUnDmDo+iU7Qi662wZUhl3LeMTEag4Al
 egww1gqcWX/+LaR17gjSBBNqrCp12HuIrSbVO4f/qXpLXG7iqj5gX9QEDepMujH5fW8F
 wSF0+uWAtqFwzKkOpYUn/dfbCt0/+OsPjIRhEHOeHp/dQCdYB7YPslCAMxp5K/cBTxpV
 LDroI8rl5dx7ao6GnVXBncwmXM2mWSP3kLWp2OUfQmfdsKpYQoqy5G4T8XRM1l5UAJ1M
 k8AQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=MLoKM26KiDKSQJBPaWe+0gl5V43a258D4sP2wVkGi5c=;
 b=Wtlmo0850xf0mI/NstGV6tVF6IGDp1BvnTimUw6heWQmmJPzId7IkjqyMcmqlNPUNh
 t3oG8tvtlBEuSmDATDASEscdG6zCJ/TAatmU78tdCmamsARiG8mYEOCDzzovVc/q65bw
 i6nXuzO4yRkYgtKSiRAyYzwIREm44qSlHeLppkJXyrFxE1wlcSNS40ixbOrcL0VFPsx4
 Jyk9FATfJ0/a4w1KTTgt3mHbqVbEq+0h5y0B4hEffh7CSjjMMxUFOi1xIY2WZ2BPB/At
 tX7yf/QDoWZboMUV4vEA+vn113AilUmpFIp+iXC3w10cz/DCcPS1wG869v7NHKLX4/2v
 TAqA==
X-Gm-Message-State: APjAAAXiI0z5Z8s/4EVsQ0oG0BmxCCKmLAbi6yROHG9BWYklImz4A8RE
 LjDgjRtfw0RBl1Y4Q4pHb9uUHqdZ
X-Google-Smtp-Source: APXvYqxSQaigKSHLAB6IqS3kLw+eRxhZZvCyN5DDCAc5zNVY6gbgaEkD/m0Fe97GBeVaFmlH2M58mg==
X-Received: by 2002:a5d:5387:: with SMTP id d7mr20529868wrv.312.1567438428510; 
 Mon, 02 Sep 2019 08:33:48 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:48 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 06/48] gnu: groff: Fix cross compilation.
Date: Mon,  2 Sep 2019 17:32:51 +0200
Message-Id: <20190902153333.11190-7-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/groff.scm (groff)[arguments]: Replace build phase to pass
GROFF_BIN_PATH and GROFFBIN variables when cross-compiling.

Also add native groff as a native-input when cross-compiling.
---
 gnu/packages/groff.scm | 40 +++++++++++++++++++++++++++++++++++++---
 1 file changed, 37 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/groff.scm b/gnu/packages/groff.scm
index 98f17914bf..65b661cd79 100644
--- a/gnu/packages/groff.scm
+++ b/gnu/packages/groff.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2019 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2019 Eric Bavier <bavier@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -55,7 +56,13 @@
    ;; from 'inputs'.
 
    (inputs `(("ghostscript" ,ghostscript)))
-   (native-inputs `(("bison" ,bison)
+
+   ;; When cross-compiling, this package depends upon a native install of
+   ;; itself.
+   (native-inputs `(,@(if (%current-target-system)
+                          `(("self" ,this-package))
+                          '())
+                    ("bison" ,bison)
                     ("perl" ,perl)
                     ("psutils" ,psutils)
                     ("texinfo" ,texinfo)))
@@ -94,7 +101,33 @@
           (lambda _         ;see https://savannah.gnu.org/bugs/index.php?55461
             (substitute* "Makefile.in"
               (("^docdir =.*") "docdir = @docdir@\n"))
-            #t)))))
+            #t))
+	,@(if (%current-target-system)
+              '((replace 'build
+		  (lambda* (#:key
+			    make-flags parallel-build?
+			    native-inputs target #:allow-other-keys)
+		    ;; When cross-compiling, native groff is needed, see:
+		    ;; http://www.mail-archive.com/bug-groff@HIDDEN/msg01335.html
+		    (let ((parallel
+			   (if parallel-build?
+			       `("-j" ,(number->string (parallel-job-count)))
+			       '()))
+			  (flags
+			   (if target
+			       (let ((groff (or
+					     (assoc-ref native-inputs "groff")
+					     (assoc-ref native-inputs "self"))))
+				 (append
+				  make-flags
+				  (list
+				   (string-append "GROFF_BIN_PATH=" groff)
+				   (string-append "GROFFBIN=" groff
+						  "/bin/groff"))))
+			       make-flags)))
+		      (apply invoke `("make" ,@parallel ,@flags)))
+		    #t)))
+              '()))))
    (synopsis "Typesetting from plain text mixed with formatting commands")
    (description
     "Groff is a typesetting package that reads plain text and produces
@@ -115,7 +148,8 @@ is usually the formatter of \"man\" documentation pages.")
     ;; Omit the DVI, PS, PDF, and HTML backends.
     (inputs '())
     (native-inputs `(("bison" ,bison)
-                     ("perl" ,perl)))
+                     ("perl" ,perl)
+                     ("groff" ,groff)))
 
     (arguments
      `(#:disallowed-references (,perl)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:55 2019
Received: from localhost ([127.0.0.1]:58697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL5-0006PG-7o
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:55 -0400
Received: from mail-wm1-f46.google.com ([209.85.128.46]:55624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL3-0006Ny-Bq
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:53 -0400
Received: by mail-wm1-f46.google.com with SMTP id g207so11067381wmg.5
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=uEJlu+nj8wYQv4Io36GWgKbWiTaW16j8T1ZQciMpFfY=;
 b=jD5LiqqgN8c2O0XixAlCQqsG8N7mgWvB6Sv0Ux/2mqI8cCT6sAj5rpzEwE4tjkz46d
 heUO4n58mRa+HauNUP6KPFEjFMJR26nWXylh5YEtJB3nlMC6KA6p8sh26nSSyjMUDkN8
 0cM38ivalf9eff5s5ZcS2CIzgT762SSgiKQa2fnqW6Nryi+DJGKzniEbwx46BcrZAR3m
 z+Eb2QBbaLWOtA5NB6bbGnbjqyQ5KDkvc+Y3lh2uuQWtkCtVuw+iw1M3VEks5cz1AiX4
 tQI1mfsTGv4SyIfTX7VNQ+sgDjSIPNSeIsM3ye4S7mlBxoNGHyJ0a9+PkyxgB6hauPz0
 yKpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=uEJlu+nj8wYQv4Io36GWgKbWiTaW16j8T1ZQciMpFfY=;
 b=Dw25F8jM0nIwCJxtFARYSTFouq5TsSdMoPEAAb4oWUv2yvgKQbvBEg+wxWkoZSsXT9
 +DIwXQ215cygStKFRGGLqqK6j1zxYB8fzYbaiTOr+JcVl0EnZsoJEvas9Exn4XfYCAWC
 BKiHYtM+HTl7UFDtKgkqlcuuI0uigdKw06km5L4Xhd6I8JhtqrYYhLuWvX1VpNy7EAE5
 aX1q1mPRNYRNX29/zma+1WsGBGHWgthqNUfygIAJLks6AH0kEpFlnlgwQ6DV/E3Y15qX
 oGzaYHVCIAe25NFA+6MK5f1myG99U9xhY22SoZWMINNN3/x3BAev8XwtPI47MY4q6chV
 lVfw==
X-Gm-Message-State: APjAAAUeXxDAw14b/9q8zcwMr/J0l/XjJD0vHwml2ryHlD5gzEFKZvKz
 Of6kgE012t6qs6pTxL9SXywx6RYi
X-Google-Smtp-Source: APXvYqyYD5izd6yfN4kqKEKg0I6DwgF/FFXccIvzK5vwiTBo6P9p18jslSmy60MMe7IMKbUMEFTinQ==
X-Received: by 2002:a7b:c0d4:: with SMTP id s20mr8634626wmh.110.1567438427528; 
 Mon, 02 Sep 2019 08:33:47 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:47 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 05/48] gnu: libpaper: Fix aarch64 cross-compilation.
Date: Mon,  2 Sep 2019 17:32:50 +0200
Message-Id: <20190902153333.11190-6-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

The packaged config.sub and config.guess do not have aarch64 support. Replace
them by the ones from automake.

* gnu/packages/ghostscript.scm (libpaper)[arguments]: Replace outdated config.sub and
config.guess, taken from ...
[native-inputs]: ... here, by adding automake.
---
 gnu/packages/ghostscript.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 817104cde1..e6879eada9 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2017 Leo Famulari <leo@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -84,6 +85,24 @@ Consortium standard (ICC), approved as ISO 15076-1.")
             (sha256 (base32
                      "0zhcx67afb6b5r936w5jmaydj3ks8zh83n9rm5sv3m3k8q8jib1q"))))
    (build-system gnu-build-system)
+   (native-inputs
+    `(("automake" ,automake))) ; For up to date 'config.guess' and 'config.sub'.
+   (arguments
+    `(#:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'fix-configure
+          (lambda* (#:key inputs native-inputs #:allow-other-keys)
+            ;; Replace outdated config.sub and config.guess:
+            (for-each (lambda (file)
+                        (install-file
+                         (string-append (assoc-ref
+                                         (or native-inputs inputs) "automake")
+                                        "/share/automake-"
+                                        ,(version-major+minor
+                                          (package-version automake))
+                                        "/" file) "."))
+                      '("config.sub" "config.guess"))
+            #t)))))
    (synopsis "Library for handling paper sizes")
    (description
     "The paper library and accompanying files are intended to provide a simple
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:55 2019
Received: from localhost ([127.0.0.1]:58695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL4-0006P4-PH
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:55 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:37210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL2-0006Nw-Bq
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:52 -0400
Received: by mail-wm1-f66.google.com with SMTP id d16so15056526wme.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=veZqU6dWskdofP94vEQ2ligOZQWONzY/eLOoYY8WvdA=;
 b=i3UwzybfNlhfZs+KPVKjQVO8uqycfZaVTQ2xkkBqWuXe0CJcJw0+hj69qjYqPlXhKq
 Fh7WUlxyHnI/RJEI10ZX8RMMm/p86GWAMaBaIMXbxFiEmYIIzQPnWiAIKeu0J8Xc6Nur
 6zxemd0GpNHtdz+MvXsVtO48ivaP5/y3Q9p/fYsy52WWJ6Ufqg0u3ZRnEI8Bfpo+CniW
 H7yoQk3Qjtf0S6qo+QpLm9SV9NiPP7+S2u53PNxWYfwwXBsYCOeHJ77a+ajhlMRZAB9v
 OFFXPc0Xt5MParOzTpMbIeZnxDYql7v0zp+2FVt2vAmyJC0skEIFSNNVBUYAR7dREigh
 VLow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=veZqU6dWskdofP94vEQ2ligOZQWONzY/eLOoYY8WvdA=;
 b=MkV3mJzpDpi34upAb9k5Ax9GR02sSqCCCxom+sWConlaYpcgd6+8ed1QLoNAb0cakA
 fWXfBLy2uE8pXsyYOmFK+SY7e28mK2C6VjxtTZovcWNZStWJD1bobTsVkHfD6UX//tdt
 WzrAz+i6lkCNYer/uzEqXD+pSSaJ025WlDPcPoA3SDpGxukhGmPy9EsxngZ7SgaiJn/D
 cfsn7Rq/jsKBBBdI8V8hnGAsHC/0AewjG2W6DtFRhXkd9b8xCc9A3EEHbFjkBndjQKGQ
 QXNS/FjxXNmmB26dqEK1Eidb4KspXOg2zKar/G+BFBCYSodMOio4O0NooR86JBtsV3/O
 QOAA==
X-Gm-Message-State: APjAAAUoTrExZhBsbIZyrdcYqBx8RxyvskFhy1VG7swDmuvDZ2VR1xNm
 W90PrAHG+6JtXi+DXu8ieZ4QElJo
X-Google-Smtp-Source: APXvYqwPl8jblMAbmIrQVtH9XlFWcz8pu8FVxo+H8vkXoppEN3Vx2AwobJFhADnmvOlr6RMSo/aXog==
X-Received: by 2002:a7b:cbcf:: with SMTP id n15mr36984389wmi.48.1567438426538; 
 Mon, 02 Sep 2019 08:33:46 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:46 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:49 +0200
Message-Id: <20190902153333.11190-5-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/cmake.scm (cmake-minimal-cross): New package.
* guix/build-system/cmake.scm (default-cmake): Add new target argument and use
it to select cmake-minimal or cmake-minimal-cross.
(lower): Pass target to default-cmake.
---
 gnu/packages/cmake.scm      | 8 ++++++++
 guix/build-system/cmake.scm | 9 ++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 1d8d829ec5..9bf0273f00 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -207,6 +207,14 @@ and workspaces that can be used in the compiler environment of your choice.")
     (outputs '("out" "doc"))
     (properties (alist-delete 'hidden? (package-properties cmake-minimal)))))
 
+(define-public cmake-minimal-cross
+  (package
+    (inherit cmake-minimal)
+    (name "cmake-minimal-cross")
+    (native-search-paths '())
+    (search-paths
+     (package-native-search-paths cmake-minimal))))
+
 (define-public emacs-cmake-mode
   (package
     (inherit cmake)
diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index ca88fadddf..aa0f4187ec 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -43,16 +43,19 @@
   `((guix build cmake-build-system)
     ,@%gnu-build-system-modules))
 
-(define (default-cmake)
+(define (default-cmake target)
   "Return the default CMake package."
 
   ;; Do not use `@' to avoid introducing circular dependencies.
   (let ((module (resolve-interface '(gnu packages cmake))))
-    (module-ref module 'cmake-minimal)))
+    (module-ref module
+                (if target
+                    'cmake-minimal-cross
+                    'cmake-minimal))))
 
 (define* (lower name
                 #:key source inputs native-inputs outputs system target
-                (cmake (default-cmake))
+                (cmake (default-cmake target))
                 #:allow-other-keys
                 #:rest arguments)
   "Return a bag for NAME."
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:54 2019
Received: from localhost ([127.0.0.1]:58692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL4-0006P0-CY
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:54 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:51194)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL1-0006Nu-AR
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:51 -0400
Received: by mail-wm1-f68.google.com with SMTP id c10so3138064wmc.0
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Ajr8xf2vRDDxJ2Ol3st96lpfnw0F/3sbAMrDymCwnyc=;
 b=G9JNgFy/kPXx9QN3kl+7W15KcOZc62NKhDneAEG3rctx8dUw5/gTuEXpA3DTtz7Dl5
 RRis1A5RXIJAJkhh+3yXclz9v8xToR6+NFN9Usjvyk5JAaYYKu4LOL6AhOf3XXshOJCe
 Yfv1ENfSJiRrzVGYniQPSDobbVYa6YYu0K43iZlcCA+2ALrKNbyyw4ZrSX36JesTV635
 4phXpPped73Gk22jUYTJVQot9Eb5cNF++OFC6M8yGrNO6q57+vNQ19UXpkK/NJ0sneu0
 25MFN/j+QZCMa4IGX1mCek9D1FbsjrMG4DCkT0x9kMofaOw//d2Y85HB937oJ82AP6dS
 fCbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Ajr8xf2vRDDxJ2Ol3st96lpfnw0F/3sbAMrDymCwnyc=;
 b=coKua2DZwsnf3eRkfaJ+4gu7VSs9dDkmO/DmciU6wF2Bq09cNAELcQhGy2UrGwZLWX
 rfqhyPAzByI1ku34kilEOs5V8V57yvkpz4ugob0RumHoNz0JRSdF8ZYdtdzeoPvlUzZ1
 aR2KjinU0WIOvPVV/JVGR4SEDtY/qfd9dWgaTxerk/+D2SrKKSOkesz8+dAwXP9hUvIP
 g/sA/EPJW4QiH0iSET3FUI4NtqEgNloriheHFVyB7DibPiOFAvh6okLkzuGDwY7cNzd8
 2KiCTYKxnAy74sWfY4v0WM9OzSpfoa6pD9YgCW6+hKnQ8weYaE1Ld9y++WBdr09Djori
 t2ZA==
X-Gm-Message-State: APjAAAXyEjL96PnqbuCrNKggKJGRN4oCOMR8TMaQpZAYPdaxdKXPcYkT
 zivV0w5K6BhfB+2+B5/WpXNJA7IA
X-Google-Smtp-Source: APXvYqyS/npEVLs7ziY2h4K2z/WDRgEY8uFNv44GS8tRQA93UN5z2ONmEohXL78pUGHUB4FpiRBZfA==
X-Received: by 2002:a1c:1aca:: with SMTP id a193mr1882468wma.120.1567438425528; 
 Mon, 02 Sep 2019 08:33:45 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:45 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:48 +0200
Message-Id: <20190902153333.11190-4-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/texinfo.scm (texinfo)[arguments]: Do not reset environment
before running configure with the native compiler, in a cross-compilation
context,
[inputs]: move perl from here ...
[native-inputs]: ... to here. Also add ncurses that is needed in a
cross-compilation context to build texinfo native tools.
---
 gnu/packages/texinfo.scm | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index befdd78551..c93c7fc353 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -41,8 +41,28 @@
                (base32
                 "0rixv4c301djr0d0cnsxs8c1wjndi6bf9vi5axz6mwjkv80cmfcv"))))
     (build-system gnu-build-system)
-    (inputs `(("ncurses" ,ncurses)
-              ("perl" ,perl)))
+    (arguments
+     ;; When cross-compiling, the package is configured twice: once with the
+     ;; native compiler and once with the cross-compiler. During the configure
+     ;; with the native compiler, the environment is reset. This leads to
+     ;; multiple environment variables missing. Do not reset the environment
+     ;; to prevent that.
+     `(,@(if (%current-target-system)
+             '(#:phases
+               (modify-phases %standard-phases
+                 (add-before 'configure 'fix-cross-configure
+                   (lambda _
+                     (substitute* "configure"
+                       (("env -i")
+                        "env "))
+                     #t))))
+             '())))
+    (inputs `(("ncurses" ,ncurses)))
+    ;; When cross-compiling, texinfo will build some of it's own binaries with
+    ;; the native compiler. This means ncurses is needed both in both inputs
+    ;; and native-inputs.
+    (native-inputs `(("perl" ,perl)
+                     ("ncurses" ,ncurses)))
 
     (native-search-paths
      ;; This is the variable used by the standalone Info reader.
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:52 2019
Received: from localhost ([127.0.0.1]:58688 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL1-0006Of-VN
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:52 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:55432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oL0-0006Nt-Be
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:51 -0400
Received: by mail-wm1-f67.google.com with SMTP id g207so11067232wmg.5
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=EvdAH9vjM6pVdtGB5ClO6MNOhkjgKNFwK19SilpDT1Y=;
 b=Jg0PqMRbuPmWMF6pEhfHAI4dE3izNNuia91KRovMCi1RBLWhwQowk6z3hoKvJfxpKQ
 sqibcfgn08bLBKAp0FzfZ7uIfuZBaxrjQTh+5t2LwcK02+aX0MakEBg5NhFDdy4X8qV+
 T78N/idhtGvYs2tFsYPxFSolDn3nCQ60ZrNwpIE5aZg8UksCEIjEs2LRzAMXQFKbTrwh
 rXLVRhM+zcrb8TMiw8Qlfdss5iEJx3jH1i7h7G3IYySYv5iFKGyHdzaKRytxc5nwztyU
 NZEbcS+3K9/eb7ThR6a5i8WJB9ELSIiKnUq/4QNiMEgLW44gbhDB5tn8W3blp+5mxsIH
 x2fA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=EvdAH9vjM6pVdtGB5ClO6MNOhkjgKNFwK19SilpDT1Y=;
 b=DcsSvIeFEqHsWpmLmB1HNkHg9C6Dg2nD+5C65uPVKBAHAjFoj1LYI9M29Fu9cL8UpZ
 zWeSYJ5mhqV7GtMpOfX6VBYw0+C43wZeTkAjjHNohISYuFIu0FlA7pZH6keuJcMKpwUQ
 fQ+nB4jo/FnNewe8BLfmRqE08ytk0e7kFX0wkNyNTy72WGL1OFr5EsjyEmdBiK7bvVHe
 NuvjBSl0yLOpX/kzPxNJo3Kr17yxirC+/bAAd/8osBpe3/jyw7ddzyx5Gxpr9kE6bx5k
 LAOMlGis0cDV2LRhStEmR3Ioe9XSpDGnFBePm6yIi8qPaUdW3+mVrge+kRs24TOFaVkM
 Buow==
X-Gm-Message-State: APjAAAXjEUkUBzbO0bLyzEb+4LoO/ZZoUccqu2GxcYKXZuy0EZBIMH9x
 LZEFeJuGs4UQZSsyLl0vMhf1jnIT
X-Google-Smtp-Source: APXvYqx/CzcZPNOGqTheypfmF+KIL3Xr6BdMCRToXBHW2PJ+mzHPeKs3eD0t8O0071LuLrAnuJLoOQ==
X-Received: by 2002:a1c:720e:: with SMTP id n14mr27713072wmc.54.1567438424527; 
 Mon, 02 Sep 2019 08:33:44 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:43 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 02/48] gnu: openssl: Fix cross-compilation.
Date: Mon,  2 Sep 2019 17:32:47 +0200
Message-Id: <20190902153333.11190-3-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/tls.scm (openssl-next)[arguments]: Pass CROSS_COMPILE
environment variable and target system to configure script.
---
 gnu/packages/tls.scm | 62 ++++++++++++++++++++++++++++++++------------
 1 file changed, 45 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index f2e7f4ad0c..73aad0c230 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017 Rutger Helling <rhelling@HIDDEN>
 ;;; Copyright © 2018 Clément Lassieur <clement@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -300,6 +301,23 @@ required structures.")
       #:disallowed-references ,(list (canonical-package perl))
       #:phases
       (modify-phases %standard-phases
+	,@(if (%current-target-system)
+	      '((add-before
+		    'configure 'set-cross-compile
+		  (lambda* (#:key target outputs #:allow-other-keys)
+		    (setenv "CROSS_COMPILE" (string-append target "-"))
+		    (setenv "CONFIGURE_TARGET_ARCH"
+			    (cond
+			     ((string-prefix? "i686" target)
+			      "linux-x86")
+			     ((string-prefix? "x86_64" target)
+			      "linux-x86_64")
+			     ((string-prefix? "arm" target)
+			      "linux-armv4")
+			     ((string-prefix? "aarch64" target)
+			      "linux-aarch64")))
+		    #t)))
+	      '())
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
@@ -309,7 +327,9 @@ required structures.")
                 (("/usr/bin/env")
                  (string-append (assoc-ref %build-inputs "coreutils")
                                 "/bin/env")))
-              (invoke "./config"
+              (invoke ,@(if (%current-target-system)
+			    '("./Configure")
+			    '("./config"))
                       "shared"       ;build shared libraries
                       "--libdir=lib"
 
@@ -320,7 +340,10 @@ required structures.")
                                      "/share/openssl-" ,version)
 
                       (string-append "--prefix=" out)
-                      (string-append "-Wl,-rpath," lib)))))
+                      (string-append "-Wl,-rpath," lib)
+		      ,@(if (%current-target-system)
+			    '((getenv "CONFIGURE_TARGET_ARCH"))
+			    '())))))
         (add-after 'install 'move-static-libraries
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Move static libraries to the "static" output.
@@ -416,21 +439,26 @@ required structures.")
                    (("^MANDIR[[:blank:]]*=.*$")
                     (string-append "MANDIR = " out "/share/man\n")))
                  #t)))
-        (replace 'configure
-          ;; Override this phase because OpenSSL 1.0 does not understand -rpath.
-          (lambda* (#:key outputs #:allow-other-keys)
-            (let ((out (assoc-ref outputs "out")))
-              (invoke "./config"
-                      "shared"                 ;build shared libraries
-                      "--libdir=lib"
-
-                      ;; The default for this catch-all directory is
-                      ;; PREFIX/ssl.  Change that to something more
-                      ;; conventional.
-                      (string-append "--openssldir=" out
-                                     "/share/openssl-" ,version)
-
-                      (string-append "--prefix=" out)))))
+	   (replace 'configure
+	     ;; Override this phase because OpenSSL 1.0 does not understand -rpath.
+	     (lambda* (#:key outputs #:allow-other-keys)
+	       (let ((out (assoc-ref outputs "out")))
+		 (invoke ,@(if (%current-target-system)
+			       '("./Configure")
+			       '("./config"))
+			 "shared"                 ;build shared libraries
+			 "--libdir=lib"
+
+			 ;; The default for this catch-all directory is
+			 ;; PREFIX/ssl.  Change that to something more
+			 ;; conventional.
+			 (string-append "--openssldir=" out
+					"/share/openssl-" ,version)
+
+			 (string-append "--prefix=" out)
+			 ,@(if (%current-target-system)
+			       '((getenv "CONFIGURE_TARGET_ARCH"))
+			       '())))))
         (delete 'move-extra-documentation)
         (add-after 'install 'move-man3-pages
           (lambda* (#:key outputs #:allow-other-keys)
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:51 2019
Received: from localhost ([127.0.0.1]:58685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL0-0006OG-Hn
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:50 -0400
Received: from mail-wm1-f43.google.com ([209.85.128.43]:37388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oKz-0006Nr-6L
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:49 -0400
Received: by mail-wm1-f43.google.com with SMTP id d16so15056394wme.2
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=fbjhgLiIcSFl1jnVMgZJ0ZGtXkc4IJDs6xJwIiAuOxg=;
 b=rsjGgZoiRue05VDXz1fsHkOm9rFBFw1hO2w9PtesM9WXNec5AFPcHv4GcdDvAXTkdk
 q/O25/biwZ4TS67r/QjXqKlnWsSFeFapRuamPo1Zgb1dqO4xTZBgNWR5/tItlMQ8bU6h
 9RwfyZ5cmF9cuTAUMuPSkKrbR15Vu/7Hdctd7PPx/k0KXSrHQsVp7RBT7bW2mLUmp9Rw
 baQiFnkVCq0CMS0netAfH7w+X8eB7HA06GY9e1k+cGYMuMh7blwiu4cysgVX9dlWrSaN
 LLvPRU49PU/WuSJTKu6v9yBqg/MnzRebdQ/4ACTp+rXD9XS0G66Ehxi8ZSeG8CAg+3gM
 550Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=fbjhgLiIcSFl1jnVMgZJ0ZGtXkc4IJDs6xJwIiAuOxg=;
 b=CQu31/R4czrGTWkaN7/MAI6eYIyrk7ZNjzLvi5un5c/aIPt3mj0eu9VFoVEJ7kQqoo
 AZ1r34gxz80BdcSSYePTsDm4SY8+lJVhT4lE3MhCxIKGEVTXFXc0DUm0/fkoeN87bfzy
 y0X+c8HkSexwqHOBgyBC9yYedT7GGupBR4mjVqdizzbyIrpVHmKEmFaTdz518ZH9fCnL
 KDfwhc0jqx5N+9NisQ7VMJNxHlNp5O1oWyVgca3NR2DKzqQGWM68nbhVr7fVcpogN/Uh
 vMHw8C36nXFE2Hek1mwb65wBTMNvVdqKRvlY10Jc4oBKdbP9b76dTpetsrHpT7DCslVp
 ilpw==
X-Gm-Message-State: APjAAAVJ2sP2E6Vd+ad9iytLyuc6QbuFjbvUXgz5sZKLNRPGCTZXDVht
 7rFbmcgoUld254OxXWWD9WAIIwNr
X-Google-Smtp-Source: APXvYqwukO5sp4YVRvbmY+a7rXNBW2+ucCcr93dgjkYwjl9kufDpco8V8TJGx13f9oYSh1eUpwrlzg==
X-Received: by 2002:a7b:cb0a:: with SMTP id u10mr9676026wmj.16.1567438423273; 
 Mon, 02 Sep 2019 08:33:43 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.42
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:42 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 01/48] gnu: libgpg-error: Fix cross compilation.
Date: Mon,  2 Sep 2019 17:32:46 +0200
Message-Id: <20190902153333.11190-2-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190902153333.11190-1-m.othacehe@HIDDEN>
References: <20190902153333.11190-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/gnupg.scm (libgpg-error)[arguments]: Add a lock-obj header to
the target platform when cross-compiling,
[native-inputs]: add gettext that is needed when cross-compiling.
---
 gnu/packages/gnupg.scm | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 95a35368fa..c7e6aabf79 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2017 Petter <petter@HIDDEN>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Marius Bakke <mbakke@HIDDEN>
-;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -96,6 +96,31 @@
             (("namespace=errnos") "pkg_namespace=errnos"))
           #t))))
     (build-system gnu-build-system)
+    (arguments
+     (if (%current-target-system)
+         `(#:modules ((ice-9 match)
+                      (guix build gnu-build-system)
+                      (guix build utils))
+           #:phases
+           (modify-phases %standard-phases
+             ;; When cross-compiling, some platform specific properties cannot
+             ;; be detected. Create a symlink to the appropriate platform
+             ;; file. See Cross-Compiling section at:
+             ;; https://github.com/gpg/libgpg-error/blob/master/README
+             (add-after 'unpack 'cross-symlinks
+               (lambda* (#:key target inputs #:allow-other-keys)
+                 (let ((triplet
+                        (match (string-take target
+                                            (string-index target #\-))
+                          ("armhf" "arm-unknown-linux-gnueabi")
+                          (x
+                           (string-append x "-unknown-linux-gnu")))))
+                   (symlink
+                    (string-append "lock-obj-pub." triplet ".h")
+                    "src/syscfg/lock-obj-pub.linux-gnu.h"))
+                 #t))))
+         '()))
+    (native-inputs `(("gettext" ,gettext-minimal)))
     (home-page "https://gnupg.org")
     (synopsis "Library of error values for GnuPG components")
     (description
-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:33:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 11:33:50 2019
Received: from localhost ([127.0.0.1]:58682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4oL0-0006OD-2v
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:50 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:37195)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i4oKy-0006Np-4t
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 11:33:48 -0400
Received: by mail-wr1-f66.google.com with SMTP id z11so14452396wrt.4
 for <36477 <at> debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=r/R3EDHyBXxeNeFiBP4rQ17dhIfd86mtbSO8J+J8N08=;
 b=bYpquKMq1OKACLMwAOEh4CfmOdul+U+kgjKA9mDB+AmefX3RWNv2hzRMaYxXaz/qpk
 3VEOzTCZL+hidLrFL3H9wnxVAK1mqhb/UQrbWgofEXukSU/mpQI2gFJLG7VnjE632A0v
 NLJU3Gwa9FTMkRlfKxTfXD4vsI+NBHGkLseTNutS6DkG2/wqyIi+SGKRuhRHdr3xXWUW
 ZwvFH/JlWX/3ret2L/9xM4BsCKfIUG70RDxZl7rfUSjaNyOwylARDotCyZe9iaE8Ny/6
 P4FQT+aZZHWjjEZXOR2JILxsUa9Ra5y5t+vROMlMhvMZggRtb7TiiuapopnVujTNpfbE
 TgjA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=r/R3EDHyBXxeNeFiBP4rQ17dhIfd86mtbSO8J+J8N08=;
 b=JunJvTtIlea2Yw3alq0sc1GNCJfjNMxOGY3E4wT99Zmz95Mpw2UP0Bw0r9tRk7En9e
 HA7dbQiEK02tcmv2pl1jTYv0a0gGNOsKxvGK+hTikjYGn3rv0HZG700So/pZcXdLzM5C
 dY1J5iXVZklYeu5DMHXTvzLWIEUoG1N/oeq2XzPRYei6tlYZOzDT2buZYCH1R0VdEMd9
 t5sYTKAbm7msi9EaJq0oFoFrvo/gEQCAbnJfdPwhdUfPXnI6/x2wjLHCanvxkiN4CXH3
 HQUuGLvaAbjqPRZQYN5EB7bpnZBAKRBouHEbwhFWGc1yqclRFstKTl0xo4gA+yZNBIOa
 jDxg==
X-Gm-Message-State: APjAAAUM80FXe37vpt/MWrG/1eTMjRxBceKwgoH0HT2ss1SX4EajNunV
 Ckg5GpLt8UcqkqTSMJTbyZIDC/Be
X-Google-Smtp-Source: APXvYqzsdA9TnxNk0m0wuVuJbm47NrN6fNie7ZZPKWW4kE/8UgUCXTeoSNYIcvd95/10HBhE5izCDw==
X-Received: by 2002:adf:9482:: with SMTP id 2mr36462823wrr.91.1567438422169;
 Mon, 02 Sep 2019 08:33:42 -0700 (PDT)
Received: from localhost.localdomain ([80.12.63.115])
 by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Sep 2019 08:33:41 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v3 00/48] Add --target support to guix system
Date: Mon,  2 Sep 2019 17:32:45 +0200
Message-Id: <20190902153333.11190-1-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.20.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Here's a v3. The only difference with v2, is that I pushed all the patches
from v2 that were reviewed and I rebased the serie on top of
core-updates-next.

Thanks,

Mathieu

Mathieu Othacehe (39):
  gnu: libgpg-error: Fix cross compilation.
  gnu: openssl: Fix cross-compilation.
  gnu: texinfo: Fix cross-compilation.
  gnu: cmake: Fix cross-compilation.
  gnu: libpaper: Fix aarch64 cross-compilation.
  gnu: groff: Fix cross compilation.
  gnu: bc: Fix cross-compilation.
  gnu: indent: Fix aarch64 cross-compilation.
  gnu: libsamplerate: Fix aarch64 cross-compilation.
  gnu: cyrus-sasl: Fix cross-compilation.
  gnu: mkfontdir: Fix aarch64 cross-compilation.
  gnu: icu4c: Fix cross-compilation.
  gnu: glibc-utf8-locales: Fix cross-compilation.
  gnu: boost: Fix cross-compilation.
  gnu: eudev: Fix cross-compilation.
  gnu: lvm2: Fix cross-compilation.
  gnu: bdb: Fix cross-compilation.
  gnu: openldap: Fix cross-compilation.
  gnu: swig: Fix cross-compilation.
  gnu: git: Fix cross-compilation.
  gnu: make-linux-libre: Fix cross-compilation.
  gnu: procps: Fix cross-compilation.
  gnu: doxygen: Fix cross-compilation.
  gnu: guile-sqlite3: Fix cross-compilation.
  gnu: guile-gcrypt: Fix cross-compilation.
  packages: Set outputs field as thunked.
  gnu: console-setup: Fix cross-compilation.
  gnu: mdadm: Fix cross-compilation.
  gnu: grub: Fix cross-compilation.
  linux-initrd: Use native gzip.
  gnu: linux-libre: Enable built-in ext4 support.
  gexp: Use cross extensions when cross-compiling.
  gexp: Pass target to compiled-modules in lower-gexp.
  utils: Use target-arm64? and target-arm? helpers.
  build: vm: Fix arm32 support.
  system: vm: Add arm64 support.
  system: vm: Support cross-compilation.
  scripts: system: Add --target option.
  wip: tools.

Pierre-Moana Levesque (9):
  gnu: texinfo-5: Fix cross-compilation.
  gnu: nghttp2: Fix cross-compilation.
  gnu: libtool: Fix cross-compilation.
  gnu: texinfo-4: Fix cross compilation
  gnu: libnl: Fix cross-compilation.
  gnu: crda: Fix cross-compilation
  gnu: guile-xcb: Fix cross-compilation.
  gnu: guile-wm: Fix cross-compilation.
  gnu: cmake: Fix cross-compilation.

 build-sorted-ok-ko-packages.sh                | 354 ++++++++++++++
 deps.scm                                      | 184 ++++++++
 gnu/build/vm.scm                              |  30 +-
 gnu/local.mk                                  |   5 +
 gnu/packages/algebra.scm                      |  15 +-
 gnu/packages/autotools.scm                    |  10 +-
 .../aux-files/linux-libre/5.2-arm64.conf      |   2 +-
 gnu/packages/base.scm                         |   4 +-
 gnu/packages/boost.scm                        |  59 ++-
 gnu/packages/bootloaders.scm                  |   6 +-
 gnu/packages/cmake.scm                        |  14 +-
 gnu/packages/code.scm                         |  18 +-
 gnu/packages/commencement.scm                 |  11 +-
 gnu/packages/cyrus-sasl.scm                   |  17 +-
 gnu/packages/dbm.scm                          |   6 +-
 gnu/packages/documentation.scm                |  12 +-
 gnu/packages/ghostscript.scm                  |  19 +
 gnu/packages/gnupg.scm                        |  47 +-
 gnu/packages/groff.scm                        |  40 +-
 gnu/packages/guile-wm.scm                     |   8 +-
 gnu/packages/guile.scm                        |   7 +-
 gnu/packages/icu4c.scm                        |  35 +-
 gnu/packages/linux.scm                        | 157 ++++---
 gnu/packages/openldap.scm                     |  38 +-
 .../patches/bc-fix-cross-compilation.patch    | 171 +++++++
 gnu/packages/patches/boost-dumpversion.patch  |  24 +
 .../patches/cyrus-sasl-ac-try-run-fix.patch   |  12 +
 .../guile-gcrypt-fix-cross-compilation.patch  | 431 ++++++++++++++++++
 .../guile-sqlite3-fix-cross-compilation.patch |  55 +++
 gnu/packages/pulseaudio.scm                   |  22 +-
 gnu/packages/swig.scm                         |   1 +
 gnu/packages/texinfo.scm                      |  63 ++-
 gnu/packages/tls.scm                          |  62 ++-
 gnu/packages/version-control.scm              |  23 +-
 gnu/packages/web.scm                          |   8 +-
 gnu/packages/xorg.scm                         |  32 +-
 gnu/system.scm                                |  15 +-
 gnu/system/examples/mini-beaglebone.scm       |  61 +++
 gnu/system/examples/mini.scm                  |  54 +++
 gnu/system/linux-initrd.scm                   |   2 +-
 gnu/system/vm.scm                             |  42 +-
 guix/build-system/cmake.scm                   |   9 +-
 guix/gexp.scm                                 |   5 +-
 guix/packages.scm                             |   4 +-
 guix/scripts/system.scm                       |  15 +-
 guix/utils.scm                                |   8 +
 46 files changed, 2039 insertions(+), 178 deletions(-)
 create mode 100755 build-sorted-ok-ko-packages.sh
 create mode 100644 deps.scm
 create mode 100644 gnu/packages/patches/bc-fix-cross-compilation.patch
 create mode 100644 gnu/packages/patches/boost-dumpversion.patch
 create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch
 create mode 100644 gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch
 create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
 create mode 100644 gnu/system/examples/mini-beaglebone.scm
 create mode 100644 gnu/system/examples/mini.scm

-- 
2.20.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 12:50:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 08:50:50 2019
Received: from localhost ([127.0.0.1]:57551 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4lnF-00024q-Nd
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 08:50:49 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38259)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i4lnD-00024b-DY
 for 36477 <at> debbugs.gnu.org; Mon, 02 Sep 2019 08:50:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34384)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i4ln7-0008PJ-78; Mon, 02 Sep 2019 08:50:41 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=55888 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i4ln4-0005cM-5S; Mon, 02 Sep 2019 08:50:38 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Mathieu Othacehe <m.othacehe@HIDDEN>
Subject: Re: [bug#36477] [PATCH v2 00/61] Add --target support to guix system
References: <87zhlwmpmy.fsf@HIDDEN> <87wof6x5v4.fsf@HIDDEN>
Date: Mon, 02 Sep 2019 14:50:36 +0200
In-Reply-To: <87wof6x5v4.fsf@HIDDEN> (Mathieu Othacehe's message of "Wed,
 21 Aug 2019 10:47:11 +0200")
Message-ID: <874l1uamlf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36477
Cc: Marius Bakke <mbakke@HIDDEN>, 36477 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

Mathieu Othacehe <m.othacehe@HIDDEN> skribis:

> Here's a serie to add target support to guix system command. Most of the
> patches were reviewed in v1 by Marius and Ludo, but this serie adds some =
more
> patches to complete target support.

Sorry for the delay.

Could you already apply the patches that Marius and I already agreed to?
Double-check that they can go to =E2=80=98master=E2=80=99 without triggerin=
g a full
rebuild.

I=E2=80=99ll comment on the rest hopefully soon=E2=80=A6

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:45 2019
Received: from localhost ([127.0.0.1]:34752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ9-0006fb-D6
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:45 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:41548)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPQ-0006Vq-71
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:00 -0400
Received: by mail-wr1-f65.google.com with SMTP id j16so1229844wrr.8
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:56:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=ATBSAAGOjyRP6A/DLGSBsGQxENa+fkdmJrQbDu2ADg8=;
 b=pLiyelGS2RruG5sEsvEvyDoYwLXZiqNCB6rt6G9E7sCKmpFuR4RjkcTl9USKvKzO3R
 hov4Ok5BmkFV+f+U+Cq9udv1nvhDcUPLTHEIjSfdbA8d3cPSd5NcnLNASZ3i48uTKdOd
 vtKaINMS1IKTmPAcCpMmqAQTDVnvkJ0Pq27glO/TfbKRYfbBBU/PbEplQfSXg5lbt6gl
 AVLL11hKZw8tq4YEEVBc5EMADpX6mbgnFH7wI7v+My3oTzmT5tI1yYJV2t6YhY6Tlecz
 56r2KP7Kq81u1XHHrLSnnulzOioDEg+5eZIB2GKKmf5KhR3v9qsot026VU2WQi079yHk
 slrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=ATBSAAGOjyRP6A/DLGSBsGQxENa+fkdmJrQbDu2ADg8=;
 b=klAOy8cSZ+yxhFangr34qzIVw+0L0zTYfMilkm0zF7qlOcG0kMhRkB3fa5AkNaxGai
 pVplvGWZcrDIPviZA9gmctzT60B7x+prM+tp3GmGEWlurvipXLkBVsWYlydrwb91jdO1
 thOnOQgrFHRcO8xaEiviIAWcDplYfF39ldCMMOg2Myckq49Rwgz0O6AemIT3jJGQpWEb
 o+JAYo1mpev4FcPIF6sw9thcU4eux63uUt28vhIzREmhnEZtbo81IWPFem2IsVT4YbHd
 cQjBkrzkYC7iJW+/5R1SDEc3CjhbFobrMrUAyjGbGmTpAH7+8JODStRPO0J2NLxg3Ihj
 AGDg==
X-Gm-Message-State: APjAAAW8L/gR9f6WBqA4wkba0fjvtGPTQ2daX2e0ZAG/Va2dkkfS1k9z
 vvx4+FixC1j2ZmigQwLK968RICjM3bM=
X-Google-Smtp-Source: APXvYqyjxzj8Y2NQ03gMXUluF7sUxVrHqRMWX1Eb68bqfkgakHnxuDiRxN7I3f00ZvX6cPOmeVJOuA==
X-Received: by 2002:adf:d08e:: with SMTP id y14mr38729207wrh.309.1566377754348; 
 Wed, 21 Aug 2019 01:55:54 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:53 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 61/61] scripts: system: Add --target option.
Date: Wed, 21 Aug 2019 10:54:55 +0200
Message-Id: <20190821085455.18508-61-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/system.scm (%options): Add target option,
(%default-options): ditto,
(process-action): Rename existing target variable to target-file and pass new
target variable to run-with-store procedure.
---
 guix/scripts/system.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 9fc3a10e98..f8040dd975 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2016 Alex Kost <alezost@HIDDEN>
 ;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Christopher Baines <mail@HIDDEN>
 ;;;
@@ -929,6 +929,8 @@ Some ACTIONS support additional ARGS.\n"))
       --full-boot        for 'vm', make a full boot sequence"))
   (display (G_ "
       --skip-checks      skip file system and initrd module safety checks"))
+  (display (G_ "
+      --target=TRIPLET   cross-build for TRIPLET--e.g., \"armel-linux-gnu\""))
   (display (G_ "
   -v, --verbosity=LEVEL  use the given verbosity LEVEL"))
   (newline)
@@ -1002,6 +1004,10 @@ Some ACTIONS support additional ARGS.\n"))
                  (lambda (opt name arg result)
                    (alist-cons 'system arg
                                (alist-delete 'system result eq?))))
+         (option '("target") #t #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'target arg
+                               (alist-delete 'target result eq?))))
          (option '(#\r "root") #t #f
                  (lambda (opt name arg result)
                    (alist-cons 'gc-root arg result)))
@@ -1010,6 +1016,7 @@ Some ACTIONS support additional ARGS.\n"))
 (define %default-options
   ;; Alist of default option values.
   `((system . ,(%current-system))
+    (target . #f)
     (substitutes? . #t)
     (build-hook? . #t)
     (print-build-trace? . #t)
@@ -1043,6 +1050,7 @@ resulting from command-line parsing."
                         ((x . _) x)))
          (expr        (assoc-ref opts 'expression))
          (system      (assoc-ref opts 'system))
+         (target      (assoc-ref opts 'target))
          (os          (ensure-operating-system
                        (or file expr)
                        (cond
@@ -1059,7 +1067,7 @@ resulting from command-line parsing."
 
          (dry?        (assoc-ref opts 'dry-run?))
          (bootloader? (assoc-ref opts 'install-bootloader?))
-         (target      (match args
+         (target-file (match args
                         ((first second) second)
                         (_ #f)))
          (bootloader-target
@@ -1101,9 +1109,10 @@ resulting from command-line parsing."
                                                       (_ #f))
                                                     opts)
                              #:install-bootloader? bootloader?
-                             #:target target
+                             #:target target-file
                              #:bootloader-target bootloader-target
                              #:gc-root (assoc-ref opts 'gc-root)))))
+        #:target target
         #:system system))
     (warn-about-disk-space)))
 
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:45 2019
Received: from localhost ([127.0.0.1]:34750 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ8-0006fT-UU
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:45 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:40394)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPP-0006VW-6U
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:59 -0400
Received: by mail-wr1-f68.google.com with SMTP id c3so1228541wrd.7
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=cCtQCncHylGJKH97u8Zs7Y6eJAkhgnHnM6y+HwkFZoY=;
 b=RNNzy+XXtL3hOvTjE097pT2jisJ5zbndK3sKUaLcIomzQNSk9BUyIMItFoDi6mUvYi
 whaSmMec7N2YzLqf66D4q9M+IoldgY+pLUs0Z3vgxmG8LCsH8IVkS1XNcUskD5ZvWhRf
 s4MQu7v/4RbS8X4rtcM+Kbce6ZBNyCowpYsPTaRDzwVhuSqoXXsygiq8SWWrfmhCNa8Z
 Zoa1MogFv1tXCx1xf+GFmehhKZeOUm66pdqQSaiKkbrhky8PC/EYX7BNd0CYUmTizubr
 IfiheyR1YGoxjpp7CCBxVZiP+MSPmHnBPe5FubF99hVgyoMSHYaIibdCKul7ikqNrKmv
 xwpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=cCtQCncHylGJKH97u8Zs7Y6eJAkhgnHnM6y+HwkFZoY=;
 b=dXzGttljQjBYN+OE55kD/vBCH03ssmnDu926/D4e/Yo+FmGmJJFnKoJRbBJ2Us8opm
 gdjpYAKjhsbFZDAWggPs/Xxq2JDSR5kMXn2A/cpPfeX24olEGQtc7kp0S53+ZTETR9Yt
 p7+cJGZLz7FYbYjsLAJL8BR8788a8TOxMTvKciMz+dLTfYAEq9Cs01MfEaliLNGU5oHp
 BKY/L3s1o9s+5Cs4x9E/hynUjz3H6xuK+v2o0euN1W2xx5g7XtxnaF5wz5kDYn/SVZO4
 RUlxlSIA7j2dvXR/SWHE4tsDPsFEnLDZs4EPaLJek+1AVciCK5uQQiaUvPYhki1/QJQH
 xqwQ==
X-Gm-Message-State: APjAAAWzbsQule34lG95WU5hz5Uxdsjk1/+qRjXofuGBXQpi5xXggDfD
 7E4S5sDWPT8rBKIkdVQ2aAex1KEtZbY=
X-Google-Smtp-Source: APXvYqyXd/rsgdTe+5yzHLoKhEqNfpOnkTp1cZvz9WwqOJZ+WCvw5DNNzbmvW6cvaFbooejjIrS6Gw==
X-Received: by 2002:a5d:554a:: with SMTP id g10mr450171wrw.9.1566377753275;
 Wed, 21 Aug 2019 01:55:53 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:52 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 60/61] system: vm: Support cross-compilation.
Date: Wed, 21 Aug 2019 10:54:54 +0200
Message-Id: <20190821085455.18508-60-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/system.scm (system-linux-image-file-name): Add support for cross-built
systems. Remove system argument that was ignored,
(operating-system-kernel-file): adapt by removing ignored os argument.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Add target argument,
move qemu from inputs list to a new native-inputs list and adapt
set-path-environment-variable call accordingly. Pass target to qemu-command
and gexp->derivation calls.
(iso9660-image): Move qemu from inputs to a new native-inputs list and adapt
set-path-environment-variable accordingly.
(qemu-image): Add target argument, move qemu from inputs list to a new
native-inputs list and adapt set-path-environment-variable call
accordingly. Pass target argument to expression->derivation-in-linux-vm call.
---
 gnu/system.scm    | 15 ++++++++-------
 gnu/system/vm.scm | 25 ++++++++++++++++++-------
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 485896ba0a..85059119cc 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -439,20 +439,21 @@ from the initrd."
   "Return the list of swap services for OS."
   (map swap-service (operating-system-swap-devices os)))
 
-(define* (system-linux-image-file-name #:optional (system (%current-system)))
+(define* (system-linux-image-file-name)
   "Return the basename of the kernel image file for SYSTEM."
   ;; FIXME: Evaluate the conditional based on the actual current system.
-  (cond
-   ((string-prefix? "arm" (%current-system)) "zImage")
-   ((string-prefix? "mips" (%current-system)) "vmlinuz")
-   ((string-prefix? "aarch64" (%current-system)) "Image")
-   (else "bzImage")))
+  (let ((target (or (%current-target-system) (%current-system))))
+    (cond
+     ((string-prefix? "arm" target) "zImage")
+     ((string-prefix? "mips" target) "vmlinuz")
+     ((string-prefix? "aarch64" target) "Image")
+     (else "bzImage"))))
 
 (define (operating-system-kernel-file os)
   "Return an object representing the absolute file name of the kernel image of
 OS."
   (file-append (operating-system-kernel os)
-               "/" (system-linux-image-file-name os)))
+               "/" (system-linux-image-file-name)))
 
 (define* (operating-system-directory-base-entries os)
   "Return the basic entries of the 'system' directory of OS for use as the
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 07cee2d4f5..759745c277 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -143,7 +143,7 @@
 
 (define* (expression->derivation-in-linux-vm name exp
                                              #:key
-                                             (system (%current-system))
+                                             (system (%current-system)) target
                                              (linux linux-libre)
                                              initrd
                                              (qemu qemu-minimal)
@@ -214,7 +214,8 @@ made available under the /xchg CIFS share."
               (use-modules (guix build utils)
                            (gnu build vm))
 
-              (let* ((inputs  '#$(list qemu (canonical-package coreutils)))
+              (let* ((inputs  '#$(list (canonical-package coreutils)))
+                     (native-inputs '#+(list qemu))
                      (linux   (string-append #$linux "/"
                                              #$(system-linux-image-file-name)))
                      (initrd  #$initrd)
@@ -222,16 +223,19 @@ made available under the /xchg CIFS share."
                      (graphs  '#$(match references-graphs
                                    (((graph-files . _) ...) graph-files)
                                    (_ #f)))
+                     (target  #$(or (%current-target-system) (%current-system)))
                      (size    #$(if (eq? 'guess disk-image-size)
                                     #~(+ (* 70 (expt 2 20)) ;ESP
                                          (estimated-partition-size graphs))
                                     disk-image-size)))
 
-                (set-path-environment-variable "PATH" '("bin") inputs)
+                (set-path-environment-variable "PATH" '("bin")
+                                               (append inputs native-inputs))
 
                 (load-in-linux-vm loader
                                   #:output #$output
                                   #:linux linux #:initrd initrd
+                                  #:qemu (qemu-command target)
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
@@ -248,6 +252,7 @@ made available under the /xchg CIFS share."
     (gexp->derivation name builder
                       ;; TODO: Require the "kvm" feature.
                       #:system system
+                      #:target target
                       #:env-vars env-vars
                       #:guile-for-build guile-for-build
                       #:references-graphs references-graphs)))
@@ -299,9 +304,10 @@ INPUTS is a list of inputs (as for packages)."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools xorriso)
+                  '#$(append (list parted e2fsprogs dosfstools xorriso)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
+                 (native-inputs '#+(list qemu))
 
 
                  (graphs     '#$(match inputs
@@ -315,7 +321,8 @@ INPUTS is a list of inputs (as for packages)."
                             ((name thing output) `(,thing ,output)))
                           inputs)))
 
-             (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
+             (set-path-environment-variable "PATH" '("bin" "sbin")
+                                            (append inputs native-inputs))
              (make-iso9660-image #$xorriso
                                  '#$grub-mkrescue-environment
                                  #$(bootloader-package bootloader)
@@ -346,6 +353,7 @@ INPUTS is a list of inputs (as for packages)."
 (define* (qemu-image #:key
                      (name "qemu-image")
                      (system (%current-system))
+                     (target (%current-target-system))
                      (qemu qemu-minimal)
                      (disk-image-size 'guess)
                      (disk-image-format "qcow2")
@@ -404,9 +412,10 @@ system."
            (setlocale LC_ALL "en_US.utf8")
 
            (let ((inputs
-                  '#$(append (list qemu parted e2fsprogs dosfstools)
+                  '#$(append (list util-linux parted e2fsprogs dosfstools)
                              (map canonical-package
                                   (list sed grep coreutils findutils gawk))))
+                 (native-inputs '#+(list qemu))
 
                  ;; This variable is unused but allows us to add INPUTS-TO-COPY
                  ;; as inputs.
@@ -416,7 +425,8 @@ system."
                             ((name thing output) `(,thing ,output)))
                           inputs)))
 
-             (set-path-environment-variable "PATH" '("bin" "sbin") inputs)
+             (set-path-environment-variable "PATH" '("bin" "sbin")
+                                            (append inputs native-inputs))
 
              (let* ((graphs     '#$(match inputs
                                      (((names . _) ...)
@@ -483,6 +493,7 @@ system."
                                      #:bootloader-installer
                                      #$(bootloader-installer bootloader)))))))
    #:system system
+   #:target target
    #:make-disk-image? #t
    #:disk-image-size disk-image-size
    #:disk-image-format disk-image-format
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:44 2019
Received: from localhost ([127.0.0.1]:34748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ8-0006fM-I8
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:44 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:34198)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPO-0006V8-76
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:58 -0400
Received: by mail-wr1-f47.google.com with SMTP id s18so1259141wrn.1
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=D9y4SeOncI+wFwwiB9xKA6Cngxs/F0jOUAfL7wM0Kpg=;
 b=W4OrAzfaztKe6J5Y52uVD3rOHU1XzA+dEfHmp21A+WS/dT0LU0uNeMQ6Bp2roV55av
 +iTcx7F/n/dqLrsDxv+fUfEO2Gn+3W1RUNuzEsXFon7W0LmSxIZ2XhKbT7u80SsatDqJ
 gdTbY7Q15MrmT4nI7Z5f5Jmm1j8xeWvVcroOqNDL8s1oJUsVwAiIyGWb7WEiELlum6Q6
 y/wTC+X6DSzxx0I8Dj3Y8yKWD8YVls5oLDEbCJf9TujEI9yVEdDkNVeQNewygoTJUFFl
 SnvZt6Ezxsm342B3pHSETpGgLbLKMiq7dzohaAvlli57TAWzDQKx37D92vkXoKI25Nil
 dCKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=D9y4SeOncI+wFwwiB9xKA6Cngxs/F0jOUAfL7wM0Kpg=;
 b=nmiglYGt4eIdpYTrcSagjTrws5OOMlKs6lMf6DfOR7bs5mfDeHCJcqsFplO0ZYVvNm
 ZExCOtzop/RaV5P3SH11fzytOcE+pX+4ViXm2SkGg+0rA8IAaw9AseuBpCfUyDkLkfid
 ToRXK9RpcQWd7x0PZKj992KEjugSacxMBuJ7XOD1qvvLy++L8+5/9vI+Z4zdRlz9CucZ
 Ji6V5ng8455kpAdPPRKMy2KcRCalVqnCJjpJopfywAaL2XAO0FQPNn+nrEN1Sf+V+VH8
 ijDbyio1FvIVpEZDnEAN8hMv1jzSKKyCaOOkzzXBF4echZMzvvYQMvO2SV0k18YwATR/
 dGdw==
X-Gm-Message-State: APjAAAWv9CJxI9jLWvMSkpx26wxmZrq/KOSqO3lNQduOZ+t6dzp1fIg/
 alOe6pE7beOeGN3uQMg89+lMLtjcpHY=
X-Google-Smtp-Source: APXvYqw1VSoAcei/q2ZyFQu96Yfx96qfC6r4+3lAw6ZO1Xfo+zCfeud4WogNSwkAOhPk8W6ne8Os1A==
X-Received: by 2002:a5d:4cc5:: with SMTP id c5mr11754409wrt.278.1566377752246; 
 Wed, 21 Aug 2019 01:55:52 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:51 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 59/61] system: vm: Add arm64 support.
Date: Wed, 21 Aug 2019 10:54:53 +0200
Message-Id: <20190821085455.18508-59-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/build/vm.scm (load-in-linux-vm): Add target-arm64? argument and use it
to pass correct arguments to qemu.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass the new
target-arm64? argument added above. Do not add ESP partition on all ARM
targets. Do not pass grub-efi package to initialize-hard-disk on ARM targets.
---
 gnu/build/vm.scm  | 22 +++++++++++++++++-----
 gnu/system/vm.scm | 17 +++++++++++------
 2 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index a5d9fefa62..6a1c164a41 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -82,6 +82,7 @@
                            make-disk-image?
                            single-file-output?
                            target-arm32?
+                           target-arm64?
                            (disk-image-size (* 100 (expt 2 20)))
                            (disk-image-format "qcow2")
                            (references-graphs '()))
@@ -97,16 +98,27 @@ access it via /dev/hda.
 REFERENCES-GRAPHS can specify a list of reference-graph files as produced by
 the #:references-graphs parameter of 'derivation'."
 
+  (define target-arm? (or target-arm32? target-arm64?))
+
   (define arch-specific-flags
     `(;; On ARM, a machine has to be specified. Use "virt" machine to avoid
       ;; hardware limits imposed by other machines.
-      ,@(if target-arm32? '("-M" "virt") '())
+      ,@(if target-arm?
+            '("-M" "virt")
+            '())
+
+      ;; On ARM64, we have to specify the CPU. "max" behaves as "host" when
+      ;; KVM is enabled, and like a system CPU with the maximum possible
+      ;; feature set otherwise.
+      ,@(if target-arm64?
+            '("-cpu" "max")
+            '())
 
       ;; Only enable kvm if we see /dev/kvm exists.  This allows users without
       ;; hardware virtualization to still use these commands.  KVM support is
-      ;; still buggy on some ARM32 boards. Do not use it even if available.
+      ;; still buggy on some ARM boards. Do not use it even if available.
       ,@(if (and (file-exists? "/dev/kvm")
-                 (not target-arm32?))
+                 (not target-arm?))
             '("-enable-kvm")
             '())
 
@@ -117,11 +129,11 @@ the #:references-graphs parameter of 'derivation'."
                       ;; The serial port name differs between emulated
                       ;; architectures/machines.
                       " console="
-                      (if target-arm32? "ttyAMA0" "ttyS0"))
+                      (if target-arm? "ttyAMA0" "ttyS0"))
 
       ;; NIC is not supported on ARM "virt" machine, so use a user mode
       ;; network stack instead.
-      ,@(if target-arm32?
+      ,@(if target-arm?
             '("-device" "virtio-net-pci,netdev=mynet"
               "-netdev" "user,id=mynet")
             '("-net" "nic,model=virtio"))))
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index ac6e4ded92..07cee2d4f5 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -235,10 +235,12 @@ made available under the /xchg CIFS share."
                                   #:memory-size #$memory-size
                                   #:make-disk-image? #$make-disk-image?
                                   #:single-file-output? #$single-file-output?
-                                  ;; FIXME: ‘target-arm32?’ may not operate on
-                                  ;; the right system/target values.  Rewrite
+                                  ;; FIXME: ‘target-arm32?’ and
+                                  ;; ‘target-arm64?’ may not operate on the
+                                  ;; right system/target values.  Rewrite
                                   ;; using ‘let-system’ when available.
                                   #:target-arm32? #$(target-arm32?)
+                                  #:target-arm64? #$(target-arm64?)
                                   #:disk-image-format #$disk-image-format
                                   #:disk-image-size size
                                   #:references-graphs graphs))))))
@@ -452,10 +454,10 @@ system."
                       ;; bootloaders if we are not targeting ARM because UEFI
                       ;; support in U-Boot is experimental.
                       ;;
-                      ;; FIXME: ‘target-arm32?’ may be not operate on the right
+                      ;; FIXME: ‘target-arm?’ may be not operate on the right
                       ;; system/target values.  Rewrite using ‘let-system’ when
                       ;; available.
-                      (if #$(target-arm32?)
+                      (if #$(target-arm?)
                           '()
                           (list (partition
                                  ;; The standalone grub image is about 10MiB, but
@@ -466,10 +468,13 @@ system."
                                  ;; when mounting. The actual FAT-ness is based
                                  ;; on file system size (16 in this case).
                                  (file-system "vfat")
-                                 (flags '(esp))))))))
+                                 (flags '(esp)))))))
+                    (grub-efi #$@(if (target-arm?)
+                                     '(#f)
+                                     #~(#$grub-efi))))
                (initialize-hard-disk "/dev/vda"
                                      #:partitions partitions
-                                     #:grub-efi #$grub-efi
+                                     #:grub-efi grub-efi
                                      #:bootloader-package
                                      #$(bootloader-package bootloader)
                                      #:bootcfg #$bootcfg-drv
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:44 2019
Received: from localhost ([127.0.0.1]:34746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ8-0006fF-8b
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:44 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:41951)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPN-0006Uo-6c
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:57 -0400
Received: by mail-wr1-f49.google.com with SMTP id j16so1229700wrr.8
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=cXSRfja10rg0I4hDCOE+6pUFl9D2a5/TMWty+UQVIQ4=;
 b=nPsaFRGy0upWNbDttg0pN35e9YEw/edreIKRdtQUr01GjWASf5x/JzV6asvw5BKnN2
 dK7MzSGPMvaOj77/65MOPxfdeR0L+GAuo9ljAnbD6fBTOOQNHw8y/mcQfYig56vGIol3
 XZDYIDXgO1xksxDnrb5lYAxn+rm6CJ+9fRMWaE8pwIzlva+7iNCAmo5HsxPE+QlJXfTO
 M3ozWxqqcktNhhEyGboTn5qfBctQ4Y9XUoXvLS+iD3sVGUp7cW3YbIEZZiXE2jL6yAfH
 /fWd2WYDwnavH9trWi5t6NCrzQ55Mt8c/t0Xwu/02Hv5s72zRSBn1GBtfknxUNJ9qKSH
 63/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=cXSRfja10rg0I4hDCOE+6pUFl9D2a5/TMWty+UQVIQ4=;
 b=PcK2kbYDv1SuL95xgmBiSHTHS3SUqqzeSwtm3M4b6auT93YXGg35EZqg/LKpzwYMts
 qU9HWt/Q0e0LfG5jEPj0OxNL+4ve41aQz2nWbjK0xopfoT0lfuKvXDU+1eAWOkOPEs7b
 KRoZ7i/HsOiBkJJi7xSfFdFspcecbNZHBsdm3inWdQzR7gR/USGjtk7e8l107w1Fro+t
 RPpSUhIk/GrQU1NG3JToZm4IfshgDQbYGl1QbgfYrf7Mx1pzbhkaSwX9+bz7+dzoMWoA
 G8H/3rER1olXF8bohVJQZ0ZBZEHZzEyajbUdx1cKjTRDM2yUIi1wjJyn3q63c6sVBk8m
 E7sA==
X-Gm-Message-State: APjAAAU6p1VgXVArPPeVU6XB3MEqM0Gm8AIoURc/bbdFewPeJ7g4Bjmz
 vRK+GNGbrXt6hI/H44/1MZNH0VYr5cs=
X-Google-Smtp-Source: APXvYqy5h6fGR/gEHlfQCEPQ5PHmP2s6V5A1xg2MZV95YCc0t2EQ11k12LmOdaEpITLOcLeZjNw9cA==
X-Received: by 2002:a05:6000:4d:: with SMTP id
 k13mr39618402wrx.196.1566377751333; 
 Wed, 21 Aug 2019 01:55:51 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.50
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:50 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 58/61] utils: Use target-arm64? and target-arm? helpers.
Date: Wed, 21 Aug 2019 10:54:52 +0200
Message-Id: <20190821085455.18508-58-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/utils.scm (target-arm64?, target-arm?): New exported procedures.
---
 guix/utils.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guix/utils.scm b/guix/utils.scm
index f480c3291f..3eb156ad4e 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,8 @@
             package-name->name+version
             target-mingw?
             target-arm32?
+            target-arm64?
+            target-arm?
             target-64bit?
             version-compare
             version>?
@@ -493,6 +495,12 @@ a character other than '@'."
 (define (target-arm32?)
   (string-prefix? "arm" (or (%current-target-system) (%current-system))))
 
+(define (target-arm64?)
+  (string-prefix? "aarch64" (or (%current-target-system) (%current-system))))
+
+(define (target-arm?)
+  (or (target-arm32?) (target-arm64?)))
+
 (define (target-64bit?)
   (let ((system (or (%current-target-system) (%current-system))))
     (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" "ppc64"))))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:44 2019
Received: from localhost ([127.0.0.1]:34744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ7-0006f7-V4
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:44 -0400
Received: from mail-wm1-f54.google.com ([209.85.128.54]:54982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPM-0006U8-DR
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:57 -0400
Received: by mail-wm1-f54.google.com with SMTP id p74so1259341wme.4
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=ST4l1KbI9iHj9KXKzbTI80//GXml2ygK6ky/tShFgJQ=;
 b=fDiJ6CZZtkuV6idYxrJ2UuSqcFxtpNqO7rPBg1ejlQxdvqxtcPumW+w5l71OpbyHN3
 akiR1MGe+UgAjU+m+xM1K2u9P2keGq+jRq8i7jTFwRsqNvrQJhTBi8NN5bJRLEUpIzrm
 NnT2+xJDEBNM+escpt2NA3XlZTjoCgvHtmVBIRHq57RofMQEv6Ge50QFksoyJ+PNl3ar
 D9h++p2fdixY1bXPTYyAuDI6Ewxh4VP7ei+5vykdH3GgQMkUoPMg1+R8cwdJzdItMWi2
 0O91zKDfzxgWiXBtKft5wdB58yML9rcIrH6B7JaHAqwPysxC32ie0SahUGDWn8EB1Si3
 iwQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=ST4l1KbI9iHj9KXKzbTI80//GXml2ygK6ky/tShFgJQ=;
 b=colwv3Re3emlfxW1ZBJjjHbgMlFQ6D8Lcxd5uQ6eI3uQy742IeL36zVDKjiYuZZbau
 sAvvseO/wDs8w+aVcMCfkaDhgfCx0udUpl6ltIbrTM6vN7qSVgw3akbn0Nk5Z6tRbnpE
 iuld3D2CWIo4eZ9/1i+YkvWhAakSHJlxsya1lFg+p2ByxPG8Ak4zw6yEN0yNMOV+MNEp
 d6QpxZ0mM/qTYJIuJP7p9Y1M2baQMhn1SpGQvJEOS7L6bn+AyLV0QaFdYY1s5uyVY3Sa
 2jh15yxtUMcBno94jEmjlf3vheWM3Wra9QnQl29vGvupELp20Na9DlZsf9gcs8C86Elb
 2XIA==
X-Gm-Message-State: APjAAAXLA19E29R8D8TSb1Pxmo7DXok/mRXkPgeuVFILKNPggl+CsDaU
 3xG9Xbuy84rAUjAygmkd0v+ydqaQT/c=
X-Google-Smtp-Source: APXvYqxUPJf3jjpeS0tDwaHtaDbgow1Jk0p0T2P+sQhii84pLG+ZCmKLNJXbYYVXekHuaIWoT9YZRQ==
X-Received: by 2002:a7b:c148:: with SMTP id z8mr4985211wmi.168.1566377750424; 
 Wed, 21 Aug 2019 01:55:50 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:49 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 57/61] gexp: Pass target to compiled-modules in lower-gexp.
Date: Wed, 21 Aug 2019 10:54:51 +0200
Message-Id: <20190821085455.18508-57-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/gexp.scm (lower-gexp): Pass target argument to compiled-modules.
---
 guix/gexp.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index 514422cb08..afa28779c8 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -727,6 +727,7 @@ derivations--e.g., code evaluated for its side effects."
                        (compiled (if (pair? %modules)
                                      (compiled-modules %modules
                                                        #:system system
+                                                       #:target target
                                                        #:module-path module-path
                                                        #:extensions extensions
                                                        #:guile guile
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:43 2019
Received: from localhost ([127.0.0.1]:34742 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ7-0006f0-Kv
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:43 -0400
Received: from mail-wm1-f53.google.com ([209.85.128.53]:50420)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPL-0006U3-Gi
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:55 -0400
Received: by mail-wm1-f53.google.com with SMTP id v15so1277818wml.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=cvvFyfXxc0+gE+jTUwIPrClR0dbwyLH+FAo14RGWnBI=;
 b=C601qCrJNc2gNCvYtG517CHXhrz2v7RvcdEpMXeTTczPXJNmqTjOkyc8Np4rve8DrE
 X2GZMmpPEegHnnsvN4OtOfilqAfA8nPkECbuM/eBE14yJs2koDAqvbD3bx4bs+MsiKhp
 NpkoZXNaFlwck6pecdkM0lSoyoFRpO66urRtRE6yu1Coz6a75kGo8uISy4qu4u7Rh8Oe
 kTwXa0u8uHv7Og57qWlKi2o47eR+YzmMfa8OVi1rWN5oVGj8QCeH+IdHhN12veaGNTN0
 eu31SAXzjFlmyxGWZgwVR9nN6QuHIHF7nWMY0NL/6C8PqNipsXaA0G6yCWMPzU6jn48u
 yPJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=cvvFyfXxc0+gE+jTUwIPrClR0dbwyLH+FAo14RGWnBI=;
 b=MvfFJa2MYsqCYK3JLx/hDK05AEqlOP09DszS+hsCtmG19H1hNl8jMmnQPLr1BDyhF8
 EDvxeNGRoYqTjQzQV8RPF+fOMmcULI5/27tLAnpU365nvsYeonaPa86LhvqK98Z8ZD8M
 RM+LnX70x9cdJe3ebMQwE4tCanGQc4A0Nle2igHyS0sSNqHO58DC98fn0vmrAqY4AzSa
 sg0iJvRJXoVLu0bS9I7yLCZ/FIuIbnUUVMKPuOsZHW2hUApqAWkInMJmZHpXADfHq/dn
 JFihYoKUCHl8DiD282+45YelFSRbrRtnHxvfupcFbcXbo0350PLOuxrIfjwcUwpLYWNz
 RKQg==
X-Gm-Message-State: APjAAAW/xtvoIWJ6xEZeKkxDFg2vLETHX5SshIw4QrMYVQCm0R765dNx
 DCxveHSndmUWg4tsYvkwof8w+C0nZRU=
X-Google-Smtp-Source: APXvYqwhWOSEudWT1vXrZ7TFgm/3c/LqmWCgaOCKRUEac5mji+GiYiQEBZCiqcu0j3ybxZOrl1Wzgw==
X-Received: by 2002:a05:600c:228f:: with SMTP id
 15mr4488584wmf.160.1566377749581; 
 Wed, 21 Aug 2019 01:55:49 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.48
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:48 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 56/61] gexp: Use cross extensions when cross-compiling.
Date: Wed, 21 Aug 2019 10:54:50 +0200
Message-Id: <20190821085455.18508-56-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

---
 guix/gexp.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index d9bdde2e42..514422cb08 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1513,7 +1513,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                (string-append extension
                                                               "/share/guile/site/"
                                                               (effective-version)))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-path)))
                         (set! %load-compiled-path
                           (cons (ungexp compiled)
@@ -1522,7 +1522,7 @@ are searched for in PATH.  Return #f when MODULES and EXTENSIONS are empty."
                                                               "/lib/guile/"
                                                               (effective-version)
                                                               "/site-ccache"))
-                                             '((ungexp-native-splicing extensions)))
+                                             '((ungexp-splicing extensions)))
                                         %load-compiled-path)))))))))
 
 (define* (gexp->script name exp
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:43 2019
Received: from localhost ([127.0.0.1]:34740 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ7-0006et-Aw
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:43 -0400
Received: from mail-wr1-f43.google.com ([209.85.221.43]:32793)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPK-0006Tz-LW
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:55 -0400
Received: by mail-wr1-f43.google.com with SMTP id u16so1262147wrr.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=/Jwik5zoM/W/BFb8aJruUnY11C6zex3zb3wXecN1nQQ=;
 b=R57e+MUP7ozreiuGo6WVehvtGPJf4MpmF4KaJKffIJF7+ForK02nYIf8Xk3fZ1tXBc
 wUDzYQXIVME0QHOfEaZoomadicPlC9IwGlXOcj386N71IDSlzo2ZEdj3XGPPze5JaX9F
 Ti2Ry31ungDmPgtadJdiY4voGVJPTGg7O3yXQqBRpOeLQ7iJVtUWbgKdmN5qZsBHZ8uv
 9h+OysmD69/kcW6QD3sAqw/1OPrF+uxl/F8XCQxdiTHYmadU2+S6TmEAqIy9Aa4UURYQ
 sitT+lojdFkEn+jGt2rliY1bTE+5GAObJLJW4QalFpUXp2D50Qp/JLTkAnWbgceGW1d8
 HCJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=/Jwik5zoM/W/BFb8aJruUnY11C6zex3zb3wXecN1nQQ=;
 b=dS5fTFrA/+pxQ5o9f8aBi3kCgDamz3RSAN54LKx4Vo0478vjwF7gVgxyDBc1exVfMs
 1Jji63jeAtWSJ9kNG0GcC+4uuaMLO2uaXRYwk2DE2oq6RancoTmqmhfmNBhgctpRCf91
 8py/AUnKB3YtOGxBXCSpj6Sr8QCqa+ghpqiPJ3RviPlrfTBADNIy234jZ6T5jqB4gX46
 jApV3WtV8Ey3GZOBCeYnaNTxKyliGlr3Y2UFC0XgEMRdZXWp6IzyBJgyY/8dhrhn2ujX
 y8RcGf23C+4GdmUcwebe+/6GdOvUnT4YW52BE09HGBbj3/u8VROOGY5aAbQyv9TpR3k+
 Laug==
X-Gm-Message-State: APjAAAXU/2IGYmhEVaj8T+t92/AC14j8QCPPuxXTWvFU1kpql3cXGbsP
 MdTSoz3Xdp0kFV0WplUjuJwRCrYWByM=
X-Google-Smtp-Source: APXvYqw4YJsWZH48KQ56BTKUTiw0h560XbDLu+KKXnUSvdqXCa5pSfx0NczvQShUr6BmHWDXtWH5UA==
X-Received: by 2002:a5d:500c:: with SMTP id e12mr20122325wrt.213.1566377748705; 
 Wed, 21 Aug 2019 01:55:48 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:48 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 55/61] gnu: linux-libre: Enable built-in ext4 support.
Date: Wed, 21 Aug 2019 10:54:49 +0200
Message-Id: <20190821085455.18508-55-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

When running qemu-img from (gnu system vm) with an aarch64 kernel, mounting
ext4 partitions fails because no modprobe of ext4 module is made. Like for
other kernel configs, provide built-in support for ext4 partitions.

* gnu/packages/aux-files/linux-libre/5.2-arm64.conf: Enable built-in ext4,
like in intel and armhf configs.
---
 gnu/packages/aux-files/linux-libre/5.2-arm64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/aux-files/linux-libre/5.2-arm64.conf b/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
index bfd8c18ddb..4ad652a78f 100644
--- a/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
+++ b/gnu/packages/aux-files/linux-libre/5.2-arm64.conf
@@ -8023,7 +8023,7 @@ CONFIG_VALIDATE_FS_PARSER=y
 CONFIG_FS_IOMAP=y
 # CONFIG_EXT2_FS is not set
 # CONFIG_EXT3_FS is not set
-CONFIG_EXT4_FS=m
+CONFIG_EXT4_FS=y
 CONFIG_EXT4_USE_FOR_EXT2=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_EXT4_FS_SECURITY=y
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:43 2019
Received: from localhost ([127.0.0.1]:34738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ4-0006ej-G2
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:40 -0400
Received: from mail-wm1-f42.google.com ([209.85.128.42]:33590)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPJ-0006Ty-Mg
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:54 -0400
Received: by mail-wm1-f42.google.com with SMTP id p77so4277988wme.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=ukNvIWXfhcbrIt7Aq6Kia6x3wETiN20GtljSYNw0bdE=;
 b=dYd5IWUY4qAzFE6O7qEbY4IVG1g1KXvo2u5sOMRhSuEGq0GdDwYdH5wzfOSZKh6L1Y
 NOltzjtMglKBqkb75TQjNuvxRwqFSfks/OsNp2pRRlIpu3dRb5ZnbkDYpom4H6rQe8pR
 Wg6GjPz3HUn1A736y80WUg0BiN2UnFh1fsN9sBweZFWurv6APCC+GEn7988yISc5jvOv
 E4z4y85U5qjZf8EbawYdeNqErLvlnbd18iIWqnN6fWeT7e3dWE07ZZjKS8jyj7EcHsc5
 /JlNvf1OZlAh/oYUHIw/Fs2JXt25bPrb90tKYU2BT8o5iGO+LHdue72FkSj1VdroJzSI
 NtTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=ukNvIWXfhcbrIt7Aq6Kia6x3wETiN20GtljSYNw0bdE=;
 b=QG/8D12vak7tqAwRAtLWgLff8GiEH/TsZc1un+Yh4Z1/3lP6FmVeTWVhSKu9J7Yq+F
 xGUdGuv9GZkzh9sb5waqpoZTYnycqmWIkoU2hWfZ9i6JdN/u1iGzBXVLDLZBP6/FephG
 p61oHXAh2MJdoGBVqCZxA52BRyWCTyqhYbSF3deYpkv8e8Lf1HmZ2soDJuA/3C8X3Xrz
 aIqdck6l1SY13+kEXenHL8Fnp4HP25F+1ltaBW61Ah99ER4QGY6a/yPHadpm49sbIqQz
 R9nozVssdSD7VtA5J7rZSI74yo4ZpByqr8v8vnKvlkNzSAbd+dPqsMDkfbuAJT/ROmcA
 ooFw==
X-Gm-Message-State: APjAAAWUgF10etvutzZe89zmsiCj2JpBiiQFInSNGCZY055uwuzk0uuF
 l1pdB3DrxsYmZmSXeFhEFkciURp60CY=
X-Google-Smtp-Source: APXvYqxoxGZGM8O+ELCgl7QxKDEIkeM7xBU+NEX2A46g4hbVXpQ32rg8h7BNuFVlnh6aAI+UCvWcLA==
X-Received: by 2002:a7b:c1c1:: with SMTP id a1mr4993856wmj.31.1566377747859;
 Wed, 21 Aug 2019 01:55:47 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:47 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 54/61] linux-initrd: Use native gzip.
Date: Wed, 21 Aug 2019 10:54:48 +0200
Message-Id: <20190821085455.18508-54-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/system/linux-initrd.scm (expression->initrd): Pass native gzip to
build-initrd procedure.
---
 gnu/system/linux-initrd.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
index c90b87c023..34062a3517 100644
--- a/gnu/system/linux-initrd.scm
+++ b/gnu/system/linux-initrd.scm
@@ -99,7 +99,7 @@ the derivations referenced by EXP are automatically copied to the initrd."
                         #:init #$init
                         ;; Copy everything INIT refers to into the initrd.
                         #:references-graphs '("closure")
-                        #:gzip (string-append #$gzip "/bin/gzip")))))
+                        #:gzip (string-append #+gzip "/bin/gzip")))))
 
   (file-append (computed-file name builder
                               #:options
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:40 2019
Received: from localhost ([127.0.0.1]:34736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ4-0006ec-5J
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:40 -0400
Received: from mail-wm1-f46.google.com ([209.85.128.46]:56051)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPI-0006Tw-TT
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:53 -0400
Received: by mail-wm1-f46.google.com with SMTP id f72so1257744wmf.5
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=4xnHTmjVDui5nVD3cucNF5qppjN5En3KEWtVRDGkeuA=;
 b=YmtN8ujR5H4l0hXa7znfVEFPqo9qpMUONyttzYo0xfmiWQH7ySGYZt5sZZipuAaLI9
 f/AI+PZeraaVAMHAloKnuKYdOC4M99f8enr5cbyQTc8nOom+AZzq8EMeppNFC+2t/22a
 MdkF65HNwOHLJB21cxVS2fmlM+9PF3ifsY44+lyhw8TeOUaiYe7Gp75oxTva02imSgCW
 AMvwIGqKxDaTJkNUiyqidZEc7yB9ntzST77Qj+6J1hGV+m26ghB7psmC93sFWBWAOBc1
 KxvBgRHggktgCIMmIIdCKNISjEKkGWkSDstFa3zes4wbTRiArERy14G0NHQf/dSUjXD/
 TWqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=4xnHTmjVDui5nVD3cucNF5qppjN5En3KEWtVRDGkeuA=;
 b=i8PGhu0kpm8PNG88O9BtaHm+YGCSRHLO9DTED3SD/JFZZQBCX3e5s9NdRhtPoSEm2S
 5pYCluJ+UyuOOjK27y7MpRK9EWsfWfPslgjLrBwFypHI5DRsU6rhLpBhEPBseY1WP5L2
 3eQBgorUrDSCuqROsPxoqgcO0CEb4ieNtP4vZXlyiXBYS4hQlaeCZ/i0O+cT1JjnyJ7I
 ITVWj2d731jrItIxKQtviqZkhAml8S7delG8jtxjiAYIDvMTOOkzAh1+q+L9owZtiIuU
 fMZU1YWeVxaLt/G5Nc5CE9r+EwBHm8cDbXnTQ7szP1W52ktjs5mBcfaIhWV/2I2c33Bz
 VI7w==
X-Gm-Message-State: APjAAAVIR4CClG2rugPudOiDNrt1MfSsTGSgoOQNeI1yxeH+GGvFgYIz
 S31TdsS/MXj4LsTYqdzqILd4ruJsjBE=
X-Google-Smtp-Source: APXvYqzwHgRgBTy8m05DJEiAe18xvBQXwat7mRdLR+nRyP73A1WICp3tvR4EdNGLhz8G/w4UcM31uQ==
X-Received: by 2002:a7b:c246:: with SMTP id b6mr4931645wmj.13.1566377747044;
 Wed, 21 Aug 2019 01:55:47 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:46 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 53/61] gnu: grub: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:47 +0200
Message-Id: <20190821085455.18508-53-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/bootloaders.scm (grub)[arguments]: Search for unifont in both
native-inputs and inputs.
---
 gnu/packages/bootloaders.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 41a2de9706..b235e1bc78 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -99,7 +99,7 @@
        (list "PYTHON=true")
        #:phases (modify-phases %standard-phases
                   (add-after 'unpack 'patch-stuff
-                   (lambda* (#:key inputs #:allow-other-keys)
+                   (lambda* (#:key native-inputs inputs #:allow-other-keys)
                      (substitute* "grub-core/Makefile.in"
                        (("/bin/sh") (which "sh")))
 
@@ -114,7 +114,9 @@
                                        "/sbin/mdadm\"")))
 
                      ;; Make the font visible.
-                     (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
+                     (copy-file (assoc-ref (or native-inputs inputs)
+                                           "unifont")
+                                "unifont.bdf.gz")
                      (system* "gunzip" "unifont.bdf.gz")
 
                      ;; Give the absolute file name of 'ckbcomp'.
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:40 2019
Received: from localhost ([127.0.0.1]:34734 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ3-0006eV-Ri
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:40 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:46904)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPH-0006Tu-Tl
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:52 -0400
Received: by mail-wr1-f49.google.com with SMTP id z1so1207786wru.13
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=p0iJWeQM4P49uByDIXzv59ogn92yPq4f2poEVFJ+0Zw=;
 b=sjytbJ5MbGcluzXP88eCWnbBdmQtKlafh9JTuWC/6CnCyBq8KguoZZMc+mxwnOZoS+
 KO893rdbNOIF56XCCrxQvxuAeBzctX1OBWs71+mrWzBCwQByzw+P6DFojh0vsFjLfpRL
 zOVqghamrkhqD8uuHAlamJ3c2UoMvWEzHy65031ZPTvFKSf2CDPSkX2fra2f2W/ownMA
 HyyXmy8nOhGbbDPuIvK2o2ErMl9uEKIoDGa6s2CotCaw7ahjGBjBthbDV5+zdBebUh31
 g1DMW1w1UijiAU7cmA5Vam61djeKRX2QEfR0gXADZWcudoqL7SlQrt7gx480WlsDBgfP
 sAmg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=p0iJWeQM4P49uByDIXzv59ogn92yPq4f2poEVFJ+0Zw=;
 b=gDFbkpTMRh+Yn8N0ci8FG/VShNdub94su8kW65zkyYy0hfrKDL5BdNbT9lHnQZkHAZ
 hmICQje/21zQeb/9kXE/YUi5E5zaP6ujGD0iskXRxBonWO3vsyvEhzjmKUuNqTmk6yH0
 XxU5zUb9z6S7p+KIKXZbZ6GFacGo0tj+vFu6GiJgZkEguQTzFpo0sgsOYLXyFfucN3zS
 MjthsxLnGEZaf/XAYEH8sYM88DVuX5/HZwyCGPKlPnO9GOZ1dBQXvTCJ085c7dKeX620
 rX5MVGj7TJCSZcdI5NJH9oLx6AZszAC4eOGcQ0wkveGVSnDy77Kw/q7kP4oosOnpmXXS
 cyyA==
X-Gm-Message-State: APjAAAUbI/TBwSpZUymRBjqiLnWDU3f54wnKnjQPeWAp4+BeMt+K+GUn
 SIRZGw53GQGSo9WdO0/gcDA2JMH4s5Y=
X-Google-Smtp-Source: APXvYqyeM0f2lboaKhgp0r8JbY2KB9cVWYbe5MPCKEs0LIF5YQ+M8F7LZaqXnHkKWNvsAcyoCb9fXw==
X-Received: by 2002:a5d:6ccd:: with SMTP id c13mr33274430wrc.4.1566377745966; 
 Wed, 21 Aug 2019 01:55:45 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:45 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 52/61] gnu: mdadm: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:46 +0200
Message-Id: <20190821085455.18508-52-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (mdadm)[arguments]: Search for coreutils in both
native-inputs and inputs.
---
 gnu/packages/linux.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 26cba842d3..4283894008 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3525,8 +3525,9 @@ MPEG-2 and audio over Linux IEEE 1394.")
        #:phases
        (modify-phases %standard-phases
          (add-before 'build 'patch-program-paths
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((coreutils (assoc-ref inputs "coreutils")))
+           (lambda* (#:key native-inputs inputs #:allow-other-keys)
+             (let ((coreutils (assoc-ref (or native-inputs inputs)
+                                         "coreutils")))
                (substitute* "udev-md-raid-arrays.rules"
                  (("/usr/bin/(readlink|basename)" all program)
                   (string-append coreutils "/bin/" program))))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:39 2019
Received: from localhost ([127.0.0.1]:34732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ3-0006eN-7M
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:39 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:40370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPF-0006Tq-Vj
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:52 -0400
Received: by mail-wr1-f66.google.com with SMTP id c3so1228103wrd.7
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=wt01iLXERxC3NgljfLqUzZO/f3ByWWutDdotc+bTNv4=;
 b=jvjzja/G/nlPPK6RXc9ppGIEIj1eGxMQC7wmRnVVf6ZWWkK7n/e0NzQMPtW14ZxdPb
 89SlSCihObAEhe4dAqbqzDwX58kx6r+14BH9ORgZh84AxA5dkna/KaVTB089bgobAv9M
 jkU6gBYD5TjQeQIGCo1LWhoxOdc2kS/UlIvinq4j3+F5sQ9xkNeMT48NgZx5MHhZYi5/
 YF31B0hw55SugYgVHJd0W6260POGsdNNK9j1A8uiIBuH+XU4mKu5KFMo5UHlXn5AGX1W
 jsrLqxTqUO/hlQqoTi2BT629sVSm73bXPHmgffK+yEncp8s0SCDPHzofPpKejyhwBErB
 vhig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=wt01iLXERxC3NgljfLqUzZO/f3ByWWutDdotc+bTNv4=;
 b=j6F4rOxXdJXIyRENZ4zwIcdGtFyMHA3GS7hduGxdbcOruzSrMzzwLN+Z+TZDPIPKKv
 PU/EhzRLXAPG/cymLADoT5A5xGzqfF2CyaQhk9UIF5p0BrhQ1oY2T5UTD+AdzYvBH/NG
 pdcIpDKpX6FekB/8sZxawGvmxl189oyEM6rn8c1RiZ5Jb2+O0W6L7xXQx7NCpVBtuBYI
 fGTkDepK6cMVm6wF8e4+WS77CMhX492RQdx1Te0bt4poEbrEg9a/PQcLvoy1MhQ+Dtsr
 yu4HnGRUAzGTNR3VxeFl0R1/2qdSZDOtr+OFUY2h+F6lFQ/zlaw+trF0w4lSyUoty0ls
 OmwA==
X-Gm-Message-State: APjAAAUdOnO0ALAQU8rlMlwQEwwBjAPymE+T1JNipMf3hTpXZgfDj82O
 EWHvChAnOL8CT60PA2C4cmgNdkYKZRE=
X-Google-Smtp-Source: APXvYqxU/2YyIp3zkI072B0XxFmmkEJIP9++mYjuoCbXXe1c7xgIv/v/8TMOcs/u2iMVkvfDk87+9Q==
X-Received: by 2002:a5d:52cc:: with SMTP id r12mr31678361wrv.272.1566377744151; 
 Wed, 21 Aug 2019 01:55:44 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:43 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 50/61] gnu: cmake: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:44 +0200
Message-Id: <20190821085455.18508-50-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/cmake.scm (cmake-minimal)[inputs]: Move all inputs to ...
[native-inputs]: ... here, except for ncurses.
---
 gnu/packages/cmake.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 9bf0273f00..cae66f2525 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2018 Arun Isaac <arunisaac@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -145,16 +146,17 @@
          (replace 'configure
            (lambda* (#:key (configure-flags '()) #:allow-other-keys)
              (apply invoke "./configure" configure-flags))))))
-    (inputs
+    (native-inputs
      `(("bzip2" ,bzip2)
        ("curl" ,curl)
        ("expat" ,expat)
        ("file" ,file)
        ("libarchive" ,libarchive)
        ("libuv" ,libuv)
-       ("ncurses" ,ncurses) ; required for ccmake
        ("rhash" ,rhash)
        ("zlib" ,zlib)))
+    (inputs
+     `(("ncurses" ,ncurses))) ; required for ccmake
     (native-search-paths
      (list (search-path-specification
             (variable "CMAKE_PREFIX_PATH")
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:39 2019
Received: from localhost ([127.0.0.1]:34730 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ2-0006eG-Rr
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:39 -0400
Received: from mail-wr1-f47.google.com ([209.85.221.47]:37488)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPH-0006Ts-21
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:52 -0400
Received: by mail-wr1-f47.google.com with SMTP id z11so1244362wrt.4
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=lwhfgbfqRdyuTQ8j7gBX1+dXb3ylK1tN+lL/hBN+Rck=;
 b=fEzkmoOhxr1YUehU+du5mnLBcdGp8Ks/vCUGCE4yKILKUhPOrRevNQGHDoH2QI8Z8B
 M0rhRCk5nUARt8WTAIabbySAUaWHMd25DdomkgJO3jhI23PbN/P/nyjYU8TXspHnrpOV
 2yMzJ1m6OnQz2xPo+pOmeJm/YZ0xa3XyTMljz81CUQxgsJ61DNCv7/AYRsX6X3jQo3WN
 OIxi0qqG5dQbmWkCtzopaPa+oAau6Nvf85bAy0LsbMih6dMLvg6J6YmX6dxWxxq3sXRi
 nuBIlRdgURzpDyoyYfX7/y5lyiEaEORyLCAnp6YN4zYTywXfXWBsE415ldYWl/sxyVvJ
 mdxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=lwhfgbfqRdyuTQ8j7gBX1+dXb3ylK1tN+lL/hBN+Rck=;
 b=OwUhvm0yud3s4u08yPdN37LYZsw7/WI0HxjoB97wSGLaB/8ijO4P6rFAVlktZS/FpP
 yDiEowvS/vEmWAxBG4eVGMfoP6z2J9QMOnvyMp4677X9yCQpeqCkdLVpwEk7qAGH1fuj
 LBsDaCgFMnENemUlAxxVXo7ZkTYOFGcxGAmN15qlTCbGNUhKMHJyZ768e2h3bwXQguC7
 nb70/bLz8SXjqw57UgMmv7aLavVsmnjVKNKhFtK/XD+/630XbzDu8rJ6v6lyMqYEojKG
 56kHLyzJxgie8eh8wl2u4cj7Y28UjqxmbWeiuMhFWikAxgpGhCNyVUdLFwHJYF3I2wvt
 XSCQ==
X-Gm-Message-State: APjAAAX/v1Bz+ceDykCyYRqdJpzP8l1Noj1MbWqI/1CLzEcgb6iRR9gF
 1Y2vqn/XqoWc9cI7ScpNSf+xmUrdSgs=
X-Google-Smtp-Source: APXvYqxYHrq292XTPQuCGVI/ZrhEaZxQQnFCQSLvfN+71p6EAhH5tcxDDs1iH+EtqAogm4C2YBIS/w==
X-Received: by 2002:a05:6000:1603:: with SMTP id
 u3mr4992638wrb.286.1566377745175; 
 Wed, 21 Aug 2019 01:55:45 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:44 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 51/61] gnu: console-setup: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:45 +0200
Message-Id: <20190821085455.18508-51-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/xorg.scm (console-setup)[native-inputs]: Add perl,
[arguments]: search for bash in both native-inputs and inputs.
---
 gnu/packages/xorg.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index d4ea12be95..c695177c9a 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -6412,25 +6412,28 @@ output.")
                                " ")))
              #t))
          (add-before 'build 'make-doubled-bdfs
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs #:allow-other-keys)
              (invoke "make" "-C" "Fonts"
                      "doubled_bdfs"
                      (string-append "SHELL="
-                                    (assoc-ref inputs "bash")
+                                    (assoc-ref (or native-inputs inputs)
+                                               "bash")
                                     "/bin/bash"))))
          (replace 'install
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref %outputs "out")))
                (invoke "make" "install-linux"
                        (string-append "prefix=" out)
                        (string-append "SHELL="
-                                      (assoc-ref inputs "bash")
+                                      (assoc-ref (or native-inputs inputs)
+                                                 "bash")
                                       "/bin/bash"))))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("bdftopcf" ,bdftopcf)
        ("bdfresize" ,bdfresize)
-       ("sharutils" ,sharutils)))                 ;for 'uuencode'
+       ("sharutils" ,sharutils)                   ;for 'uuencode'
+       ("perl" ,perl)))
     (inputs
      `(("perl" ,perl)))                           ;used by 'ckbcomp'
     (synopsis "Set up the Linux console font and keyboard")
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:38 2019
Received: from localhost ([127.0.0.1]:34728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ2-0006e7-Ef
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:38 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:37413)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPD-0006Tg-96
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:51 -0400
Received: by mail-wr1-f67.google.com with SMTP id z11so1244169wrt.4
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=zR13IYEH7NtERxtk14hFcgvgZJu2b/UFN3zgzDxdQC0=;
 b=h24g+LLuTnOhvJ20cHzDdlQ+9Y+7uKIEMcx0r7MyONGGsfrc6BqYdeP73lt0IqAvNR
 S78CC8irX7P4UgMBcNQBxWPBN4hEXYVlaOzBM0z1wpX/Jb1n/SN01gxMmWAaJO2Tlxe9
 DahoU3YqWnlbgvB4UcGUpj0wNVb5j3Zx/irYnoOGkCL7yD27utzZekyUxRYRrD9HgwHP
 Mga62mo4nAI9wCyD/myHjzEH8XD+hyEp812oxS2kBB4Pz7W9iz3uqcDQAzbwDUj95fNK
 womjBsm8X3Dd5bRN+kjxqAyjxcYnvyP4k9N4jBc4ah+uiMuvNPzWnrQF/DqGkHfZirro
 GUmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=zR13IYEH7NtERxtk14hFcgvgZJu2b/UFN3zgzDxdQC0=;
 b=DquEgj+yM7wFnLED/vDAOJyOrtDo51kPM7QDCzdv03eDh9UO9IikVylHr5OSkfpD5l
 ZxGB+0rjoyPzrFT7B3G6KXYGzGVs70B/HRSQQ94l9WTH+/aW/ZhR+45RYhnt8v96jz5Q
 XHxmaiAwUfZa1qCTPuWNUZuxzZTe1d7DQIP/C/Nbe9pSrkP4z4jWakXapaVPQCN0W2Xt
 t5k8+uxqNKT4vJidB4zA0folqNHrGNyQSw+XbGi/alXReLp116wt52hPGOZUVTb3C0DW
 sbBjoiL4EvHRO0gY6rEx8FnWYj6oNALo5keNtBaBJwGv9V3MmFZ3eBUwxAt7eUtYTDdi
 9Lbw==
X-Gm-Message-State: APjAAAX8qeg8u0mdqRVLtID77V9kHD6pMspaI1mFSpjQpmxV6Fs85Nya
 AtHw3KOIwjDzTluCJbpLicTcZNDxHy4=
X-Google-Smtp-Source: APXvYqzpRcGgLgOOC2wwlTFfeGQp2vrWIIyILoZq6vPeN5rVwgKzJdoNyuAZzCqkUONEmXforikg4w==
X-Received: by 2002:a5d:664a:: with SMTP id f10mr39973428wrw.90.1566377741429; 
 Wed, 21 Aug 2019 01:55:41 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:40 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 47/61] gnu: crda: Fix cross-compilation
Date: Wed, 21 Aug 2019 10:54:41 +0200
Message-Id: <20190821085455.18508-47-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/linux.scm (crda)[arguments]: Patch Makefile to use cross
pkg-config when cross-compiling. Also search for wireless-regdb in both
native-inputs and inputs. Set CC variable to cross-compiler when
cross-compiling.
---
 gnu/packages/linux.scm | 67 ++++++++++++++++++++++++++----------------
 1 file changed, 42 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 7503e47805..26cba842d3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2793,13 +2793,23 @@ interface.")
               (patches (search-patches "crda-optional-gcrypt.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
+     `(#:phases (modify-phases %standard-phases
                   (delete 'configure)
                   (add-after 'unpack 'gzip-determinism
                     (lambda _
                       (substitute* "Makefile"
                         (("gzip") "gzip --no-name"))
                       #t))
+                  ,@(if (%current-target-system)
+                        '((add-after
+                            'unpack 'fix-pkg-config
+                            (lambda* (#:key target #:allow-other-keys)
+                                     (substitute*
+                                       "Makefile"
+                                       (("pkg-config")
+                                        (string-append target "-pkg-config")))
+                                     #t)))
+                        '())
                   (add-before
                    'build 'no-werror-no-ldconfig
                    (lambda _
@@ -2809,37 +2819,44 @@ interface.")
                      #t))
                   (add-before
                    'build 'set-regulator-db-file-name
-                   (lambda* (#:key inputs #:allow-other-keys)
+                   (lambda* (#:key native-inputs inputs #:allow-other-keys)
                      ;; Tell CRDA where to find our database.
-                     (let ((regdb (assoc-ref inputs "wireless-regdb")))
+                     (let ((regdb (assoc-ref (or native-inputs inputs)
+                                             "wireless-regdb")))
                        (substitute* "crda.c"
                          (("\"/lib/crda/regulatory.bin\"")
                           (string-append "\"" regdb
                                          "/lib/crda/regulatory.bin\"")))
                        #t))))
        #:test-target "verify"
-       #:make-flags (let ((out   (assoc-ref %outputs "out"))
-                          (regdb (assoc-ref %build-inputs "wireless-regdb")))
-                      (list "CC=gcc" "V=1"
-
-                            ;; Disable signature-checking on 'regulatory.bin'.
-                            ;; The reason is that this simplifies maintenance
-                            ;; on our side (no need to manage a distro key
-                            ;; pair), and we can guarantee integrity of
-                            ;; 'regulatory.bin' by other means anyway, such as
-                            ;; 'guix gc --verify'.  See
-                            ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
-                            ;; for a discssion.
-                            "USE_OPENSSL=0"
-
-                            (string-append "PREFIX=" out)
-                            (string-append "SBINDIR=" out "/sbin/")
-                            (string-append "UDEV_RULE_DIR="
-                                           out "/lib/udev/rules.d")
-                            (string-append "LDFLAGS=-Wl,-rpath="
-                                           out "/lib -L.")
-                            (string-append "REG_BIN=" regdb
-                                           "/lib/crda/regulatory.bin")))))
+       #:make-flags (let ((out     (assoc-ref %outputs "out"))
+                          (regdb   (assoc-ref %build-inputs "wireless-regdb"))
+                          (target ,(%current-target-system)))
+                      (list
+                       (string-append
+                        "CC=" (if target
+                                  (string-append target "-gcc") "gcc"))
+                       "V=1"
+
+                       ;; Disable signature-checking on 'regulatory.bin'.
+                       ;; The reason is that this simplifies maintenance
+                       ;; on our side (no need to manage a distro key
+                       ;; pair), and we can guarantee integrity of
+                       ;; 'regulatory.bin' by other means anyway, such as
+                       ;; 'guix gc --verify'.  See
+                       ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
+                       ;; for a discssion.
+                       "USE_OPENSSL=0"
+
+                       (string-append "PREFIX=" out)
+                       (string-append "SBINDIR=" out "/sbin/")
+                       (string-append "UDEV_RULE_DIR="
+                                      out "/lib/udev/rules.d")
+                       (string-append "LDFLAGS=-Wl,-rpath="
+                                      out "/lib -L.")
+                       (string-append "REG_BIN=" regdb
+                                      "/lib/crda/regulatory.bin")
+                       "all_noverify"))))
     (native-inputs `(("pkg-config" ,pkg-config)
                      ("python" ,python-2)
                      ("wireless-regdb" ,wireless-regdb)))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:38 2019
Received: from localhost ([127.0.0.1]:34726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ2-0006e0-3K
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:38 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:35782)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPB-0006TS-IN
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:51 -0400
Received: by mail-wm1-f67.google.com with SMTP id l2so1298111wmg.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=wdHu+2q1a+FRTbITzkojxl6xX+KDw3hiwBvBasp2vPQ=;
 b=hqUXDkSYZ2w8qH5jLR3fi4dCUSXQJ+YcJ4PciFVisCL6bUg7ys2PE7Ap0gTZAVwqUz
 qvJWJoXgcvJog6XEcphQoB8OsjSOOIUhI5zEPgZzRrJ91mCF8hoxrZrivjV3z+zgdJQb
 3Jw8Zep2WnfVvSsbezdl09qKraVaWZEjY70Nrmzmtn3TMtBBvc8xZEjWtrma5AIabIZ2
 VjItJP9hSedVd/mpetS15bKfxEUOxT558ARUOSetLxo1M735NGiHjyJRT1rfRbsmc9KC
 WZky4wAocSV4TNl8pggu6xyeXEfDvvLKdp03ufVPdgZIcCyhrdbTZZ/voZ0Xdok9IxsL
 CSIQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=wdHu+2q1a+FRTbITzkojxl6xX+KDw3hiwBvBasp2vPQ=;
 b=LHa9GDaVVZERLfnG8q9AzXg0DqZPAgnyam0sqZAfnMOx7KlfRUEC0AM75uS33CPtvP
 O3uL4XDDvxDqBZ+WTk2YDF0c0ClrPnBg3co+Vft/aJlqDG+FU6sfvXtyHylq8yq+aYV+
 8y7OTKHXNJq5Q96RQwpK3TJWF5WC8A8nK4N+Wp5ac2w2EZt7n/IISgvpNyp3MH/thpD+
 cxshwPA6h/vWjf0eekEfqfbN6MgeasE829hrnVyLbwpFO952o+BZj/FuCX+Xtg04h4kS
 hRi39lHOspj/l7r8BeesElo7KRS2Hfo26sNLV41D5s+AxjfY+5seFicfImJOltVrZWi3
 oy2w==
X-Gm-Message-State: APjAAAVsupQcCywIVh7e8yqgBHV25U7lP8jUXTxD3aZzZpeevJFMLLoY
 twi7rWNejBSmNLzKeUd/tHON/o7ltz8=
X-Google-Smtp-Source: APXvYqxlTU3bYG8rNbJRsZsMvpA3oLuLJ1kwflASxX4uVZyJ2NBP62y3J1iMwusDUvWm/A96EufGiA==
X-Received: by 2002:a1c:6c0d:: with SMTP id h13mr4404100wmc.74.1566377739717; 
 Wed, 21 Aug 2019 01:55:39 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:39 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 45/61] gnu: texinfo-4: Fix cross compilation
Date: Wed, 21 Aug 2019 10:54:39 +0200
Message-Id: <20190821085455.18508-45-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/texinfo.scm (texinfo-4)[native-inputs]: Add automake and
native-inputs from texinfo package,
[arguments]: Replace outdated config.sub and config.guess by the ones
taken from automake above. Also make sure native tools are built before build
phase.
---
 gnu/packages/texinfo.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index 19f87a4de9..fde1a12a91 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -21,9 +21,11 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu packages texinfo)
+  #:use-module (gnu packages autotools)
   #:use-module (guix licenses)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix utils)
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages)
   #:use-module (gnu packages compression)
@@ -106,8 +108,37 @@ is on expressing the content semantically, avoiding physical markup commands.")
               (sha256
                (base32
                 "1rf9ckpqwixj65bw469i634897xwlgkm5i9g2hv3avl6mv7b0a3d"))))
-    (native-inputs '())
-    (inputs `(("ncurses" ,ncurses) ("xz" ,xz)))))
+    (inputs `(("ncurses" ,ncurses)
+              ("xz" ,xz)))
+    (native-inputs
+      `(("automake" ,automake)
+        ,@(package-native-inputs texinfo)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments texinfo)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (add-after 'unpack 'fix-configure
+             (lambda* (#:key inputs native-inputs #:allow-other-keys)
+               ;; Replace outdated config.sub and config.guess.
+               (with-directory-excursion "build-aux"
+                 (for-each
+                  (lambda (file)
+                    (install-file (string-append
+                                   (assoc-ref
+                                    (or native-inputs inputs) "automake")
+                                   "/share/automake-"
+                                   ,(version-major+minor
+                                     (package-version automake))
+                                   "/" file) "."))
+                  '("config.sub" "config.guess")))
+               #t))
+           ;; Build native version of tools before running 'build phase.
+           ,@(if (%current-target-system)
+                 `((add-before 'build 'make-native-gnu-lib
+                      (lambda* (#:key inputs #:allow-other-keys)
+                        (invoke "make" "-C" "tools/gnulib/lib")
+                        #t)))
+                 '())))))))
 
 (define-public info-reader
   ;; The idea of this package is to have the standalone Info reader without
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:38 2019
Received: from localhost ([127.0.0.1]:34724 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ1-0006dt-Lu
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:38 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:41934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPC-0006TV-Bw
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:51 -0400
Received: by mail-wr1-f53.google.com with SMTP id j16so1229216wrr.8
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=okINyQSmSVRHzdI3lQevXFNPn35xWXx+YBIHiITo/hk=;
 b=Eys5EcZNVO6m+n42aPw2EL69XoUCB0yxgJmg4TfYNU8TxFV5gegB9QfMCNyUnJD2Ft
 0lHovX5B1d9q0E37Z13r4U4w0OdB8GMixQo2T8iyHTvXz6I21ik9x1ickOiYb03sQCci
 TU9VCDDWixVq61eN0AUQ0J5nE37z3eqiTRqBxxh9JJxho3jANbQ4ku5XZiH3n/LfF8iL
 HoyvZ8RRgArIoVH+Erj58u5csQzsUFOU4gEDI2CK7OzU8qGHSSUew/7CWS8dCezbHVRj
 S3n/MLjBA303vKz8vj2ZKQGit0IRN3bBEkU4AFUmONSHdMFl45tSrbaZe7mG34XHIuNU
 nsgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=okINyQSmSVRHzdI3lQevXFNPn35xWXx+YBIHiITo/hk=;
 b=JB1iDMQKIbbXEO2uZaTHWWstrtyIeW9y99/2sBeLq/Aw4vqi3qY3aGEyhfYIttmuaE
 RLpiLUJRDlRT3SB3PCiGU6dlGS9QJ5IhiXx3XlH0jEYVzaijzAy6NsCW4B2I3hAGMeYg
 x+cmep//QhXICdRlZ0rQTx1VZhMOWHJZqw30jsPucdC7mFQIwRbgeSRkJ9mHjOF0qIDy
 GpokrNROF86RLminMA47s1/pNdTM7lk4L4vpcuoXFx1Ir/cpNBMVi+rjgOyVXnjVlZBM
 wQ7GbZWjp0s0AeBpsovikgaYoX7wcud9IRwgqMAIWg9SbU1f8ZDDcJPm7RJnrzfnBkFx
 2IGw==
X-Gm-Message-State: APjAAAUHC7oVGYwsLPubA7CouzzHZBeTW8uDWvJpbzRHD61R8wo+ncp0
 Bkyd18Wm4TTr83GsAhnH1TrVetvZGEI=
X-Google-Smtp-Source: APXvYqyYFpqmfMnfeLAwUGZckvfy9s6lRbprcRI0nrZdysRbjmj+JoCsELWp83sClGN+hB3fcvPT7A==
X-Received: by 2002:a5d:5408:: with SMTP id g8mr32768782wrv.201.1566377740478; 
 Wed, 21 Aug 2019 01:55:40 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.39
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:39 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 46/61] gnu: libnl: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:40 +0200
Message-Id: <20190821085455.18508-46-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/linux.scm (libnl)[native-inputs]: Add python-2 and python-3,
[arguments]: In install-python phase, use the cross-compiler and linker to
build extensions. In install-doc phase, search libnl3-doc in both inputs and
native-inputs.
---
 gnu/packages/linux.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index cf403c46f1..7503e47805 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 ;;; Copyright © 2019 Stefan Stefanović <stefanx2ovic@HIDDEN>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1941,6 +1942,8 @@ transparently through a bridge.")
        ("flex" ,flex)
        ("pkg-config" ,pkg-config)
        ("swig" ,swig)
+       ("python-2" ,python-2)
+       ("python-3" ,python-3)
        ("libnl3-doc"
         ,(origin
            (method url-fetch)
@@ -1961,24 +1964,27 @@ transparently through a bridge.")
        #:phases
        (modify-phases %standard-phases
          (add-after 'install 'install-python
-           (lambda* (#:key outputs #:allow-other-keys)
+           (lambda* (#:key target outputs #:allow-other-keys)
              (define (python-inst python)
                (invoke python "setup.py" "build")
                (invoke python "setup.py" "install"
                        (string-append "--prefix="
                                       (assoc-ref %outputs python)))
                (invoke python "setup.py" "clean"))
+             (when target
+               (setenv "CC" (string-append target "-gcc"))
+               (setenv "LDSHARED" (string-append target "-gcc -shared")))
              (setenv "LDFLAGS" (format #f "-Wl,-rpath=~a/lib"
                                        (assoc-ref %outputs "out")))
              (with-directory-excursion "./python"
                (for-each python-inst '("python2" "python3")))
              #t))
          (add-after 'install 'install-doc
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
              (let ((dest (string-append (assoc-ref outputs "doc")
                                         "/share/doc/libnl")))
                (mkdir-p dest)
-               (invoke "tar" "xf" (assoc-ref inputs "libnl3-doc")
+               (invoke "tar" "xf" (assoc-ref (or native-inputs inputs) "libnl3-doc")
                        "--strip-components=1" "-C" dest)))))))
     (home-page "https://www.infradead.org/~tgr/libnl/")
     (synopsis "NetLink protocol library suite")
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:37 2019
Received: from localhost ([127.0.0.1]:34722 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ1-0006dl-AJ
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:37 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:40361)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPA-0006TM-Nf
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:50 -0400
Received: by mail-wr1-f68.google.com with SMTP id c3so1227831wrd.7
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=C4uD20lBlAX3OpnirmWezE1O3QCbZhWRYvt3ogEWxDw=;
 b=ivmn8S3ml0P0yozsS3JM0/KX6pLQTZ9/VgK0ggz6rUVunYxkw3PD6WlIIwoNDL1IHg
 CxT8PaB9+DjfG4X9aTtOigPnuQ7yCFtTAljj7KSMRkHYzCWxESXvUEPo1MJx0/Bya3L1
 jO5lf8D6EbrLiwiIGd1iSQMmtRg1PsvmkX8LY+4VDE4hgbgEnNfUFmBIyCY/nZto/DCy
 dD4nqLWIj+RnJITfqSHflJduCpotXeHjlMpGhPsFHYaIZbVYPabMQZfVOWvWPBJDKcbV
 RkeaOzMCcTKvSGwNwsJQsRXrBNgnLFtxKBZ+CysTfsoiPC2EBjkMquR8p0gT2N/V6u27
 1xiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=C4uD20lBlAX3OpnirmWezE1O3QCbZhWRYvt3ogEWxDw=;
 b=mQ2jUp1LxShd1MJh22AklK6GCsNj5/Ha0/s9AI0WSg9c8IappJ454qGAPQPVmvaKoa
 gs9OQuXYx7q7rXGR83MXOQREg4nHNPBOlffuugtNrOZgq3CmZmvpJWzEqn3gflaoGzZr
 4isURaq2HI5OAP8vyv/N9AlozYkM2qmKrsaL5Bl6wgtXIaHbHJe+/0bCbTIT32X7vatV
 Nax73E0ZlQUMxWZmavMGbeqCOhexI20bF3ZIvObKhMzc6fKIoHDOydE8xN0l0L+GggbD
 e1FHFfZZA8+Z8QJVrDyMQVSPuCPfa8eMu6KBy32zWWtn2E4s/sl1XUmhRKhORaZQYBK/
 ot8g==
X-Gm-Message-State: APjAAAVmrecY0oi9nOnm0gjce17Mxl/BBa5TArPN867x5zIgbKGIu7W9
 0N1IhwxLDepGI0NmbbBWa4D/vpu3H80=
X-Google-Smtp-Source: APXvYqyXJDjeiQUfScnnI09lD+CZwogOynD/Oc1vld21FA7oMDJtKotXGiEQ215xhPLeUCfO0akHkQ==
X-Received: by 2002:adf:f584:: with SMTP id f4mr9168401wro.160.1566377738802; 
 Wed, 21 Aug 2019 01:55:38 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:38 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 44/61] gnu: libtool: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:38 +0200
Message-Id: <20190821085455.18508-44-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/autotools.scm (libtool)[arguments]: Do not run tests and use
bash from native-inputs when cross-compiling.
---
 gnu/packages/autotools.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index ceb70dfee7..98f31f6bca 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017, 2019 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -354,21 +355,22 @@ Makefile, simplifying the entire process for the developer.")
 
        ;; XXX: There are test failures on mips64el-linux starting from 2.4.4:
        ;; <http://hydra.gnu.org/build/181662>.
-       #:tests? ,(not (string-prefix? "mips64"
-                                      (or (%current-target-system)
+       ;; Also, do not run tests when cross compiling
+       #:tests? ,(not (or (%current-target-system)
+                          (string-prefix? "mips64"
                                           (%current-system))))
 
        #:phases
        (modify-phases %standard-phases
          (add-before 'check 'pre-check
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
              ;; Run the test suite in parallel, if possible.
              (setenv "TESTSUITEFLAGS"
                      (string-append
                       "-j"
                       (number->string (parallel-job-count))))
            ;; Patch references to /bin/sh.
-           (let ((bash (assoc-ref inputs "bash")))
+           (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
              (substitute* "tests/testsuite"
                (("/bin/sh")
                 (string-append bash "/bin/sh")))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:37 2019
Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ1-0006de-0v
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:37 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:45464)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPF-0006To-0l
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:51 -0400
Received: by mail-wr1-f68.google.com with SMTP id q12so1207680wrj.12
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=2uLQozcOnXn74yAurmUQTITfTukTksywcMavCvA1sWA=;
 b=NTLHT2wSzvCKVpAxGlPUsATdRsJHcj+F9Quy970toIewH3DKHj4qYRYTW4he4qeVV0
 nLQ7ej2Pg8pN38+o9nMJgzoyuiQwD9n98N0DNgFXrghXKJDKbsXCd8HHgVoULIPmb8yX
 4XoZqq7Pg7ztFvOpe2latYJ8jUmIFFpFPgxlTNucA8E2ObJw/SoKH79Gy6RUTBN2kdOm
 Vu3hnJ9jI0vRLULlr0M73/TmpjewmKOhkPBnvXL1XWpTDJFyvaMvAIlFY5wCQe/WTtk9
 PV59HCXB4I/GjwMqTpxTe/1MYd54UMyrxZndGUbc7M/pUxThB1KMwkr1HZz5px9cxkEZ
 eegQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=2uLQozcOnXn74yAurmUQTITfTukTksywcMavCvA1sWA=;
 b=W5I1C/AGt2LoubL8x1Fsf0AMRdShGoMofJJKxxxAqV7cLAf0ZVkxyWNphT76U1va6w
 NJGmn6NbTcRTia62mDDox1MXK7FLye6g7qKxpvNGzl5aH33QeIcoQEGJGV2wFhZ8wTyL
 ZbZvOPYloj4X+YyMGcoenWy1L/p9Q+lQqqecV3ohey396u7SUxaZEj4jZ9GTxcYjkVHg
 ewSxogUFvS1k+bEyNAoT+DAYGjMqM68O4QqmDNV+54aUqYS+CIWCLd1uPKav1Fjsy5FD
 hiVr9D13qcg+lVdhqGjaLr3glhAOzBAUaJT5MGBFpTn9sfb4VdqhElp8vOXkJYxXvozl
 so4w==
X-Gm-Message-State: APjAAAUv2Ur66vUwVjnIK0jcnW0SDfsduS4qUa84fQ5cydOW/UFf58oF
 8Nzsl0wZB9oDzZDyFG9y6XeHm7qXnxg=
X-Google-Smtp-Source: APXvYqw0idZKOIgKLEibFqxgFbCcy7RAAxC5BMm7v2kraMuHrqOcjcLT99hjH4W15Z6Ow2luYsS/YQ==
X-Received: by 2002:a5d:6a45:: with SMTP id t5mr10136923wrw.228.1566377743208; 
 Wed, 21 Aug 2019 01:55:43 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.42
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:42 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 49/61] gnu: guile-wm: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:43 +0200
Message-Id: <20190821085455.18508-49-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/guile-wm.scm (guile-wm): Add guile and guile-xcb to native-inputs.
---
 gnu/packages/guile-wm.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-wm.scm b/gnu/packages/guile-wm.scm
index 6d17413901..3a6eebc91a 100644
--- a/gnu/packages/guile-wm.scm
+++ b/gnu/packages/guile-wm.scm
@@ -174,7 +174,9 @@ dependencies.")
                                     Type=Application~%"
                              ,name ,synopsis %output))))
                #t)))))
-      (native-inputs `(("pkg-config" ,pkg-config)
+      (native-inputs `(("guile" ,guile-2.2)
+                       ("guile-xcb" ,guile-xcb)
+                       ("pkg-config" ,pkg-config)
                        ("texinfo" ,texinfo)))
       (inputs `(("guile" ,guile-2.2)
                 ("guile-xcb" ,guile-xcb)))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:37 2019
Received: from localhost ([127.0.0.1]:34718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MQ0-0006dX-NV
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:36 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:38640)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPE-0006Tn-5f
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:51 -0400
Received: by mail-wr1-f68.google.com with SMTP id g17so1239510wrr.5
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=ZHNehG3F6tHYLAoELkWum6s7geqjj/kqzOMc8gZsWe4=;
 b=OZJVmip0eQ2sU85mV7AftYDQxm0IyteEPs9gspMebO1ifcDlLSM8248Udh4WhxJyx/
 XwAAtw2KxDLLGSe68vKIz2RKO28YsgM75RYQscXM9A8gXaiAgX5oCaRrmYXCh27UbnBD
 vOQXvvHvz9cxQ9Rdq7ldMd3651/fJTeoTynUcADiPipEnYVxNnZ+32qMxnEb9Am9Dymr
 DicmOdR64RGDEBpd3OEf6b9SPszlKZEROgBONft3IpCObUMLfGbr2BnpDlpTDaclECoC
 sbJ1JmelJvgR2WLrGYFbtRq7XsMniMGoVT2ffjO+T7+qGo1pQxfnw7buxO/E/P0Feyup
 9dwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=ZHNehG3F6tHYLAoELkWum6s7geqjj/kqzOMc8gZsWe4=;
 b=tsihmOsxl9MYYW0SB3TiJ+9u/g9E/y8O7ySES9AZx36lYZTkAwaYLE1RqP47zEmmzu
 tcprugLNJoUXr3ILTwwOjBbYNpM6zkSPx5jvLAerMBxKaHjiM/K4aU5D6fwH/mo1LvQW
 fqir1i4afURac2jJOCc7VgvZLYEuAZQyHn+ilPexQ34s4VoBHt7FR7gJPrlQCVuVVXrg
 8Wsv/4Jb9ZPwQGuuAIoJo5kLOHpZiOnwvVZ+bnMTL4Ow62qRlYBYfrhmkX7Ws7Ok++UI
 6y8rrVFTpavMg15dvStPyb//PQ/dGrWbRclDI0mhU2rDkB1P0yetJL3XVzdQSYfpX/z1
 YGJA==
X-Gm-Message-State: APjAAAXTytj0eoxdCABgN0lJtCTquWapeTQ0LLRBuZPV3duqJWPcJzMR
 45HR1SD+sIuMZJDngAiLhEiRg37hmFQ=
X-Google-Smtp-Source: APXvYqyWDBPgJJTu+Epr/Ja3YGUOPssnvFE7ckzeXUBehOjYp9Tv2twBDoX6TKRk0GSpdHxUegEyRg==
X-Received: by 2002:a5d:4cc5:: with SMTP id c5mr11753866wrt.278.1566377742316; 
 Wed, 21 Aug 2019 01:55:42 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:41 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 48/61] gnu: guile-xcb: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:42 +0200
Message-Id: <20190821085455.18508-48-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/guile-wm.scm (guile-xcb)[native-inputs]: Add guile.
---
 gnu/packages/guile-wm.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-wm.scm b/gnu/packages/guile-wm.scm
index 2955c06a0d..6d17413901 100644
--- a/gnu/packages/guile-wm.scm
+++ b/gnu/packages/guile-wm.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016 Alex ter Weele <alex.ter.weele@HIDDEN>
 ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2017 ng0 <ng0@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -57,7 +58,8 @@
                                             "--with-guile-site-ccache-dir="
                                             (assoc-ref %outputs "out")
                                             "/lib/guile/2.2/site-ccache"))))
-      (native-inputs `(("pkg-config" ,pkg-config)
+      (native-inputs `(("guile" ,guile-2.2)
+                       ("pkg-config" ,pkg-config)
                        ("texinfo" ,texinfo)))
       (inputs `(("guile" ,guile-2.2)
                 ("xcb" ,xcb-proto)))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:36 2019
Received: from localhost ([127.0.0.1]:34716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPu-0006dJ-ET
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:36 -0400
Received: from mail-wr1-f66.google.com ([209.85.221.66]:38630)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP9-0006Sn-3N
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:50 -0400
Received: by mail-wr1-f66.google.com with SMTP id g17so1239261wrr.5
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=W/9+JUzBCsDR82qPzaNj4afW0PE9gg8bdP1EcJ/nTgo=;
 b=bizcxpGUmItAOEcz79xH+FkjPxjuQ5OXj/5u7px3IIpWH8K1jiyqdW9vICOiITQVRm
 n9Y0y6zQCEJgRraaiQs/xZD+IBDEUw6+F8cDGbZjNkZyp6A2/dLek/IZkz3zzI0hpr5g
 t0gKYWnkeEks6SwtJkW6G1eN1d2ZBVDLisG7xrNKFuClo6KY2OAUUSPc2zkeViEgbIe6
 LgzqyRoJav+K2LWlYRyhrB0PLRrVjbsZGNGjRZT8M6okLUDTKDCzHUiegO+zLn6x3tmt
 DSzQSlM7l2H+kWQ8fZslzRQzBQUTEMjut3r8cr2y7STXkgWoqojHdQmyZIA60isp8LQD
 7dKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=W/9+JUzBCsDR82qPzaNj4afW0PE9gg8bdP1EcJ/nTgo=;
 b=cqD6stJh+tG38NndxrKYlTlJsyom24PiEoRzlAKBddqhifiUHk7KyGfKs1O94+VojP
 TfRjlkJCqpqJTwAvu5l0vTcs20EOIwE+c5RsgKc8WCIpZQbFg0LBoU43BFHNyjT41bCY
 z/geHRsNoLSNYUnTFmUaOuGJSXALlgq8J0cH8bbQUE+GON0yrn+zCHd0vDpdyj8Cimu3
 C8QdR6nrn3UtwLcL0nutQKcpSpM6zK7mej2u3j7gOJX3pUIm2R83Ks8sL1S6166GUaVh
 7BSryFrpDOMrkIIPMBCFsx5ZmJV9BvpSY6ryLpVUhRVKYMCvn2v3fNNTlVye0TfYQcLQ
 SAPA==
X-Gm-Message-State: APjAAAUoDYXinQX4JsQc5san/qBmdHbbfVOTA04KYk0EdfyrEAZs1uYx
 0Bw6sHgxSvqSEDuapIJwJ7MZLTIF3ns=
X-Google-Smtp-Source: APXvYqxA7Tjj+B2wcA6Wk7DTe//qBFTCs1CkBAW0/xJDjHHOdw5hLQt+3Xy2P8qxp6LPHLz9JbvPEQ==
X-Received: by 2002:adf:e6c5:: with SMTP id y5mr37961342wrm.2.1566377737235;
 Wed, 21 Aug 2019 01:55:37 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:36 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 42/61] gnu: guile-sqlite3: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:36 +0200
Message-Id: <20190821085455.18508-42-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/guile.scm (guile-sqlite3)[source]: Apply previous patch,
[native-inputs]: add guile.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/guile.scm                        |  7 ++-
 .../guile-sqlite3-fix-cross-compilation.patch | 55 +++++++++++++++++++
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index a45a1a0802..1bb871a04b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -923,6 +923,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/guile-relocatable.patch			\
   %D%/packages/patches/guile-rsvg-pkgconfig.patch		\
   %D%/packages/patches/guile-emacs-fix-configure.patch		\
+  %D%/packages/patches/guile-sqlite3-fix-cross-compilation.patch \
   %D%/packages/patches/gstreamer-buffer-reset-offset.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_PATH.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch \
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index b07a570654..713390ada1 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2016, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2017 Andy Wingo <wingo@HIDDEN>
 ;;; Copyright © 2017 Marius Bakke <mbakke@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2017, 2018 Amirouche <amirouche@HIDDEN>
 ;;; Copyright © 2018 Danny Milosavljevic <dannym@HIDDEN>
@@ -521,11 +521,14 @@ Guile's foreign function interface.")
               (sha256
                (base32
                 "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+               (search-patches "guile-sqlite3-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
+       ("guile" ,guile-2.2)
        ("pkg-config" ,pkg-config)))
     (inputs
      `(("guile" ,guile-2.2)
diff --git a/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
new file mode 100644
index 0000000000..9ea9a47677
--- /dev/null
+++ b/gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch
@@ -0,0 +1,55 @@
+From a6e9e62a77ecc5012929613e20da23b2636450a5 Mon Sep 17 00:00:00 2001
+From: Mathieu Othacehe <mathieu.othacehe@HIDDEN>
+Date: Mon, 25 Mar 2019 11:00:38 +0100
+Subject: [PATCH] cross compile
+
+---
+ build-aux/guile.am |  2 +-
+ configure.ac       | 19 ++++++++++++-------
+ 2 files changed, 13 insertions(+), 8 deletions(-)
+
+diff --git a/build-aux/guile.am b/build-aux/guile.am
+index dc1e63f..3126372 100644
+--- a/build-aux/guile.am
++++ b/build-aux/guile.am
+@@ -16,4 +16,4 @@ EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
+ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+ SUFFIXES = .scm .go
+ .scm.go:
+-	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
++	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
+diff --git a/configure.ac b/configure.ac
+index f648fcb..2d34d0a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,15 +21,20 @@ PKG_CHECK_MODULES([SQLITE], [sqlite3])
+ SQLITE_LIBDIR="`"$PKG_CONFIG" sqlite3 --variable libdir`"
+ AC_SUBST([SQLITE_LIBDIR])
+ 
+-AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
+-GUILE_CHECK([retval],
+-  [(dynamic-func \"sqlite3_open_v2\"
++if test "$cross_compiling" = "no"; then
++   AC_MSG_CHECKING([whether '$SQLITE_LIBDIR/libsqlite3' is usable])
++   GUILE_CHECK([retval],
++   [(dynamic-func \"sqlite3_open_v2\"
+                  (dynamic-link \"$SQLITE_LIBDIR/libsqlite3\"))])
+-if test "$retval" != 0; then
+-  AC_MSG_RESULT([no])
+-  AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   if test "$retval" != 0; then
++      AC_MSG_RESULT([no])
++      AC_MSG_ERROR([failed to load '$SQLITE_LIBDIR/libsqlite3'])
++   else
++      AC_MSG_RESULT([yes])
++   fi
+ else
+-  AC_MSG_RESULT([yes])
++   GUILE_TARGET="--target=$host_alias"
++   AC_SUBST([GUILE_TARGET])
+ fi
+ 
+ AC_CONFIG_FILES([Makefile sqlite3.scm])
+-- 
+2.17.1
+
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:30 2019
Received: from localhost ([127.0.0.1]:34714 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPp-0006d4-65
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:30 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:38631)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MPA-0006TC-Bv
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:50 -0400
Received: by mail-wr1-f65.google.com with SMTP id g17so1239313wrr.5
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=pG3MUM5eizoLMvKAfUsU7403ESYlUpK/5XhNWuZ5v44=;
 b=AhUi3CcMUa3/HxOgZJ5wETjTppOmYJfKoUq6dc/YLpnLauCV+BKcP8HMeWsmgpwPwL
 Unr3JmX0WhK+7FKiBOkun4nvWlRd84XfiXx4zsKT+nE4zF/XXSEcyjo3pv2XREglIRYa
 5Zn8aQD+peGwd4/HZPrx9Dj/Lc54+nzlAlLPwVaHt5rmjRWCxY/9fH9bJhgO6l0rrAfJ
 SJmGSkTkNkG7WE8Os83HMozsfemL0FrTBqD24Hjd3ALpBADiCgNe7d1RO7cD60cK9A98
 suh5hShlSVG64n/vByAtYa1PKlEVqmLGxHBwtJqGCe4q5O+Pn2jzocu1eXQdUaLzh7Z+
 Y4Pg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=pG3MUM5eizoLMvKAfUsU7403ESYlUpK/5XhNWuZ5v44=;
 b=qY+0n0cD4w4LRlWcPFeIRqKhBsRVQz9Cf9H9JzOt7o1uJ+P497QDYS4Q4QzKqIxcN1
 sh2XzLirrTvbZ8qW7h9YzUZA5lq7NMfYlWt5UozOvkciF0rb3hZ5XBGJzT3nSSABKF2w
 ROF83ocmTMngi9W18gN9UU6mXtJvdDT8suBaKHsMZEZ02MerZr/CIx0T/W5P9qhXIk/8
 MUaZb/TMMVe/aJnAfodsTxT35axuTBOwXDaq0I9/QRay+bD+G2LQs6gFuZxpc2KgzsXI
 h8Nr3gmPRtiZ4GqjawcM61m0wvPASKbyiz6gpWVB8RWPv20Fa0aInA35Ftraw5c+OBvv
 S35g==
X-Gm-Message-State: APjAAAXikWfjy1Mmf1NTC8xrlWfJVsfW91/mI/25PDzFudDeN3PdPnlY
 xsFoN61DB7+IWGPtoupAIoZcnfqyD14=
X-Google-Smtp-Source: APXvYqzr5MQfZcLpLrWcl7Y09+8DJKXBIbR+oc8xIxhtWP8m9bpPjX5e23BdcF+hR6SLcvmiJ4wOnQ==
X-Received: by 2002:adf:fc03:: with SMTP id i3mr36914747wrr.48.1566377738154; 
 Wed, 21 Aug 2019 01:55:38 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:37 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 43/61] gnu: guile-gcrypt: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:37 +0200
Message-Id: <20190821085455.18508-43-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gnupg.scm (guile-gcrypt)[source]: Apply previous patch,
[native-inputs]: add guile,
[arguments]: add libgcrypt-config to PATH when cross-compiling.
---
 gnu/local.mk                                  |   1 +
 gnu/packages/gnupg.scm                        |  22 +-
 .../guile-gcrypt-fix-cross-compilation.patch  | 431 ++++++++++++++++++
 3 files changed, 452 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 1bb871a04b..9203dc4a9b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -923,6 +923,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/guile-relocatable.patch			\
   %D%/packages/patches/guile-rsvg-pkgconfig.patch		\
   %D%/packages/patches/guile-emacs-fix-configure.patch		\
+  %D%/packages/patches/guile-gcrypt-fix-cross-compilation.patch \
   %D%/packages/patches/guile-sqlite3-fix-cross-compilation.patch \
   %D%/packages/patches/gstreamer-buffer-reset-offset.patch	\
   %D%/packages/patches/gtk2-respect-GUIX_GTK2_PATH.patch	\
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index c7e6aabf79..69da60b972 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Petter <petter@HIDDEN>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@HIDDEN>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -477,13 +478,30 @@ gpgpme starting with version 1.7.")
               (sha256
                (base32
                 "1lhgh3105yi0ggrjsjibv4wp1ipz8s17pa820hk2wln3rc04wpvf"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+              (search-patches "guile-gcrypt-fix-cross-compilation.patch"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; When cross-compiling, the bash script libgcrypt-config provided by
+     ;; libgcrypt must be accessible during configure phase.
+     `(,@(if (%current-target-system)
+             '(#:phases
+               (modify-phases %standard-phases
+                 (add-before 'configure 'add-libgrypt-config
+                   (lambda _
+                     (setenv "PATH" (string-append
+                                     (assoc-ref %build-inputs "libgcrypt")
+                                     "/bin:"
+                                     (getenv "PATH")))
+                     #t))))
+             '())))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("autoconf" ,autoconf)
        ("automake" ,automake)
-       ("texinfo" ,texinfo)))
+       ("texinfo" ,texinfo)
+       ("guile" ,guile-2.2)))
     (inputs
      `(("guile" ,guile-2.2)
        ("libgcrypt" ,libgcrypt)))
diff --git a/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch b/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch
new file mode 100644
index 0000000000..cdf15b39b0
--- /dev/null
+++ b/gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch
@@ -0,0 +1,431 @@
+From 4ec6cb5209461452f7ebb0aae3ae916e28198dc9 Mon Sep 17 00:00:00 2001
+From: Mathieu Othacehe <m.othacehe@HIDDEN>
+Date: Sun, 18 Aug 2019 09:42:39 +0200
+Subject: [PATCH] build: Fix cross-compilation.
+
+---
+ Makefile.am          |  2 +-
+ configure.ac         |  7 ++++++-
+ gcrypt/common.scm    | 42 ++++++++++++++++++++++++++++--------------
+ gcrypt/hash.scm      | 28 +++++++++++-----------------
+ gcrypt/hmac.scm      | 40 +++++++++++++++++++---------------------
+ gcrypt/pk-crypto.scm | 41 ++++++++++++++++++-----------------------
+ gcrypt/random.scm    |  7 ++++---
+ 7 files changed, 87 insertions(+), 80 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 0537256..7a3d1b2 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -39,7 +39,7 @@ $(guile_install_go_files): install-nobase_modDATA
+ GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+ SUFFIXES = .scm .go
+ .scm.go:
+-	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
++	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
+ 
+ moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
+ godir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
+diff --git a/configure.ac b/configure.ac
+index e7ef6cf..7d0f569 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -73,6 +73,11 @@ AC_SUBST([LIBGCRYPT])
+ AC_SUBST([LIBGCRYPT_PREFIX])
+ AC_SUBST([LIBGCRYPT_LIBDIR])
+ 
+-GUIX_ASSERT_LIBGCRYPT_USABLE
++if test "$cross_compiling" = "no"; then
++   GUIX_ASSERT_LIBGCRYPT_USABLE
++else
++   GUILE_TARGET="--target=$host_alias"
++   AC_SUBST([GUILE_TARGET])
++fi
+ 
+ AC_OUTPUT
+diff --git a/gcrypt/common.scm b/gcrypt/common.scm
+index 189003f..a42f609 100644
+--- a/gcrypt/common.scm
++++ b/gcrypt/common.scm
+@@ -21,7 +21,8 @@
+   #:use-module (system foreign)
+   #:use-module (ice-9 match)
+   #:export (gcrypt-version
+-            libgcrypt-func
++            libgcrypt->pointer
++            libgcrypt->procedure
+             error-source error-string))
+ 
+ ;;; Commentary:
+@@ -31,34 +32,47 @@
+ ;;;
+ ;;; Code:
+ 
+-(define libgcrypt-func
+-  (let ((lib (dynamic-link %libgcrypt)))
+-    (lambda (func)
+-      "Return a pointer to symbol FUNC in libgcrypt."
+-      (dynamic-func func lib))))
++(define (libgcrypt->pointer name)
++  "Return a pointer to symbol FUNC in libgcrypt."
++  (catch #t
++    (lambda ()
++      (dynamic-func name (dynamic-link %libgcrypt)))
++    (lambda args
++      (lambda _
++        (throw 'system-error name  "~A" (list (strerror ENOSYS))
++               (list ENOSYS))))))
++
++(define (libgcrypt->procedure return name params)
++  "Return a pointer to symbol FUNC in libgcrypt."
++  (catch #t
++    (lambda ()
++      (let ((ptr (dynamic-func name (dynamic-link %libgcrypt))))
++        ;; The #:return-errno? facility was introduced in Guile 2.0.12.
++        (pointer->procedure return ptr params
++                            #:return-errno? #t)))
++    (lambda args
++      (lambda _
++        (throw 'system-error name  "~A" (list (strerror ENOSYS))
++               (list ENOSYS))))))
+ 
+ (define gcrypt-version
+   ;; According to the manual, this function must be called before any other,
+   ;; and it's not clear whether it can be called more than once.  So call it
+   ;; right here from the top level.
+-  (let* ((ptr     (libgcrypt-func "gcry_check_version"))
+-         (proc    (pointer->procedure '* ptr '(*)))
+-         (version (pointer->string (proc %null-pointer))))
++  (let ((proc (libgcrypt->procedure '* "gcry_check_version" '(*))))
+     (lambda ()
+       "Return the version number of libgcrypt as a string."
+-      version)))
++      (pointer->string (proc %null-pointer)))))
+ 
+ (define error-source
+-  (let* ((ptr  (libgcrypt-func "gcry_strsource"))
+-         (proc (pointer->procedure '* ptr (list int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_strsource" (list int))))
+     (lambda (err)
+       "Return the error source (a string) for ERR, an error code as thrown
+ along with 'gcry-error'."
+       (pointer->string (proc err)))))
+ 
+ (define error-string
+-  (let* ((ptr  (libgcrypt-func "gcry_strerror"))
+-         (proc (pointer->procedure '* ptr (list int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_strerror" (list int))))
+     (lambda (err)
+       "Return the error description (a string) for ERR, an error code as
+ thrown along with 'gcry-error'."
+diff --git a/gcrypt/hash.scm b/gcrypt/hash.scm
+index dad06e4..1b3fa67 100644
+--- a/gcrypt/hash.scm
++++ b/gcrypt/hash.scm
+@@ -50,13 +50,13 @@
+   (identifier-syntax 2))
+ 
+ (define bytevector-hash
+-  (let ((hash (pointer->procedure void
+-                                  (libgcrypt-func "gcry_md_hash_buffer")
+-                                  `(,int * * ,size_t))))
++  (let ((proc (libgcrypt->procedure void
++                                    "gcry_md_hash_buffer"
++                                    `(,int * * ,size_t))))
+     (lambda (bv type size)
+       "Return the hash TYPE, of SIZE bytes, of BV as a bytevector."
+       (let ((digest (make-bytevector size)))
+-        (hash type (bytevector->pointer digest)
++        (proc type (bytevector->pointer digest)
+               (bytevector->pointer bv) (bytevector-length bv))
+         digest))))
+ 
+@@ -67,30 +67,24 @@
+   (cut bytevector-hash <> GCRY_MD_SHA256 (/ 256 8)))
+ 
+ (define open-sha256-md
+-  (let ((open (pointer->procedure int
+-                                  (libgcrypt-func "gcry_md_open")
+-                                  `(* ,int ,unsigned-int))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_md_open"
++                                    `(* ,int ,unsigned-int))))
+     (lambda ()
+       (let* ((md  (bytevector->pointer (make-bytevector (sizeof '*))))
+-             (err (open md GCRY_MD_SHA256 0)))
++             (err (proc md GCRY_MD_SHA256 0)))
+         (if (zero? err)
+             (dereference-pointer md)
+             (throw 'gcrypt-error err))))))
+ 
+ (define md-write
+-  (pointer->procedure void
+-                      (libgcrypt-func "gcry_md_write")
+-                      `(* * ,size_t)))
++  (libgcrypt->procedure void "gcry_md_write" `(* * ,size_t)))
+ 
+ (define md-read
+-  (pointer->procedure '*
+-                      (libgcrypt-func "gcry_md_read")
+-                      `(* ,int)))
++  (libgcrypt->procedure '* "gcry_md_read" `(* ,int)))
+ 
+ (define md-close
+-  (pointer->procedure void
+-                      (libgcrypt-func "gcry_md_close")
+-                      '(*)))
++  (libgcrypt->procedure void "gcry_md_close" '(*)))
+ 
+ 
+ (define (open-sha256-port)
+diff --git a/gcrypt/hmac.scm b/gcrypt/hmac.scm
+index 0d8cc61..b9e1a9e 100644
+--- a/gcrypt/hmac.scm
++++ b/gcrypt/hmac.scm
+@@ -42,11 +42,11 @@
+     (format port "#<mac ~x>"
+             (pointer-address (mac->pointer mac)))))
+ 
+-
+ (define %gcry-mac-open
+-  (pointer->procedure int (libgcrypt-func "gcry_mac_open")
+-                      `(* ,int ,unsigned-int *)))  ; gcry_mac_hd_t *HD, int ALGO,
+-                                                   ; unsigned int FLAGS, gcry_ctx_t CTX
++  (libgcrypt->procedure int "gcry_mac_open"
++                        ;; gcry_mac_hd_t *HD, int ALGO,
++                        ;; unsigned int FLAGS, gcry_ctx_t CTX
++                        `(* ,int ,unsigned-int *)))
+ 
+ (define mac-algorithms-mapping
+   (alist->hashq-table
+@@ -59,9 +59,8 @@
+   (hashq-ref mac-algorithms-mapping sym))
+ 
+ (define mac-algo-maclen
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_get_algo_maclen")
+-               `(,int))))
++  (let ((proc (libgcrypt->procedure
++               int "gcry_mac_get_algo_maclen" `(,int))))
+     (lambda (sym)
+       "Get expected length in bytes of mac yielded by algorithm SYM"
+       (proc (mac-algo-ref sym)))))
+@@ -76,8 +75,7 @@
+         (throw 'gcry-error 'mac-open err))))
+ 
+ (define %gcry-mac-setkey
+-  (pointer->procedure int (libgcrypt-func "gcry_mac_setkey")
+-                      `(* * ,size_t)))
++  (libgcrypt->procedure int "gcry_mac_setkey" `(* * ,size_t)))
+ 
+ (define (mac-setkey mac key)
+   "Set the KEY on <mac> object MAC
+@@ -96,9 +94,9 @@ In our case, KEY is either a string or a bytevector."
+         (throw 'gcry-error 'mac-setkey err))))
+ 
+ (define mac-close
+-  (let ((proc (pointer->procedure
+-               void (libgcrypt-func "gcry_mac_close")
+-               '(*))))  ; gcry_mac_hd_t H
++  (let ((proc (libgcrypt->procedure void
++                                    "gcry_mac_close"
++                                    '(*))))  ; gcry_mac_hd_t H
+     (lambda (mac)
+       "Release all resources of MAC.
+ 
+@@ -106,9 +104,9 @@ Running this on an already closed <mac> might segfault :)"
+       (proc (mac->pointer mac)))))
+ 
+ (define mac-write
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_write")
+-               `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_write"
++                                    `(* * ,size_t))))
+     (lambda (mac obj)
+       "Writes string or bytevector OBJ to MAC"
+       (let* ((bv (match obj
+@@ -124,9 +122,9 @@ Running this on an already closed <mac> might segfault :)"
+             (throw 'gcry-error 'mac-write err))))))
+ 
+ (define mac-read
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_read")
+-               `(* * *))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_read"
++                                    `(* * *))))
+     (lambda (mac algorithm)
+       "Get bytevector representing result of MAC's written, signed data"
+       (define (int-bv* n)
+@@ -148,9 +146,9 @@ Running this on an already closed <mac> might segfault :)"
+ ;; rather than the gcry_error_t type.
+ 
+ (define mac-verify
+-  (let ((proc (pointer->procedure
+-               int (libgcrypt-func "gcry_mac_verify")
+-               `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_mac_verify"
++                                    `(* * ,size_t))))
+     (lambda (mac bv)
+       "Verify that BV matches result calculated in MAC
+ 
+diff --git a/gcrypt/pk-crypto.scm b/gcrypt/pk-crypto.scm
+index be664a3..5d614a0 100644
+--- a/gcrypt/pk-crypto.scm
++++ b/gcrypt/pk-crypto.scm
+@@ -81,7 +81,7 @@
+                             16))))
+ 
+ (define finalize-canonical-sexp!
+-  (libgcrypt-func "gcry_sexp_release"))
++  (libgcrypt->pointer "gcry_sexp_release"))
+ 
+ (define-inlinable (pointer->canonical-sexp ptr)
+   "Return a <canonical-sexp> that wraps PTR."
+@@ -96,8 +96,9 @@
+     sexp))
+ 
+ (define string->canonical-sexp
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_new"))
+-         (proc (pointer->procedure int ptr `(* * ,size_t ,int))))
++  (let ((proc (libgcrypt->procedure int
++                                    "gcry_sexp_new"
++                                    `(* * ,size_t ,int))))
+     (lambda (str)
+       "Parse STR and return the corresponding gcrypt s-expression."
+ 
+@@ -115,8 +116,9 @@
+   (identifier-syntax 3))
+ 
+ (define canonical-sexp->string
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_sprint"))
+-         (proc (pointer->procedure size_t ptr `(* ,int * ,size_t))))
++  (let ((proc (libgcrypt->procedure size_t
++                                    "gcry_sexp_sprint"
++                                    `(* ,int * ,size_t))))
+     (lambda (sexp)
+       "Return a textual representation of SEXP."
+       (let loop ((len 1024))
+@@ -134,8 +136,7 @@
+              read-string)))
+ 
+ (define canonical-sexp-car
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_car"))
+-         (proc (pointer->procedure '* ptr '(*))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_car" '(*))))
+     (lambda (lst)
+       "Return the first element of LST, an sexp, if that element is a list;
+ return #f if LST or its first element is not a list (this is different from
+@@ -146,8 +147,7 @@ the usual Lisp 'car'.)"
+             (pointer->canonical-sexp result))))))
+ 
+ (define canonical-sexp-cdr
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_cdr"))
+-         (proc (pointer->procedure '* ptr '(*))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_cdr" '(*))))
+     (lambda (lst)
+       "Return the tail of LST, an sexp, or #f if LST is not a list."
+       (let ((result (proc (canonical-sexp->pointer lst))))
+@@ -156,8 +156,7 @@ the usual Lisp 'car'.)"
+             (pointer->canonical-sexp result))))))
+ 
+ (define canonical-sexp-nth
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_nth"))
+-         (proc (pointer->procedure '* ptr `(* ,int))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_nth" `(* ,int))))
+     (lambda (lst index)
+       "Return the INDEXth nested element of LST, an s-expression.  Return #f
+ if that element does not exist, or if it's an atom.  (Note: this is obviously
+@@ -174,8 +173,7 @@ different from Scheme's 'list-ref'.)"
+                        (sizeof size_t)))
+ 
+ (define canonical-sexp-length
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_length"))
+-         (proc (pointer->procedure int ptr '(*))))
++  (let ((proc (libgcrypt->procedure int "gcry_sexp_length" '(*))))
+     (lambda (sexp)
+       "Return the length of SEXP if it's a list (including the empty list);
+ return zero if SEXP is an atom."
+@@ -194,8 +192,7 @@ return zero if SEXP is an atom."
+            (not (char-set-contains? char-set:digit (string-ref str 0)))))))
+ 
+ (define canonical-sexp-nth-data
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_nth_data"))
+-         (proc (pointer->procedure '* ptr `(* ,int *))))
++  (let ((proc (libgcrypt->procedure '* "gcry_sexp_nth_data" `(* ,int *))))
+     (lambda (lst index)
+       "Return as a symbol (for \"sexp tokens\") or a bytevector (for any other
+ \"octet string\") the INDEXth data element (atom) of LST, an s-expression.
+@@ -266,8 +263,7 @@ Return #f if DATA does not conform."
+         (values #f #f))))
+ 
+ (define sign
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_sign"))
+-         (proc (pointer->procedure int ptr '(* * *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_sign" '(* * *))))
+     (lambda (data secret-key)
+       "Sign DATA, a canonical s-expression representing a suitable hash, with
+ SECRET-KEY (a canonical s-expression whose car is 'private-key'.)  Note that
+@@ -281,8 +277,7 @@ DATA must be a 'data' s-expression, as returned by
+             (throw 'gcry-error 'sign err))))))
+ 
+ (define verify
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_verify"))
+-         (proc (pointer->procedure int ptr '(* * *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_verify" '(* * *))))
+     (lambda (signature data public-key)
+       "Verify that SIGNATURE is a signature of DATA with PUBLIC-KEY, all of
+ which are gcrypt s-expressions."
+@@ -291,8 +286,7 @@ which are gcrypt s-expressions."
+                    (canonical-sexp->pointer public-key))))))
+ 
+ (define generate-key
+-  (let* ((ptr  (libgcrypt-func "gcry_pk_genkey"))
+-         (proc (pointer->procedure int ptr '(* *))))
++  (let ((proc (libgcrypt->procedure int "gcry_pk_genkey" '(* *))))
+     (lambda (params)
+       "Return as an s-expression a new key pair for PARAMS.  PARAMS must be an
+ s-expression like: (genkey (rsa (nbits 4:2048)))."
+@@ -303,8 +297,9 @@ s-expression like: (genkey (rsa (nbits 4:2048)))."
+             (throw 'gcry-error 'generate-key err))))))
+ 
+ (define find-sexp-token
+-  (let* ((ptr  (libgcrypt-func "gcry_sexp_find_token"))
+-         (proc (pointer->procedure '* ptr `(* * ,size_t))))
++  (let ((proc (libgcrypt->procedure '*
++                                    "gcry_sexp_find_token"
++                                    `(* * ,size_t))))
+     (lambda (sexp token)
+       "Find in SEXP the first element whose 'car' is TOKEN and return it;
+ return #f if not found."
+diff --git a/gcrypt/random.scm b/gcrypt/random.scm
+index 5391f94..ea6f9d3 100644
+--- a/gcrypt/random.scm
++++ b/gcrypt/random.scm
+@@ -33,7 +33,8 @@
+ (define %gcry-very-strong-random 2)
+ 
+ (define %gcry-randomize
+-  (pointer->procedure void (libgcrypt-func "gcry_randomize")
++  (libgcrypt->procedure void
++                      "gcry_randomize"
+                       `(* ,size_t ,int)))  ; buffer, length, level
+ 
+ (define* (gen-random-bv #:optional (bv-length 50)
+@@ -44,8 +45,8 @@
+     bv))
+ 
+ (define %gcry-create-nonce
+-  (pointer->procedure void (libgcrypt-func "gcry_create_nonce")
+-                      `(* ,size_t)))  ; buffer, length
++  (libgcrypt->procedure void "gcry_create_nonce"
++                        `(* ,size_t)))  ; buffer, length
+ 
+ 
+ (define* (gen-random-nonce #:optional (bv-length 50))
+-- 
+2.20.1
+
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:25 2019
Received: from localhost ([127.0.0.1]:34712 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPo-0006cw-S0
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:25 -0400
Received: from mail-wm1-f42.google.com ([209.85.128.42]:37057)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP8-0006Sl-Dq
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:42 -0400
Received: by mail-wm1-f42.google.com with SMTP id d16so1286834wme.2
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=9iQhpcdQYGwq2O4Prcoz853TESRn0Vl4Y11/X8xOTrA=;
 b=drocBzUIBgsrDQXMkIdwcEqqz1bRV3x7upr7mXnXoguqGce3sjukkQ9tcoz+G9WDLs
 FfExznOhhbMAsbvSqoAlPOwJpFhuhnmb2hB68nVtm/z8XKm1AAZvTOUTB0KTlENyj7HA
 K9RHVTGh72mj1s72zgLRroYkvmicMo+/yCHbQZIivgCm99hZdu5w30nO5ww5AjZGElkD
 3S62GuqznP6ynIG5ICyvP1eLrpFFcoWSYBq52jlWryn756m+zZVoRFO8JRsl8dwkj4H6
 IvMD2iScpyCl4g44zbdYehp7jRCpFlC6TU+gd/wKPq3THJQ+f/y4PYQArNn8jxgLFj5F
 FEJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=9iQhpcdQYGwq2O4Prcoz853TESRn0Vl4Y11/X8xOTrA=;
 b=bjSeISpu4405i04phanHjkYWVxlgEpr5UEk0+9wDTHIrpPj0E7HnYBMuOVknpErYc5
 En0xRvUQj7c4OD/Tykqn179Wra+PDuDn4FwM7IA/xj/WZnGmUeQ7YX2CIpdWRGEeq1GF
 kuMDnxhYueaLgl+2deR3AnLwAmrsjb6Aqw1ks1W9KGKu0OmP2zoX9vwUU8J3dqKhBaGd
 4deRWdKDS9S4bOmuSrcS2Ktu8SA04rXl6f39U27M+6Ynej3S4YoWAS6rPdUahGdQTOoD
 X15Nm2OetXUbjVauooIB0tc7qtVi0wer0nIoqlWZ3PHuQnFcIQfS5kjouaKW6VL7eQMp
 Fohw==
X-Gm-Message-State: APjAAAVbN+BhImKtQxZ4IFviIH5nXSbBwZgh9xSRVoZUbm3+HntdwAub
 fbF9y1tb6odSQ2yvejyGT+J6hyMeI50=
X-Google-Smtp-Source: APXvYqxfqXdIn5BVk/sMwGPMmZFY0yVHd6OC3eQy34qO7POhl9RZtTs1HLLY5436UAMjL8Z0noM0CA==
X-Received: by 2002:a1c:1d4f:: with SMTP id d76mr4990502wmd.127.1566377736477; 
 Wed, 21 Aug 2019 01:55:36 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:35 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 41/61] gnu: doxygen: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:35 +0200
Message-Id: <20190821085455.18508-41-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/documentation.scm (doxygen)[arguments]: Force cmake to use
iconv.h from cross-libc.
---
 gnu/packages/documentation.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 19c42b00eb..eda8ca3368 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2017 Kei Kebreau <kkebreau@HIDDEN>
 ;;; Copyright © 2017 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -31,6 +32,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages python)
   #:use-module (gnu packages bison)
@@ -145,7 +147,15 @@ markup) can be customized and extended by the user.")
     (inputs
      `(("bash" ,bash-minimal)))
     (arguments
-     `(#:test-target "tests"
+     ;; Force cmake to use iconv header from cross-libc instead of the one
+     ;; from native libc.
+     `(,@(if (%current-target-system)
+             '(#:configure-flags
+               (list (string-append "-DICONV_INCLUDE_DIR="
+                                    (assoc-ref %build-inputs "cross-libc")
+                                    "/include")))
+             '())
+       #:test-target "tests"
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'patch-sh
                               (lambda* (#:key inputs #:allow-other-keys)
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:24 2019
Received: from localhost ([127.0.0.1]:34710 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPo-0006cp-Hz
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:24 -0400
Received: from mail-wm1-f46.google.com ([209.85.128.46]:38408)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP7-0006Sj-Js
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:41 -0400
Received: by mail-wm1-f46.google.com with SMTP id m125so1281604wmm.3
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=cTatLfwn3khUxI2mXOeyDuO+g/jPCp4cvbKKW1jWzpY=;
 b=Tmlqe7WkLrfZT3AjTJKriRUD8jY0wyv+itj4Iw7/cRSC7DXQpgNGSSOHafQjIQtHQR
 SdF2gmIgAtkL4TYR4d+iPh5qICbzurtgcTDYPzzxxfVbKlYSKYd12Wjkquqvrf6uVFmH
 yv6PIs7S38AX823q70Y7HPYqed6qg7HT7OWoCFVqZEggvlHO4XEVQNww4XbZhiC6KEWm
 T4kL7QzucR2mIytn7XF8w3qmFQ2EK06iPcUqf5xoaW7IxvgU9pY1HKVweUSC65nvO78L
 cqtnkRbFqsh2fjtXel3sjmJHLoTve/QZ8BhbGXuzNvsn9W56T7aPdY5tZokZ4Ams7GWa
 kfEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=cTatLfwn3khUxI2mXOeyDuO+g/jPCp4cvbKKW1jWzpY=;
 b=kESuyHxYMWnfSNorwZ+oFQFSaxQVhGaMVTCy8n6sdTTK+WS1AXDdTuFblG72dRG/Nj
 rTwXf+BKvmoLaYd5adJRlyTU/HoU15n4ujZIOH/MyOntvLmqr6zRmq4s/3jF7u6k34fZ
 PbaQzuw9aUecPDVnIezf+VJF/obMFMgUiZkXfyLCsb+6I3NL5H7PQr6hgxLve/TpSg7p
 3m2++NxR4+fpmZIOfqIcomkJ4PyOOzMY04wNyw+FydIAogLvaJjb/uVC0vge/GdPoRLa
 0PvODmGa1679bFF4TZaf59QKByvzniNablBNBGGjaLcN+qQCMpQKqffyN5/3w5/prf6+
 b5SA==
X-Gm-Message-State: APjAAAUa44CBnQR3q6QuX/BR9LWE5wYZZO/YKPhvrrqtbJls3s1jf3JA
 uErxl4EgEF7cNJvuzr/22kbJi2OGE/8=
X-Google-Smtp-Source: APXvYqyEsvXmqTnwn3SG5GJJuxtsrr/75Z/dAs1V3Ja+BzmYl2pyXa07myRyfayOSfEksWep74jTWA==
X-Received: by 2002:a1c:6a0b:: with SMTP id f11mr4367845wmc.87.1566377735666; 
 Wed, 21 Aug 2019 01:55:35 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:35 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 40/61] gnu: procps: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:34 +0200
Message-Id: <20190821085455.18508-40-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (procps)[arguments]: Add configure flags needed from
cross-compilation.
---
 gnu/packages/linux.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ac7312bcd0..cf403c46f1 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1138,10 +1138,16 @@ by Robert Shea and Robert Anton Wilson.")
                 "0r84kwa5fl0sjdashcn4vh7hgfm7ahdcysig3mcjvpmkzi7p9g8h"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:modules ((guix build utils)
+     `(#:modules ((guix build utils)
                   (guix build gnu-build-system)
                   (srfi srfi-1)
                   (srfi srfi-26))
+       ,@(if (%current-target-system)
+             '(#:configure-flags
+               (list
+                "ac_cv_func_malloc_0_nonnull=yes"
+                "ac_cv_func_realloc_0_nonnull=yes"))
+             '())
        #:phases
        (modify-phases %standard-phases
          (add-after
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:24 2019
Received: from localhost ([127.0.0.1]:34708 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPo-0006ci-8u
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:24 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:35065)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP6-0006Sh-Mj
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:41 -0400
Received: by mail-wr1-f68.google.com with SMTP id k2so1255473wrq.2
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=DiHWvcxJDycsBWeHgDPr6cJca1VJg9+d4Q2B6jEcu1o=;
 b=L9cRVRH1WNW/k/Rp6bh4JINYr6MJ0r/85mFNoYzf+pGJonBTlon9/W9drV1gQfRov2
 7sIUkasEgWhgDYs6GGKAFJwfsmWZyFLNWkRx767KELEluDDI/qNYt5YcHAIjuWu+PaP4
 TtVwkk6lA+NuIf07/1oZ7dkr7Fn7jYTB1nnZiFOGbd4LVJPnR1h9IVNxp7Q2Y9lbZzFU
 Jvn9BJIoq947UYq6owf6tuTw7HJAMcv5kLS2Y0hyaxWdu37coeKJx1kMPS8w0HAWkScI
 nLYwRO9jGUs2umErQC+rffSeAYPCD7wVxJ7z9uYZW6L0D2wDOQENsW1lmkDd9aGC6NGf
 4k5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=DiHWvcxJDycsBWeHgDPr6cJca1VJg9+d4Q2B6jEcu1o=;
 b=HtCsJO9hHf2desKPJ4CADH4tmh52FH/T6gW6p1aYcogMpzXd9CNA77tMv1dgKv2cD/
 uDyX0PZc290wb1jsnsk8ikij1GWM+FWAtxy6vGhoQg+KEtpbEhUSAzx+e6/B0TBtCaqJ
 enuoxGMEFqrW6U7JA6zr/v0O4wfo+5Y96Y7vJCh2cWTGKw3aLoewfqGC/zuZVNO5fNQZ
 holrL7A4P1OfSjMKm6o+7sAJ+S7+vVZainwf8Ihv6n/cHFm41belzSKSgJFdc9Mmo5na
 mPigVhIFCqtroRxp9RdJ7G4KAcxNjP511YiECEwH9u0+N6AaZTcpEdQUCIKROfnF6KXd
 YgSg==
X-Gm-Message-State: APjAAAVlzp1XOeC6UpXCJT0o4r5qeQ0QDjhWZ46o13xRqiLTz5+nTfMF
 JXFNjyuqM45aDbeWWaS0txETZpHX1jg=
X-Google-Smtp-Source: APXvYqzd5DTYanYFRdepLfYiwxHkgr03rVa1y6A6u18EoVXX7y+/UjXUheFLIKz3kitttzh+4ItxaQ==
X-Received: by 2002:a5d:6307:: with SMTP id i7mr40156366wru.144.1566377734850; 
 Wed, 21 Aug 2019 01:55:34 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:34 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 39/61] gnu: make-linux-libre: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:33 +0200
Message-Id: <20190821085455.18508-39-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH to
make sure that cross-libc is not found. Otherwise, some of its header would
conflict with the one from linux (stdint.h and linux/types.h).
---
 gnu/packages/linux.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0036b85e4d..ac7312bcd0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
          (replace 'configure
            (lambda* (#:key inputs native-inputs target #:allow-other-keys)
              ;; Avoid introducing timestamps
+             ,@(if (%current-target-system)
+                   '((unsetenv "CROSS_CPATH"))
+                   '())
              (setenv "KCONFIG_NOTIMESTAMP" "1")
              (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
 
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:24 2019
Received: from localhost ([127.0.0.1]:34706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPn-0006ca-TN
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:24 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:45449)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP5-0006SO-TT
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:40 -0400
Received: by mail-wr1-f65.google.com with SMTP id q12so1207291wrj.12
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=ekhEnSaYOzo7g9VXSRSzA8v/fqFR3nGB9mRmiOw49Lg=;
 b=kkt/51+m+8773laYCSLrSO6/RJcLA7uiHduvU/Pkc7y1qTjxvmMvThojg+cniIL2XP
 y66wwYfAj3WIKFGE++aDvlM/9erBJd+1g2lOYfGw3jE8O5f8wlPETNSqQtLb/Cgo0HQ2
 G7c0zzBmyGj3vlG9uVQLNOgblVF4bfat4xAMs7dmfmiRmvzDYzVyiY0zDYvCrRUh8Xa6
 wYeJQOPlEwf1q1id7vPugjxg7PIs8aJ+EnxPLytQFRtXMlKc+IW+B5M9JnqJfXq9WgK3
 HXGIyXSrfov7A0RXEzbgKkTIUhx/hkGX05K5b7/9C8MeCFwRMSICPZmGuoAyrrilsZA5
 T30w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=ekhEnSaYOzo7g9VXSRSzA8v/fqFR3nGB9mRmiOw49Lg=;
 b=G99heKXu9gufVmvTQ/dbQFoucVEWmKdPVuBscJPfWNN6i9DhQatbM7cJeElBhjMw47
 Kdl3bfOe7CMGLpWKhQdEkYdrlc9eSDtHfMn/SkRHkCp0tpyL5EFCIC3EZd9RVwiqZG5T
 pht1ICuZy4CAmf+6fwh3SVNF9tHnI3AtwfiCDj93B+VFL0cEo+36+/J5wZJrR43IeOGG
 jTUCNBhOLShkJ0wOEardXMXYJHW0w8jCug/ALMGRToH+NZLbnfTmOy9WJA0E3+ByMdVj
 iHHhREHHCBo/XW9dkuWNe2Z6TpImD4hznILVoLevwjr0RSd56E8PF47qTt5/BzBl6LTr
 sDWw==
X-Gm-Message-State: APjAAAXjC5wyYOQ4xMxXyIRuA2WcinbqOgXW77y1qiFP89vDJVkn4A8n
 +5s/H+u5Gkhyzk0+DjlKAS/HAL5Nq4Q=
X-Google-Smtp-Source: APXvYqw+hk2JAVj0cLbCFaXHIg/QiXN/izJ0tJXTrpGPVpd6X+SnUEgoQYv6Rj8Y5w/U0VEsnrn2vw==
X-Received: by 2002:a5d:4cc5:: with SMTP id c5mr11753263wrt.278.1566377734020; 
 Wed, 21 Aug 2019 01:55:34 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.33
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:33 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 38/61] gnu: git: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:32 +0200
Message-Id: <20190821085455.18508-38-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/version-control.scm (git-cross-configure-flags): New variable,
(git)[arguments]: add it to configure-flags. Also add cross curl-config script
to PATH.
(git-minimal): Add previous variable to configure-flags.
---
 gnu/packages/version-control.scm | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 0bc882d3d3..62f91fe923 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -141,6 +141,10 @@ changes to project files over time.  It supports both a distributed workflow
 as well as the classic centralized workflow.")
     (license license:gpl2+)))
 
+(define git-cross-configure-flags
+  '("ac_cv_fread_reads_directories=yes"
+    "ac_cv_snprintf_returns_bogus=no"))
+
 (define-public git
   (package
    (name "git")
@@ -233,7 +237,10 @@ as well as the classic centralized workflow.")
       ;; absolute file name to 'wish'.
       #:configure-flags (list (string-append "--with-tcltk="
                                              (assoc-ref %build-inputs "tk")
-                                             "/bin/wish8.6")) ; XXX
+                                             "/bin/wish8.6")  ; XXX
+                              ,@(if (%current-target-system)
+                                    git-cross-configure-flags
+                                    '()))
 
       #:modules ((srfi srfi-1)
                  (srfi srfi-26)
@@ -250,6 +257,15 @@ as well as the classic centralized workflow.")
                               (remove (cut string-prefix? bash-full <>) path)
                               ":"))
               #t)))
+        ;; Add cross curl-config script to PATH when cross-compiling.
+        ,@(if (%current-target-system)
+              '((add-before 'configure 'add-cross-curl-config
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (setenv "PATH"
+                             (string-append (assoc-ref inputs "curl") "/bin:"
+                                            (getenv "PATH")))
+                     #t)))
+              '())
         (add-after 'configure 'patch-makefiles
           (lambda _
             (substitute* "Makefile"
@@ -506,7 +522,10 @@ everything from small to very large projects with speed and efficiency.")
                   (string-append out "/share/gitweb"))
                  #t)))))
        ((#:configure-flags flags)
-        ''())
+        `(list
+          ,@(if (%current-target-system)
+                git-cross-configure-flags
+                '())))
        ((#:disallowed-references lst '())
         `(,perl ,@lst))))
     (outputs '("out"))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:23 2019
Received: from localhost ([127.0.0.1]:34704 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPn-0006cT-J2
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:23 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:35769)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP4-0006SM-TS
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:39 -0400
Received: by mail-wm1-f67.google.com with SMTP id l2so1297738wmg.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=RObN42V8bRyLb9W+DkdwbK5oQvTcjUSZj+AGQMQnBKg=;
 b=oGmk2U1r9ewbmh32/NfM45bU1JaPRwTmdIfOlDti8Tr6wABhwU+VzxgbhOA/TYdhHl
 kC+1QD9qTbT1y4xUGuL6o2LI3xMhZXS4ewLvwxIoWt4fNhGUJjiGdTh8yFsKmRDl3eFX
 ODfZN04IiNCjHLyrEfmu/yWRQIwOi0IPLcwl2quFIKeShcjTD+LDbTd2DFnd11tHDp2G
 5myaw3AR6Xn6DZOFnyrAKpSJa+XZScrWGO4yRWhNeEyAejqPzktN4qZblcnKUgxV/Vj3
 t1s7dy/svsIGcAVv1mA3y61qmn7kr6HY7uNpjoGTFi5+snLBcBYpD9CyWgzDOgF2mp0a
 uPCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=RObN42V8bRyLb9W+DkdwbK5oQvTcjUSZj+AGQMQnBKg=;
 b=cqNTiRzgSCiHuvEsqda5FpxKFXP97g6M5KpjMQwrDUSxPObtsWlAwbI3exTMzsfYdY
 kNbeebYmBvi2MWmMHsnGgofdxccs6LvjqL4JePt5YsqH1Z5fcaVmBbPxujZkWsY6B32d
 N3vjTBO+knXYkJ1cC9QZKbmK5UoSXY6r0taJp/WDqCyxyZxvKIPIp0C4QWAukH0qNqoL
 P/7fe06EOGYyoxKf7sELITQMJFlBHLn25ZR1YTccLC7AOQRBTKhlW+jrv2latavHCJR6
 I0Ne009YDe2RBajbmT3PusBdQtvgriMv6f8xd9I8ZkQxDn9vS/9iLIqyKF1635XTpfqY
 h4Cw==
X-Gm-Message-State: APjAAAVn0H/H3oH4dR11pAD65V5Bj/J7FjGDr6oEnNikFT9fyngQZN+c
 bB3AHZHgs02mLTMgXsdCav8SOko8jOg=
X-Google-Smtp-Source: APXvYqz0lKqhr7PhpxqC5xC0Clv3Vshe+/KjgXlJfFkur7T8d8SaBBmUTlVAcARZ+Vq0OOXa0SCTKQ==
X-Received: by 2002:a05:600c:551:: with SMTP id
 k17mr4828227wmc.53.1566377733030; 
 Wed, 21 Aug 2019 01:55:33 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:32 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 37/61] gnu: swig: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:31 +0200
Message-Id: <20190821085455.18508-37-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/swig.scm (swig)[inputs]: Add pcre that is needed when cross-compiling.
---
 gnu/packages/swig.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/swig.scm b/gnu/packages/swig.scm
index b1b17fc68d..90d698a8b4 100644
--- a/gnu/packages/swig.scm
+++ b/gnu/packages/swig.scm
@@ -62,6 +62,7 @@
     (native-inputs `(("boost" ,boost)
                      ("pcre" ,pcre "bin")))       ;for 'pcre-config'
     (inputs `(;; Provide these to run the corresponding tests.
+              ("pcre" ,pcre)
               ("guile" ,guile-2.0)
               ("perl" ,perl)))
               ;; FIXME: reactivate input python as soon as the test failures
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:23 2019
Received: from localhost ([127.0.0.1]:34702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPn-0006cM-4D
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:23 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:54230)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP0-0006Rd-Gw
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:39 -0400
Received: by mail-wm1-f67.google.com with SMTP id 10so1268113wmp.3
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=0wD/VjiysVkTi8Oyq0Z7V2CCINIwi/qRp15LMRmEvWo=;
 b=pjjD8xQaArvjjGtXCAofRsgWPKiQoJbrZFJfvoTgvKICkClmowkM29Dq+cXCXLFwxe
 ifJdzApMA+V3f+EUusaGL8QkoXHEAxS1WNWXhlpq9zDWXxRF3+9kb0yhxT02k/GCiUZa
 QbUxbZLKLbsmGDvLg7+q34/Zjmixz7GfE9dokcInr2MIo/dZdM6EMTInpQZAYNpbP4MT
 qIXWkEYaAKnQj8E3PPf+bvvR2qmzHISDU2IYMSb09TzHSlCu/5z8jikeLXoR8uIjn4yV
 I1Af0AMznKDhE5VAMoSVt/9LO0GM7kgtbtQicbgtdA3+v+Ny1son1hHRt/xOaSEDVdBj
 7zDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=0wD/VjiysVkTi8Oyq0Z7V2CCINIwi/qRp15LMRmEvWo=;
 b=YQfUghni605socf4zPbgsLLHhNnCJcTq56nGPhI9wMPn4a/M9dMhsi5DCSBhM8BZ6S
 MHa8SA54QELdMYFZT4TZZQOi4+f/OTNDRzeZYaWDts4vUAaNpSBr7OyH/Hb9VwpcfbCp
 KdX7+/w2tpMeeGoY5+ku9J+3LS9TUR5QGDcYjCowGZx4WOXqVgTWCsZrxGVkmVLdCUKC
 jP8RxUnYKimUpKn9EuZGiXW8UIblXh3LaCu1hr/FEZPWRBBRU3MWJs386rbMyMWjptNO
 UBLIE4XmCxEKaQQ1jHlTQpiOCqjanJPola5Zh13gVQ1vCgnWTWerVmqk2oRCW+M/Pv1i
 8vHg==
X-Gm-Message-State: APjAAAXE8Xy07DTN0lUldCLNazdZ7gyYzvOH55PUJqMNDJj1AouPKoX6
 0pmH8dCzcqj/eiL6lESqPN6FrixKFbs=
X-Google-Smtp-Source: APXvYqwiuvfQUA2j3QaIFQEFYzmyX+xpyxnrDneZONcT+5GNzvHopMXsVRxXnhvHvQPdDKdaGbhvtA==
X-Received: by 2002:a7b:c8c1:: with SMTP id f1mr4335452wml.87.1566377728493;
 Wed, 21 Aug 2019 01:55:28 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:27 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 32/61] gnu: boost: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:26 +0200
Message-Id: <20190821085455.18508-32-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/patches/boost-dumpversion.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/boost.scm (boost)[source]: Apply it,
[arguments]: pass cross-compilation mandatory
flags and fill a user-config.jam file pointing to cross-compiler.
---
 gnu/local.mk                                 |  1 +
 gnu/packages/boost.scm                       | 28 +++++++++++++++++++-
 gnu/packages/patches/boost-dumpversion.patch | 24 +++++++++++++++++
 3 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/boost-dumpversion.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 74f09ba42b..a45a1a0802 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -708,6 +708,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/binutils-loongson-workaround.patch	\
   %D%/packages/patches/blender-2.79-newer-ffmpeg.patch		\
   %D%/packages/patches/blender-2.79-python-3.7-fix.patch	\
+  %D%/packages/patches/boost-dumpversion.patch 			\
   %D%/packages/patches/byobu-writable-status.patch		\
   %D%/packages/patches/calibre-no-updates-dialog.patch		\
   %D%/packages/patches/calibre-remove-test-bs4.patch		\
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index a2253a9efc..536a4bee0f 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 ;;; Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -54,6 +55,8 @@
                            (string-append "https://dl.bintray.com/boostorg/release/"
                                           version "/source/boost_"
                                           version-with-underscores ".tar.bz2"))))
+              (patches
+               (search-patches "boost-dumpversion.patch"))
               (sha256
                (base32
                 "0y47nc7w0arwgj4x1phadxbvl7wyfcgknbz5kv8lzpl98wsyh2j3"))))
@@ -76,7 +79,22 @@
 
              ;; Set the RUNPATH to $libdir so that the libs find each other.
              (string-append "linkflags=-Wl,-rpath="
-                            (assoc-ref %outputs "out") "/lib"))
+                            (assoc-ref %outputs "out") "/lib")
+             ,@(if (%current-target-system)
+                   `("--user-config=user-config.jam"
+                     "binary-format=elf"
+                     "target-os=linux"
+                     ,@(cond
+                        ((string-prefix? "armhf" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=32"
+                           "architecture=arm"))
+                        ((string-prefix? "aarch64" (%current-target-system))
+                         '("abi=aapcs"
+                           "address-model=64"
+                           "architecture=arm"))
+                        (else '())))
+                   '()))
        #:phases
        (modify-phases %standard-phases
          (delete 'bootstrap)
@@ -94,6 +112,14 @@
                (setenv "SHELL" (which "sh"))
                (setenv "CONFIG_SHELL" (which "sh"))
 
+               ,@(if (%current-target-system)
+                     `((call-with-output-file "user-config.jam"
+                          (lambda (port)
+                            (format port
+                                    "using gcc : cross : ~a-c++ ;"
+                                    ,(%current-target-system)))))
+                     '())
+
                (invoke "./bootstrap.sh"
                        (string-append "--prefix=" out)
                        ;; Auto-detection looks for ICU only in traditional
diff --git a/gnu/packages/patches/boost-dumpversion.patch b/gnu/packages/patches/boost-dumpversion.patch
new file mode 100644
index 0000000000..7df779cfe6
--- /dev/null
+++ b/gnu/packages/patches/boost-dumpversion.patch
@@ -0,0 +1,24 @@
+This issue is described here: https://github.com/openwrt/packages/pull/8685
+and has not been solved as of 1.70.0 release.
+
+--- a/tools/build/src/tools/common.jam
++++ b/tools/build/src/tools/common.jam
+@@ -973,18 +973,6 @@
+         }
+     }
+ 
+-    # From GCC 5, versioning changes and minor becomes patch
+-    if $(tag) = gcc && [ numbers.less 4 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+-    # Ditto, from Clang 4
+-    if ( $(tag) = clang || $(tag) = clangw ) && [ numbers.less 3 $(version[1]) ]
+-    {
+-        version = $(version[1]) ;
+-    }
+-
+     # On intel, version is not added, because it does not matter and it is the
+     # version of vc used as backend that matters. Ideally, we should encode the
+     # backend version but that would break compatibility with V1.
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:23 2019
Received: from localhost ([127.0.0.1]:34700 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPm-0006cF-K7
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:23 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:36337)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP3-0006SK-RE
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:38 -0400
Received: by mail-wm1-f68.google.com with SMTP id g67so1293085wme.1
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=TODkwhTat9VGfXsj8+/2TJ/enxT71yfa/D7H12HSna4=;
 b=rQmesYMW9jE3pfaQ0ZbcWDOkg78WGnFEEgXjaGSP7kRZkU67GnK+23Wbwn4LtdbAX4
 GCZWASxiPcW39J9OFioEC7tJx5D0g200Rr9IDPVQyiiQbrGxyz8OZwudUjOeJp8gBn1Q
 ybiBVAdn9eRfmLRZNWVoveV/m49+GzYxWUIo+vqS8LPXgzHre2JONhV5oWmqC5qQWms/
 KA2XzNaJMXuyf7OPUi2qdJ7ZWgeBGf/hOu/lGrVVgTHdw/ZYoC6t958NJrBzXq8vJD4g
 FCzTAvrzGfI8z/kt85O4gngtBvCW/YrQWoBdeFuFsfPWP97EXscTErzuXqczp70abnzG
 /Gtw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=TODkwhTat9VGfXsj8+/2TJ/enxT71yfa/D7H12HSna4=;
 b=pE/sdD194y3m6SX7kN2PIjnQD+JOfuceGwzH1UhrtQyVcHPCbGmK9ilGLUGfIESsf1
 ZObc28Rd047kUWSPY5NOudADvp0ViR9i7Grr/I0l7KQq8rBPeKhmFwxkxYIEB9cWvAYr
 egPEa9RoRRT9ilV9QNSZLld8sWZWpwahVI3cQcT0VaOP8rMP0n688WXzVCWxA27DVtNI
 /xWCVnOAB0dG2aMBMD6tBawo5OspVK6/df8iuYnBLGQzTdRx2WHR9L3miRwU2daeojK3
 h2bNF4SbDzx90pThruPkpPWT4UgMqDzjkBpTMNqPfLGWOLK7tIGcadncdMsy1Z1y0uy3
 Iz+w==
X-Gm-Message-State: APjAAAVBP8VEDZtO7lSZugYukqceCE6JH9a1j3dKz2aWZSIVWdAn4RAR
 kRzkRRxK7oIiSYG7c3YaEVzfCKyHUIw=
X-Google-Smtp-Source: APXvYqxprCh4bZ16JBR7VRblBi7poDID1xwyNRTouqQ/QxLYTD3v6/Sy+HpwpjrnkBbFfOtEWhdxdQ==
X-Received: by 2002:a7b:cb0f:: with SMTP id u15mr4421278wmj.173.1566377731897; 
 Wed, 21 Aug 2019 01:55:31 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:31 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 36/61] gnu: openldap: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:30 +0200
Message-Id: <20190821085455.18508-36-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/openldap.scm (openldap)[inputs]: Move groff from here to ...
[native-inputs]: ... here. Also add bdb and automake.
[arguments]: Add cross-compilation specific configure-flags. Add a new
fix-configure phase to update outdated config.sub and config.guess.
---
 gnu/packages/openldap.scm | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index 2f80920ed4..c0b1e34385 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016 Leo Famulari <leo@HIDDEN>
 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +51,7 @@
   #:use-module (gnu packages)
   #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+ gpl3+ psfl))
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python))
@@ -79,16 +81,38 @@
    (inputs `(("bdb" ,bdb-5.3)
              ("cyrus-sasl" ,cyrus-sasl)
              ("gnutls" ,gnutls)
-             ("groff" ,groff)
              ("icu4c" ,icu4c)
              ("libgcrypt" ,libgcrypt)
              ("zlib" ,zlib)))
-   (native-inputs `(("libtool" ,libtool)))
+   (native-inputs `(("libtool" ,libtool)
+                    ("groff" ,groff)
+                    ("bdb" ,bdb-5.3)
+                    ;; For up to date 'config.guess' and 'config.sub'.
+                    ("automake" ,automake)))
    (arguments
     `(#:tests? #f
-      #:configure-flags '("--disable-static")
+      #:configure-flags
+      '("--disable-static"
+        ,@(if (%current-target-system)
+              '("--with-yielding_select=yes"
+                "ac_cv_func_memcmp_working=yes")
+              '()))
       #:phases
       (modify-phases %standard-phases
+        (add-after 'unpack 'fix-configure
+          (lambda* (#:key inputs native-inputs #:allow-other-keys)
+            ;; Replace outdated config.sub and config.guess:
+            (with-directory-excursion "build"
+              (for-each (lambda (file)
+                          (install-file (string-append
+                                         (assoc-ref
+                                          (or native-inputs inputs) "automake")
+                                         "/share/automake-"
+                                         ,(version-major+minor
+                                           (package-version automake))
+                                         "/" file) "."))
+                        '("config.sub" "config.guess")))
+            #t))
         (add-after 'install 'patch-sasl-path
           ;; Give -L arguments for cyrus-sasl to avoid propagation.
           (lambda* (#:key inputs outputs #:allow-other-keys)
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:16 2019
Received: from localhost ([127.0.0.1]:34685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPg-0006aM-5O
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:16 -0400
Received: from mail-wr1-f65.google.com ([209.85.221.65]:41499)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP2-0006SJ-RS
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:38 -0400
Received: by mail-wr1-f65.google.com with SMTP id j16so1228769wrr.8
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=jj2Jl+L+uX1pOD9lehHiTDGwMAci6XJbMogS9Thh79w=;
 b=Gk6M5hs6AJau9ddSYnsIAvxxGKhLJ3NiYzE4xqAUfaAxKnIyobbrJ2NKHs0jRz3zc6
 +zoGlllodh7qOiJvatsdpQu99qUWeTr4+2cK2gkfFh67r7qAp1d/xOfGcR3vzxb3L2fi
 xOZPGhMaNaKsjn2R/99qDBE/ipE78oAbf69ct884e218UtJy22UHFbHktmXr8AW8I7Ok
 jpczs7gXP1h6MHetcTylA8PWpaUjPEm4G5fanb72+/NbAnRWuVW8rawGcPYruB+NLrlP
 wN2/m6R8Sjjga7n3J0nIT+n3ommOJ0R9P+DA6Ohwk1HqS7Ik/K9cbn+ncVQIe0lSuZtk
 2RFg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=jj2Jl+L+uX1pOD9lehHiTDGwMAci6XJbMogS9Thh79w=;
 b=Y2Hy1+iqjhabA6QDSFcWNelf9YcVAPuYOPX64B1bY2Ktcq7/z5zKqCUlHZcEAp1jS2
 pNrMu6uJAc55Ag1S9MgLhvMvvDvcH5ibiLOJFiLr8PQS5NkXQJA+0xHLdWtn/VHQIuNs
 lJvovPVxODcuQsQlWzhsxjbmekXboHBK8gQ/ZqYAgCAoYOBEI7/BExC6rSWAu0jBFzTk
 hWbzJ4ZUOaCWr9uZbpLrfhCNMI7+na/6qB1jHpPPLgeI9tQpjK3hXKWOq0MovIkrDycB
 R8E5gY3O6ozOXDDj7K5I+un0vUkDt2WLKa8oDgy4m1hHQRFLMQ2IC5AvaIS+WOC1YTHj
 RFaA==
X-Gm-Message-State: APjAAAV+vA6F9nFui40KVuXcO/didyoJMTV9xhqnG6ESPZ/R558DNYtV
 EegPtDy1UZj83279atjGprsLSKDZ9Mw=
X-Google-Smtp-Source: APXvYqx0/RCUFQ4yK8pejb1fgcsRshXGKcEL57r12QCF3vHC3x0rW2vqS/RBw3Ma+fRroyziuwZSWQ==
X-Received: by 2002:adf:dfc4:: with SMTP id q4mr38488902wrn.54.1566377730999; 
 Wed, 21 Aug 2019 01:55:30 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:30 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 35/61] gnu: nghttp2: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:29 +0200
Message-Id: <20190821085455.18508-35-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN,
 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

From: Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>

* gnu/packages/web.scm (nghttp2)[arguments]: In set-timezone-directory
phase, search in both inputs and native-inputs.
---
 gnu/packages/web.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 06b3778be2..c0aab76aba 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@HIDDEN>
 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@HIDDEN>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6447,9 +6448,10 @@ derivation by David Revoy from the original MonsterID by Andreas Gohr.")
                 (assoc-ref outputs "lib")))
              #t))
          (add-before 'check 'set-timezone-directory
-           (lambda* (#:key inputs #:allow-other-keys)
-             (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
-                                            "/share/zoneinfo"))
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
+             (setenv "TZDIR" (string-append
+                               (assoc-ref (or native-inputs inputs) "tzdata")
+                               "/share/zoneinfo"))
              #t)))))
     (home-page "https://nghttp2.org/")
     (synopsis "HTTP/2 protocol client, proxy, server, and library")
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:16 2019
Received: from localhost ([127.0.0.1]:34682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPf-0006aB-OM
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:16 -0400
Received: from mail-wr1-f67.google.com ([209.85.221.67]:37392)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP1-0006SC-T7
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:38 -0400
Received: by mail-wr1-f67.google.com with SMTP id z11so1243641wrt.4
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=cDufWK6rXY0sd5Gu49W+LHgygdT+etziD8K/YmySRI4=;
 b=Amz2JZNcORgLztx7NrOEE3QWjY56n1tKilg6sZEnmoD1KXMzFfozJCr5IbEQnrzmxg
 y1iZdFxO5dyDBuK9g6jf2Ld7WnADnWLKsgZeayIHMRjSqEy5G0u8rLUH4bMmXk1RALSG
 5C/d7FlzB9Bncj1eEBw2mUnXvdIP78iUUBfhu24r9zoTJWctsx680Ke+KhBIMUUSAj4q
 0MVylrOxNnl8pscBJZYHp2+4guyONNQGp3ifpYmlp3pSeAq4/ZmoUAQPg4wyFWw3SZkA
 vYv5o2SiYCPT2YggyxHdRZxnSClv9mNfTy9yOKwH61/RpKfRsO8JaHu+efPnHTfkx1fr
 5RHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=cDufWK6rXY0sd5Gu49W+LHgygdT+etziD8K/YmySRI4=;
 b=N/AbeTH4+nT/UPMIRXFuXERgZS3EoQDPjZp1HJKCWzK7qimjTTKqDlmg+8oTCoRYcO
 IN/jDhDZsJkhUv2NEVF14DJ+5/LKTOpLbPGeFGVdtsPSRq1JMBkYcO70OVRfziWVHzKI
 e2oW7Icw318GDVnCpASn7c5ErB62m98BOAuC3WKayvGYDSrc2pQUlv7YRDl4nmRqx9iQ
 dDQDigxsASGNu3taWfaRY2IJI8Oi7Q2N6mAPygG3MKEWdRk38ifPlxwExHZOYWe9Qagc
 TQM9awJdUaHVSwo1+BJIr/qW0wsGAJPz4qIDMb0Ppygg+Cw7DZmZMvF1Uz4MzS1pmqoR
 9BVg==
X-Gm-Message-State: APjAAAX6bMAIl1fcyxEXqoytJ2t26yT3SEvwUAD9652qFX0A1v8kGwI3
 EQEZVQpwztr9bwfKQjgzwKzCBybBWYI=
X-Google-Smtp-Source: APXvYqzlRFIoSAnfAxyBJzZEeIpqPXcD81IjtFPzel9osgwl0T8Y5RAan5mg1EyvBJK7MSjZDA8nOw==
X-Received: by 2002:a5d:698f:: with SMTP id g15mr41271075wru.310.1566377730033; 
 Wed, 21 Aug 2019 01:55:30 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:29 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 34/61] gnu: lvm2: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:28 +0200
Message-Id: <20190821085455.18508-34-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (lvm2)[arguments]: Add cross-compilation specific
configure-flags.
---
 gnu/packages/linux.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f0c0de666f..0036b85e4d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2654,7 +2654,7 @@ time.")
     (inputs
      `(("udev" ,eudev)))
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (add-after 'configure 'set-makefile-shell
            (lambda _
@@ -2689,7 +2689,12 @@ time.")
                                               (assoc-ref %outputs "out")
                                               "/lib,-rpath="
                                               (assoc-ref %outputs "out")
-                                              "/lib/device-mapper"))
+                                              "/lib/device-mapper")
+                               ;; This is needed when cross-compiling.
+                               ,@(if (%current-target-system)
+                                     '("ac_cv_func_malloc_0_nonnull=yes"
+                                       "ac_cv_func_realloc_0_nonnull=yes")
+                                     '()))
 
        ;; The tests use 'mknod', which requires root access.
        #:tests? #f))
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:15 2019
Received: from localhost ([127.0.0.1]:34680 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPf-0006Zz-5b
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:15 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:38073)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MP1-0006Rm-4k
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:36 -0400
Received: by mail-wr1-f41.google.com with SMTP id g17so1238891wrr.5
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=+HxLWYzZW0Hr0WREkiGNAPfQejKpPVvmtO7VILy1EcM=;
 b=h8UeTgijqCMxMRjXAIpMgnjssX4+hY8iMg1fUJEKBNYSvnS8UcosW1jpTlwQMd4nmP
 +BUAGs9QC5foVVczTUtAL9LZbe7uVHvTZv7bxP8c+BLrIerrlsKma+dVLowGwdeos7dx
 tBxHaAfw1dDiM8EybQj9FAxhjUg7LJV3IfE3JJgqXUQtGlRlgSQc5EltgQiJja4ouo4w
 baB0qawNFvfzc7mwBNLuuSZbvJJiCZX94UaclBahBOS3JG1E5dSmkTWzFg2cc6MYODdJ
 EzSSl2zrkwMWBk9XXQLt+cWQb3Q1kzMG55uQPfnpSmD5GQD86i0I89+lga/8bD9ZIHt8
 zQnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=+HxLWYzZW0Hr0WREkiGNAPfQejKpPVvmtO7VILy1EcM=;
 b=fZohicDgHlptCBS1l5M9RcUgzoqtRe3ZxzJ3hVNPeiNT50v94Dz2vxULk74fl30547
 5JXOArEhZJ4sMSQHpMOsroyQBIQ5iOw7Mky4QdU4NNZnIIsPvKu9qEUla+7RSHYS/K2I
 8rPHxezN/JeuwwT5yA04cM0camQtgAsZiUSWxVxBrzKBY/Wl5YNVzXHcXhq1qK38xZhS
 Wbqac63/TavEVdrV0u8ZcdVSzg9l+gxcwanoLI+GbS9rTfT1v9ZL661DygCyCEjhJKOw
 88zXHQZXPVhxl5eBL/UtO1p5ge6o27EggB0LvQlFt5ldJqZ6OWWZuEU/PAqREsTharIE
 3xog==
X-Gm-Message-State: APjAAAUHjwNf3dw+s7RDv687aN6LYHpYf7bf0FbjKOG9YIINvDOCMKnJ
 3rSVJsquR5yN/kYA02Smavw0d/g8WHU=
X-Google-Smtp-Source: APXvYqzrRarQE2WA8KPOZKeZLSgE5a0DbkHbxabV/LfrHhF4199BV3Ck0ZrL7geMGYdIYO/JxrbUOQ==
X-Received: by 2002:adf:e3ce:: with SMTP id k14mr36699978wrm.303.1566377729122; 
 Wed, 21 Aug 2019 01:55:29 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:28 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 33/61] gnu: eudev: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:27 +0200
Message-Id: <20190821085455.18508-33-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (eudev)[arguments]: Look for xsltproc in both
native-inputs and inputs. Also, do not run udevadm when cross-compiling.

We need to find another way to generate hwdb.bin file for cross-built systems.
---
 gnu/packages/linux.scm | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2f7dceca22..f0c0de666f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2564,7 +2564,7 @@ from the module-init-tools project.")
               (patches (search-patches "eudev-rules-directory.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
+     `(#:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'make-source-writable
            (lambda _
@@ -2573,19 +2573,25 @@ from the module-init-tools project.")
              (for-each make-file-writable (find-files "."))
              #t))
          (add-before 'bootstrap 'patch-file-names
-           (lambda* (#:key inputs #:allow-other-keys)
+           (lambda* (#:key inputs native-inputs #:allow-other-keys)
             (substitute* "man/make.sh"
               (("/usr/bin/xsltproc")
-                (string-append (assoc-ref inputs "xsltproc")
+               (string-append (assoc-ref
+                               (or native-inputs inputs) "xsltproc")
                                "/bin/xsltproc")))
             #t))
          (add-after 'install 'build-hwdb
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Build OUT/etc/udev/hwdb.bin.  This allows 'lsusb' and
              ;; similar tools to display product names.
+             ;;
+             ;; XXX: This can't be done when cross-compiling. Find another way
+             ;; to generate hwdb.bin for cross-built systems.
              (let ((out (assoc-ref outputs "out")))
-               (invoke (string-append out "/bin/udevadm")
-                       "hwdb" "--update")))))
+               ,@(if (%current-target-system)
+                     '(#t)
+                     '((invoke (string-append out "/bin/udevadm")
+                               "hwdb" "--update")))))))
        #:configure-flags (list "--enable-manpages")))
     (native-inputs
      `(("autoconf" ,autoconf)
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:15 2019
Received: from localhost ([127.0.0.1]:34677 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPe-0006Zm-Or
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:15 -0400
Received: from mail-wm1-f68.google.com ([209.85.128.68]:54703)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MOz-0006RJ-FK
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:35 -0400
Received: by mail-wm1-f68.google.com with SMTP id p74so1258214wme.4
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=oIVbmgYt8LnavYVjeo2g/0p8N8/+RDw6+zRoqMHeIHc=;
 b=KGP+yJu3IMp3Pq5JQ6emrzY/9+KoclHpYESpVZFiGLGbjSP8SsBpoxDxGu2X/Srk+w
 Ef70YmOc2xlWWCW9qns9iV39qIe/4iz/zVFuxRoLwcrJVbnXg/H0SuJ5WX0wPjOV54pz
 dwCl2aeGmRxrdUC0qJMvb3Pw6G7ZWu3s21vieGO9FT0+hAexiRYGYA5+PAYl+bGSB2/X
 Pp4wrkK2/ZeiHazZPf5VttHBPwUumNZcKsOeNjMyOe5sgnfkklGkyqNSUEIp79FXHwYp
 h4YwdrInNnPoRBO3S5G9ru5Rp4bG4h0T7GeAwpHohpiP68YTHbQeo69m8k8fYZ50cwDF
 fq5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=oIVbmgYt8LnavYVjeo2g/0p8N8/+RDw6+zRoqMHeIHc=;
 b=dkKobdEBXIzzHwb+Agr/4z95e0YBdPTfYxbO5r28e8kGGtKNjeprhsvxLlLBvmmtFn
 8FKrDS5YWnJ3RLBIsZwCHJOHHRym7r5dmOOWDkZ3PllVJ0jgDDShmTiavUtY/FzsiXjS
 usTzSKLNr3X3dYl95Xe148EWdgVEp9O5V4D5xGMrT6FwQXRyfZRdiBYcKw4/br/cGp/p
 cAKgpeQM1+mtD7jQ4HOEB4Y9IPTF0o2MZxNRpaN3o75mDYBFr1uVu4oS1hMKv/yWTrqD
 1rySvulmLaTCHOUlNeHGY30GVLf9Lkp9xUcMH7v2e/WybOe6Setc0BOHAvkfEiAMr/q8
 7xkg==
X-Gm-Message-State: APjAAAV0aiDaDlytPOzKKogQIplLuMUCjqrd9vjA39hxQTYto5/tmCtj
 15Z7BIzcYM5j7BWOb/j1TZyUBab+9yY=
X-Google-Smtp-Source: APXvYqyHZXFbJgciR2MapT80lDe4Ovkwh/qd15AueU8Q5o3Gnnezy2PW6PysA0pigjX3se0eRb9M1g==
X-Received: by 2002:a1c:1d08:: with SMTP id d8mr4641875wmd.22.1566377727582;
 Wed, 21 Aug 2019 01:55:27 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:26 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 31/61] gnu: glibc-utf8-locales: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:25 +0200
Message-Id: <20190821085455.18508-31-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/base.scm (glibc-utf8-locales)[inputs]: Move to ...
[native-inputs]: ... here, in order to fix cross-compilation.
* gnu/packages/commencement.scm (glibc-utf8-locales-final)[inputs]: Move to ...
[native-inputs]: ... here, in order to fix cross-compilation.
---
 gnu/packages/base.scm         |  4 ++--
 gnu/packages/commencement.scm | 11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 791647d848..ebaa93f092 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1112,8 +1112,8 @@ to the @code{share/locale} sub-directory of this package.")
                                ;; tests---e.g., in Guile's i18n tests.
                                '("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
                      #t))))
-    (inputs `(("glibc" ,glibc)
-              ("gzip" ,gzip)))
+    (native-inputs `(("glibc" ,glibc)
+                     ("gzip" ,gzip)))
     (synopsis "Small sample of UTF-8 locales")
     (description
      "This package provides a small sample of UTF-8 locales mostly useful in
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 69d1f87605..615d97dbd5 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2350,11 +2350,12 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
   ;; function.)
   (package
     (inherit glibc-utf8-locales)
-    (inputs `(("glibc" ,glibc-final)
-              ("gzip"
-               ,(package-with-explicit-inputs gzip %boot4-inputs
-                                              (current-source-location)
-                                              #:guile %bootstrap-guile))))))
+    (native-inputs
+     `(("glibc" ,glibc-final)
+       ("gzip"
+        ,(package-with-explicit-inputs gzip %boot4-inputs
+                                       (current-source-location)
+                                       #:guile %bootstrap-guile))))))
 
 (define-public ld-wrapper
   ;; The final 'ld' wrapper, which uses the final Guile and Binutils.
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:14 2019
Received: from localhost ([127.0.0.1]:34664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPZ-0006YN-Bw
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:14 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:50946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MOx-0006Qb-Dy
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:35 -0400
Received: by mail-wm1-f66.google.com with SMTP id v15so1276604wml.0
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=F3NvvDW9Ba+hV+ShQRawJdoRDfPQfpydb4ccO2n2SlQ=;
 b=C/2a/NoTJrJrJh6FqDVJ7MiLW4JBTbhP3UN2jiY3AX1+pCzGjs0cNxo7XBzeK4mz6f
 q7B95aYLUFV8OLPLO7dGV+Uu6FNVYwrH5mCqr1yyx2bIcNlm/+GC2A3TNZZ/SUb+gz44
 P8JHbOrrkw1YwqrrQhClI6bydUIUXskBiBT+K+9uA0HSilkdmTHtVvpGY6By+cTDhwTg
 TxqAhBuQHgdFdTJJKeNGtrSEg3sbloBrOKq5JOhn3jKtsyop1JMK5XtOFp09M7kg2Go3
 +X2pvqhCXw9qL5WdDFj3rPXxXGPIQmQkN1o36g00RXe2BBSlhsVvjQXoIcdu/C06oz5T
 tWMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=F3NvvDW9Ba+hV+ShQRawJdoRDfPQfpydb4ccO2n2SlQ=;
 b=r+eWI2+F0td5/rt4ozvw/MYVT1cNl5v7gkC+PBeFe4Ln4R1QEYTvCKto6e3cUl1kyK
 d7NbQuMXYuK7Mpt+8sprPIRvojNNxnPfNjMb+dh/i0HfykwLy2s2sMfo9lyFayYyzaRY
 Yq6CGY0pLFe7JBAdkdoHs+wOEWhr2nj2laBqqb8YktfP+mkOzeSNKfg7SAUP/rZcs1gZ
 ojOw53NpLlNU/m5nk+D3gFpRWw7QZykaCeE2YCYwBehDDVfdWrzeNUL1EbuzHRP3+Lau
 0FHvrByQv+xFVMfX5gNMb3q/0mGkTqqIUAD+7NemKqIi/k47vkl27ygvSndVwUj1ZHpI
 VVAA==
X-Gm-Message-State: APjAAAVjyFHyGk5/8Uz7MQcNuS+lohMAWEsaQhOl6JaBBQ0Fr/oFld+U
 V9b8B+8Y9mrgIck6iYsWTLm+mGRnVsg=
X-Google-Smtp-Source: APXvYqzSQovUKdStTlxpCI9oIF9h0azFuXYbjcsLfhmn1vjI+9v8vtrszzrRP/LbntvMti7IMLfc/A==
X-Received: by 2002:a7b:c1c1:: with SMTP id a1mr4992006wmj.31.1566377725554;
 Wed, 21 Aug 2019 01:55:25 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:24 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 29/61] gnu: alsa-utils: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:23 +0200
Message-Id: <20190821085455.18508-29-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/linux.scm (alsa-utils)[inputs]: Move gettext from here ...
[native-inputs]: ... to here, in order to fix cross-compilation.
---
 gnu/packages/linux.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f2e36ee7b4..2f7dceca22 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -22,7 +22,7 @@
 ;;; Copyright © 2017, 2018 Leo Famulari <leo@HIDDEN>
 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@HIDDEN>
 ;;; Copyright © 2017 Gábor Boskovits <boskovits@HIDDEN>
-;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@HIDDEN>
+;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2017 Clément Lassieur <clement@HIDDEN>
 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@HIDDEN>
 ;;; Copyright © 2017 nee <nee-git@HIDDEN>
@@ -1518,12 +1518,13 @@ MIDI functionality to the Linux-based operating system.")
                (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
                 "true\n"))
              #t)))))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)))
     (inputs
      `(("libsamplerate" ,libsamplerate)
        ("ncurses" ,ncurses)
        ("alsa-lib" ,alsa-lib)
-       ("xmlto" ,xmlto)
-       ("gettext" ,gettext-minimal)))
+       ("xmlto" ,xmlto)))
     (home-page "http://www.alsa-project.org/")
     (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
     (description
-- 
2.17.1





Information forwarded to guix-patches@HIDDEN:
bug#36477; Package guix-patches. Full text available.

Message received at 36477 <at> debbugs.gnu.org:


Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:56:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 21 04:56:09 2019
Received: from localhost ([127.0.0.1]:34662 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i0MPW-0006Y9-Fi
	for submit <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:56:06 -0400
Received: from mail-wm1-f67.google.com ([209.85.128.67]:51267)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <m.othacehe@HIDDEN>) id 1i0MOy-0006Qy-DX
 for 36477 <at> debbugs.gnu.org; Wed, 21 Aug 2019 04:55:32 -0400
Received: by mail-wm1-f67.google.com with SMTP id k1so1278325wmi.1
 for <36477 <at> debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=NFg6rLe41Vu+A3BWHTZt5cAsvwD5MY8+jVW7IoSdJo0=;
 b=tPCikRY5TQSFqYFFbW1zv5X9Mk2TTgQ7ocvywcGq3pEPpxlEHXSlJYM/YQSJSKvTVM
 HVtyaqw+2B/iCN25+XhwGSeq/hUNoaGOoiy7exfYNzUCofmO+37V1P99R24wPgg6wsCU
 1RsC45bnn7bfkr4Y6agrJT1FTdHGHRIBCa/LiEaUDD6A/BMRFUMS/4Htr0RiqyeIFrrh
 N4zdNil/FJak1iTPcn7BZAI1b5LQn9v+yW8r7iHdZy7xpHYAkiECKxjizEU181TZiwGX
 d0vjNES/DmwgXhDWg1LnD2OAy1kE/ivUzGfK5gBlRQf2uSwUCMOptyPAD4Bo/lu+ROWv
 3LYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=NFg6rLe41Vu+A3BWHTZt5cAsvwD5MY8+jVW7IoSdJo0=;
 b=nk0Hn6TQrJmmfgEtAVFbePOkdG3DdUkjZr2qgHSkGWI6nIdYdzMnTjRuiSwF23xcb1
 zgNG804eTCqmoYdo7pz7BXCjxwBLbX1XSaGCkMq5HkV+xBeg/UCnnkgQNkhUpADu27uy
 9qCgEiRX3L8QqmUOZcNA/EZWnA5OYYobD1wpOaBOFi62zYDhdRZwHQQuzPqwapzUIEGK
 10fZ2A4nRP1RLz0/UN57YL4h7yr8OvFzuVoiSaIlXMpjnw6lVsjkSyhkMNHjA493sQnX
 P7KknQSgODG32JR4Yo00CDl8bmoXoudVbYidvXJXlCzL5zJPFGqWKzvQVFJgrszNc89t
 6E+g==
X-Gm-Message-State: APjAAAUG8kHvHfeqiwYMF5Ej2TztfkQqHA1HlhkmyU6byF7JX9VHZWa8
 2ECCP1EfWYpBL8/jI283BvMNR4sMKUw=
X-Google-Smtp-Source: APXvYqxrQkejHh/bjvZWCL/f9V+g00BjfH44I4C7B/50p0/mdKqRLW7FmlEGVb9iQ3odo8hEI6SVUg==
X-Received: by 2002:a05:600c:228f:: with SMTP id
 15mr4486864wmf.160.1566377726458; 
 Wed, 21 Aug 2019 01:55:26 -0700 (PDT)
Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188])
 by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Aug 2019 01:55:25 -0700 (PDT)
From: Mathieu Othacehe <m.othacehe@HIDDEN>
To: 36477 <at> debbugs.gnu.org
Subject: [PATCH v2 30/61] gnu: icu4c: Fix cross-compilation.
Date: Wed, 21 Aug 2019 10:54:24 +0200
Message-Id: <20190821085455.18508-30-m.othacehe@HIDDEN>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20190821085455.18508-1-m.othacehe@HIDDEN>
References: <20190821085455.18508-1-m.othacehe@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36477
Cc: mbakke@HIDDEN, Mathieu Othacehe <m.othacehe@HIDDEN>, ludo@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/icu4c.scm (icu4c-build-root): New variable.
(icu4c)[native-inputs]: Add it.
[arguments]: Pass it as a configure-flag.
---
 gnu/packages/icu4c.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index 922dfbd348..c70871f7e7 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Clément Lassieur <clement@HIDDEN>
 ;;; Copyright © 2017 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright © 2019 Marius Bakke <mbakke@HIDDEN>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@
   #:use-module (gnu packages python)
   #:use-module (guix licenses)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system ant)
   #:use-module (guix build-system gnu))
@@ -70,13 +72,23 @@
             (sha256
              (base32 "0v0xsf14xwlj125y9fd8lrhsaych4d8liv8gr746zng6g225szb2"))))
    (build-system gnu-build-system)
+   ;; When cross-compiling, this package needs a source directory of a
+   ;; native-build of itself.
    (native-inputs
-    `(("python" ,python-minimal)))
+    `(("python" ,python-minimal)
+      ,@(if (%current-target-system)
+            `(("icu4c-build-root" ,icu4c-build-root))
+            '())))
    (inputs
     `(("perl" ,perl)))
    (arguments
     `(#:configure-flags
-      '("--enable-rpath")
+      (list
+       "--enable-rpath"
+        ,@(if (%current-target-system)
+              '((string-append "--with-cross-build="
+                                (assoc-ref %build-inputs "icu4c-build-root&q