From patchwork Mon Sep 2 15:33:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15253 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4BB251734D; Mon, 2 Sep 2019 16:37:41 +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 14CA417329 for ; Mon, 2 Sep 2019 16:37:41 +0100 (BST) Received: from localhost ([::1]:37660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oOh-0004x2-KN for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:37:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42530) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oMC-00029k-OZ for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oMB-0004EP-OO for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oMB-0004E5-Kl for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oMB-0006cR-G1 for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 19/48] gnu: bdb: Fix cross-compilation. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Sep 2019 15:35:03 +0000 Resent-Message-ID: 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 Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156743846125020 (code B ref 36477); Mon, 02 Sep 2019 15:35:03 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:21 +0000 Received: from localhost ([127.0.0.1]:58760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLU-0006VQ-QO for submit@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 ) id 1i4oLH-0006QP-OE for 36477@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@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 Date: Mon, 2 Sep 2019 17:33:04 +0200 Message-Id: <20190902153333.11190-20-m.othacehe@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190902153333.11190-1-m.othacehe@gmail.com> References: <20190902153333.11190-1-m.othacehe@gmail.com> MIME-Version: 1.0 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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"