Bugzilla – Bug 1217824
longterm kernel: figure out how to build KMPs
Last modified: 2024-05-21 19:04:57 UTC
One of the major open questions, before introducing the longterm kernel to Factory, is how KPMs can be build. This issue is supposed to server as a reminder, that this likely blocks the addition to Factory until it is resolved.
kmps are optional. There are around 30 in Tumbleweed - most of them in this list: https://github.com/bmwiedemann/reproducibleopensuse/blob/devel/exceptions/nachbau.pesign plus a few external ones such as NVidia and VMware. In the kernel-macros package there is /usr/lib/rpm/macros.d/macros.kernel-source https://build.opensuse.org/package/view_file/openSUSE:Factory/kernel-source/macros.kernel-source that defines %flavors_to_build to decide what is built. e.g. in TW it just contains "default" atm. It seems, you need to add a symlink in /usr/src/linux-obj/%_target_cpu currently there is /usr/src/linux-obj/x86_64/default -> ../../linux-6.6.3-1-obj/x86_64/default
An open question is rather how to put longterm flavor to the buildreqs. Suppose we have two versions of kernel sources, one for kernel-default (for TW) and one for kernel-longterm. kernel-syms is provided only from the former, and usually it's the one dragging the corresponding kernel-*-devel packages to the package building KMPs (via %kernel_module_package_buildreqs macro). So we'll need to hack %kernel_module_package_buildreqs to take kernel-longterm-devel somehow there automatically. The rest could work as is; the expansion of flavor list is dynamically done in %kernel_module_package macro depending on the installed files, indeed. Of course, each package has to deal with the builds of different kernel versions, but it's a matter of each packaging.
There are already KMPs built against kernel-rt in SLE, this is not new.
(In reply to Michal Suchanek from comment #3) > There are already KMPs built against kernel-rt in SLE, this is not new. Indeed, some are with rt and some not on Leap 15.5. What made difference?
I think it's explicitly enabled in the KMP spec file because not all are required on both, and not all are compatible either.
current plan is to not make this a hard requirement for Factory inclusion anymore, as it blocks slowroll progress. Never the less should be addressed in a reasonable time.
https://build.opensuse.org/request/show/1172513 brought a virtualbox-kmp-longterm-7.0.18_k6.6.30_1-1.1.x86_64.rpm in osc ls -b openSUSE:Factory virtualbox:kmp
This is an autogenerated message for OBS integration: This bug (1217824) was mentioned in https://build.opensuse.org/request/show/1172997 15.5 / virtualbox
openSUSE-RU-2024:0134-1: An update that has three recommended fixes can now be installed. Category: recommended (important) Bug References: 1211941,1217824,1220524 CVE References: JIRA References: Sources used: openSUSE Leap 15.5 (src): virtualbox-7.0.18-lp155.2.24.1, virtualbox-kmp-7.0.18-lp155.2.24.1