Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702576 - =sys-kernel/ck-sources-5.4.2 module-rebuild installs modules to the wrong directory
Summary: =sys-kernel/ck-sources-5.4.2 module-rebuild installs modules to the wrong dir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Jory A. Pratt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-11 18:59 UTC by Viz
Modified: 2019-12-13 06:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
temporary workaround patch for ck-sources Makefile (patch,512 bytes, patch)
2019-12-11 18:59 UTC, Viz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viz 2019-12-11 18:59:30 UTC
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.
Comment 1 Jory A. Pratt gentoo-dev 2019-12-13 06:15:03 UTC
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(-)