pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/gutenprint-lib gutenprint-lib: Remediate bashisms



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93c98da67b9f
branches:  trunk
changeset: 425027:93c98da67b9f
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Tue Mar 17 23:06:08 2020 +0000

description:
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.

diffstat:

 print/gutenprint-lib/distinfo                          |   5 +++-
 print/gutenprint-lib/patches/patch-scripts_gversion    |  21 ++++++++++++++++++
 print/gutenprint-lib/patches/patch-scripts_gversion.in |  21 ++++++++++++++++++
 print/gutenprint-lib/patches/patch-scripts_snapstamp   |  12 ++++++++++
 4 files changed, 58 insertions(+), 1 deletions(-)

diffs (82 lines):

diff -r bbf3e7ba4cd7 -r 93c98da67b9f print/gutenprint-lib/distinfo
--- a/print/gutenprint-lib/distinfo     Tue Mar 17 22:29:34 2020 +0000
+++ b/print/gutenprint-lib/distinfo     Tue Mar 17 23:06:08 2020 +0000
@@ -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 @@
 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
diff -r bbf3e7ba4cd7 -r 93c98da67b9f print/gutenprint-lib/patches/patch-scripts_gversion
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/gutenprint-lib/patches/patch-scripts_gversion       Tue Mar 17 23:06:08 2020 +0000
@@ -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
+ 
diff -r bbf3e7ba4cd7 -r 93c98da67b9f print/gutenprint-lib/patches/patch-scripts_gversion.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/gutenprint-lib/patches/patch-scripts_gversion.in    Tue Mar 17 23:06:08 2020 +0000
@@ -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
+ 
diff -r bbf3e7ba4cd7 -r 93c98da67b9f print/gutenprint-lib/patches/patch-scripts_snapstamp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/gutenprint-lib/patches/patch-scripts_snapstamp      Tue Mar 17 23:06:08 2020 +0000
@@ -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 <https://www.gnu.org/licenses/>.
+ 
+-[[ -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 '*')



Home | Main Index | Thread Index | Old Index