Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2022 09:14:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262955] ftp/curl: Remove broken NSS option and references to Mbed TLS
Message-ID:  <bug-262955-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262955

            Bug ID: 262955
           Summary: ftp/curl: Remove broken NSS option and references to
                    Mbed TLS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: diizzy@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 232839
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232839&action=
=3Dedit
Patch for curl

Remove NSS option as it's deprecated upstream and doesn't build

Enabling it causes configure to fail with following message:
configure: error: NSS use must be confirmed using --with-nss-deprecated. NSS
support will be dropped from curl in August 2022. See docs/DEPRECATE.md

Adding required switch makes the build fail with following error:
--- vtls/libcurl_la-nss.lo ---
vtls/nss.c:1391:50: error: use of undeclared identifier 'initparams'
  nss_context =3D NSS_InitContext("", "", "", "", &initparams, NSS_INIT_REA=
DONLY
                                                 ^
vtls/nss.c:1391:62: error: use of undeclared identifier 'NSS_INIT_READONLY'
  nss_context =3D NSS_InitContext("", "", "", "", &initparams, NSS_INIT_REA=
DONLY
                                                             ^
vtls/nss.c:1392:12: error: use of undeclared identifier 'NSS_INIT_NOCERTDB'
         | NSS_INIT_NOCERTDB   | NSS_INIT_NOMODDB       | NSS_INIT_FORCEOPEN
           ^
vtls/nss.c:1392:34: error: use of undeclared identifier 'NSS_INIT_NOMODDB'
         | NSS_INIT_NOCERTDB   | NSS_INIT_NOMODDB       | NSS_INIT_FORCEOPEN
                                 ^
vtls/nss.c:1392:59: error: use of undeclared identifier 'NSS_INIT_FORCEOPEN'
         | NSS_INIT_NOCERTDB   | NSS_INIT_NOMODDB       | NSS_INIT_FORCEOPEN
                                                          ^
vtls/nss.c:1393:12: error: use of undeclared identifier 'NSS_INIT_NOROOTINI=
T'
         | NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE | NSS_INIT_PK11RELO=
AD);
           ^
vtls/nss.c:1393:34: error: use of undeclared identifier
'NSS_INIT_OPTIMIZESPACE'
         | NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE | NSS_INIT_PK11RELO=
AD);
                                 ^
vtls/nss.c:1393:59: error: use of undeclared identifier 'NSS_INIT_PK11RELOA=
D'
         | NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE | NSS_INIT_PK11RELO=
AD);
                                                          ^
vtls/nss.c:1516:5: warning: implicit declaration of function
'NSS_ShutdownContext' is invalid in C99 [-Wimplicit-function-declaration]
    NSS_ShutdownContext(nss_context);
    ^
vtls/nss.c:2428:44: warning: implicit declaration of function 'NSS_GetVersi=
on'
is invalid in C99 [-Wimplicit-function-declaration]
  return msnprintf(buffer, size, "NSS/%s", NSS_GetVersion());
                                           ^
7 warnings and 17 errors generated.
*** [vtls/libcurl_la-nss.lo] Error code 1

While at it remove reference to Mbed TLS as it's not longer supported

Reference:
https://github.com/curl/curl/blob/master/docs/DEPRECATE.md

Compile tested on FreeBSD 13.0-STABLE #2 stable/13-n248607-93a95ebbf7c (amd=
64)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262955-7788>