Summary: | lang/python27: BROKEN again with security/openssl111 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Curtis Villamizar <curtis> | ||||||
Component: | Individual Port(s) | Assignee: | Kubilay Kocak <koobs> | ||||||
Status: | Closed Unable to Reproduce | ||||||||
Severity: | Affects Some People | CC: | andreas.sommer87, brnrd, cem, curtis, emaste, freebsd, jo, meta, ndowens04, p5B2EA84B3, pi, python | ||||||
Priority: | --- | Flags: | koobs:
maintainer-feedback+
|
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
URL: | https://bugs.python.org/issue26470 | ||||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234568 | ||||||||
Attachments: |
|
Description
Curtis Villamizar
2018-06-22 00:33:13 UTC
Workaround is to make deinstall in security/openssl-devel, edit /etc/make.conf to set DEFAULT_VERSIONS+= ssl=base, compile and install lang/python27, then edit /etc/make.conf again to set DEFAULT_VERSIONS+= ssl=openssl-devel, then make install in security/openssl-devel . Right now I am continuing to build with the above workaround but will look into this. It would help if someone who had a clue (that would not be me) took a look at this as well. Here's the upstream Python issue: https://bugs.python.org/issue26470 2.7 patch available here: https://hg.python.org/cpython/rev/14b611ddaabe And also follow-up patch: https://hg.python.org/cpython/rev/2593ed9a6a62 I guess we just have to wait for a proper fix if we're using Poudriere to build? I can reproduce this issue, but the bugs/commits referenced here (BPO 26470) and those in the previous bug 222795 that reported the same issue have apparently been released (ports version is currently 2.7.15) The latest port update (ports r469635) removed the patches for upstream issue 30622 which fixed NPN detection. I wonder if they're still needed (or they were updated subsequent to the release, or the patch was inadvertently removed) The actual error is: /wrkdirs/usr/ports/lang/python27/work/Python-2.7.15/Modules/_ssl.c:2117:44: error: use of undeclared identifier 'PySSL_selected_npn_protocol' {"selected_npn_protocol", (PyCFunction)PySSL_selected_npn_protocol, METH_NOARGS}, ^ 1 warning and 1 error generated. I tried compiling openssl-devel with NPN option on, but the build still fails. From the sources: #if defined(OPENSSL_NPN_NEGOTIATED) && !defined(OPENSSL_NO_NEXTPROTONEG) static PyObject *PySSL_selected_npn_protocol(PySSLSocket *self) { I now get: readelf: Not an ELF file. Warning: /wrkdirs/usr/ports/lang/python27/work/stage/usr/local/lib/libpython2.7.so.1-gdb.py doesn't have a SONAME. Warning: pkg(8) will not register it as being provided by the port. Warning: If another port depend on it, pkg will not be able to know where it comes from. Warning: It is directly in /usr/local/lib, it is probably used by other ports. ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: lib/python2.7/lib-dynload/_ssl.so Created attachment 197123 [details]
Fix openssl 1.1 build
This fixed the build for me and also didn't give missing/orphan files in plist like it was in previous comment
that patch works for me as well (with openssl111 port). (In reply to Nathan from comment #7) The patch fixes build with libressl, libressl-devel, openssl111 but breaks openssl. Created attachment 202153 [details]
build log: Nathan's patch breaks security/openssl
Here's the build log.
*** Bug 235011 has been marked as a duplicate of this bug. *** I couldn't reproduce this in poudriere on 12/amd64 with an up to date ports tree Please re-open with additional details and reproduction steps if it is still reproducible with the latest version of lang/python27 and security/openssl111, including a full build log, which shows the reason for Python C extensions failing to build, which then cause the the packaging errors |