[Bug 1194211] New: "kernel-default" rpm build fails with "make rpm-pkg" due to incorrect path (/usr/lib/modules...)
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 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: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 http://bugzilla.opensuse.org/show_bug.cgi?id=1194211#c1 John Shand <jshand2013@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jshand2013@gmail.com --- Comment #1 from John Shand <jshand2013@gmail.com> --- did you use patters in software management? there is a pattern there for kernel development. you need all installed but kernel-sources and kernel-debug. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 http://bugzilla.opensuse.org/show_bug.cgi?id=1194211#c2 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com, | |lnussel@suse.com, | |mkubecek@suse.com, | |msuchanek@suse.com, | |tiwai@suse.com --- Comment #2 from Takashi Iwai <tiwai@suse.com> --- Well, it's likely a missing hack to mimic the module path; we've already hacked Makefile depending on usrmerge, and scripts/depmod.sh looks like another one to touch. Maybe there are a few others. I see scripts/package/mkspec has /lib/modules/* stuff, too. Ideally, all those should be moved to another macro instead of the hard-coded paths. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 http://bugzilla.opensuse.org/show_bug.cgi?id=1194211#c3 --- Comment #3 from Martin Stenzel <m.stenzel@mail.xy-space.de> --- Created attachment 854912 --> http://bugzilla.opensuse.org/attachment.cgi?id=854912&action=edit This is the generated kernel.spec file This is the generated kernel.spec file. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 http://bugzilla.opensuse.org/show_bug.cgi?id=1194211#c4 --- Comment #4 from Martin Stenzel <m.stenzel@mail.xy-space.de> --- (In reply to John Shand from comment #1)
did you use patters in software management? there is a pattern there for kernel development. you need all installed but kernel-sources and kernel-debug.
I installed all the necessary and official tools, no third party or unofficial tools. Is there anything in particular you think of? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 http://bugzilla.opensuse.org/show_bug.cgi?id=1194211#c5 --- Comment #5 from Martin Stenzel <m.stenzel@mail.xy-space.de> --- (In reply to Takashi Iwai from comment #2)
Well, it's likely a missing hack to mimic the module path; we've already hacked Makefile depending on usrmerge, and scripts/depmod.sh looks like another one to touch.
Maybe there are a few others. I see scripts/package/mkspec has /lib/modules/* stuff, too.
Ideally, all those should be moved to another macro instead of the hard-coded paths.
Thank you! I uploaded the generated kernel.spec which does NOT contain "/usr/lib/modules/.." but the correct path "/lib/modules/..." -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194211 Andre Ramnitz <andre.ramnitz@mail.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andre.ramnitz@mail.de -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com