hi nick ^_^, i've tested your upgrade.sh script, and it works well if the ARCH variable is i386 ... but when i change it to i686, it will error, because the rpmbuild command is always use the default i386 value ... example original script : [...cut...] DISTRO=cnt40 ARCH=i386 BDIR=redhat clear echo "" echo "Installing zlib . . ." inquire clear if [ $PROCEED = "y" ]; then rpmbuild --rebuild $ZLIB rpm -Uvh --replacefiles --replacepkgs /usr/src/$BDIR/RPMS/$ARCH/zlib*.rpm fi [...cut...] when i change ARCH to i686, the rpmbuild command will still build using i386 value ... and when the rpm command execute, it will error, because the command will become : rpm -Uvh --replacefiles --replacepkgs /usr/src/redhat/RPMS/i686/zlib*.rpm the rpm command can't find the zlib*.rpm file, because it was built in /usr/src/redhat/RPMS/i386 ... so, i've modified every rpmbuild command become like this : rpmbuild --rebuild --with $DISTRO --target=$ARCH $ZLIB i've tested, and it works well ... thx ^_^, ~tito.web.id~ ::Nero!!Rider::
|
- [qmailtoaster] Re: upgrade.sh script TiTo
- Re: [qmailtoaster] Re: upgrade.sh script Eric \"Shubes\"
- Re: [qmailtoaster] Re: upgrade.sh scrip... TiTo
- Re: [qmailtoaster] Re: upgrade.sh s... Eric \"Shubes\"