Message ID | 20191002095904.6325-9-m.othacehe@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A560D174A0; Wed, 2 Oct 2019 11:00:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6CD7D1749E for <patchwork@mira.cbaines.net>; Wed, 2 Oct 2019 11:00:37 +0100 (BST) Received: from localhost ([::1]:53132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1iFbQx-0003qM-C7 for patchwork@mira.cbaines.net; Wed, 02 Oct 2019 06:00:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51077) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iFbQa-0003lK-B9 for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iFbQZ-00006K-2t for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iFbQY-000065-Tk for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1iFbQY-0000ZN-Oc for guix-patches@gnu.org; Wed, 02 Oct 2019 06:00:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v4 08/23] gnu: bdb: Fix cross-compilation. Resent-From: Mathieu Othacehe <m.othacehe@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Oct 2019 10:00:10 +0000 Resent-Message-ID: <handler.36477.B36477.15700103841872@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 36477@debbugs.gnu.org Cc: Mathieu Othacehe <m.othacehe@gmail.com> Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.15700103841872 (code B ref 36477); Wed, 02 Oct 2019 10:00:10 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Oct 2019 09:59:44 +0000 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@debbugs.gnu.org>) id 1iFbQ8-0000Ty-7g for submit@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@gmail.com>) id 1iFbPx-0000Rw-C6 for 36477@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@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@gmail.com> Date: Wed, 2 Oct 2019 11:58:49 +0200 Message-Id: <20191002095904.6325-9-m.othacehe@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191002095904.6325-1-m.othacehe@gmail.com> References: <20191002095904.6325-1-m.othacehe@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
System cross-compilation
|
expand
|
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"