Message ID | 20190902153333.11190-18-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 6AB971734D; Mon, 2 Sep 2019 16:35: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 2CB0A17329 for <patchwork@mira.cbaines.net>; Mon, 2 Sep 2019 16:35:37 +0100 (BST) Received: from localhost ([::1]:37590 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 1i4oMi-0002JQ-4N for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:35:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1i4oMC-000292-9y 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 <Debian-debbugs@debbugs.gnu.org>) id 1i4oMB-0004DQ-6w for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50023) 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 1i4oMB-0004D5-4D 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 <Debian-debbugs@debbugs.gnu.org>) id 1i4oMB-0006cJ-0V for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 17/48] gnu: lvm2: 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: Mon, 02 Sep 2019 15:35:02 +0000 Resent-Message-ID: <handler.36477.B36477.156743846125013@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 Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156743846125013 (code B ref 36477); Mon, 02 Sep 2019 15:35:02 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:21 +0000 Received: from localhost ([127.0.0.1]:58757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1i4oLU-0006VF-A2 for submit@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:20 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <m.othacehe@gmail.com>) id 1i4oLF-0006Ph-Oo for 36477@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:06 -0400 Received: by mail-wm1-f65.google.com with SMTP id t9so15056838wmi.5 for <36477@debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:05 -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=bT9wjUOMiQhRKjfvHRtEPKAeNdFX83u0rDJyRcK/lfo=; b=gGhkyz2XXExPpwINZCflOMplo57KyLX2AWu/Y/w6tMa6pb53+jLR+l+jWqsPCHV0pT s3cY7cW+iW7OB3S633Rnohj03zniw0nbu6CsrpPuW1y6Q+uvPKOYwiEUih2q/8vMPzow WzL/Tfzy2uSSHIceqQcjoLWxSR9zHrHk0vp/hI/4UT9HHV2Z0sU2yyRagGBU2ObFnmPQ CILLpaAfupbNdwnGTBd6YmPU7AbFDGcKQ13F0wNwfn+gm1L6scR72hB1SCZZ8d+eBVWK FPPZrcaD3lGhy13VID76MnMFaHoHBYfKmRRywx/0s96A+rlXNe27qdhFDZsxJLMEqDw5 Mnng== 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=bT9wjUOMiQhRKjfvHRtEPKAeNdFX83u0rDJyRcK/lfo=; b=UwWl0ij4oXSyyhzZf7HtKjtW8B5LFak6+6OkjZ+Oy4FEvGY8gumuKiagI00TCstuJc 0xwIqwCiOsfXoFc3U5ePFxZeoTgFu6zQxjlroUsMC2Bso51bEg4tiZE39dxT3Tm57T5Y e8d/b/VqvdeXdequizx/QzExc1m1rM7yN/E7eI6Wpd+HAJTrgkkh9st1xc1d+CUCK1b5 qKFOtzLZXC3Ym6C5y2YysomYA4JQlXub+3u38k/a/W1Yge0/1cIF8P8HeLojz+D+/lFE zCUwC65CBj+kqT7rSZOIUdvNyyZJPUy7hf9ZbfEEgvCOmcMhOrVuJ8opxJ+0WymV5vxN l4+Q== X-Gm-Message-State: APjAAAWw8Va/3EEJ0WjYOFbvfOzLIvZMWzSx7UUvA2fzvaJyaRa/GvhT Wc1omqQVDb35UinvalFdEsG6Tzm9 X-Google-Smtp-Source: APXvYqz2Poxfrx8v3E3yzsaxN04TmOh40/yio+86WH0wflFyJrC/Tk6KEOTBtS9+D5neM/3j60zc7Q== X-Received: by 2002:a1c:1f89:: with SMTP id f131mr35362015wmf.140.1567438439944; Mon, 02 Sep 2019 08:33:59 -0700 (PDT) Received: from localhost.localdomain ([80.12.63.115]) by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 08:33:59 -0700 (PDT) From: Mathieu Othacehe <m.othacehe@gmail.com> Date: Mon, 2 Sep 2019 17:33:02 +0200 Message-Id: <20190902153333.11190-18-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 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> Cc: Mathieu Othacehe <m.othacehe@gmail.com> 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 |
Add --target support to guix system
|
expand
|
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 0225f8c376..afa860830b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2654,7 +2654,7 @@ time.") (inputs `(("udev" ,eudev))) (arguments - '(#:phases + `(#:phases (modify-phases %standard-phases (add-after 'configure 'set-makefile-shell (lambda _ @@ -2689,7 +2689,12 @@ time.") (assoc-ref %outputs "out") "/lib,-rpath=" (assoc-ref %outputs "out") - "/lib/device-mapper")) + "/lib/device-mapper") + ;; This is needed when cross-compiling. + ,@(if (%current-target-system) + '("ac_cv_func_malloc_0_nonnull=yes" + "ac_cv_func_realloc_0_nonnull=yes") + '())) ;; The tests use 'mknod', which requires root access. #:tests? #f))