Rebuilding xxx-32bit packages for x64_64
SUSE 10.0 ships packages for i586 and x86_64 built from the same .src.rpm. But there are also name-32bit-...x64_64.rpm, which contain only the shared libraries compiled as 32bit for use on an AMD64 system. These also claim to be built from the same single .src.rpm. What is the magic incantation to do so? There is nothing special in the spec file about it. For example: gpm-1.20.1-309.src.rpm dvd2 suse/src gpm-1.20.1-309.i586.rpm dvd1 suse/i586 gpm-1.20.1-309.x86_64.rpm dvd1 suse/x86_64 gpm-32bit-1.20.1-309.x86_64.rpm dvd1 suse/x86_64 Thanks, Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
On Tue, Jan 03, 2006 at 02:40:55PM +1300, Volker Kuhlmann wrote:
SUSE 10.0 ships packages for i586 and x86_64 built from the same .src.rpm. But there are also name-32bit-...x64_64.rpm, which contain only the shared libraries compiled as 32bit for use on an AMD64 system. These also claim to be built from the same single .src.rpm. What is the magic incantation to do so? There is nothing special in the spec file
See the --baselibs switch of the build script. Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
See the --baselibs switch of the build script.
Um, which script? rpmbuild --help | grep base --dbpath=DIRECTORY use database in DIRECTORY Thanks, Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
On Tue, Jan 03, 2006 at 08:32:41PM +1300, Volker Kuhlmann wrote:
See the --baselibs switch of the build script.
Um, which script?
The script "build" from the package "build". Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
The script "build" from the package "build".
Ah, thanks. Are you sure this stuff actually works? I only ever get build --rpms /media/suse --root /data/tmp/build ~soft/packages/SPECS/scriptutils-1.33-1.spec [...] error: File /usr/src/packages/SOURCES/scriptutils-1.33.tar.bz2: No such file or directory It fails to pick up the source tar from /root/packages/SOURCES/, /usr/src/packages/SOURCES/, and keeps on deleting it from /data/tmp/build/usr/src/packages/SOURCES/ prior to complaining about not being able to find it - doh. Perhaps the source needs to now go into packages/SPEC - groan. Perhaps the somewhat more megalomaniac-looking method at http://www.opensuse.org/SUSE_Build_Tutorial actually works. Pity rpmbuild doesn't work cross-arch - no need to be root either. I'll get back to packaging later... Thanks, Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
On Wed, Jan 04, 2006 at 12:59:46PM +1300, Volker Kuhlmann wrote:
The script "build" from the package "build".
Ah, thanks. Are you sure this stuff actually works? I only ever get
build --rpms /media/suse --root /data/tmp/build ~soft/packages/SPECS/scriptutils-1.33-1.spec [...] error: File /usr/src/packages/SOURCES/scriptutils-1.33.tar.bz2: No such file or directory
It fails to pick up the source tar from /root/packages/SOURCES/, /usr/src/packages/SOURCES/, and keeps on deleting it from /data/tmp/build/usr/src/packages/SOURCES/ prior to complaining about not being able to find it - doh. Perhaps the source needs to now go into packages/SPEC - groan.
The source needs to be in the same directory the spec file is. No need to have this in any special directory. build does not make use of the /usr/src/packages/ directory of your installation at all. Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
On Wed, Jan 04, 2006 at 08:48:31AM +0100, Robert Schiele wrote:
On Wed, Jan 04, 2006 at 12:59:46PM +1300, Volker Kuhlmann wrote:
The script "build" from the package "build".
Ah, thanks. Are you sure this stuff actually works? I only ever get
build --rpms /media/suse --root /data/tmp/build ~soft/packages/SPECS/scriptutils-1.33-1.spec [...] error: File /usr/src/packages/SOURCES/scriptutils-1.33.tar.bz2: No such file or directory
It fails to pick up the source tar from /root/packages/SOURCES/, /usr/src/packages/SOURCES/, and keeps on deleting it from /data/tmp/build/usr/src/packages/SOURCES/ prior to complaining about not being able to find it - doh. Perhaps the source needs to now go into packages/SPEC - groan.
The source needs to be in the same directory the spec file is. No need to have this in any special directory. build does not make use of the /usr/src/packages/ directory of your installation at all.
Actually you don't have to run the build script to create a -32bit version of a rpm, calling /usr/lib/build/mkbaselibs -c /usr/lib/build/baselibs_global.conf -c /usr/lib/build/baselibs.conf <rpm> should also work. Cheers, Michael. -- Michael Schroeder mls@suse.de main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
participants (3)
-
Michael Schroeder
-
Robert Schiele
-
Volker Kuhlmann