[opensuse-buildservice] Questions about a .spec file to compile a patched kernel
Hello all, I have a wish to put up into the opensuse build service a rpm (factory) build of the following application, but I am stuck on constructing a good .spec file which will apply the patch to the kernel source ,and then compile it into an installable rpm, and I was wondering if you could help me with this please. It will be a steep learning curve for me as I am new to all this. Application:reiser4-for-2.6.24 Source patch for Kernel: http://chichkin_i.zelnet.ru/namesys/reiser4-for-2.6.24.patch.gz Developer info links: http://marc.info/?l=reiserfs-devel&r=1&w=2 http://www.nabble.com/ReiserFS---General-f1023.html Question 1 Do I need to copy Linux Kernel(s) From: http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_Factory/x86_... and http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_Factory/i586... To: ..../home/XXX/src/kernel-default-2.6.24... Questions: 2. Do I need a 2 copies of the Kernel Source for each platform (x86_64 & i586) ? (eg kernel-source-2.6.24.?-??.?.x86_64.rpm and kernel-source-2.6.24.?-??.?.i586.rpm ) 3. Can someone provide me a .spec and .config file which will do the following thins: - Unpack the Kernel Sources (both platforms x86_64 & i586) - Apply the patch e.g (patch -p1 < ..../home/XXX/src/reiser4-for-2.6.24.patch) - Copy in a good .config file (Do I need one/where do I copy it to ?) - make/build the rpm installable binary and patched source code rpm packages (using make binrpm-pkg ?? ) - 4. Can the make/build process output a output an rpm like kernel-reiser4-2.6.24.1-76.1.x86_64.rpm and kernel-reiser4-2.6.24.1-76.1.i586.rpm 5. How do I use the .spec and .config file do I have to upload them somewhere ?. 6. Finally how and when do I know the build process passed/failed ? Thankyou for your help. Glenn. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
doiggl@velocitynet.com.au wrote:
Hello all, I have a wish to put up into the opensuse build service a rpm (factory) build of the following application, but I am stuck on constructing a good .spec file which will apply the patch to the kernel source ,and then compile it into an installable rpm, and I was wondering if you could help me with this please. It will be a steep learning curve for me as I am new to all this.
If you're new to the buildservice and rpm building, then I suggest you try packaging some simple program first. You might also want to read some tutorials on the topic: http://en.opensuse.org/SUSE_Build_Tutorial http://en.opensuse.org/Build_Service_Tutorial hth, Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 19 February 2008 16:30:46 wrote Michal Marek:
doiggl@velocitynet.com.au wrote:
Hello all, I have a wish to put up into the opensuse build service a rpm (factory) build of the following application, but I am stuck on constructing a good .spec file which will apply the patch to the kernel source ,and then compile it into an installable rpm, and I was wondering if you could help me with this please. It will be a steep learning curve for me as I am new to all this.
If you're new to the buildservice and rpm building, then I suggest you try packaging some simple program first.
You might also want to read some tutorials on the topic: http://en.opensuse.org/SUSE_Build_Tutorial http://en.opensuse.org/Build_Service_Tutorial
The kernel is a bit different than other packages here, but actually quite simple, if you know how to ;) Have a look into the home:janblunck:kernel project for a good example of using kernel-source and applying an additional patch. bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian Schröter schrieb:
On Tuesday 19 February 2008 16:30:46 wrote Michal Marek:
doiggl@velocitynet.com.au wrote:
Hello all, I have a wish to put up into the opensuse build service a rpm (factory) build of the following application, but I am stuck on constructing a good .spec file which will apply the patch to the kernel source ,and then compile it into an installable rpm, and I was wondering if you could help me with this please. It will be a steep learning curve for me as I am new to all this.
If you're new to the buildservice and rpm building, then I suggest you try packaging some simple program first.
You might also want to read some tutorials on the topic: http://en.opensuse.org/SUSE_Build_Tutorial http://en.opensuse.org/Build_Service_Tutorial
The kernel is a bit different than other packages here, but actually quite simple, if you know how to ;)
Have a look into the home:janblunck:kernel project for a good example of using kernel-source and applying an additional patch.
bye adrian
HI Those are really good packages must I say! But if one loads a complete kernel-source into its home repo. custom one always kernel-dummy.spec or I see wrongly because of dependence ? Greeting Robert
Hello again, Question: Where can I find a sample .spec file to compile a patched kernel (I can't find one). I'm looking in http://download.opensuse.org/repositories/home:/janblunck/ but I cannot find a .spec file, it looks like the final rpm file(s). Can anyone list a .spec file for me please ?. Thanks for your help Glenn Adrian Wrote:
The kernel is a bit different than other packages here, but actually quite simple, if you know how to ;)
Have a look into the home:janblunck:kernel project for a good example of using kernel-source and applying an additional patch.
bye adrian
Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello, on Mittwoch, 27. Februar 2008, doiggl@velocitynet.com.au wrote:
Where can I find a sample .spec file to compile a patched kernel (I can't find one). I'm looking in http://download.opensuse.org/repositories/home:/janblunck/ but I cannot find a .spec file, it looks like the final rpm file(s).
Of course, download.opensuse.org serves the generated packages. To see the sources, go to http://build.opensuse.org, login with your openSUSE/Novell account and then go to the home:janblunck project. Regards, Christian Boltz -- I understand, I am also sure that they would not let me at their code and internal tools. If they do, I switch disto in a hartbeat, because that means others with the same level as I have can change stuff. I don't trust myself. :-) [houghi in opensuse-wiki] --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Christian Boltz wrote:
Hello,
on Mittwoch, 27. Februar 2008, doiggl@velocitynet.com.au wrote:
Where can I find a sample .spec file to compile a patched kernel (I can't find one). I'm looking in http://download.opensuse.org/repositories/home:/janblunck/ but I cannot find a .spec file, it looks like the final rpm file(s).
Of course, download.opensuse.org serves the generated packages.
Among which there are also the source rpms contaning the spec files :). But in this case the spec ifself is no fun, what's interesting is how the buildservice automatically patches the original spec and other files in the sources, which you'll only see on the URL Christian posted. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Adrian Schröter
-
Christian Boltz
-
doiggl@velocitynet.com.au
-
Michal Marek
-
Robert Schmolke