From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8KQfCiqWUmFsaAEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 06:12:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SDinBSqWUmE8MwAAbx9fmQ (envelope-from ) for ; Tue, 28 Sep 2021 04:12:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 67A362A2E1 for ; Tue, 28 Sep 2021 06:12:25 +0200 (CEST) Received: from localhost ([::1]:34972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV4Tg-0006NO-C2 for larch@yhetil.org; Tue, 28 Sep 2021 00:12:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV4Je-0008RK-5v for guix-patches@gnu.org; Tue, 28 Sep 2021 00:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV4Jd-0005Ot-Mf for guix-patches@gnu.org; Tue, 28 Sep 2021 00:02:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mV4Jd-0002GG-K2 for guix-patches@gnu.org; Tue, 28 Sep 2021 00:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50091] [PATCH 07/21] gnu: bdb: Fix building on riscv64-linux. Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 04:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50091 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 50091@debbugs.gnu.org Received: via spool by 50091-submit@debbugs.gnu.org id=B50091.16328016848642 (code B ref 50091); Tue, 28 Sep 2021 04:02:01 +0000 Received: (at 50091) by debbugs.gnu.org; 28 Sep 2021 04:01:24 +0000 Received: from localhost ([127.0.0.1]:43362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV4J1-0002FK-M6 for submit@debbugs.gnu.org; Tue, 28 Sep 2021 00:01:23 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:25840 helo=ext-mx-out001.mykolab.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV4Iw-0002Ey-Eh for 50091@debbugs.gnu.org; Tue, 28 Sep 2021 00:01:22 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id 67AD9B39; Tue, 28 Sep 2021 06:01:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1632801671; x=1634616072; bh=IOm8nMiu6u+lu2viqPHFZgTX1enPVJtXbEb R5VTaywo=; b=o5uL9RpLpZ7is1HZcXNB7SNIdnR4L5aJKjZsCtRALEA+Qe5ISgD vv43X+ADNaG6i4xJ8e6zOpDclfYgqh/XpvJatYe34bG7RvPAzVti51K3dNFy+5a3 Ofiver5Ql7Rsm07h6Qh+fYuoItJ+mb5HKVjz5+sjBCpQIXe27yDeNbKp4B7Ux543 4mExmf4ahcseTVf8AMyZidLp0KKX7bCP+f+QaIs37Jc7FvgOn37N+r0unmFtPyYq 89OkQ5F7Id5EibOm0lk80A6wTk+JoITxmeWF17W6/Uu+rEZ2crevrAoN/wRrB4lZ TBUjWDFB79S20VVHo3Vis38Ak3t66WNVE9ThVAjhvph2Tb/3bSQ6ivfuUZSFvSjj +U/xYle+poDrtktrwrNJzZ295HOAthr6cs60eKvusLwaFnvEGqEKjWZlF7jtuxX+ j56HSc7wFb93kNxvxpsipC+13M46WXoRDUxwk8URJZO7RZmw98YMf2WGbual5gc8 B1lYdADt3sliDT88PY08+340PI2BRyRzH6X7mjvsWnQWGsDy6lFIcN3xjnzvoR9p TwsBwLJGYnIfdpQWSBupni6bjTK1J9kgXVoquvF2Rxwv8Nz9l9/1knY0P/DwL2Ei XA9p2177jQwboTkqpJzwZKgYcyaTvUhZRpk8N4V2EEZa9SAgxe7aNkkk= X-Virus-Scanned: amavisd-new at mykolab.com Received: from ext-mx-out001.mykolab.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QU4oIiVainF8; Tue, 28 Sep 2021 06:01:11 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id AFC0D68F; Tue, 28 Sep 2021 06:01:11 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 6320083A; Tue, 28 Sep 2021 06:01:11 +0200 (CEST) Date: Tue, 28 Sep 2021 01:01:06 -0300 Message-ID: <4402060.EE4fiNuXlR@popigai> In-Reply-To: References: <5905408.M9PYHm6Ns5@popigai> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632802345; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IOm8nMiu6u+lu2viqPHFZgTX1enPVJtXbEbR5VTaywo=; b=ecAF59aX+axdT1u2+EETcDmjvacRq5ap4cTClSrFgUGOBJRMMnoydumi8fjIUTuc3q/M04 WKN18FiVZSyNxe6pU3Tpdg8QS3d20G3NYLwSHsvNBGM2bO6sgIUMDTBYy58FF7IZuktKSv f5eFkNTJr+ie0c1vwcYpRVBs4am30STfz4KnMLT0CU09WllQMmqthsEnJK3hF3JsF01MDw BHb45lFd9HqZXTbVd9nNMjzioa/NBG4Y6bvSYQaGPQzPYnx7FqdSUjgPYSfgozGnRD3o+y l2QJVbdJ5zRaWfIoG4mRqZzthqRXWsypw4uXod5W0AkAnPjb0YKZISQa0gTcyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632802345; a=rsa-sha256; cv=none; b=qWBq6x8IxIAX4FOnsM281xKmSTOIi5ShwW228EyrnWUop9McbyHQ1mA/1nbxLBBQE1LII+ iaJcoty4y5v9xX+7Mgn1kVhewWMvU61B5xyYFAVotiMqFJgt5oLnyIIp++5WFe7nCDRWmU GMlYgid0HoTBAGd9tLewnUK0LqBjk9Ur+WxhyKbdrS2Kt9UP7BtaDnQiGxrB28+wA1TWQd brWQ9iobED/kyMmyaC7LDJOtRi06RPTXlBCP0k1GAIkmqM3LCjaKdclaUKl7h+VxLhlh2Z L8Xtoe4S9jEcr9pcdXeRC1WE5DVMewjEmMnpWadagl9jDvFBbCSMTGx9ZQqwow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=o5uL9RpL; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=o5uL9RpL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 67A362A2E1 X-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: zgQFmcx9VsXL Hello Efraim, Em quinta-feira, 23 de setembro de 2021, =C3=A0s 04:28:33 -03, Efraim Flash= ner=20 escreveu: > On Tue, Aug 17, 2021 at 11:58:44AM -0300, Thiago Jung Bauermann wrote: > > Hello Efraim, > >=20 > > Em ter=C3=A7a-feira, 17 de agosto de 2021, =C3=A0s 07:19:05 -03, Efraim= Flashner > >=20 > > escreveu: > > > @@ -72,15 +73,15 @@ > > >=20 > > > (string-append "CONFIG_SHELL=3D" (which > > > "bash")) > > > (string-append "SHELL=3D" (which "bash")) > > >=20 > > > - ;; Bdb doesn't recognize aarch64 as an > > > architecture. - ,@(if (string=3D? "aarch64-linu= x" > > > (%current-system)) - > > > '("--build=3Daarch64-unknown-linux-gnu") - > > > '()) > > > - > > > - ;; Bdb doesn't recognize powerpc64le as an > > > architecture. - ,@(if (string=3D? > > > "powerpc64le-linux" (%current-system)) - > > > '("--build=3Dpowerpc64le-unknown-linux-gnu") - > > > '()) > > > + ;; Bdb doesn't recognize very many > > > architectures. + ,@(match (%current-system) > > > + ("aarch64-linux" > > > + '("--build=3Daarch64-unknown-linux-gnu")) > > > + ("powerpc64le-linux" > > > + =20 > > > '("--build=3Dpowerpc64le-unknown-linux-gnu")) > > > + ("riscv64-linux" > > > + '("--build=3Driscv64-unknown-linux-gnu")) > > > + (_ '())) > > >=20 > > > ,@(if (%current-target-system) ; > > > cross > > >=20 > > > building '((string-append "--host=3D" target)) > >=20 > > Can this be fixed instead by updating =E2=80=98config.guess=E2=80=99 an= d =E2=80=98config.sub=E2=80=99 > > as > > done in https://issues.guix.gnu.org/50086#1 ? > >=20 > > That could possibly even fix cross-building (as it does for =E2=80=98pt= h=E2=80=99) and > > eliminate the need for all the =E2=80=9C,@=E2=80=9D forms in the =E2=80= =98configure=E2=80=99 phase. >=20 > Sorry for taking so long to get back to you. Not a problem. > I finally tried this but there seems to be a cycle somewhere between bdb= =20 > and config, so using config and dropping the custom --build flag isn't=20 > currently an option. Thanks for trying it out. Interestingly, `guix graph --path` can=E2=80=99t = find it,=20 even with `-t bag`. If you=E2=80=99d like to make a second try, some packages get the updated=20 =E2=80=98config.guess=E2=80=99 and =E2=80=98config.sub=E2=80=99 files from = =E2=80=98automake=E2=80=99 instead (e.g., the=20 =E2=80=98indent=E2=80=99 package). I don=E2=80=99t know if there would be a= cycle in that case as=20 well or not. =2D-=20 Thanks, Thiago