[MacPorts] #50214: Update to wolfSSL (CyaSSL) Portfile
#50214: Update to wolfSSL (CyaSSL) Portfile ---------------------+-------------------------------- Reporter: jacob@… | Owner: macports-tickets@… Type: update | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Keywords: Update | Port: cyassl (wolfssl) ---------------------+-------------------------------- Hi, We had a recent release of wolfSSL version 3.8.0 and I'm looking to update the Portfile to reflect this. It looks like it has been awhile since we sent in an update, so I changed the Portfile from cyassl -> wolfssl to be consistent with our name change back in January of 2015. Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -------------------------------+-------------------------------- Reporter: jacob@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: cyassl (wolfssl) | -------------------------------+-------------------------------- Changes (by mf2k@…): * priority: High => Normal * keywords: Update => Comment: The Priority field is for use by Macports team members only. -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -------------------------------+-------------------------------- Reporter: jacob@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: cyassl (wolfssl) | -------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ciserlohn@…, ryandesign@… (removed) * cc: ciserlohn@…, ryandesign@… (added) Comment: A cyassl port marked as `replaced_by wolfssl` needs to be maintained for a year to give people and upgrade path. See https://guide.macports.org/chunked/development.practices.html#development.pr... .rename-replace-port. -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -------------------------------+-------------------------------- Reporter: jacob@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: cyassl (wolfssl) | -------------------------------+-------------------------------- Comment (by jacob@…): Replying to [comment:2 ryandesign@…]:
A cyassl port marked as `replaced_by wolfssl` needs to be maintained for a year to give people and upgrade path. See https://guide.macports.org/chunked/development.practices.html#development.pr... .rename-replace-port.
Thanks for the heads up. Added a file called Portfile-maintain-cyassl that should allow existing cyassl users to upgrade to wolfssl. Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Changes (by mf2k@…): * owner: macports-tickets@… => chris@… * cc: chris@… (removed) * version: 2.3.4 => * port: cyassl (wolfssl) => cyassl wolfSSL -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Comment (by khindenburg@…): It looks like it is still installing the cyassl includes - is this expected? {{{ /opt/local/include/cyassl callbacks.h ocsp.h ssl.h certs_test.h openssl/ test.h crl.h options.h version.h ctaocrypt/ sniffer.h error-ssl.h sniffer_error.h }}} -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Comment (by jacob@…): Hello, Yes the install of CyaSSL includes is expected. These files contain macros and includes to help with reverse compatibility on projects that use CyaSSL API and include paths. Redirecting the includes and API calls to wolfSSL, while allowing users to keep their application code relatively the same and just update the library being linked to. Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Changes (by khindenburg@…): * status: new => closed * resolution: => fixed Comment: Thanks r146297 r146298 I enabled tests - one test failed on my system. "sudo port -v test wolfssl" -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Comment (by khindenburg@…): CERT EXT test failed! error = -227 FAIL testsuite/testsuite.test (exit status: 255) -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Comment (by jacob@…): Thanks for running the test on it. Will investigate into the issue. Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+--------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: cyassl wolfSSL | -----------------------------+--------------------- Comment (by jacob@…): Tracked down where the issue was happening. Our library no longer supports having both --enable-sep and --enable-scep. Portfile-wolfssl-2.diff removes --enable-sep and also removes gcc-hardening which is no longer a configure flag. While making these adjustments I noticed the E in opensslExtra needed to be lower cased to match our new library version. Added a test option at the bottom of the Protfile. "make check" is going to be the best thing to run, for a portable test of the wolfSSL build. Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Changes (by mf2k@…): * keywords: => haspatch * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by jacob@…): We are in the process of wrapping up a new release this week. Instead of 3.8.0 the most recent version of wolfSSL will be 3.9.0. Should this be closed and a new thread opened to reflect the new release? Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by khindenburg@…): It doesn't build now for me - is this enough or do you need my main.log? {{{ CCLD src/libwolfssl.la clang: warning: argument unused during compilation: '-pthread' clang: warning: argument unused during compilation: '-pthread' ld: section __DATA/__thread_bss extends beyond end of file, file 'wolfcrypt/src/.libs/src_lib wolfssl_la-ecc.o' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [src/libwolfssl.la] Error 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by jacob@…): Hi, Has there been any updates to OS or XCode on the machine running the tests since before the wolfSSL Portfile tests were added? From experience on my own machine I had to work at getting things setup for development (on all linking) after updating to El Capitan. Is it able to build on the machine without using MacPorts, just ./configure && make in a root wolfSSL directory? Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by khindenburg@…): Yes, Apple pushed out updates last week. I'm puzzled on why this is failing to build after that though. -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by khindenburg@…): It does build outside macports w/o issue macports: uses clang (configure: WARNING: unrecognized options: --enable-opensslExtra, --enable-gcc-hardening) outside: uses g++ -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by jacob@…): Hello, sorry for the delay in response. It looks like the macports version is not using the most recent patch. The warnings of --enable-opensslExtra and --enable-gcc-hardening are two things that were changed with Portfile-wolfssl-2.diff. This though would not explain the linker problem. Is the previous version that was reporting the error = -227 still compiling? It would have had to compile previously to reach the CERT EXT test case and if the recent build has accidentally not applied the changes in Portfile-wolfssl-2.diff it should be the same build as from previous tests. "CERT EXT test failed! error = -227 FAIL testsuite/testsuite.test (exit status: 255)" Is there a case here where it could be trying to link with an old/different version of wolfSSL after the changes are applied? Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by khindenburg@…): I should have mentioned that the current Portfile (without this new patch) no longer builds as well - same error. -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Comment (by jacob@…): Ok, thanks. I have not been able to replicate it yet on my mac using the Portfile but will put some thought into the cause. Do you use a clean or uninstall before trying the build? sudo port uninstall wolfssl or sudo port clean wolfssl? Regards, Jacob -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:20> MacPorts <https://www.macports.org/> Ports system for OS X
#50214: Update to wolfSSL (CyaSSL) Portfile -----------------------------+---------------------- Reporter: jacob@… | Owner: chris@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: cyassl wolfSSL | -----------------------------+---------------------- Changes (by khindenburg@…): * status: reopened => closed * resolution: => fixed Comment: done r148674 please create a new ticket for the next release -- Ticket URL: <https://trac.macports.org/ticket/50214#comment:21> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts