[CentOS-devel] kmod packaging guideline

Akemi Yagi amyagi at gmail.com
Sun Dec 21 00:37:56 UTC 2008


On Sat, Dec 20, 2008 at 4:08 PM, Ned Slider <ned at unixmail.co.uk> wrote:

> I'll admit I'm not an expert kmod packager, but placing the Requires in
> the kmodtool script was the only solution I found (actually either
> Johnny or Karanbir suggested it on IRC IIRC). In my case kmodtool-foo
> was simply a copy of /usr/lib/rpm/redhat/kmodtool with the necessary
> Requires added. If there's a simpler or more elegant solution then
> please do enlighten me :)

It was Johnny Hughes.  (excerpt)

[Sat Jul 12 2008] [05:38:02] <NedSlider>        can anyone help with a
SPEC file problem please?
[Sat Jul 12 2008] [05:38:15] <NedSlider>        I was making a kmod
module rpm...
[Sat Jul 12 2008] [05:38:24]     * toracat looks at hughesjr
[Sat Jul 12 2008] [05:38:32] <NedSlider>        and was trying to do
dependencies...
[Sat Jul 12 2008] [05:39:00] <NedSlider>        added: Requires:
package >= x.y.x
[Sat Jul 12 2008] [05:39:12] <NedSlider>        and it gets ignored by rpm
[Sat Jul 12 2008] [05:40:00] <NedSlider>        Requires:   lm_sensors >= 2.10.2
[Sat Jul 12 2008] [05:44:10] <hughesjr> NedSlider: it should not be ignored
[Sat Jul 12 2008] [05:44:41] <hughesjr> and that format looks OK
<snip>
[Sat Jul 12 2008] [05:47:53] <hughesjr> you will need to add the
Require: to the script and not the
SPEC
[Sat Jul 12 2008] [05:48:23] <hughesjr> is it named kmodtool.sh or some such
[Sat Jul 12 2008] [05:48:28] <hughesjr> let me check
<snip>
[Sat Jul 12 2008] [06:02:43] <hughesjr> NedSlider: if you edit the
file kmodtool and add your require there it will fix the issue

Akemi / toracat


More information about the CentOS-devel mailing list