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::






Subject:
upgrade.sh script
From:
"Nick Hemmesch" <[EMAIL PROTECTED]>
Date:
Mon, 12 Jun 2006 08:48:45 -0500 (CDT)
To:
qmailtoaster-list@qmailtoaster.com
To:
qmailtoaster-list@qmailtoaster.com

Hi All,

We did have a little glitch with the upgrade script. It has been fixed,
thanks to Devendra.

If you have downloaded the upgrade script, please download the corrected
script.

The error was: $DISTRO variable missing in libdomainkeys-toaster build
statement.

Regards,

Nick

  

Reply via email to