Eric Shubert wrote:
Jake Vickers wrote:
Atul Paralikar wrote:
So you mean after rebuilding the package from spec file, I need to run the
same rebuild command for 64bit?
rpmbuild -bb --with cnt50 qmail-toaster.spec

rpmbuild -bb --with cnt5064 qmail-toaster.spec


Am I correct?

No, when you modified the code, you needed to build the src package:
rpmbuild -bs qmail-toaster.spec
Then build it for your system:
rpmbuild --rebuild --with cnt5064 /usr/src/redhat/SRPMS/qmail-toaster-*.src.rpm rpm --replacefiles --replacepkgs -Uvh /usr/src/redhat/RPMS/x86_64/qmail-toaster*.rpm

When you initially build from the spec file, if you specify binary (-bb) then it only build for CentOS 5 32-bit since you cannot specify compilation flags at that stage.


I may not quite be awake yet, but I don't think this is quite right.

If you build only the source rpm (-bs) from the spec file, then using "--with cnt5064" is indeed superfluous. However, if you build the binary (-bb) from the spec, I believe that the "--with cnt5064" flag would indeed take effect on the resulting binary. Am I wrong on this?



By default the build process uses cnt50, not the cnt5064. While I'm not 100% certain on whether or not you can specify --with flags during the initial build I have to go by the facts here (and not look further) since his build used the 32-bit softlimits instead of the 64-bit softlimits.


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to