openSUSE Forums > Programming/Scripting » building a 32-bit lib package on x86-64

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read

Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-Jun-2009, 08:54
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 3
rhcoe hasn't been rated much yet
Default building a 32-bit lib package on x86-64

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
Reply With Quote
  #2 (permalink)  
Old 30-Jun-2009, 13:20
Monex's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Germany
Posts: 256
Monex hasn't been rated much yet
Default Re: building a 32-bit lib package on x86-64

Hi,

you should use the openSuSE build tool to build you packages. It is much easier and you can use the --baselibs option to create the compatibility 32 bit RPMs as you want it. SUSE Build Tutorial - openSUSE

You can build 32bit RPMs when you run "linux32 build <options>"

Hope this helps
Reply With Quote
  #3 (permalink)  
Old 07-Jul-2009, 22:48
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 3
rhcoe hasn't been rated much yet
Default Re: building a 32-bit lib package on x86-64

It looks like opensuse builds the package as a i586 package and then somehow changes the name to %{name}-32bit and arch to x86-64 (plus a few other vars).
Reply With Quote
  #4 (permalink)  
Old 22-Jul-2009, 16:49
Puzzled Penguin
 
Join Date: Jun 2009
Posts: 3
rhcoe hasn't been rated much yet
Default Re: building a 32-bit lib package on x86-64

for opensuse
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
Reply With Quote
  #5 (permalink)  
Old 02-Aug-2009, 22:03
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 1
tsmessi hasn't been rated much yet
Default Re: building a 32-bit lib package on x86-64

Thank you so much for the post. It's really useful.

demande simulation pret personnel en ligne -

Pret personnel en ligne et de comparer les meilleurs taux afin de... La demande de prêt personnel en

ligne
demande simulation pret personnel en ligne
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2