[opensuse] bulding a 32-bit lib package for x86_65
I'm trying to use rpmbuild to build both a x86-64 and 32-bit package. On the examples in the distribution, the same src rpm is used for both output packages. What is the arguments to rpmbuild to make package-lib-32bit-X.x ? I'm currently do this to get a 32-bit package: CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -ba --target=i586 package-lib.spec For example, I'm trying to build xorg-x11-libXt-32bit from xorg-x11-libXt. Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 21 July 2009 04:05:45 Rich Coe wrote:
I'm trying to use rpmbuild to build both a x86-64 and 32-bit package. On the examples in the distribution, the same src rpm is used for both output packages.
What is the arguments to rpmbuild to make package-lib-32bit-X.x ?
I'm currently do this to get a 32-bit package: CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -ba --target=i586 package-lib.spec For example, I'm trying to build xorg-x11-libXt-32bit from xorg-x11-libXt.
This is more appropriate for the opensuse-packaging mailing list. The openSUSE build service uses baselibs.conf for this: http://en.opensuse.org/Build_Service/baselibs.conf That's basically repacking the i586 libraries as x86_64 rpm - so a total different approach than you're looking at, Andreas -- Andreas Jaeger, aj@{novell.com,opensuse.org} SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Mon, 20 Jul 2009 21:05:45 -0500
Rich Coe
I'm trying to use rpmbuild to build both a x86-64 and 32-bit package. On the examples in the distribution, the same src rpm is used for both output packages.
What is the arguments to rpmbuild to make package-lib-32bit-X.x ?
I'm currently do this to get a 32-bit package: CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -ba --target=i586 package-lib.spec For example, I'm trying to build xorg-x11-libXt-32bit from xorg-x11-libXt.
install 'build' rpm CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -bb -target=i586 package.spec { echo package echo package-devel } > baselib.conf /usr/lib/build/mkbaselib -c /usr/lib/build/baselibs_global.conf -c baselib.conf /PATH_TO_RPMS/.../i586/package*.rpm -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Andreas Jaeger
-
Rich Coe