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

Attachment: Makefile.diff
Description: Binary data

Reply via email to