Bug ID 1194211
Summary "kernel-default" rpm build fails with "make rpm-pkg" due to incorrect path (/usr/lib/modules...)
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Tumbleweed
Status NEW
Severity Major
Priority P5 - None
Component Kernel
Assignee kernel-bugs@opensuse.org
Reporter m.stenzel@mail.xy-space.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101
Firefox/95.0
Build Identifier: 

Building the latest kernel rpm fails due to an incorrect installation path.

There is an additional "/usr" part in the build of the kernel modules which
conflicts with the depmod procedure after the kernel & module build 



Reproducible: Always

Steps to Reproduce:
1. Install kernel-source-5.15.8-1.1.noarch
2. Build the kernel with "make menuconfig" & "make rpm-pkg"

Actual Results:  
depmod (as part of the "make rpm-pkg" step) fails with not finding the
directory
"/usr/src/packages/BUILDROOT/kernel-5.15.8_1_default-1.x86_64/lib/modules/...)

The directory being created by the "make rpm-pkg" step is
"/usr/src/packages/BUILDROOT/kernel-5.15.8_1_default-1.x86_64/usr/lib/modules/..."

Note the additional "/usr" part of the directory path! 

Expected Results:  
Link is not broken and the rpm packages get created.

I fixed the problem with a hack:

I added a line in the "depmod.sh" file (part of kernel package)

18,20d17
< # Hack added by m.stenzel@mail.xy-space.de
< mv /usr/src/packages/BUILDROOT/kernel-5.15.8_1_default-1.x86_64/usr/lib
/usr/src/packages/BUILDROOT/kernel-5.15.8_1_default-1.x86_64/lib
<

By changing this file the build of the rpm packages does _not_ fail
(doublechecked).

rpm version: rpm-4.14.1-14.3.1.x86_64

Using kernel-source-5.15.12-2.1.ga77f415.noarch.rpm from the "Kernel:stable"
project does not change matters.


You are receiving this mail because: