On 31.3.2010 12:26, doiggl@velocitynet.com.au wrote:
Hello I am trying to get a kernel that will be patched, then obs to to compile it to generate a .rpm and I need some assistance.
- Its based on kernel 2.6.33.x , so Ive set up a link to the sources of the package kernel-source of project Base:Kernel. Details are: <link project='Base:Kernel' package='kernel-source' cicount='copy'/>
Hm, I didn't know of Base:Kernel. You could as well link the openSUSE:Factory package directly. Also, you should remove the cicount='copy' here, your package will be different, so it should not copy the release number.
Questions: - What does the BuildRequires line need so kernel-source-2.6.33.x gets installed (e.g kernel-source-2.6.33-6.2.src.rpm) ? - How can the patch be applied ? , its in patch.bz2 format
The patches in the kernel-source package are packaged in the patches.xx.tar.bz2 tarballs, the order in which they are applied is controlled by the series.conf file. There is a special tarball called patches.addon.tar.bz2 and this is where you put patch. Create a tarball like this: $ tar tf patches.addon.tar.bz2 patches.addon/foobar.patch patches.addon/series where the series file contains this line: patches.addon/foobar.patch And add it to your kernel-source package. If you need to apply more patches, simply list them all in the series file, in the order you want to apply them. And finally: The kernel-source package only builds the kernel-source rpms. To build the binary kernel, you need to create a kernel-desktop, kernel-pae, etc links inside your project _with_ cicout=copy for a change. Look at the Kernel:HEAD project to see how the setup should look like. Good luck, Michal -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org