summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-07-03 13:01:34 +0000
committerjoerg <joerg@pkgsrc.org>2017-07-03 13:01:34 +0000
commitc3e0c4c8f0348511b2c7bd4574aee58aa909d4e5 (patch)
tree4a839d30e8f28d70aadaa65a5d2097aabb0246e9 /graphics
parenta9dd9141e90048c3a1a63395ccbfd310c9dd1e78 (diff)
downloadpkgsrc-c3e0c4c8f0348511b2c7bd4574aee58aa909d4e5.tar.gz
Handle any non-bash shell with $RANDOM as bsh, i.e. don't use the ksh
optimizations. Fixing build on NetBSD 8.99+
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/distinfo3
-rw-r--r--graphics/graphviz/patches/patch-iffe26
2 files changed, 28 insertions, 1 deletions
diff --git a/graphics/graphviz/distinfo b/graphics/graphviz/distinfo
index 38391a980ee..9d0437b46ec 100644
--- a/graphics/graphviz/distinfo
+++ b/graphics/graphviz/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.58 2017/05/22 11:19:20 adam Exp $
+$NetBSD: distinfo,v 1.59 2017/07/03 13:01:34 joerg Exp $
SHA1 (graphviz-2.40.1.tar.gz) = 8a44d19bcdb50df1bd8e649de472ebf868468888
RMD160 (graphviz-2.40.1.tar.gz) = 8fc103fc519e07e9db522ec2f748838571c71acf
@@ -8,6 +8,7 @@ SHA1 (patch-cmd_lefty_os_unix_io.c) = 48f91c79b97928b54ae24af59a9fea173f34dfe5
SHA1 (patch-config_config__perl.pl) = 85d535282a819c1055386244f7b520387d0ddbb1
SHA1 (patch-configure) = 2e541e065a594093f54e47d5a24972367405bec1
SHA1 (patch-configure.ac) = c02e7e2ab65cb5df8bcf15c1bbed0e673480bd3f
+SHA1 (patch-iffe) = f32c6be65209e57a92c215dee25c5c8334142c03
SHA1 (patch-lib_gvc_Makefile.in) = f469c2dc53cf9af5b1e86f5da04bf9575685bd41
SHA1 (patch-plugin_gs_gvloadimage__gs.c) = b5b46a1e7dc52f163526c5b8b7e1b893d5500e3c
SHA1 (patch-plugin_quartz_Makefile.in) = 1712a43849137c23e94f3eeb2ae9b86938bd4980
diff --git a/graphics/graphviz/patches/patch-iffe b/graphics/graphviz/patches/patch-iffe
new file mode 100644
index 00000000000..41b51251ea7
--- /dev/null
+++ b/graphics/graphviz/patches/patch-iffe
@@ -0,0 +1,26 @@
+$NetBSD: patch-iffe,v 1.1 2017/07/03 13:01:34 joerg Exp $
+
+It's not ksh just it has $RANDOM and no $BASH_VERSION.
+
+--- iffe.orig 2017-07-02 22:22:03.587308788 +0000
++++ iffe
+@@ -452,16 +452,11 @@ protoflags=
+ puthdr=
+ putlib=
+ pragma=
+-case $RANDOM in
+-$RANDOM)shell=bsh
++case $BASH_VERSION in
++?*) shell=bash ;;
++*) shell=bsh
+ ($executable .) 2>/dev/null || executable='test -r'
+ ($exists .) 2>/dev/null || exists='test -r'
+- ;;
+-*) case $BASH_VERSION in
+- ?*) shell=bash ;;
+- *) shell=ksh ;;
+- esac
+- ;;
+ esac
+ reallystatic=
+ reallystatictest=