From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sPtSGm2uM2bEYgAA62LTzQ:P1 (envelope-from ) for ; Thu, 02 May 2024 17:17:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sPtSGm2uM2bEYgAA62LTzQ (envelope-from ) for ; Thu, 02 May 2024 17:17:01 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714663021; a=rsa-sha256; cv=none; b=hmC8K/WII8d9bhME2plfGamua57A0AqUfwCSgOSp2pDYDvZRHw02Io2Kuqah23Y0bk2MJS hqemenugZB2FSyf2LzkMxDrSbxAXUzmQPKFb5NZorjz1QV84/Di85S8T9QJQEaRqsvSzVC UknH9y5p97LkxE6RTd4NFPiSdEikJBrrtJr80QLstxOxlBmbAm5DD7xAeqsWwmEKMIWD5k /kW+2YhUKU3wHoOGosR5kiQ0qZuHaRLx6umQ3+Iy8YcO94rTdA/716plR/iXh5QUrLD2uf sBYJ6qjqsShgAiLrr+Xegd7gbup8JKOschvf1WvjbZ3rHvu7jFluu9tU3Svc6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714663021; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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; bh=2nu2lZ6YqraUUi8rKqt1x9mfCXzutwgNoplwdVrbq7o=; b=k1DPbUKVSEM8JthMY3EkOhcxIHSNZLo+NLg25nP0eU2+/INJahqJgm0kYYGzwBbK1jCzIl IZFZX4Ik06h1scUJLrRI025o2OtcC8rjF8V9y1YIJ7kzIHN37A3bY27yzwYiXqK1a93Hy0 mzLY/JZ1vN5WrnNsiE0wRfiNs6Xn8hUoAKnZh/794RjAirfIpAZmMZPBxYx1QE3IrDndJ+ pK9ly+wEtDiS9GEzTMbWU56ve+U47Psa1KymTXAmy2IqUCeBbRu2TDc8Qa23hQ92hZ2Bv4 WByv7gIxJLHtSl45VgvR/gRh8A+SI41BtzoUZRqU9GZu3ssIxuaJ3MfHF7p9+A== 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 03465317C6 for ; Thu, 2 May 2024 17:17:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2YAw-0005ZG-Hk; Thu, 02 May 2024 11:16:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2YAq-0005Va-Ie for bug-guix@gnu.org; Thu, 02 May 2024 11:16:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2YAq-00039p-2K for bug-guix@gnu.org; Thu, 02 May 2024 11:16:40 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2YBB-00077J-LO for bug-guix@gnu.org; Thu, 02 May 2024 11:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40316: [PATCH v4 1/5] gnu: nss: Fix cross-compilation. Resent-From: Christina O'Donnell Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 May 2024 15:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40316 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40316@debbugs.gnu.org Cc: zhengjunjie@iscas.ac.cn, vagrant@reproducible-builds.org, steve@futurile.net Received: via spool by 40316-submit@debbugs.gnu.org id=B40316.171466301927343 (code B ref 40316); Thu, 02 May 2024 15:17:01 +0000 Received: (at 40316) by debbugs.gnu.org; 2 May 2024 15:16:59 +0000 Received: from localhost ([127.0.0.1]:44341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2YB8-00076x-RL for submit@debbugs.gnu.org; Thu, 02 May 2024 11:16:59 -0400 Received: from vmi993448.contaboserver.net ([194.163.141.236]:59066 helo=mutix.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2YB4-00076W-OG for 40316@debbugs.gnu.org; Thu, 02 May 2024 11:16:58 -0400 Received: from [86.132.246.87] (host81-152-149-149.range81-152.btcentralplus.com [81.152.149.149]) (Authenticated sender: cdo) by mutix.org (Postfix) with ESMTPSA id A2940A63B46; Thu, 2 May 2024 17:16:31 +0200 (CEST) From: Christina O'Donnell Date: Thu, 2 May 2024 16:15:55 +0100 Message-ID: <5ac99f62f8c43d2df3f64cd77ccbe0540dd82269.1714662574.git.cdo@mutix.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 03465317C6 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.89 X-Spam-Score: -4.89 X-TUID: 0ymxsM7u/4Dh From: Zheng Junjie * gnu/packages/nss.scm (nss)[arguments]<#:make-flags>: When cross-compilation, Add CROSS_COMPILE=1. <#:phases>: When cross-compilation, Set env NATIVE_CC to gcc. Change-Id: I5c9559a4b8cecf2cfc6c47d136d69c01a335faaf Signed-off-by: Zheng Junjie --- gnu/packages/nss.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 7e9ed49ead..459e53bc1c 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -154,6 +154,9 @@ (define-public nss (#$(target-linux?) "linux") (else "")))) #~()) + #$@(if (%current-target-system) + #~("CROSS_COMPILE=1") + #~()) (string-append "NSPR_INCLUDE_DIR=" (search-input-directory %build-inputs "include/nspr")) @@ -175,6 +178,10 @@ (define-public nss (lambda _ (setenv "CC" #$(cc-for-target)) (setenv "CCC" #$(cxx-for-target)) + ;; TODO: Set this unconditionally + #$@(if (%current-target-system) + #~((setenv "NATIVE_CC" "gcc")) + #~()) ;; No VSX on powerpc-linux. #$@(if (target-ppc32?) #~((setenv "NSS_DISABLE_CRYPTO_VSX" "1")) -- 2.41.0