Created attachment 179602 [details]
Building the port fails with:
(00:01:08) cc -DHAVE_CONFIG_H -I../../.. -I../../../src -I../../.. -I../../../src -I../../../WWW/Library/Implementation -DLIBICONV_PLUG -I/usr/local/include -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/local/include/openssl -O2 -pipe -DHARDENEDBSD -DLIBICONV_PLUG -fPIE -fPIC -fstack-protector -fno-strict-aliasing -I../../../WWW/Library/Implementation/ -DACCESS_AUTH -c ../../../WWW/Library/Implementation/HTTP.c
(00:01:08) ../../../WWW/Library/Implementation/HTTP.c:725:14: error: no member named 'options' in 'struct ssl_st'
(00:01:08) handle->options |= SSL_OP_NO_TLSv1;
(00:01:08) ~~~~~~ ^
(00:01:08) 1 error generated.
(00:01:08) *** Error code 1
This patch fixes this error. Additionally it adds LIB_DEPENDS (suggested by portlint).
Tested to build on Poudriere on 10.3-RELEASE with and without LibreSSL 2.5.1.
Created attachment 179673 [details]
Corrected patch to add the new files and remove patch-CVE-* (split into individual files, because my patch affects HTTP.c file which is already patched in patch-CVE-*, which creates a mess).
Created attachment 179809 [details]
fix build with libressl/devel
I have attached an alternate, shorter patch which contains the same fixes but does not disturb existing patches.
Piotr's patch (179673) doesn't apply (or no longer applies) to a clean ports tree, not approved. Please resubmit w/ports tree fully updated and patch 179809 already applied, Piotr. Thanks!
Matthew's patch (179809) is tested and approved, thanks Matthew!
(In reply to jharris from comment #3)
What do you mean? I've removed my ports tree and downloaded a clean copy. That's what I get when applying the patch I've submitted:
root@FreeBSD10:/usr/local/poudriere/ports/default/www/lynx # fetch -o /root/patch "https://bz-attachments.freebsd.org/attachment.cgi?id=179673"
fetch: https://bz-attachments.freebsd.org/attachment.cgi?id=179673: size of remote file is not known
/root/patch 11 kB 30 kBps 00m01s
root@FreeBSD10:/usr/local/poudriere/ports/default/www/lynx # svnlite patch /root/patch
A commit references this bug:
Date: Wed Feb 22 19:02:51 UTC 2017
New revision: 434630
Fix building with libressl-devel and add missing dependency on libidn.
Approved by: email@example.com (maintainer), swills (mentor)
Differential Revision: https://reviews.freebsd.org/D9672