Hello.. I'm trying to figure out how to build a binary kernel RPM in Suse, so I want to use this new binary RPM on another machines instead of re-compiling for every machine. (of course in same type) ( It looks like I need to use kernel-source.src.rpm and k_*.src.rpm..) I'm familiar with how Red Hat does for binary kernel RPMs, and I have not yet figured out the way in SuSE. Is there are any document for this stuff? ( It's not easy to find the right information :-( ) - jason
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 27 January 2004 16:03, Jason Kim wrote:
Hello..
I'm trying to figure out how to build a binary kernel RPM in Suse, so I want to use this new binary RPM on another machines instead of re-compiling for every machine. (of course in same type) ( It looks like I need to use kernel-source.src.rpm and k_*.src.rpm..)
I'm familiar with how Red Hat does for binary kernel RPMs, and I have not yet figured out the way in SuSE.
Is there are any document for this stuff? ( It's not easy to find the right information :-( )
- jason
Try "rpmbuild --rebuild <target.src.rpm file> #man rpmbuild RPMBUILD(8) Red Hat Linux RPMBUILD(8) NAME rpmbuild - Build RPM Package(s) SYNOPSIS BUILDING PACKAGES: rpmbuild {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [rpmbuild-options] SPECFILE ... rpmbuild {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [rpmbuild-options] TARBALL ... rpmbuild {--rebuild|--recompile} SOURCEPKG ... MISCELLANEOUS: rpmbuild --showrc rpmbuild-options [--buildroot DIRECTORY] [--clean] [--nobuild] [--rmsource] [--rmspec] [--short-circuit] [--sign] [--target PLATFORM] DESCRIPTION rpmbuild is used to build both binary and source software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties:binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages. One of the following basic modes must be selected: Build Package, Build Package from Tarball, Recompile Package, Show Configuration. <SNIP> HTH, Curtis. - -- Spammers Beware: Tresspassers will be shot, survivors will be shot again! Warning: Individuals throwing objects at the crocodiles will be asked to retrieve them! If pro is the opposite of con, then the opposite of progress must be congress! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAFyz6N9r/ngHXpykRAiZAAKC52aqp4jD2uCi4Yd7MAWgPfhJlVgCfZSnj e6Z7dYyS1nT2jv6XJfxKz1k= =AHFw -----END PGP SIGNATURE-----
hi.. I guess my question was unclear enough. I want to build binary kernel rpm for executable kernel, not for the source. So I can upgrade kernel by installing this new kernel rpm on another machine. Thanks Jason On Tue, 2004-01-27 at 20:31, Curtis Rey wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tuesday 27 January 2004 16:03, Jason Kim wrote:
Hello..
I'm trying to figure out how to build a binary kernel RPM in Suse, so I want to use this new binary RPM on another machines instead of re-compiling for every machine. (of course in same type) ( It looks like I need to use kernel-source.src.rpm and k_*.src.rpm..)
I'm familiar with how Red Hat does for binary kernel RPMs, and I have not yet figured out the way in SuSE.
Is there are any document for this stuff? ( It's not easy to find the right information :-( )
- jason
Try "rpmbuild --rebuild <target.src.rpm file>
#man rpmbuild
RPMBUILD(8) Red Hat Linux RPMBUILD(8)
NAME rpmbuild - Build RPM Package(s)
SYNOPSIS BUILDING PACKAGES: rpmbuild {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [rpmbuild-options] SPECFILE ...
rpmbuild {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [rpmbuild-options] TARBALL ...
rpmbuild {--rebuild|--recompile} SOURCEPKG ...
MISCELLANEOUS: rpmbuild --showrc
rpmbuild-options [--buildroot DIRECTORY] [--clean] [--nobuild] [--rmsource] [--rmspec] [--short-circuit] [--sign] [--target PLATFORM]
DESCRIPTION rpmbuild is used to build both binary and source software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties:binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages.
One of the following basic modes must be selected: Build Package, Build Package from Tarball, Recompile Package, Show Configuration.
<SNIP>
HTH, Curtis. - -- Spammers Beware: Tresspassers will be shot, survivors will be shot again!
Warning: Individuals throwing objects at the crocodiles will be asked to retrieve them!
If pro is the opposite of con, then the opposite of progress must be congress! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAFyz6N9r/ngHXpykRAiZAAKC52aqp4jD2uCi4Yd7MAWgPfhJlVgCfZSnj e6Z7dYyS1nT2jv6XJfxKz1k= =AHFw -----END PGP SIGNATURE-----
* Jason Kim; <jason@userful.com> on 28 Jan, 2004 wrote:
hi.. I guess my question was unclear enough.
I want to build binary kernel rpm for executable kernel, not for the source. So I can upgrade kernel by installing this new kernel rpm on another machine.
http://susefaq.sourceforge.net/sectionkernel.html is the start point then if you read the /usr/src/linux/Makefile around line 630 you will have your answer -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 28 January 2004 11:58, Togan Muftuoglu wrote:
* Jason Kim; <jason@userful.com> on 28 Jan, 2004 wrote:
hi.. I guess my question was unclear enough.
I want to build binary kernel rpm for executable kernel, not for the source. So I can upgrade kernel by installing this new kernel rpm on another machine.
http://susefaq.sourceforge.net/sectionkernel.html is the start point
then if you read the /usr/src/linux/Makefile around line 630 you will have your answer
--
Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC.
Nisi defectum, haud refiecendum
I believe Togan is referring to this section in the makefile: # # RPM target # # If you do a make spec before packing the tarball you can rpm -ta it # spec: . scripts/mkspec >kernel.spec # # Build a tar ball, generate an rpm from it and pack the result # There arw two bits of magic here # 1) The use of /. to avoid tar packing just the symlink # 2) Removing the .dep files as they have source paths in them that # will become invalid # rpm: clean spec find . \( -size 0 -o -name .depend -o -name .hdepend \) -type f -print | xargs rm -f set -e; \ cd $(TOPDIR)/.. ; \ ln -sf $(TOPDIR) $(KERNELPATH) ; \ tar -cvz --exclude CVS -f $(KERNELPATH).tar.gz $(KERNELPATH)/. ; \ rm $(KERNELPATH) ; \ cd $(TOPDIR) ; \ . scripts/mkversion > .version ; \ rpm -ta $(TOPDIR)/../$(KERNELPATH).tar.gz ; \ rm $(TOPDIR)/../$(KERNELPATH).tar.gz ###################################################### HTH, Curtis. - -- Spammers Beware: Tresspassers will be shot, survivors will be shot again! Warning: Individuals throwing objects at the crocodiles will be asked to retrieve them! If pro is the opposite of con, then the opposite of progress must be congress! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAFzhEN9r/ngHXpykRAlN0AJ0dLHIukIl/kLuM2McxLlUudo2augCgoy0P p++SvlangviJekZKMY+Ana8= =bdN3 -----END PGP SIGNATURE-----
participants (3)
-
Curtis Rey
-
Jason Kim
-
Togan Muftuoglu