Created attachment 599236 [details, diff] temporary workaround patch for ck-sources Makefile To reproduce: 1. install sys-kernel/ck-sources kernel 2. eselect ck kernel 3. run emerge @module-rebuild (for some modules like virtualbox / wireguard / nvidia) This will install modules to `/lib/linux-${VERSION}-ck` instead of `/lib/linux-${VERSION}-ck${CKVERSION}${LOCALVERSION}`. And during emerge these modules, it prints some like ``` >>> Running pre-merge checks for x11-drivers/nvidia-drivers-440.36-r1 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.4.2-ck * $(EXTRAVERSION)$(CKVERSION) * Checking for suitable kernel configuration options... [ ok ] ``` Note "Found sources for kernel version" section shows ``` 5.4.2-ck $(EXTRAVERSION)$(CKVERSION) ``` Which comes from `KV_EXTRA=$(getfilevar_noexec EXTRAVERSION "${KERNEL_MAKEFILE}")` in `/var/db/repos/gentoo/eclass/linux-info.eclass` And it's caused by having two lines of EXTRAVERSION in ck-sources Makefile. A temporary workaround is attached for =sys-kernel/ck-sources-5.4.2.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=395cd10073b1e9e5258f8623292534437594093d commit 395cd10073b1e9e5258f8623292534437594093d Author: Jory Pratt <anarchy@gentoo.org> AuthorDate: 2019-12-13 06:09:01 +0000 Commit: Jory Pratt <anarchy@gentoo.org> CommitDate: 2019-12-13 06:10:01 +0000 sys-kernel/ck-sources: drop deblob, Fix extraversion Closes: https://bugs.gentoo.org/show_bug.cgi?id=688092 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Jory Pratt <anarchy@gentoo.org> sys-kernel/ck-sources/Manifest | 2 -- ...ces-5.4.2.ebuild => ck-sources-5.4.2-r1.ebuild} | 29 ++++++++-------------- .../ck-sources/files/ck-5.4-revert-version.patch | 27 ++++++++++++++++++++ sys-kernel/ck-sources/metadata.xml | 3 --- 4 files changed, 37 insertions(+), 24 deletions(-)