Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2021 21:45:50 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568617 - head/security/openvpn
Message-ID:  <202103162145.12GLjokk084841@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Tue Mar 16 21:45:50 2021
New Revision: 568617
URL: https://svnweb.freebsd.org/changeset/ports/568617

Log:
  security/openvpn: run ldd -a when multi-link of "same" library found
  
  The build runs a sanity to check that libssl and libcrypto are linked
  only once, to catch mismatches in SSL providers to libpkcs11-helper
  and openvpn itself.  In order to assist the operator to find out
  which libraries pull in differing versions of libcrypto or libssl,
  run ldd -a in the error path. (Not run normally, not PORTREVISION bump.)
  
  PR:		254323 (related)

Modified:
  head/security/openvpn/Makefile

Modified: head/security/openvpn/Makefile
==============================================================================
--- head/security/openvpn/Makefile	Tue Mar 16 21:15:28 2021	(r568616)
+++ head/security/openvpn/Makefile	Tue Mar 16 21:45:50 2021	(r568617)
@@ -123,7 +123,7 @@ post-configure:
 post-build:
 	@a=$$(LC_ALL=C ldd -f '%o\n' ${WRKSRC}/src/openvpn/openvpn \
 	|	${SORT} -u) ; set -- $$(for i in ${_tlslibs} ; do ${PRINTF} '%s\n' "$$a" | ${GREP} $${i}.so | wc -l ; done | ${SORT} -u) ;\
-	if test "$$*" != "1" ; then ${ECHO_CMD} >&2 "${.CURDIR} FAILED: either of ${_tlslibs} libraries linked multiple times" ; ${PRINTF} '%s\n' "$$a"; ${RM} ${BUILD_COOKIE} ; exit 1 ; fi
+	if test "$$*" != "1" ; then ${ECHO_CMD} >&2 "${.CURDIR} FAILED: either of ${_tlslibs} libraries linked multiple times" ; ${PRINTF} '%s\n' "$$a"; ${RM} ${BUILD_COOKIE} ; ( set -x ; ldd -a ${WRKSRC}/src/openvpn/openvpn ) ; exit 1 ; fi
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn/plugins/openvpn-plugin-auth-pam.so



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