aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2017-02-04 11:32:13 +0800
committertruckman <truckman@FreeBSD.org>2017-02-04 11:32:13 +0800
commit171b2ed81a4eb22a50e8a5b24cbe16d7bd62fe7c (patch)
treefa881651dd6a8026b47aaff278a63af4357832e1
parent4817f960774ffd9fcb0b8a35b29cac297cf1b17a (diff)
downloadfreebsd-ports-gnome-171b2ed81a4eb22a50e8a5b24cbe16d7bd62fe7c.tar.gz
freebsd-ports-gnome-171b2ed81a4eb22a50e8a5b24cbe16d7bd62fe7c.tar.zst
freebsd-ports-gnome-171b2ed81a4eb22a50e8a5b24cbe16d7bd62fe7c.zip
Neuter liblz4 version check in configure to unbreak build after
liblz4 upstream changed versioning from r131 to v1.7.5. Reported by: pkg-fallout Sponsored by: Farsight Security, Inc.
-rw-r--r--devel/mtbl/files/patch-configure52
1 files changed, 52 insertions, 0 deletions
diff --git a/devel/mtbl/files/patch-configure b/devel/mtbl/files/patch-configure
new file mode 100644
index 000000000000..75f964759c43
--- /dev/null
+++ b/devel/mtbl/files/patch-configure
@@ -0,0 +1,52 @@
+--- configure.orig 2015-08-28 22:16:34 UTC
++++ configure
+@@ -12269,12 +12269,12 @@ if test -n "$liblz4_CFLAGS"; then
+ pkg_cv_liblz4_CFLAGS="$liblz4_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 > 129\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "liblz4 > 129") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 > 0\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "liblz4 > 0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_liblz4_CFLAGS=`$PKG_CONFIG --cflags "liblz4 > 129" 2>/dev/null`
++ pkg_cv_liblz4_CFLAGS=`$PKG_CONFIG --cflags "liblz4 > 0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+ pkg_failed=yes
+@@ -12286,12 +12286,12 @@ if test -n "$liblz4_LIBS"; then
+ pkg_cv_liblz4_LIBS="$liblz4_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 > 129\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "liblz4 > 129") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 > 0\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "liblz4 > 0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_liblz4_LIBS=`$PKG_CONFIG --libs "liblz4 > 129" 2>/dev/null`
++ pkg_cv_liblz4_LIBS=`$PKG_CONFIG --libs "liblz4 > 0" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+ pkg_failed=yes
+@@ -12312,14 +12312,14 @@ else
+ _pkg_short_errors_supported=no
+ fi
+ if test $_pkg_short_errors_supported = yes; then
+- liblz4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4 > 129" 2>&1`
++ liblz4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4 > 0" 2>&1`
+ else
+- liblz4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4 > 129" 2>&1`
++ liblz4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4 > 0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$liblz4_PKG_ERRORS" >&5
+
+- as_fn_error $? "Package requirements (liblz4 > 129) were not met:
++ as_fn_error $? "Package requirements (liblz4 > 0) were not met:
+
+ $liblz4_PKG_ERRORS
+