Hey,
As I posted several days ago, I'm fond applying RH updates buy downloading the src.rpm
and compiling it for i686. I just now tried compiling glibc as i686 and it fails. It
makes me really mad that RH releases updates that don't work. How long can it take to
make a simple test of the various architectures?
Here, RH, I've worked out a nice script for doing just that:
#!/bin/bash -noprofile
#srpm_arch_tester.sh
trap 'kill 0' 0 1 2 3
if [ -z "$1" ]
then
echo
echo
echo "This script attempts to compile a given src.rpm for all standard
architectures,"
echo "logs the results, and states success or failure for each attempt."
echo
echo "Usage: srpm_arch_tester.sh <the.src.rpm_name>"
echo
echo
exit
fi
if [ ! -z "${1##*.src.rpm}" ] && [ ! -z "${1##*.srpm}" ]
then
clear
echo
echo
echo "Hey, that's not a source rpm!"
echo
exit
fi
rpm --rebuild --target=i386 "$1" >i386.log 2>&1 && echo "i386 works" || echo "i386
failed"
rpm --rebuild --target=i486 "$1" >i486.log 2>&1 && echo "i486 works" || echo "i486
failed"
rpm --rebuild --target=i586 "$1" >i586.log 2>&1 && echo "i586 works" || echo "i586
failed"
rpm --rebuild --target=i686 "$1" >i686.log 2>&1 && echo "i686 works" || echo "i686
failed"
rpm --rebuild --target=athlon "$1" >athlon.log 2>&1 && echo "athlon works" || echo
"athlon failed"
echo
echo "test done"
#end script
Please! For all the money we pay you, you could at least make sure packages compile :-(
Glibc works all the way up to i586 but dies with this error on i686:
make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.1.3/hesiod'
make -s -C sunrpc others
make[2]: Entering directory `/usr/src/redhat/BUILD/glibc-2.1.3/sunrpc'
/usr/src/redhat/BUILD/glibc-2.1.3/build-i386-linux/sunrpc/rpcgen: ¼O: make[2]: ***
[/usr/src/redhat/BUILD/glibc-2.1.3/build-i386-linux/sunrpc/xbootparam_prot.stmp]
Segmentation fault (core dumped)
make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.1.3/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.1.3'
make: *** [all] Error 2
Bad exit status from /var/tmp/rpm-tmp.57017 (%build)
Is there any known good reason to not compile it for i686? If so, what, and what other
packages shouldn't be optimized?
Thanks,
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software
http://www.cedarcreeksoftware.com
Central Texas IT
http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list