Fix nonsense shell syntax. From Robert Elz.diff -r1.23 -r1.24 pkgsrc/devel/libbson/distinfo
(joerg)
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.23 2017/06/14 10:24:15 fhajny Exp $ | 1 | $NetBSD: distinfo,v 1.24 2017/07/03 18:11:27 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (libbson-1.6.3.tar.gz) = 3571026b7d1819f8ff64dec238e58e44d826021b | 3 | SHA1 (libbson-1.6.3.tar.gz) = 3571026b7d1819f8ff64dec238e58e44d826021b | |
4 | RMD160 (libbson-1.6.3.tar.gz) = 3c81ea50475c889c960dd7c4d7eb636da4e3273e | 4 | RMD160 (libbson-1.6.3.tar.gz) = 3c81ea50475c889c960dd7c4d7eb636da4e3273e | |
5 | SHA512 (libbson-1.6.3.tar.gz) = 602f700dbb268e5eeeb36d39f63499ce9a253f915042ef2f620b3cceddf449284eab583ac2e950e150a2edb75ade189e3624b2cbe96097db501e1359d0b9c1d9 | 5 | SHA512 (libbson-1.6.3.tar.gz) = 602f700dbb268e5eeeb36d39f63499ce9a253f915042ef2f620b3cceddf449284eab583ac2e950e150a2edb75ade189e3624b2cbe96097db501e1359d0b9c1d9 | |
6 | Size (libbson-1.6.3.tar.gz) = 4831170 bytes | 6 | Size (libbson-1.6.3.tar.gz) = 4831170 bytes | |
7 | SHA1 (patch-configure) = fc1e56e8e0d823801446440e59926b11caa388a8 |
$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)