I figured this out. Answer below (if anybody else has the problem). On 07/23/2014 12:57 PM, Lee Duncan wrote:
Hi:
I am trying to build a KMP package for SLES 11 SP3 using IBS.
I am modeling my package after ocfs2, if that helps answer my question.
My package patches the rbd device driver, patching rbd.c, then builds the rbd.ko kernel module.
I can get this to work on my local system using rpmbuild. My local system is SLES 11 SP3, and the kernel on it is 3.0.101-0.35-default.
But when I specify SLES 11 SP3 as a build target in IBS, it seems to get kernel-syms-3.0.76-0.11.1.
This causes patch errors because the 3.0.76 kernel had an older version of rbd.c.
In my spec file, I have:
BuildRequires: kernel-syms
I have also tried:
BuildRequires: kernel-syms = 3.0.101
and
BuildRequires: kernel-syms >= 3.0.101
I have several questions:
- Why does my system have a newer 3.0.101 kernel and the build service have an older one?
Because I was using SLE 11 SP3, and I needed to use SLE 11 SP3 Update:Test, under the "Advanced" tab in the repository.
- Can I specify 3.0.101, or should I just patch against 3.0.76?
- How do I know what kernel a particular OS flavor will use in general?
I know I can check the git tags in the kernel source repository to find out what driver each kernel version has, but I still don't know where a list of release-vs-kernel-version exists.
-- Lee Duncan SUSE Labs -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org