Date: Sun, 29 Mar 2020 10:09:18 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r529787 - head/sysutils/pacman Message-ID: <202003291009.02TA9Ixm015068@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sun Mar 29 10:09:17 2020 New Revision: 529787 URL: https://svnweb.freebsd.org/changeset/ports/529787 Log: sysutils/pacman: Unbreak build on FreeBSD >= 12.1 ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to MD5_Final ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to MD5_Init ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to MD5_Update ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to SHA256_Final ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to SHA256_Init ld: error: ../../lib/libalpm/.libs/libalpm.so: undefined reference to SHA256_Update http://beefy6.nyi.freebsd.org/data/121amd64-default/529299/logs/errors/pacman-5.1.3.log Add missing -lcrypto to SSL_LIBS and make sure libalpm is linked directly with it instead of indirectly through dependencies. Modified: head/sysutils/pacman/Makefile Modified: head/sysutils/pacman/Makefile ============================================================================== --- head/sysutils/pacman/Makefile Sun Mar 29 09:43:23 2020 (r529786) +++ head/sysutils/pacman/Makefile Sun Mar 29 10:09:17 2020 (r529787) @@ -3,6 +3,7 @@ PORTNAME= pacman PORTVERSION= 5.1.3 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://sources.archlinux.org/other/${PORTNAME}/ \ https://mirror.amdmi3.ru/distfiles/ @@ -24,7 +25,8 @@ SHEBANG_FILES= ${WRKSRC}/scripts/makepkg-template.pl.i GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-root-dir="${PACMAN_ROOT}" \ --localstatedir=/var -CONFIGURE_ENV= LIBSSL_CFLAGS="-I${OPENSSLINC}" LIBSSL_LIBS="-L${OPENSSLLIB}" +CONFIGURE_ENV= LIBSSL_CFLAGS="-I${OPENSSLINC}" \ + LIBSSL_LIBS="-L${OPENSSLLIB} -lcrypto" USE_LDCONFIG= yes BINARY_WRAPPERS= gm4 @@ -50,10 +52,6 @@ NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls .include <bsd.port.options.mk> - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000 -BROKEN= does not build (undefined reference to MD5_Final) -.endif post-patch: @${REINPLACE_CMD} -e 's|m4|gm4|' ${WRKSRC}/scripts/Makefile.in
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003291009.02TA9Ixm015068>