From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iJ/DKEUtTGHLCgAAgWs5BA (envelope-from ) for ; Thu, 23 Sep 2021 09:31:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mO9sJEUtTGHDTwAAB5/wlQ (envelope-from ) for ; Thu, 23 Sep 2021 07:31:17 +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 371978DEB for ; Thu, 23 Sep 2021 09:31:17 +0200 (CEST) Received: from localhost ([::1]:38032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTJCO-0004Qw-9J for larch@yhetil.org; Thu, 23 Sep 2021 03:31:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTJCA-0004MD-Kp for guix-patches@gnu.org; Thu, 23 Sep 2021 03:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTJCA-0002sH-CR for guix-patches@gnu.org; Thu, 23 Sep 2021 03:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTJCA-0000lI-7B for guix-patches@gnu.org; Thu, 23 Sep 2021 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50091] [PATCH 07/21] gnu: bdb: Fix building on riscv64-linux. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Sep 2021 07:31:02 +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: Thiago Jung Bauermann Cc: 50091@debbugs.gnu.org Received: via spool by 50091-submit@debbugs.gnu.org id=B50091.16323822142855 (code B ref 50091); Thu, 23 Sep 2021 07:31:02 +0000 Received: (at 50091) by debbugs.gnu.org; 23 Sep 2021 07:30:14 +0000 Received: from localhost ([127.0.0.1]:52567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTJBJ-0000jm-90 for submit@debbugs.gnu.org; Thu, 23 Sep 2021 03:30:14 -0400 Received: from flashner.co.il ([178.62.234.194]:48458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTJBH-0000hu-Fw for 50091@debbugs.gnu.org; Thu, 23 Sep 2021 03:30:08 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id A2E8240E9A; Thu, 23 Sep 2021 07:30:01 +0000 (UTC) Date: Thu, 23 Sep 2021 10:28:33 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Thiago Jung Bauermann , 50091@debbugs.gnu.org References: <975888973eb4debf457d394fc3669a36168566ac.1629193993.git.efraim@flashner.co.il> <5905408.M9PYHm6Ns5@popigai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tKkPwEKuPT6oT6HC" Content-Disposition: inline In-Reply-To: <5905408.M9PYHm6Ns5@popigai> 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 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632382277; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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; bh=Q7n0WlZ6Wf3M9oSUgQNgI4AiI7mdy6TfIlyK6n/9DMM=; b=Bo8c5pLLeOF5kWP02KnjC8GBDJOUNPCnS67CA9VNsATZ7BS5eLdHc3vfd51DCeRxLwhh/f NljxgLWl1yy1GponxxuI+kfGd99tUKS7QhO87eUv/Gv5nfTifMEt3wpoCEwut70Xd4P/Sa qTUQM/MFCPSoNG5CmHr8LS9rVPk4S159UgzCp3xFv3b+fivVbl0KXo3+oroFn8R1zncoNO DXa0GFGM4kLgZegvteazv3gGW2daA5Ql24CXz10r3eWFK1E5GEGAtDsDiAbGVrhjbPZzM6 nngvQ1VuPtGpGozjRk4z+US5+TxAPPF+Kyku2/4Hygii6VV2Ws264DivX9Gisg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632382277; a=rsa-sha256; cv=none; b=aRnrBXSkbfZTl2L46Ku3dxsOeSZB7+eYxuEY2LO7eLr97Zs+zqILy0p4sue5j8SeqSyv5M oyjEs4eMjydDWk2+wVeR5np16NkajgdoqFFCoUc5B5a3rROTomG17pvvKimsMyWfIVLD3m RIOhT59OR7dspGSnVUZ3EZ7p8ZSwhgBewclo+BInCp667JKNAFNBZuOmc96ICgVxMHBgl+ Khcl0CydZj8NrgctWvU3sJGWc9u32ddd8AD0np94E89iSihJE0hSDmXMFgEZQujwENVdAO KxhOhLiE9UyPF+ioa2VzqTmqG1q32BCXlAPIhbN7PyJ+XZjNKXTAAQxzDdchLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 371978DEB X-Spam-Score: -3.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3HmBOEgZXlWe --tKkPwEKuPT6oT6HC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 F= lashner=20 > escreveu: > > * gnu/packages/dbm.scm (bdb)[arguments]: Modify configure to build for > > the currect architecture when building for riscv64-linux. > > --- > > gnu/packages/dbm.scm | 23 ++++++++++++----------- > > 1 file changed, 12 insertions(+), 11 deletions(-) > >=20 > > diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm > > index ce84ef9eda..c2bdaf782a 100644 > > --- a/gnu/packages/dbm.scm > > +++ b/gnu/packages/dbm.scm > > @@ -1,7 +1,7 @@ > > ;;; GNU Guix --- Functional package management for GNU > > ;;; Copyright =C2=A9 2012, 2013, 2014, 2016, 2020 Ludovic Court=C3=A8s > > ;;; Copyright =C2=A9 2013, 2015 Andreas Enge > > -;;; Copyright =C2=A9 2016, 2017, 2018, 2020 Efraim Flashner > > +;;; Copyright =C2=A9 2016, 2017, 2018, 2020, 2= 021 > > Efraim Flashner ;;; Copyright =C2=A9 2017, 2018 > > Marius Bakke > > ;;; Copyright =C2=A9 2018 Mark H Weaver > > ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka > > @@ -28,7 +28,8 @@ > > #:use-module (guix packages) > > #:use-module (guix download) > > #:use-module (guix build-system gnu) > > - #:use-module (guix utils)) > > + #:use-module (guix utils) > > + #:use-module (ice-9 match)) > >=20 > > ;;; Commentary: > > ;;; > > @@ -72,15 +73,15 @@ > > (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-linux" > > (%current-system)) - =20 > > '("--build=3Daarch64-unknown-linux-gnu") - = =20 > > '()) > > - > > - ;; Bdb doesn't recognize powerpc64le as an > > architecture. - ,@(if (string=3D? > > "powerpc64le-linux" (%current-system)) - =20 > > '("--build=3Dpowerpc64le-unknown-linux-gnu") - = =20 > > '()) > > + ;; Bdb doesn't recognize very many architecture= s. > > + ,@(match (%current-system) > > + ("aarch64-linux" > > + '("--build=3Daarch64-unknown-linux-gnu")) > > + ("powerpc64le-linux" > > + '("--build=3Dpowerpc64le-unknown-linux-gnu= ")) > > + ("riscv64-linux" > > + '("--build=3Driscv64-unknown-linux-gnu")) > > + (_ '())) > >=20 > > ,@(if (%current-target-system) ; cross > > building '((string-append "--host=3D" target)) >=20 > Can this be fixed instead by updating =E2=80=98config.guess=E2=80=99 and = =E2=80=98config.sub=E2=80=99 as=20 > done in https://issues.guix.gnu.org/50086#1 ? >=20 > That could possibly even fix cross-building (as it does for =E2=80=98pth= =E2=80=99) and=20 > 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. I finally tried this but there seems to be a cycle somewhere between bdb and config, so using config and dropping the custom --build flag isn't currently an option. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --tKkPwEKuPT6oT6HC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmFMLKEACgkQQarn3Mo9 g1ELNxAAqLOBry1rmy3hL4Cn25pJ70i9W3HdmKd3xCrWBh7ivBGIUiqUyosZxfkZ gPZ4D7d8xvyZ4HhKqOR69+VYQ2e5DXaz2ieGl8dlf7bMmjFmvxXJL8wYnY6EGo5l NPN5DujKbnfpovuTIo6TIQtiH51KMmKBuYWt+9weX47XZh5UrCWDiByEz9seTGpt P3DQmeBB2FpDGp4553i+h6BFFbQUJoo6J6syNO/gPqP1IG/KJ1a4cZXkc1Y1cE09 yEjuuT8dmpJ0M9pkWaWp97O0yBSiPw/aKL22A/GlTeChWeACTe3Y79rGlxTkaXxM tykJOnGIEwE6DPGOQU2/HirnQe5QOjSND1ldqg2v4Egl192coh4eIuS/otI3CQBe lm9nx60MMAHkb2xze+TR9DoHGzRYBah+S3mn3VQdeQFI9hl6B4RR4zXTQ//66L9J Y3R8QxBtmKkW75Vbl2bNFamy6OqFpRInEciIUhY7zqDjYmpsC1CipxbxySBIPs5d D5NiEeqkFcehBXXYVlF4QOPYK42fMKQ62BXRx2+vTK8AmGUYv+9gnOYYhYYv+EhP W6UyLoFCvD6NZ5zk4ceJKgKd8ATjrrJjvcoMFszpDY98WZ0j9feBjoco39Dd3u97 tW3l983stIaWp40OCHCHOjsFsnzFrmoLUqtaWEO4Y+yWnDGP+TQ= =8+hG -----END PGP SIGNATURE----- --tKkPwEKuPT6oT6HC--