/usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_LOWKEYTI_H -Dnsspem_EXPORTS -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss/private -O2 -pipe -march=native -fno-common -Wformat -Werror=format-security -fPIC -MD -MT CMakeFiles/nsspem.dir/pfind.c.o -MF CMakeFiles/nsspem.dir/pfind.c.o.d -o CMakeFiles/nsspem.dir/pfind.c.o -c /var/tmp/portage/dev-libs/nss-pem-1.0.5/work/nss-pem-1.0.5/src/pfind.c /var/tmp/portage/dev-libs/nss-pem-1.0.5/work/nss-pem-1.0.5/src/pfind.c: In function collect_objects: /var/tmp/portage/dev-libs/nss-pem-1.0.5/work/nss-pem-1.0.5/src/pfind.c:279:10: error: CKO_NETSCAPE_TRUST undeclared (first use in this function); did you mean CKO_NSS_TRUST? 279 | case CKO_NETSCAPE_TRUST: | ^~~~~~~~~~~~~~~~~~ | CKO_NSS_TRUST ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no-multilib_hardened-libressl-20200502-233152 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.0 * clang version 10.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.6 [2] python3.8 (fallback) [3] python3.7 (fallback) [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.43.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.252_p09 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.0.2 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Thu 07 May 2020 01:38:49 PM UTC /var/db/repos/libressl Sat 11 Apr 2020 05:02:25 AM UTC emerge -qpvO dev-libs/nss-pem [ebuild N ] dev-libs/nss-pem-1.0.5
Created attachment 636760 [details] emerge-info.txt
Created attachment 636762 [details] dev-libs:nss-pem-1.0.5:20200507-150328.log
Created attachment 636764 [details] emerge-history.txt
Created attachment 636766 [details] environment
Created attachment 636768 [details] etc.portage.tbz2
Created attachment 636770 [details] logs.tbz2
Created attachment 636772 [details] temp.tbz2
*** Bug 729880 has been marked as a duplicate of this bug. ***
Created attachment 653594 [details, diff] Replace the _NETSCAPE_ part of the constants with _NSS_ From nss upstream, this commit: commit ba931199b924a2eac38899d04b04eedc75771546 Author: Robert Relyea rrelyea@redhat.com Date: Tue Feb 18 11:47:29 2020 -0800 Bug 1603628 Update NSS to handle PKCS #11 v3.0 r=daiki r=mhoye https://phabricator.services.mozilla.com/D63241 This patch implements the first phase: updating the headers. lib/util/pkcs11.h lib/util/pkcs11f.h lib/util/pkcs11t.h Were updated using the released OASIS PKCS #11 v3.0 header files. lib/util/pkcs11n.h was updated to finally deprecate all uses of CK?_NETSCAPE_?. A new define as added: NSS_PKCS11_2_0_COMPAT. If it's defined, the small semantic changes (including the removal of deprecated defines) between the NSS PKCS #11 v2 header file and the new PKCS #11 v3 are reverted in favor of the PKCS #11 v2 definitions. This include the removal of CK?_NETSCAPE_? in favor of CK?_NSS_?. ... Deprecated all _NETSCAPE_ constants and renamed them to _NSS_
I also bumped it to 1.0.6 with the following changes: diff -u nss-pem-1.0.5.ebuild nss-pem-1.0.6.ebuild --- nss-pem-1.0.5.ebuild 2020-03-13 10:14:48.384665481 +0100 +++ nss-pem-1.0.6.ebuild 2020-08-07 15:24:12.667436369 +0200 @@ -5,7 +5,7 @@ CMAKE_ECLASS="cmake" -inherit cmake-multilib +inherit cmake-multilib eutils DESCRIPTION="PEM file reader for Network Security Services (NSS)" HOMEPAGE="https://github.com/kdudka/nss-pem" @@ -22,6 +22,10 @@ DEPEND="!<=dev-libs/nss-3.50 ${RDEPEND}" +PATCHES=( + "${FILESDIR}/netscape.patch" +) + S="${WORKDIR}/${P}/src" multilib_src_configure() { --- Don't know if the eutils is required but it was a... learning experience
Btw https://github.com/kdudka/nss-pem/issues/6
Fixed in commit fe2f940ef276a55c8ae3864b9a28f652b5b91688