Re: [opensuse] question about kernel sources



On Wed, Dec 28, 2011 at 11:37 AM, Istvan Gabor <suseuser04@xxxxxxx> wrote:
Hello:

I would like to build a 2.6.37 kernel for my opensuse 11.2 which
has 2.6.31 kernel by default.
I thought that I could use kernel sources from the 11.4 repository.
But I don't see clearly what is the difference between
kernel-source-*.src.rpm and kernel-source-*.noarch.rpm
packages, eg:
http://download.opensuse.org/update/11.4/rpm/src/kernel-source-2.6.37.6-0.9.1.src.rpm
and
http://download.opensuse.org/update/11.4/rpm/noarch/kernel-source-2.6.37.6-0.9.1.noarch.rpm.

I would also thank for links where I can find description/explanation
of the above and how to build a kernel for a different system.

Thanks,

Istvan

You're going to have better luck I believe looking at OBS and using
the same methodology the developers actually use. I'm not sure anyone
tests the source rpms any more..

For instance the project for the 11.4 update desktop kernel is here:

https://build.opensuse.org/package/files?package=kernel-desktop&project=openSUSE%3A11.4%3AUpdate

If you branch that to your OBS home project (or a sub-project of
that), you can add the DISCONTINUED:openSUSE_11.2 repository and that
kernel will rebuild against 11.2.

fyi: I just tried a local build, but I their is an issue with the 11.2
repo from what I can see. If you try the below and have the same
issues, I'd recommend you follow up on the Evergreen mailinglist.
(that is where 11.2 is supported now that it is past official EOL).

===========
If you prefer to build it locally, I think these steps will work:

# osc is the command line interface to OBS. Get it and setup a working area.
zypper in osc
mkdir working_dir
cd working_dir
# makes a local copy of the sources
osc co openSUSE:11.4:Update kernel-desktop
cd openSUSE:11.4:Update/kernel-desktop
#actually build it
osc build --alternative-project=DISCONTINUED:openSUSE:11.2:Update

At the end of the build, you should see a rpm being built.

You can install it with:

zypper in <path-to-your-new-rpm>

Hope that helps
Greg
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx



Relevant Pages