gutenprint-lib: Minor patch adjustments Quote variables formerly in [[ (thanks rillig@). Note upstream status.diff -r1.25 -r1.26 pkgsrc/print/gutenprint-lib/distinfo
(gdt)
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.25 2020/03/17 23:06:08 gdt Exp $ | 1 | $NetBSD: distinfo,v 1.26 2020/03/18 13:49:29 gdt Exp $ | |
2 | 2 | |||
3 | SHA1 (gutenprint-5.3.3.tar.xz) = edfab4bafe8e6420c7c321915eeb2dd16e899c59 | 3 | SHA1 (gutenprint-5.3.3.tar.xz) = edfab4bafe8e6420c7c321915eeb2dd16e899c59 | |
4 | RMD160 (gutenprint-5.3.3.tar.xz) = 3a1a9a66ad376294fbb10b547ff53481a81b0337 | 4 | RMD160 (gutenprint-5.3.3.tar.xz) = 3a1a9a66ad376294fbb10b547ff53481a81b0337 | |
5 | SHA512 (gutenprint-5.3.3.tar.xz) = d2c47eb4ccc3c46ccb2f1042682edf7443f5c57439ead72f49ecd10537cf967251bacf7ca7da29fb8dceecc7eebd55ed021f2594ff9fb6509bab543fab1dc8d6 | 5 | SHA512 (gutenprint-5.3.3.tar.xz) = d2c47eb4ccc3c46ccb2f1042682edf7443f5c57439ead72f49ecd10537cf967251bacf7ca7da29fb8dceecc7eebd55ed021f2594ff9fb6509bab543fab1dc8d6 | |
6 | Size (gutenprint-5.3.3.tar.xz) = 5050624 bytes | 6 | Size (gutenprint-5.3.3.tar.xz) = 5050624 bytes | |
7 | SHA1 (patch-aa) = 711c925b330a4c4f960439a1722251a4f022ac9f | 7 | SHA1 (patch-aa) = 711c925b330a4c4f960439a1722251a4f022ac9f | |
8 | SHA1 (patch-configure) = 92bf9185fc7fbadd05e1c8e4f59209d0de574dc8 | 8 | SHA1 (patch-configure) = 92bf9185fc7fbadd05e1c8e4f59209d0de574dc8 | |
9 | SHA1 (patch-scripts_gversion) = b352ed2690a8ccad3e730cec0cc12a790a9ab696 | 9 | SHA1 (patch-scripts_gversion) = 117b9daa6b4807e1de73ae3711ea0101b2e3d738 | |
10 | SHA1 (patch-scripts_gversion.in) = 21d4891a013275a11aa7fc3bd49b0e11cdb0ec70 | 10 | SHA1 (patch-scripts_gversion.in) = 03e74de2a33561125bc63912534cabf37d3ce5a7 | |
11 | SHA1 (patch-scripts_snapstamp) = 69d7b30608c90630cc0939ba12d8b0d42ec398f7 | 11 | SHA1 (patch-scripts_snapstamp) = f910a3be5d07f438a12169e2d7cd63ee93889fa8 |
@@ -1,21 +1,23 @@ | @@ -1,21 +1,23 @@ | |||
1 | $NetBSD: patch-scripts_gversion,v 1.1 2020/03/17 23:06:08 gdt Exp $ | 1 | $NetBSD: patch-scripts_gversion,v 1.2 2020/03/18 13:49:30 gdt Exp $ | |
2 | 2 | |||
3 | Remediate bashisms. | 3 | Remediate bashisms. | |
4 | 4 | |||
5 | Sent upstream by email 20200317. | |||
6 | ||||
5 | --- scripts/gversion.orig 2019-08-25 15:14:28.000000000 +0000 | 7 | --- scripts/gversion.orig 2019-08-25 15:14:28.000000000 +0000 | |
6 | +++ scripts/gversion | 8 | +++ scripts/gversion | |
7 | @@ -43,10 +43,10 @@ gutenprint_release=gutenprint-5.3 | 9 | @@ -43,10 +43,10 @@ gutenprint_release=gutenprint-5.3 | |
8 | if [ -z "$3" ] ; then | 10 | if [ -z "$3" ] ; then | |
9 | if [ -d "$root/.git" ] ; then | 11 | if [ -d "$root/.git" ] ; then | |
10 | tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) | 12 | tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) | |
11 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | 13 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | |
12 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | 14 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | |
13 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | 15 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | |
14 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | 16 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | |
15 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | 17 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | |
16 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | 18 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | |
17 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | 19 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | |
18 | + [ -z $tag ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | 20 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | |
19 | echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" | 21 | echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" | |
20 | fi | 22 | fi | |
21 | 23 |
@@ -1,21 +1,23 @@ | @@ -1,21 +1,23 @@ | |||
1 | $NetBSD: patch-scripts_gversion.in,v 1.1 2020/03/17 23:06:08 gdt Exp $ | 1 | $NetBSD: patch-scripts_gversion.in,v 1.2 2020/03/18 13:49:30 gdt Exp $ | |
2 | 2 | |||
3 | Remediate bashisms. | 3 | Remediate bashisms. | |
4 | 4 | |||
5 | Sent upstream by email 20200317. | |||
6 | ||||
5 | --- scripts/gversion.in.orig 2019-05-25 15:18:50.000000000 +0000 | 7 | --- scripts/gversion.in.orig 2019-05-25 15:18:50.000000000 +0000 | |
6 | +++ scripts/gversion.in | 8 | +++ scripts/gversion.in | |
7 | @@ -43,10 +43,10 @@ gutenprint_release=gutenprint-@GUTENPRIN | 9 | @@ -43,10 +43,10 @@ gutenprint_release=gutenprint-@GUTENPRIN | |
8 | if [ -z "$3" ] ; then | 10 | if [ -z "$3" ] ; then | |
9 | if [ -d "$root/.git" ] ; then | 11 | if [ -d "$root/.git" ] ; then | |
10 | tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) | 12 | tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) | |
11 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | 13 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | |
12 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | 14 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | |
13 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | 15 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | |
14 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | 16 | - [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | |
15 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | 17 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) | |
16 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | 18 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) | |
17 | + [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | 19 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) | |
18 | + [ -z $tag ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | 20 | + [ -z "$tag" ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) | |
19 | echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" | 21 | echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" | |
20 | fi | 22 | fi | |
21 | 23 |
@@ -1,12 +1,14 @@ | @@ -1,12 +1,14 @@ | |||
1 | $NetBSD: patch-scripts_snapstamp,v 1.1 2020/03/17 23:06:08 gdt Exp $ | 1 | $NetBSD: patch-scripts_snapstamp,v 1.2 2020/03/18 13:49:30 gdt Exp $ | |
2 | 2 | |||
3 | Remediate bashisms. | 3 | Remediate bashisms. | |
4 | 4 | |||
5 | Sent upstream by email 20200317. | |||
6 | ||||
5 | --- scripts/snapstamp.orig 2019-05-25 19:15:55.000000000 +0000 | 7 | --- scripts/snapstamp.orig 2019-05-25 19:15:55.000000000 +0000 | |
6 | +++ scripts/snapstamp | 8 | +++ scripts/snapstamp | |
7 | @@ -17,4 +17,4 @@ | 9 | @@ -17,4 +17,4 @@ | |
8 | # You should have received a copy of the GNU General Public License | 10 | # You should have received a copy of the GNU General Public License | |
9 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 11 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
10 | 12 | |||
11 | -[[ -n $STP_BUILD_SNAPSHOT && -d .git ]] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') | 13 | -[[ -n $STP_BUILD_SNAPSHOT && -d .git ]] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') | |
12 | +[ -n $STP_BUILD_SNAPSHOT && -d .git ] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') | 14 | +[ -n "$STP_BUILD_SNAPSHOT" && -d .git ] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') |