pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[patch] lang/python38: Work around FreeBSD 12 SSLv3_method() error



Hi all,

lang/python38 fail to build on FreeBSD 12 (not 13) due to undefined
SSLv3_method(). The attached patch works around that.

ok to commit? Or should we maybe use pkgsrc openssl instead?

Sijmen
Index: lang/python38/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python38/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- lang/python38/Makefile	29 Jun 2021 12:41:06 -0000	1.20
+++ lang/python38/Makefile	5 Aug 2021 13:33:42 -0000
@@ -77,6 +77,11 @@
 CFLAGS+=		-I${OSX_SDK_PATH:Q}/usr/include
 .endif
 
+# Undefined SSLv3_method() on FreeBSD 12
+.if !empty(MACHINE_PLATFORM:MFreeBSD-12.*)
+CFLAGS+=	-DOPENSSL_NO_SSL3=1
+.endif
+
 PLIST_VARS+=	nis
 .for incdir in ${_OPSYS_INCLUDE_DIRS}
 .  if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h))


Home | Main Index | Thread Index | Old Index