summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-07-03 18:11:27 +0000
committerjoerg <joerg@pkgsrc.org>2017-07-03 18:11:27 +0000
commit31b96262ed50226346f32afc2053d41e59bd181b (patch)
tree16218c4c6ca39b1d1d73ebd3f5b38fc53a523ac1 /devel
parent92f8c0cdaca17d37b6d6f697db8652f731140527 (diff)
downloadpkgsrc-31b96262ed50226346f32afc2053d41e59bd181b.tar.gz
Fix nonsense shell syntax. From Robert Elz.
Diffstat (limited to 'devel')
-rw-r--r--devel/libbson/distinfo3
-rw-r--r--devel/libbson/patches/patch-configure19
2 files changed, 21 insertions, 1 deletions
diff --git a/devel/libbson/distinfo b/devel/libbson/distinfo
index d6c80f5391b..5e947f472ba 100644
--- a/devel/libbson/distinfo
+++ b/devel/libbson/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2017/06/14 10:24:15 fhajny Exp $
+$NetBSD: distinfo,v 1.24 2017/07/03 18:11:27 joerg Exp $
SHA1 (libbson-1.6.3.tar.gz) = 3571026b7d1819f8ff64dec238e58e44d826021b
RMD160 (libbson-1.6.3.tar.gz) = 3c81ea50475c889c960dd7c4d7eb636da4e3273e
SHA512 (libbson-1.6.3.tar.gz) = 602f700dbb268e5eeeb36d39f63499ce9a253f915042ef2f620b3cceddf449284eab583ac2e950e150a2edb75ade189e3624b2cbe96097db501e1359d0b9c1d9
Size (libbson-1.6.3.tar.gz) = 4831170 bytes
+SHA1 (patch-configure) = fc1e56e8e0d823801446440e59926b11caa388a8
diff --git a/devel/libbson/patches/patch-configure b/devel/libbson/patches/patch-configure
new file mode 100644
index 00000000000..434de68ed77
--- /dev/null
+++ b/devel/libbson/patches/patch-configure
@@ -0,0 +1,19 @@
+$NetBSD: patch-configure,v 1.3 2017/07/03 18:11:27 joerg Exp $
+
+$(( starts arithmetic expressions, not command evaluation.
+
+--- configure.orig 2017-07-02 23:03:45.185136445 +0000
++++ configure
+@@ -2431,9 +2431,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ BSON_CURRENT_FILE=${srcdir}/VERSION_CURRENT
+ BSON_VERSION=$(cat $BSON_CURRENT_FILE)
+ # Ensure newline for "cut" implementations that need it, e.g. HP-UX.
+-BSON_MAJOR_VERSION=$((cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1)
+-BSON_MINOR_VERSION=$((cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f2)
+-BSON_MICRO_VERSION=$((cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f3)
++BSON_MAJOR_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1)
++BSON_MINOR_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f2)
++BSON_MICRO_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f3)
+ BSON_PRERELEASE_VERSION=$(cut -s -d- -f2 $BSON_CURRENT_FILE)
+
+