Bug 305005

Summary: missing binutils in default pattern break KMPs
Product: [openSUSE] openSUSE 10.3 Reporter: Stefan Dirsch <sndirsch>
Component: PatternsAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: Andreas Jaeger <aj>
Severity: Critical    
Priority: P5 - None CC: aj, coolo, dmueller, froh, joe, mmarek
Version: Beta 2Keywords: Built
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Dirsch 2007-08-27 20:10:13 UTC
Due to missing binutils in default patterns, the installation/update of KMPs/kernels no longer work. /usr/lib/module-init-tools/weak-modules used in %post of kernel/KMPs to make sure that kABI compatible kernel modules are symlinked, needs nm of binutils.
Comment 1 Stephan Binner 2007-08-27 20:39:54 UTC
Why do the KMP/kernel packages don't require it if the need it!?
Comment 2 Stefan Dirsch 2007-08-27 21:19:01 UTC
module-init-tools should require binutils. 
/usr/lib/module-init-tools/weak-modules is part of module-init-tools.
Comment 3 Andreas Jaeger 2007-08-28 07:06:13 UTC
Might be related to #304708 (or even duplicate).

Christoph, this means one more package for the media unless binutils is already on  the CDs.
Comment 4 Stefan Dirsch 2007-08-28 08:01:31 UTC
*** Bug 304708 has been marked as a duplicate of this bug. ***
Comment 5 Michal Marek 2007-08-28 08:02:46 UTC
Steffan: thanks for the detailed report. Fixed by adding Requires: binutils.
Comment 6 Stefan Dirsch 2007-08-28 08:03:04 UTC
It's a duplicate. But since Bug #304708 doesn't explain, why this is a problem, I marked Bug #304708 as duplicate of this one.
Comment 7 Michal Marek 2007-08-28 08:04:09 UTC
... and sorry for the double 'f' :)
Comment 10 Stephan Kulow 2007-09-06 12:09:16 UTC
Is there no other way to get the kabi of the .ko then using another 3.x MB?
Comment 12 Stephan Kulow 2007-09-06 12:38:14 UTC
... other way than to use nm
Comment 13 Dirk Mueller 2007-09-06 12:53:27 UTC
nm is linked against libbfd, which is the biggest part of the whole rpm. 

as far as I can see is it tries to extract the kabi version the module was compiled against. 

can't this be queried from modinfo or added there? I don't quite understand what the whole thing is good for, so I don't have a good solution to propose. 
Comment 14 Stefan Dirsch 2007-09-06 13:00:13 UTC
I tried to explain it in my first comment. weak-modules makes sure that kABI compatible kernel modules of kmp packages are symlinked, so that they are still found by the update kernel. IIRC weak-modules has been written by agruen and is an important part of our KMP mechanism. I hope you won't kill it for openSUSE just to save some space on the CDs. Adding Susanne.
Comment 15 Stephan Kulow 2007-09-06 13:14:20 UTC
Surely not. It wouldn't be the first place where nm is used because it is so short in name :)
Comment 16 Andreas Gruenbacher 2007-09-06 17:10:30 UTC
Comment 10: It wouldn't be all that hard to parse the information out of the .ko files directly in module-init-tools. I'm rather unconvinced that the space savings justify the half day or so of development + testing though. If anyone considers this a significant enough problem, please pick it up with Michal. (For 10.3 it seems a bit late to me now anyway.)