From patchwork Mon Sep 2 15:33:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15230 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 E8E8C1734D; Mon, 2 Sep 2019 16:35:55 +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 B650317329 for ; Mon, 2 Sep 2019 16:35:55 +0100 (BST) Received: from localhost ([::1]:37592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oN0-0002iQ-PJ for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:35:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42608) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oMG-0002EM-Ci for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oMF-0004Lr-AP for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oMF-0004L7-5j for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oMF-0006dI-2C for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 23/48] gnu: make-linux-libre: 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:07 +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.156743847125153 (code B ref 36477); Mon, 02 Sep 2019 15:35:07 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:31 +0000 Received: from localhost ([127.0.0.1]:58783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLf-0006XW-IY for submit@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:31 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLL-0006Rq-Ts for 36477@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:15 -0400 Received: by mail-wm1-f67.google.com with SMTP id n10so4386893wmj.0 for <36477@debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:11 -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=BLVterHn1ZjqgF7EPe9bVrpAit+Ue7YIkov6w1wQdhQ=; b=dKVuujmqU1c89INce8dKw+jRu6H+IFQe0D/p/khuIlz+rXzjGZbY+hvvko/nQ+tkxQ AqIJ411tpuTDOSeAPGGsN3AJqsFCEKTWptkOF0a7XHC6QdhhABa0dfqripiJm9/3KdbJ dhkzEd7m3tJGECWmqKWO5blQKH8hrtwIa+hne6Ay/H5WBQu7UxTkk1NnBHG3Id4b1Mzk YRJjo9pxCNi4d/+PddxRARQlhpkOCH0OB5OMHfUL3TYtr0zMYkgFnBbcXIRYQhbdumUJ FuyexGVPOUhrhwyKM7RICI8aK6aWDypNNq9IaG8eLqtKKN9o9D5bQxizqzJOAX0v9GFG pG3g== 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=BLVterHn1ZjqgF7EPe9bVrpAit+Ue7YIkov6w1wQdhQ=; b=gBnySOIMO16JAna2VmYtVJdgf121c3wo9ZTGasa1pXEdg7Fy9Hs1OzDNFNjYBy1j4x mJ/eIQTSd2g8g7H6c461xdN4T7fZmav8VUf/sDcf/6i06LNCtpz8WknKmwHIr4HcZoS1 FOFykxydJU30PCDQKW+EwcnmFx2ST7/KNO4nggJOiQGo7yCRf77rJRFBddgbu9Ui1U7R Csw6pemKEtStSfTyDgTuC0CfiJX0QunOsu7AILSFwjz2Xojq391d+xWm0vH1b4CExgTh Y7cShGVf05gwnhuVsnnp4TnFjk6fcmgFptWfu1GnEfOPdn6IuJaIYSUfsX5Xgh5mTi3K ViHQ== X-Gm-Message-State: APjAAAUqLfvGkKnIZuHmMkD+4ZXqjR54KHYNy/VxFCgDZ9XNqlzbI0Su Kj1cBvF0pmHDQ7KwHFEEipIGsQAu X-Google-Smtp-Source: APXvYqzZv5stxdlPr482OG5k7zXufKciYM4H8Rns9lJAAo0P1RlxTLccLCG+/CfpxI+k7n82Bj5wLA== X-Received: by 2002:a7b:cf09:: with SMTP id l9mr35839387wmg.20.1567438446225; Mon, 02 Sep 2019 08:34:06 -0700 (PDT) Received: from localhost.localdomain ([80.12.63.115]) by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 08:34:05 -0700 (PDT) From: Mathieu Othacehe Date: Mon, 2 Sep 2019 17:33:08 +0200 Message-Id: <20190902153333.11190-24-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/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH to make sure that cross-libc is not found. Otherwise, some of its header would conflict with the one from linux (stdint.h and linux/types.h). --- gnu/packages/linux.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index afa860830b..9c1ba6d5b9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." (replace 'configure (lambda* (#:key inputs native-inputs target #:allow-other-keys) ;; Avoid introducing timestamps + ,@(if (%current-target-system) + '((unsetenv "CROSS_CPATH")) + '()) (setenv "KCONFIG_NOTIMESTAMP" "1") (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))