Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446090 - sys-apps/kmod-11-r4 installs pkg-config files into /lib(64)/pkgconfig (sys-fs/udev-196-r1 - modules are not loaded automatically)
Summary: sys-apps/kmod-11-r4 installs pkg-config files into /lib(64)/pkgconfig (sys-f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 446102 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-05 13:25 UTC by François Périchon
Modified: 2012-12-06 18:22 UTC (History)
5 users (show)

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


Attachments
udev strace log when inserting an usb flash drive (strace.log,19.22 KB, text/plain)
2012-12-05 13:37 UTC, François Périchon
Details
kmod-11-r4.ebuild.patch (kmod-11-r4.ebuild.patch,382 bytes, patch)
2012-12-05 14:38 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description François Périchon 2012-12-05 13:25:34 UTC
After upgrading to sys-fs/udev-196-r1, modules (network, wifi, usb, etc) aren't loaded anymore when needed.

Ex: Inserting an usb stick won't load usb-storage (and won't create the devices either...)

Modules are loading fine if modprobed.
Comment 1 François Périchon 2012-12-05 13:26:04 UTC
Portage 2.2.0_alpha144 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.6.8-gentoo x86_64)
=================================================================
System uname: Linux-3.6.8-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9400_@_2.40GHz-with-gentoo-2.2
Timestamp of tree: Wed, 05 Dec 2012 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo sunrise enlightenment localbarjack
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avahi berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dbus dri ffmpeg gdbm gpm gstreamer iconv java jpeg libnotify mmx modules mudflap multilib ncurses nls nptl offensive opengl openmp pam pcre perl png policykit pppd pulseaudio python readline sdl session sse sse2 ssl subversion svg tcpd theora truetype udev unicode vim-syntax xcomposite xinerama xrandr xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" NETBEANS_MODULES="apisupport enterprise groovy harness ide java mobility nb php profiler webcommon websvccommon" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 François Périchon 2012-12-05 13:37:09 UTC
Created attachment 331528 [details]
udev strace log when inserting an usb flash drive
Comment 3 François Périchon 2012-12-05 13:42:43 UTC
=================================================================
                        Package Settings
=================================================================

sys-fs/udev-196-r1 was built with the following:
USE="acl gudev hwdb (multilib) openrc -doc -introspection -keymap (-selinux) -static-libs"
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-05 14:18:49 UTC
*** Bug 446102 has been marked as a duplicate of this bug. ***
Comment 5 Markus Rathgeb 2012-12-05 14:31:59 UTC
I realized, that pkg-config did not find the libkmodpc, so the result of the configure stuff for kmod results in:

checking for KMOD... no

If I change line 119 of the ebuild to add the directory libkmod.pc is installed to PKG_CONFIG_PATH (equery files kmod states: /lib64/pkgconfig/libkmod.pc), the result changed:

checking for KMOD... yes

So, perhaps someone who is more familiar with the pkg-config ebuild stuff could fix this (for the kmod package or systemd).
Comment 6 Sean McGovern 2012-12-05 14:35:12 UTC
the 196-r1 ebuild shouldn't be subject to this, but please be aware that the kmod behaviour is changed upstream. It is now considered _optional_ and needs to be disabled/enabled at build time.
Comment 7 Markus Rathgeb 2012-12-05 14:38:14 UTC
I saw it.
But to be enabled at build time, it must be found at build time.
ATM it will be enabled if it is found.
You could add disable-kmod if you will force to not support it,
you could add enable-kmod if you will force to built with support for it (if you add --enable-kmod, the configure script will fail, if the informations for the kmod library could not be found).

IMHO:
The problem here is, that the related stuff is not found also if kmod is installed on the system.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-12-05 14:38:43 UTC
Created attachment 331542 [details, diff]
kmod-11-r4.ebuild.patch

Possible fix. After this fix was added udev/systemd should be recompiled.
Comment 9 Sean McGovern 2012-12-05 15:02:31 UTC
See here: http://cgit.freedesktop.org/systemd/systemd/commit/?id=e30431623a7d871da123cc37055ac49abf2c20ea

Looks like it *did* make it into 196-r1. Suggest adding a kmod USE flag and releasing an -r2 update for the ebuild.
Comment 10 Andreas Proteus 2012-12-05 16:36:50 UTC
(In reply to comment #8)
Patch worked for me.
Everything is back to normal.
Thank you.
Comment 11 Markus Rathgeb 2012-12-05 16:38:05 UTC
(In reply to comment #8)
Works for me, too.
Comment 12 Sean McGovern 2012-12-05 17:56:03 UTC
Closer inspection shows this to be two separate problems. The first has been fixed (where kmod was placing it's pkgconfig file) -- but the new configure behaviour to enable/disable kmod should probably be a separate ticket.
Comment 13 Uros 2012-12-06 00:50:03 UTC
(In reply to comment #8)
Sound module loading is working again. Thanks.
Comment 14 Kirill Elagin 2012-12-06 14:35:55 UTC
Just to note: as I can see this was fixed in kmod-12 ebuild simply by removing --libdir option to configure.
Comment 15 William Hubbs gentoo-dev 2012-12-06 18:22:34 UTC
I just now saw this bug, but I was working on it yesterday. :-)
Udev-196-r1 supports a kmod use flag and kmod-12 fixes the location
of the pkg-config file, so all should be working again.