Hi, there. I found makepkg works strange in my box, so I looked through
the code and find out something like these:
--8<---------------cut here---------------start------------->8---
--- makepkg.old 2007-04-04 21:10:48.000000000 +0800
+++ makepkg 2007-04-04 21:18:16.000000000 +0800
@@ -363,7 +363,7 @@
unset replaces depends conflicts backup source install build makedepends
unset options
# some applications (eg, blackbox) will not build with some languages
-unset LC_ALL LANG
+unset LC_ALL LANG LC_MESSAGES
umask 0022
if [ ! -f $BUILDSCRIPT ]; then
@@ -684,11 +684,11 @@
# strip binaries
if [ ! "`check_option NOSTRIP`" -a "$NOSTRIP" = "0" ]; then
msg "Stripping debugging symbols from libraries..."
- find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not
-name "*.exe" \
+ find pkg/{,usr/,usr/local/,opt/*/}lib -type f -not -name "*.dll" -not
-name "*.exe" \
-exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \
| grep -v "No such file" | grep -v "format not recognized"
msg "Stripping symbols from binaries..."
- find pkg/{,usr,usr/local,opt/*}/{bin,sbin} -type f -not -name "*.dll"
-not -name "*.exe" \
+ find pkg/{,usr/,usr/local/,opt/*/}{bin,sbin} -type f -not -name "*.dll"
-not -name "*.exe" \
-exec /usr/bin/strip '{}' \; 2>&1 \
| grep -v "No such file" | grep -v "format not recognized"
fi
--8<---------------cut here---------------end--------------->8---
The first diff is that the E17(I dunno about Gnome & KDE) has set the
variable LC_MESSAGES, so just unset the LC_ALL and LC_LANG will make the
output unrecognizable if using a non-English locale(Chinese e.g.).
The second and the third diff are the same type. The command find will
*never* look at the directories like pkg//lib nor pkg//{bin,sbin}.
So I made some changes. If it does something wrong, please holler.
TIA.
--
ssSslang
_______________________________________________
arch mailing list
[email protected]
http://archlinux.org/mailman/listinfo/arch