--- Makefile.orig Mon Sep 25 11:16:18 2023
+++ Makefile Mon Sep 25 11:16:35 2023
@@ -17,7 +17,8 @@ PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MAKE_FLAGS = CC="$(CC)" INSTALL="$(INSTALL)" OPTTARGET=none \
- PREFIX="${TRUEPREFIX}" ABI_VERSION="${LIBargon2_VERSION}"
+ PREFIX="${TRUEPREFIX}" ABI_VERSION="${LIBargon2_VERSION}" \
+ ARGON2_VERSION="${GH_TAGNAME}"
TEST_FLAGS = OPTTARGET=none
USE_GMAKE = Yes
Attaching a very simple fix for the security/argon2 port where pkg-config
data is not properly recording the version data by setting the
ARGON2_VERSION value as one of the MAKE_FLAGS.
Current behavior is breaking dependency checks for other software that
attempts to inspect version info:
# cat /usr/local/lib/pkgconfig/libargon2.pc:
# libargon2 info for pkg-config
prefix=/usr/local
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: libargon2
Description: Development libraries for libargon2
Version: ZERO
Libs: -L${libdir} -largon2
Cflags: -I${includedir}
URL: https://github.com/P-H-C/phc-winner-argon2
Patched Behavior:
# cat /usr/local/lib/pkgconfig/libargon2.pc:
# libargon2 info for pkg-config
prefix=/usr/local
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: libargon2
Description: Development libraries for libargon2
Version: 20190702
Libs: -L${libdir} -largon2
Cflags: -I${includedir}
URL: https://github.com/P-H-C/phc-winner-argon2
No comments:
Post a Comment