summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch')
-rw-r--r--sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch b/sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch
new file mode 100644
index 000000000000..5a818b4c089f
--- /dev/null
+++ b/sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch
@@ -0,0 +1,26 @@
+et_EE is a very fun locale. [a-z] does not expand to the full alphabet in that
+crazy place. Force tr to use locale C just to avoid the problem.
+
+diff -Nuar pciutils-3.0.2.orig/lib/configure pciutils-3.0.2/lib/configure
+--- pciutils-3.0.2.orig/lib/configure 2008-09-19 11:04:37.000000000 -0700
++++ pciutils-3.0.2/lib/configure 2008-10-07 02:27:57.043215842 -0700
+@@ -39,7 +39,7 @@
+ HOST=${3:-$cpu-$sys}
+ fi
+ # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
+-host=`echo $HOST | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
++host=`echo $HOST | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | LANG=C tr '[A-Z]' '[a-z]'`
+ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ echo " $host $rel"
+@@ -47,8 +47,8 @@
+ c=config.h
+ m=config.mk
+ echo >$c '#define PCI_CONFIG_H'
+-echo >>$c "#define PCI_ARCH_`echo $cpu | tr '[a-z]' '[A-Z]'`"
+-echo >>$c "#define PCI_OS_`echo $sys | tr '[a-z]' '[A-Z]'`"
++echo >>$c "#define PCI_ARCH_`echo $cpu | LANG=C tr '[a-z]' '[A-Z]'`"
++echo >>$c "#define PCI_OS_`echo $sys | LANG=C tr '[a-z]' '[A-Z]'`"
+ echo >$m 'WITH_LIBS='
+
+ echo_n "Looking for access methods..."