openbsd-ports/databases/libpqxx/patches/patch-configure
sthen 300cfb7e14 Don't use GNU-only grep syntax, spotted by naddy. Fix homepage while there.
Note, this could use an update too, port is years out of date and the
distfile is no longer available upstream.
2011-07-11 21:10:33 +00:00

13 lines
741 B
Plaintext

$OpenBSD: patch-configure,v 1.1 2011/07/11 21:10:33 sthen Exp $
--- configure.orig Mon Jul 11 21:48:55 2011
+++ configure Mon Jul 11 21:48:56 2011
@@ -24681,7 +24681,7 @@ for publication in $PUBLICATIONS ; do
for factor in $FACTORS ; do
CONFIGFILE="include/pqxx/config-$publication-$factor.h"
echo -n "Generating $CONFIGFILE: "
- if ! grep -w -h -F "`grep \"\<${publication}\>\" \"${srcdir}/configitems\" | grep \"\<${factor}\>\" | grep -v '^$' | cut -f 1`" include/pqxx/config.h >"$CONFIGFILE" ; then
+ if ! grep -w -h -F "`grep -w ${publication} \"${srcdir}/configitems\" | grep -w ${factor} | grep -v '^$' | cut -f 1`" include/pqxx/config.h >"$CONFIGFILE" ; then
rm -f -- "$CONFIGFILE"
echo "no items--deleting"
else