From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UPUlMPXPG2FPqQAAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 17:04:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QEPsK/XPG2HQUAAA1q6Kng (envelope-from ) for ; Tue, 17 Aug 2021 15:04:21 +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 160065AF1 for ; Tue, 17 Aug 2021 17:04:21 +0200 (CEST) Received: from localhost ([::1]:43722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mG0dY-0003gY-0S for larch@yhetil.org; Tue, 17 Aug 2021 11:04:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG0ZO-0001YX-W2 for guix-patches@gnu.org; Tue, 17 Aug 2021 11:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mG0ZO-0006V6-38 for guix-patches@gnu.org; Tue, 17 Aug 2021 11:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mG0ZO-0001B6-1p for guix-patches@gnu.org; Tue, 17 Aug 2021 11:00:02 -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, 17 Aug 2021 15:00: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: 50091@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 50091-submit@debbugs.gnu.org id=B50091.16292123584446 (code B ref 50091); Tue, 17 Aug 2021 15:00:01 +0000 Received: (at 50091) by debbugs.gnu.org; 17 Aug 2021 14:59:18 +0000 Received: from localhost ([127.0.0.1]:53778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG0Yc-00019Z-3t for submit@debbugs.gnu.org; Tue, 17 Aug 2021 10:59:18 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:13364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mG0YW-00019G-BJ for 50091@debbugs.gnu.org; Tue, 17 Aug 2021 10:59:13 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id EEB7A40BCC; Tue, 17 Aug 2021 16:59:01 +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= 1629212337; x=1631026738; bh=7Xg7w7Ccc3uZ2ouRQ2kT0n7jidNwW00EQDg u5bS29OI=; b=3IXod5Vra84V/6wstJ4RPa8OqqsqIbiq4nN239K56KAk0vOUxUf cspl8GXvMYSpc+6KVgHSt/zsy1Z5kJ+xXzE0nlCrWivfyRenyNaoYCYWvpg5dmvJ Crp1LjJ+edUSTSTbA3QRAObBTsf0pX2PbqCzUBty6lq5QlTzaID7D6fdM164iOiy 35ZZIT+J9+eNKMtYd2k17qRUqaCVLh2rajYIGocPBwJw+8T85qL3b5yTKBvpys2s /e4PUJZADz9+JEuqjHDTuKHXZZ6FGdB4nOrVlGc3TAnyeiCLA2mMx54tYX+Nrk3n uNLligJIltrQY0/nocig01LFPlAyOFwLVurHiw8eGC4pka5Fsw/SCPuqUdZQhmO8 X5wtO/57adr/hArc3d3scaeCgRB8RoPptFfIWIfmL/o+vPtvucDqdRdkdcqrH8hI X3U3kaxv/sZAQ3Hj8ZtDIjBB9SCpohdh5zCuwwvfUIxG0dz3Jksxd/UasoDoc7SM K0H0206+jTwLaynYsjPJjr2RMv2ZeCvQnKLxcc5IYa8W4iJLqMhbep7cmZYi7I4e 9KiWxNVJc9wm3bnge6IiV1Ki2RDH2mzlqdEEeol/4d0FjlQ5E+Xq9AqtDZERX69k fuigenSqwFmbGBMnoZu7AfwZPj+BwKSZZTRH/9NvvdvlVbsYjQL3i6bY= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AM8bj-N8kcKy; Tue, 17 Aug 2021 16:58:57 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id ED0F540BCB; Tue, 17 Aug 2021 16:58:56 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 260FD30D4; Tue, 17 Aug 2021 16:58:54 +0200 (CEST) Date: Tue, 17 Aug 2021 11:58:44 -0300 Message-ID: <5905408.M9PYHm6Ns5@popigai> In-Reply-To: <975888973eb4debf457d394fc3669a36168566ac.1629193993.git.efraim@flashner.co.il> References: <975888973eb4debf457d394fc3669a36168566ac.1629193993.git.efraim@flashner.co.il> 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=1629212661; 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=7Xg7w7Ccc3uZ2ouRQ2kT0n7jidNwW00EQDgu5bS29OI=; b=eFepfhme/bLRiUjlKpOm71oDUQQgoAZ7gDNgTpN42oIXQLYAHUk789hY9055jN+gQQy9ED Om9irLu+KUqR7YSMz/9vfe4DK2iZDB0/gujvH4B8Y8fmkPkV74n6AcLRQL8YNdQ5UefR6+ PeaC3ZfdNalvJxtqxB2iCIRc+vHxtF45gpL56w3/N1YGnEdITk/5Trf7987C49TB0aOKqr TNVcoG3fHe9DYBb9LOIWO7YMtrLkHw3M0RlZERAUxZTgtTO89b0V5USRJaq+vdOCkc2Pkq qD9yPP1pGcVV9CZrf5ME1AuY32gapbpRWPKsagmxiXJrgkp0Cs+VngJ+fSQV8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629212661; a=rsa-sha256; cv=none; b=VVWlG+QmWURXUn/q38vHsD8MKaMDgzEVQ4dqr2PjySMBe7pHVmAdhbunu7RtrzK6nuAplx IiIX6XGjfC9OSSlK+UsnPSPeChYyCP/EZht3iM4Yy9wEeczRwWKcaO0DqiGru9vdRmNdPu 0Yw0jmzrMOk7wm0+SNrJdsDQhExq14A5Ct+AlH7SvnqjX47B+p5GQKJrZUg8NqyHU3GHxA Aw0dR0cBrqnxW8XXka74S6eTWpGK5/md9+FoMEMy/905MoA2+eYPTmZIN2nEjz0vo5J325 wAr/kXRDfoyTZWQ6RSjkIz4v46RYZuiW8lZrcpM8EUqK+iWQk6CFw+w8xvz0LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=3IXod5Vr; 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-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=3IXod5Vr; 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: 160065AF1 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: FTeKoeO8o4mL Hello Efraim, Em ter=C3=A7a-feira, 17 de agosto de 2021, =C3=A0s 07:19:05 -03, Efraim Fla= shner=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, 2021 > 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 architectures. > + ,@(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)) 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 ? 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=98c= onfigure=E2=80=99 phase. =2D-=20 Thanks, Thiago