[opensuse-packaging] How do I specify a kernel-flavour dependency?
Hi, if I want to build a package that requires kernel-source to be present in order to compile a module how do I specify the dependency of either kernel-desktop-devel ,kernel-default-devel, kernel-pae-devel, kernel-vanilla-devel or any of the other kernel devel packages in the spec file in order to ensure trouble free installation? Thanks in advance, Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 11/16/2009 at 12:05, Dave Plater
wrote: Hi, if I want to build a package that requires kernel-source to be present in order to compile a module how do I specify the dependency of either kernel-desktop-devel ,kernel-default-devel, kernel-pae-devel, kernel-vanilla-devel or any of the other kernel devel packages in the spec file in order to ensure trouble free installation? Thanks in advance, Dave P
Are you trying to build kernel module packages (KMP) in OBS? Then there are some macros for you. I'd suggest you have a look at existing packages that do KMPs at the moment (example openSUSE:11.2 / open-vm-tools). Look for lines containing KMP... you'll figure them. also [0] can give you some good information on what all this means. Dominique [0] http://www.suse.de/~agruen/KMPM/KernelModulePackagesManual-CODE10.pdf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 11/16/2009 01:47 PM, Dominique Leuenberger wrote:
On 11/16/2009 at 12:05, Dave Plater
wrote: Hi, if I want to build a package that requires kernel-source to be present in order to compile a module how do I specify the dependency of either kernel-desktop-devel ,kernel-default-devel, kernel-pae-devel, kernel-vanilla-devel or any of the other kernel devel packages in the spec file in order to ensure trouble free installation? Thanks in advance, Dave P
Are you trying to build kernel module packages (KMP) in OBS? Then there are some macros for you. I'd suggest you have a look at existing packages that do KMPs at the moment (example openSUSE:11.2 / open-vm-tools).
Look for lines containing KMP... you'll figure them.
also [0] can give you some good information on what all this means.
Dominique
[0] http://www.suse.de/~agruen/KMPM/KernelModulePackagesManual-CODE10.pdf
I looked at open-vm-tools-spec and it doesn't really answer my question, it seems to solve the problem with "Requires: vmware-guest-kmp", I was looking for a non kmp module way. Is there possibly a way of finding out which flavor of kernel is installed perhaps, then I could use conditionals. Thanks for the link to the manual. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Monday 16 November 2009 06:10:55 Dave Plater wrote:
which flavor of kernel is installed perhaps
uname -r should be the answer :) -- Regards, Rajko openSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Dne 16.11.2009 13:10, Dave Plater napsal(a):
I looked at open-vm-tools-spec and it doesn't really answer my question, it seems to solve the problem with "Requires: vmware-guest-kmp", I was looking for a non kmp module way.
Please don't invent non kmp ways, such approaches usually break with the next kernel update. Michal -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 11/18/2009 05:24 PM, Michal Marek wrote:
Dne 16.11.2009 13:10, Dave Plater napsal(a):
I looked at open-vm-tools-spec and it doesn't really answer my question, it seems to solve the problem with "Requires: vmware-guest-kmp", I was looking for a non kmp module way.
Please don't invent non kmp ways, such approaches usually break with the next kernel update.
Michal
It was a problem that arose on the virtual box list with installing the vbox binary on openSUSE 11.2 where the kernel source and kernel-*-devel packages weren't installed and I was wondering how one would overcome it. I was also wondering if the vbox binary couldn't be in the non oss repo. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dave Plater
-
Dominique Leuenberger
-
Michal Marek
-
Rajko M.