pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libbson Fix nonsense shell syntax. From Robert Elz.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3ad7bf4fd5d
branches:  trunk
changeset: 364705:e3ad7bf4fd5d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 03 18:11:27 2017 +0000

description:
Fix nonsense shell syntax. From Robert Elz.

diffstat:

 devel/libbson/distinfo                |   3 ++-
 devel/libbson/patches/patch-configure |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r d4da8a8e229e -r e3ad7bf4fd5d devel/libbson/distinfo
--- a/devel/libbson/distinfo    Mon Jul 03 18:08:08 2017 +0000
+++ b/devel/libbson/distinfo    Mon Jul 03 18:11:27 2017 +0000
@@ -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 -r d4da8a8e229e -r e3ad7bf4fd5d devel/libbson/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libbson/patches/patch-configure     Mon Jul 03 18:11:27 2017 +0000
@@ -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)
+ 
+ 



Home | Main Index | Thread Index | Old Index