Received: by mail.netbsd.org (Postfix, from userid 605) id C81EE84DAC; Tue, 17 Mar 2020 23:06:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 533D084DAB for ; Tue, 17 Mar 2020 23:06:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Plee1X1eIpOv for ; Tue, 17 Mar 2020 23:06:08 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9E9EA84D21 for ; Tue, 17 Mar 2020 23:06:08 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 92352FB27; Tue, 17 Mar 2020 23:06:08 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_158448636824700" MIME-Version: 1.0 Date: Tue, 17 Mar 2020 23:06:08 +0000 From: "Greg Troxel" Subject: CVS commit: pkgsrc/print/gutenprint-lib To: pkgsrc-changes@NetBSD.org Reply-To: gdt@netbsd.org X-Mailer: log_accum Message-Id: <20200317230608.92352FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_158448636824700 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gdt Date: Tue Mar 17 23:06:08 UTC 2020 Modified Files: pkgsrc/print/gutenprint-lib: distinfo Added Files: pkgsrc/print/gutenprint-lib/patches: patch-scripts_gversion patch-scripts_gversion.in patch-scripts_snapstamp Log Message: gutenprint-lib: Remediate bashisms These files aren't used, but the patches belong upstream, and it's easier to patch than to explain why it's safe not to ptach. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 pkgsrc/print/gutenprint-lib/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion \ pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion.in \ pkgsrc/print/gutenprint-lib/patches/patch-scripts_snapstamp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_158448636824700 Content-Disposition: inline Content-Length: 5492 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/print/gutenprint-lib/distinfo diff -u pkgsrc/print/gutenprint-lib/distinfo:1.24 pkgsrc/print/gutenprint-lib/distinfo:1.25 --- pkgsrc/print/gutenprint-lib/distinfo:1.24 Fri Oct 11 23:47:42 2019 +++ pkgsrc/print/gutenprint-lib/distinfo Tue Mar 17 23:06:08 2020 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.24 2019/10/11 23:47:42 gdt Exp $ +$NetBSD: distinfo,v 1.25 2020/03/17 23:06:08 gdt Exp $ SHA1 (gutenprint-5.3.3.tar.xz) = edfab4bafe8e6420c7c321915eeb2dd16e899c59 RMD160 (gutenprint-5.3.3.tar.xz) = 3a1a9a66ad376294fbb10b547ff53481a81b0337 @@ -6,3 +6,6 @@ SHA512 (gutenprint-5.3.3.tar.xz) = d2c47 Size (gutenprint-5.3.3.tar.xz) = 5050624 bytes SHA1 (patch-aa) = 711c925b330a4c4f960439a1722251a4f022ac9f SHA1 (patch-configure) = 92bf9185fc7fbadd05e1c8e4f59209d0de574dc8 +SHA1 (patch-scripts_gversion) = b352ed2690a8ccad3e730cec0cc12a790a9ab696 +SHA1 (patch-scripts_gversion.in) = 21d4891a013275a11aa7fc3bd49b0e11cdb0ec70 +SHA1 (patch-scripts_snapstamp) = 69d7b30608c90630cc0939ba12d8b0d42ec398f7 Added files: Index: pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion diff -u /dev/null pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion:1.1 --- /dev/null Tue Mar 17 23:06:08 2020 +++ pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion Tue Mar 17 23:06:08 2020 @@ -0,0 +1,21 @@ +$NetBSD: patch-scripts_gversion,v 1.1 2020/03/17 23:06:08 gdt Exp $ + +Remediate bashisms. + +--- scripts/gversion.orig 2019-08-25 15:14:28.000000000 +0000 ++++ scripts/gversion +@@ -43,10 +43,10 @@ gutenprint_release=gutenprint-5.3 + if [ -z "$3" ] ; then + if [ -d "$root/.git" ] ; then + tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) + echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" + fi + Index: pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion.in diff -u /dev/null pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion.in:1.1 --- /dev/null Tue Mar 17 23:06:08 2020 +++ pkgsrc/print/gutenprint-lib/patches/patch-scripts_gversion.in Tue Mar 17 23:06:08 2020 @@ -0,0 +1,21 @@ +$NetBSD: patch-scripts_gversion.in,v 1.1 2020/03/17 23:06:08 gdt Exp $ + +Remediate bashisms. + +--- scripts/gversion.in.orig 2019-05-25 15:18:50.000000000 +0000 ++++ scripts/gversion.in +@@ -43,10 +43,10 @@ gutenprint_release=gutenprint-@GUTENPRIN + if [ -z "$3" ] ; then + if [ -d "$root/.git" ] ; then + tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_version//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) +- [[ -z $tag ]] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_base//./_}*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "${gutenprint_release//./_}*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --first-parent --candidates=1000 --match "gutenprint*" 2>/dev/null) ++ [ -z $tag ] && tag=$(git describe --tags --dirty --always --first-parent 2>/dev/null) + echo $tag | sed 's/^[^0-9]*-//' > "$root/git-version-stamp" + fi + Index: pkgsrc/print/gutenprint-lib/patches/patch-scripts_snapstamp diff -u /dev/null pkgsrc/print/gutenprint-lib/patches/patch-scripts_snapstamp:1.1 --- /dev/null Tue Mar 17 23:06:08 2020 +++ pkgsrc/print/gutenprint-lib/patches/patch-scripts_snapstamp Tue Mar 17 23:06:08 2020 @@ -0,0 +1,12 @@ +$NetBSD: patch-scripts_snapstamp,v 1.1 2020/03/17 23:06:08 gdt Exp $ + +Remediate bashisms. + +--- scripts/snapstamp.orig 2019-05-25 19:15:55.000000000 +0000 ++++ scripts/snapstamp +@@ -17,4 +17,4 @@ + # You should have received a copy of the GNU General Public License + # along with this program. If not, see . + +-[[ -n $STP_BUILD_SNAPSHOT && -d .git ]] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') ++[ -n $STP_BUILD_SNAPSHOT && -d .git ] && printf '%s%(%Y-%m-%dT%H-%M)T-%s' - -1 $(git describe --dirty --always --first-parent --exclude '*') --_----------=_158448636824700--