Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493630 - sys-apps/kmod-15: /bin/kmod has internal copy of libkmod
Summary: sys-apps/kmod-15: /bin/kmod has internal copy of libkmod
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL: http://thread.gmane.org/gmane.linux.k...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 08:32 UTC by Nikoli
Modified: 2015-01-17 17:54 UTC (History)
2 users (show)

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


Attachments
kmod ebuild using autotools-utils and more (kmod-19-autotool.ebuild.patch,4.74 KB, patch)
2015-01-17 17:53 UTC, Jimmy.Jazz
Details | Diff
kmod patch that handle internal copy of libkmod issue (kmod-19-dynamic-kmod.patch,308 bytes, patch)
2015-01-17 17:54 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2013-12-08 08:32:19 UTC
After update from kmod-13-r1 to kmod-15:
-87976  /bin/kmod
-949827ebb1500da63b91d1a4fc1093a9  /bin/kmod
+157664 /bin/kmod
+0e5dd8e8ea8cdbcf9acf58b4c002fc8a  /bin/kmod
 /bin/kmod: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.39, stripped
 libc.so.6
-libkmod.so.2

From /usr/share/doc/kmod-15/NEWS.bz2:
kmod 15
=======
...
- New features:
...
        - kmod binary statically links to libkmod - if distro is only interested
          in the kmod tool (for example in an initrd) it can refrain from
          installing the library

dracut and genkernel-next add udevd to initramfs.img, so we have libkmod in it anyway. Linking to libkmod statically is useless and only increases size of initramfs and backups.
Comment 1 Mike Gilbert gentoo-dev 2013-12-08 20:51:18 UTC
This seems like an issue which should be discussed/addressed upstream. Otherwise, we will end up forking the build system, which sounds like a PITA.
Comment 2 SpanKY gentoo-dev 2013-12-09 01:50:31 UTC
oh, the irony.  it hurts so bad.
Comment 3 SpanKY gentoo-dev 2013-12-09 01:55:35 UTC
should be all set now in the tree; thanks for the report!

Commit message: Do not statically link libkmod
http://sources.gentoo.org/sys-apps/kmod/files/kmod-15-dynamic-kmod.patch?rev=1.1
http://sources.gentoo.org/sys-apps/kmod/kmod-15-r1.ebuild?rev=1.1
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-02-04 06:09:06 UTC
(In reply to SpanKY from comment #3)
> should be all set now in the tree; thanks for the report!

the patch is broken re: bug 494806
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-02-04 06:10:45 UTC
and upstream rejected the patch too as incomplete:
http://thread.gmane.org/gmane.linux.kernel.modules/1206
Comment 6 Jimmy.Jazz 2015-01-17 17:53:36 UTC
Created attachment 394188 [details, diff]
kmod ebuild using autotools-utils and more
Comment 7 Jimmy.Jazz 2015-01-17 17:54:44 UTC
Created attachment 394190 [details, diff]
kmod patch that handle internal copy of libkmod issue