[From nobody Thu Mar 26 05:51:04 2026
Received: (at submit) by bugs.debian.org; 9 Jan 2020 20:05:48 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,MURPHY_DRUGS_REL8,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,WORD_WITHOUT_VOWELS
 autolearn=no autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 150; neutral, 51; spammy,
 0. spammytokens: hammytokens:0.000-+--H*u:1.10.1, 0.000-+--H*UA:1.10.1,
 0.000-+--H*u:2018-07-13, 0.000-+--H*UA:2018-07-13, 0.000-+--grohne
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:47950)
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from &lt;helmut@subdivi.de&gt;) id 1ipe3w-0002r5-Lj
 for submit@bugs.debian.org; Thu, 09 Jan 2020 20:05:48 +0000
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id A2FC62006F5
 for &lt;submit@bugs.debian.org&gt;; Thu,  9 Jan 2020 20:05:45 +0000 (UTC)
Date: Thu, 9 Jan 2020 21:01:18 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: nss FTCBFS for ppc64el: wrong OS_TYPE
Message-ID: &lt;20200109200118.GA1541@alf.mars&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;x+6KMIRAuhnl3hBn&quot;
Content-Disposition: inline
X-Reportbug-Version: 7.5.3
User-Agent: Mutt/1.10.1 (2018-07-13)
Delivered-To: submit@bugs.debian.org


--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: nss
Version: 2:3.48-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

nss fails to cross build from source for ppc64el, because it passes a
wrong OS_TYPE. Thus detection of whether to build hw crypto disagrees on
the Makefile level with the C preprocessor level, which results in a
linker error missing symbols. Please consider applying the attached
patch.

Helmut

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=&quot;nss_3.48-1.1.debdiff&quot;

diff --minimal -Nru nss-3.48/debian/changelog nss-3.48/debian/changelog
--- nss-3.48/debian/changelog	2019-12-28 23:40:46.000000000 +0100
+++ nss-3.48/debian/changelog	2020-01-09 06:27:50.000000000 +0100
@@ -1,3 +1,10 @@
+nss (2:3.48-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS for ppc64el: Pass correct OS_TYPE. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Thu, 09 Jan 2020 06:27:50 +0100
+
 nss (2:3.48-1) unstable; urgency=medium
 
   * New upstream release. Closes: #947131.
diff --minimal -Nru nss-3.48/debian/rules nss-3.48/debian/rules
--- nss-3.48/debian/rules	2019-06-04 23:39:35.000000000 +0200
+++ nss-3.48/debian/rules	2020-01-09 06:27:50.000000000 +0100
@@ -40,7 +40,8 @@
 ifeq ($(origin RANLIB),default)
 TOOLCHAIN += RANLIB=$(DEB_HOST_GNU_TYPE)-ranlib
 endif
-TOOLCHAIN += OS_TEST=$(DEB_HOST_GNU_CPU)
+OS_TYPE_map_powerpc64le = ppc64le
+TOOLCHAIN += OS_TEST=$(or $(OS_TYPE_map_$(DEB_HOST_GNU_CPU)),$(DEB_HOST_GNU_CPU))
 TOOLCHAIN += KERNEL=$(DEB_HOST_ARCH_OS)
 endif
 

--x+6KMIRAuhnl3hBn--
]