1 |
robbat2 08/10/07 10:13:19 |
2 |
|
3 |
Added: pciutils-3.0.0-locale-happiness.patch |
4 |
Log: |
5 |
Bug #240292, version bump. |
6 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/pciutils/files/pciutils-3.0.0-locale-happiness.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: pciutils-3.0.0-locale-happiness.patch |
15 |
=================================================================== |
16 |
et_EE is a very fun locale. [a-z] does not expand to the full alphabet in that |
17 |
crazy place. Force tr to use locale C just to avoid the problem. |
18 |
|
19 |
diff -Nuar pciutils-3.0.2.orig/lib/configure pciutils-3.0.2/lib/configure |
20 |
--- pciutils-3.0.2.orig/lib/configure 2008-09-19 11:04:37.000000000 -0700 |
21 |
+++ pciutils-3.0.2/lib/configure 2008-10-07 02:27:57.043215842 -0700 |
22 |
@@ -39,7 +39,7 @@ |
23 |
HOST=${3:-$cpu-$sys} |
24 |
fi |
25 |
# CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. |
26 |
-host=`echo $HOST | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` |
27 |
+host=`echo $HOST | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | LANG=C tr '[A-Z]' '[a-z]'` |
28 |
cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
29 |
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
30 |
echo " $host $rel" |
31 |
@@ -47,8 +47,8 @@ |
32 |
c=config.h |
33 |
m=config.mk |
34 |
echo >$c '#define PCI_CONFIG_H' |
35 |
-echo >>$c "#define PCI_ARCH_`echo $cpu | tr '[a-z]' '[A-Z]'`" |
36 |
-echo >>$c "#define PCI_OS_`echo $sys | tr '[a-z]' '[A-Z]'`" |
37 |
+echo >>$c "#define PCI_ARCH_`echo $cpu | LANG=C tr '[a-z]' '[A-Z]'`" |
38 |
+echo >>$c "#define PCI_OS_`echo $sys | LANG=C tr '[a-z]' '[A-Z]'`" |
39 |
echo >$m 'WITH_LIBS=' |
40 |
|
41 |
echo_n "Looking for access methods..." |