summaryrefslogtreecommitdiff
path: root/print/acroread7/files/acroread.diff
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2008-08-11 14:29:20 +0000
committeris <is@pkgsrc.org>2008-08-11 14:29:20 +0000
commitf51abbd1d29d157719bf0a8d1397e890e99944b7 (patch)
tree38c145e9de59c813b45bc5d1c3432da0a53235ec /print/acroread7/files/acroread.diff
parent5320b6d1c7b056a2c55f7315ed6737b3168228cd (diff)
downloadpkgsrc-f51abbd1d29d157719bf0a8d1397e890e99944b7.tar.gz
Protect against LD_LIBRARY_PATH forcing us to load NetBSD shared libraries.
Diffstat (limited to 'print/acroread7/files/acroread.diff')
-rw-r--r--print/acroread7/files/acroread.diff15
1 files changed, 14 insertions, 1 deletions
diff --git a/print/acroread7/files/acroread.diff b/print/acroread7/files/acroread.diff
index 305dcc819b6..02e9e4c9bc2 100644
--- a/print/acroread7/files/acroread.diff
+++ b/print/acroread7/files/acroread.diff
@@ -1,7 +1,20 @@
-$NetBSD: acroread.diff,v 1.5 2007/09/13 20:19:09 wiz Exp $
+$NetBSD: acroread.diff,v 1.6 2008/08/11 14:29:20 is Exp $
--- acroread.orig 2006-05-23 01:33:35.000000000 +0000
+++ acroread 2006-06-13 13:55:00.000000000 +0000
+@@ -1,6 +1,12 @@
+ #!/bin/sh
+ #
+
++case `/usr/bin/uname` in
++NetBSD) case `/usr/bin/uname -p` in
++ i386) LD_LIBRARY_PATH=""; export LD_LIBRARY_PATH;;
++ x86_64) LD_LIBRARY_PATH=""; export LD_LIBRARY_PATH;;
++ esac;;
++esac
+
+ setLangENU()
+ {
@@ -233,7 +233,7 @@ else
ScriptDirectory="`/bin/pwd 2> /dev/null`"
cd "$cwd"