openbsd-ports/security/nss/patches/patch-nss_pkg_pkg-config_nss-config_in
landry e0697ba4c9 Instead of providing old versions of nss-config & nss.pc shoplifted ages
ago from Debian, just patch & use the ones added upstream in bug
#1277852. This way, we properly list the right libs when linking,
including nssutil3 (which should fix linking chrome with lld) - and
while here fix includedir to be consistent with cflags.

Prompted by an original diff from espie@
Tested in bulks by ajacoutot@ and myself
WANTLIB fixes removing softokn3 to come
2017-11-09 18:45:24 +00:00

21 lines
639 B
Plaintext

$OpenBSD: patch-nss_pkg_pkg-config_nss-config_in,v 1.1 2017/11/09 18:45:24 landry Exp $
Index: nss/pkg/pkg-config/nss-config.in
--- nss/pkg/pkg-config/nss-config.in.orig
+++ nss/pkg/pkg-config/nss-config.in
@@ -1,10 +1,10 @@
#!/bin/sh
-prefix=@prefix@
+prefix=${TRUEPREFIX}
-major_version=@MOD_MAJOR_VERSION@
-minor_version=@MOD_MINOR_VERSION@
-patch_version=@MOD_PATCH_VERSION@
+major_version=$(awk '/NSS_VMAJOR/ {print $3}' ${TRUEPREFIX}/include/nss/nss.h)
+minor_version=$(awk '/NSS_VMINOR/ {print $3}' ${TRUEPREFIX}/include/nss/nss.h)
+patch_version=$(awk '/NSS_VPATCH/ {print $3}' ${TRUEPREFIX}/include/nss/nss.h)
usage()
{