Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721520 - dev-libs/nss-pem-1.0.5 : /.../pfind.c: error: CKO_NETSCAPE_TRUST undeclared (first use in this function)
Summary: dev-libs/nss-pem-1.0.5 : /.../pfind.c: error: CKO_NETSCAPE_TRUST undeclared (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jory A. Pratt
URL:
Whiteboard:
Keywords:
: 729880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-07 17:20 UTC by Toralf Förster
Modified: 2020-08-09 02:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2020-05-07 17:20 UTC, Toralf Förster
Details
dev-libs:nss-pem-1.0.5:20200507-150328.log (dev-libs:nss-pem-1.0.5:20200507-150328.log,8.59 KB, text/plain)
2020-05-07 17:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,217.60 KB, text/plain)
2020-05-07 17:20 UTC, Toralf Förster
Details
environment (environment,102.88 KB, text/plain)
2020-05-07 17:20 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.58 KB, application/x-bzip)
2020-05-07 17:20 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.03 KB, application/x-bzip)
2020-05-07 17:20 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.99 KB, application/x-bzip)
2020-05-07 17:20 UTC, Toralf Förster
Details
Replace the _NETSCAPE_ part of the constants with _NSS_ (netscape.patch,4.43 KB, patch)
2020-08-07 13:33 UTC, Ian Kumlien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-07 17:20:36 UTC
/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
Comment 1 Toralf Förster gentoo-dev 2020-05-07 17:20:39 UTC
Created attachment 636760 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-07 17:20:42 UTC
Created attachment 636762 [details]
dev-libs:nss-pem-1.0.5:20200507-150328.log
Comment 3 Toralf Förster gentoo-dev 2020-05-07 17:20:45 UTC
Created attachment 636764 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-07 17:20:48 UTC
Created attachment 636766 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-07 17:20:51 UTC
Created attachment 636768 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-07 17:20:54 UTC
Created attachment 636770 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-05-07 17:20:58 UTC
Created attachment 636772 [details]
temp.tbz2
Comment 8 Jory A. Pratt gentoo-dev 2020-06-27 19:11:14 UTC
*** Bug 729880 has been marked as a duplicate of this bug. ***
Comment 9 Ian Kumlien 2020-08-07 13:33:47 UTC
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_
Comment 10 Ian Kumlien 2020-08-07 13:34:39 UTC
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
Comment 11 Ian Kumlien 2020-08-07 23:20:17 UTC
Btw https://github.com/kdudka/nss-pem/issues/6
Comment 12 Jory A. Pratt gentoo-dev 2020-08-09 02:15:50 UTC
Fixed in commit fe2f940ef276a55c8ae3864b9a28f652b5b91688