Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 649
    • Issues 649
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 207
    • Merge Requests 207
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #11500

Closed
Open
Opened May 05, 2020 by Mogens Jensen@MogensJContributor

Why is NSS patched with 'add_spi+cacert_ca_certs.patch' on Alpine?

If I try to update NSS from 3.51.1 to 3.52 and build the package, the following error is generated:

Linux5.4_x86_64_gcc_glibc_PTH_64_OPT.OBJ/certdata.c:14:51: error: 'CKO_NETSCAPE_TRUST' undeclared here (not in a 
function); did you mean 'CKO_NSS_TRUST'?                                                                         
   14 | static const CK_OBJECT_CLASS cko_netscape_trust = CKO_NETSCAPE_TRUST;                                    
      |                                                   ^~~~~~~~~~~~~~~~~~                                     
      |                                                   CKO_NSS_TRUST                                          
Linux5.4_x86_64_gcc_glibc_PTH_64_OPT.OBJ/certdata.c:17:56: error: 'CKT_NETSCAPE_TRUSTED_DELEGATOR' undeclared her
e (not in a function); did you mean 'CKT_NSS_TRUSTED_DELEGATOR'?
   17 | static const CK_TRUST ckt_netscape_trusted_delegator = CKT_NETSCAPE_TRUSTED_DELEGATOR;
      |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                        CKT_NSS_TRUSTED_DELEGATOR
make[3]: *** [../../../coreconf/rules.mk:410: Linux5.4_x86_64_gcc_glibc_PTH_64_OPT.OBJ/certdata.o] Error 1

After removing the patch 'add_spi+cacert_ca_certs.patch', NSS 3.52 will build without problems.

This patch was added in 2010 and last changed in 2013. I see it add various certificates, but I'm not sure why this was/is needed in Alpine? Void Linux does not use the patch. Can anyone explain?

I'm wondering if this could be a security issue with NSS in Alpine? who knows if any of these old certificates added with the patch has been revoked long ago?

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#11500