unixistI'm writing an out-of-tree kernel module that I want to make available in at least ubuntu's repo. Since a module must be built against the same kernel version that is currently running, how do I go about ensuring that the module gets built against all versions of the kernel that are available in ubuntu's repo? I can't quite seem to find the answer on the wiki00:11
JanCunixist: use DKMS ?01:02
JanCthere are several other packages using DKMS to get kernel modules rebuilt on kernel upgrades, so you can check how they do it01:02
unixistJanC: DKMS looks to build client-side, right?01:21
unixistJanC: Is it not preferable to have the repo itself rebuild the module based upon its dependency being modified? 01:23
unixistJanC: I'd like for "apt-get upgrade kernel" to be able to pull in the new module because it was already built when the new kernel was built01:23
JanCthat would require that you or the kernel team update your package before every kernel update01:25
unixistJanC: right01:25
unixistI take it something like that doesn't exist? It makes little sense to me to require all clients to have a build environment, the kernel source itself, etc. and to actually perform the build every upgrade01:25
JanCunixist: only the kernel headers (not the source) are needed to build a module01:28
JanCunixist: only the kernel headers (not the source) are needed to build a module, but you would need a build environment, yes01:28
JanCthe alternative is that you convince upstream linux or the Ubuntu kernel developers to include your module01:29
unixistJanC: Thanks for the help01:38
* unixist goes to ponder01:38
JanCunixist: maybe some Ubuntu kernel developer can help you further when they are around (many of them aren't around much due to the holidays, I guess)01:38
unixistJanC: Even if I upstream the module, it'd have to be enabled by default, which I would imagine is much harder (if not just a longer road) than just getting it as an opt-in module01:39
JanCunixist: if it's upstreamed, and either useful for a lot of people or unlikely to disrupt other things in the kernel, then getting it enabled in Ubuntu shouldn't be too hard?01:42
unixistJanC: No idea! It was just a pessimistic guess :)01:42
unixistI will probably end up trying01:42
unixistJanC: If you're interested, it's a proof of concept that I've merged into osquery01:43
JanCit's a decision the Ubuntu kernel team would have to make, of course, but compare usefulness (e.g. get some broken hardware to work) vs. the trouble it might cause them or other users01:43
unixistIt's a security feature, so I think I've to tread lightly01:44
JanCso, sounds like something the security team would want to have their say about too  :)01:45
unixistYou see why I lean toward pessimism 01:46
JanCand something that people who need it probably wouldn't mind installing a build system01:46
JanCso then DKMS would be fine01:47
JanCas having it rebuild automatically on kernel upgrades would improve on manual rebuilding01:49
unixistJanC: thanks for your help01:50
JanCa DKMS-based package can also be useful to get more testers, and that could also help getting it upstreamed and/or approved by security people, etc.01:52
unixistYeah, good thought01:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!