Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509624 - =sys-kernel/genkernel-next-55 wants 80-drivers.rules but sys-fs/eudev[-kmod,modutils] installs 80-drivers-modprobe.rules instead
Summary: =sys-kernel/genkernel-next-55 wants 80-drivers.rules but sys-fs/eudev[-kmod,m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabio Erculiani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-05 13:29 UTC by gentoo_2014
Modified: 2014-07-07 14:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo_2014 2014-05-05 13:29:44 UTC
After upgrading to genkernel-next-55 building an initramfs fails with the error message

* ERROR: cannot copy /lib64/udev/rules.d/80-drivers.rules from udev

My version of udev is sys-fs/eudev.

Reproducible: Always

Steps to Reproduce:
1. Install genkernel-next-55 and sys-fs/eudev
2. Issue genkernel initramfs
3.
Actual Results:  
* Gentoo Linux Genkernel; Version 55
* Running with options: initramfs
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 3.12.13-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-3.12.13-gentoo
* busybox: >> Using cache
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending udev cpio data...
* Gentoo Linux Genkernel; Version 55
* Running with options: initramfs
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: cannot copy /lib64/udev/rules.d/80-drivers.rules from udev
* 
* -- Grepping log... --
* 
* 
* -- End log... --
* 
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* 
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
* 


Expected Results:  
Something like:

* Gentoo Linux Genkernel; Version 3.4.49
* Running with options: initramfs

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 3.12.13-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-3.12.13-gentoo
* busybox: >> Removing stale cache...
* busybox: >> Applying patches...
*           - 1.18.1-openvt.diff
*           - busybox-1.20.1-mdstart.patch
*           - busybox-1.20.2-bunzip2.patch
*           - busybox-1.20.2-glibc-sys-resource.patch
*           - busybox-1.20.2-modprobe.patch
*           - busybox-1.7.4-signal-hack.patch
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Copying keymaps
*         >> Appending busybox cpio data...
*         >> Appending modules cpio data...
*         >> Appending blkid cpio data...
*         >> Appending modprobed cpio data...
*         >> Appending linker cpio data...
*         >> Finalizing cpio...
*         >> Compressing cpio data (.xz)...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
* 
* Make sure you have the latest ~arch genkernel before reporting bugs.


I am using sys-fs/eudev. It has the file 80-drivers-modprobe.rules but not 80-drivers.rules. I suspect that might be the problem.

Output of emerge --info:

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-AMD_Athlon-tm-_II_X4_610e_Processor-with-gentoo-2.2
KiB Mem:     1609276 total,   1266036 free
KiB Swap:    2047996 total,   2047996 free
Timestamp of tree: Sun, 04 May 2014 21:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo stuff betagarden zugaina sage-on-gentoo dev-zero seden java
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --newuse --deep --keep-going=y --with-bdeps=y --autounmask-write=y --autounmask-unrestricted-atoms=y"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/stuff /var/lib/layman/betagarden /var/lib/layman/zugaina /var/lib/layman/sage-on-gentoo /var/lib/layman/dev-zero /var/lib/layman/seden /var/lib/layman/java"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gstreamer iconv ipv6 mmx modules multilib ncurses nls nptl opengl openmp pam pcre pulseaudio readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" 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" 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 author" 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 ublox 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_US en_GB de de_DE fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vga radeon nv nouveau virtualbox fglrx nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-05-09 15:23:30 UTC
The file has been around since 2012-04-04 up to this day at upstream udev wrt:
http://cgit.freedesktop.org/systemd/systemd/log/rules/80-drivers.rules

Why, and how, does eudev not install it? Is it renamed for some reason?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-05-09 15:28:56 UTC
https://github.com/gentoo/eudev/blob/master/rules/Makefile.am has:

if HAVE_MODULES
if HAVE_LIBKMOD
dist_udevrules_DATA += \
80-drivers.rules
else
dist_udevrules_DATA += \
80-drivers-modprobe.rules
endif
endif

So, with USE="-kmod modutils" the file gets renamed to 80-drivers-modprobe.rules, and this is sys-fs/eudev specific problem, no other implementation has file called '80-drivers-modprobe.rules'
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-06-22 20:20:37 UTC
ping?

maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to genkernel-next ebuild?
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2014-06-23 13:40:20 UTC
(In reply to Samuli Suominen from comment #3)
> ping?
> 
> maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> genkernel-next ebuild?


That seems valid to me, if genkernel-next doesn't want to grab 80-drivers*.rules ...
Comment 5 Anthony Basile gentoo-dev 2014-06-27 20:40:56 UTC
(In reply to Ian Stakenvicius from comment #4)
> (In reply to Samuli Suominen from comment #3)
> > ping?
> > 
> > maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> > genkernel-next ebuild?
> 
> 
> That seems valid to me, if genkernel-next doesn't want to grab
> 80-drivers*.rules ...

We've promoted kmod to +kmod in the USE flags for 1.8 and 9999 as a small step in this direction.  You shouldn't hit the issue if you use the defaults.
Comment 6 Anthony Basile gentoo-dev 2014-07-06 12:45:19 UTC
(In reply to Ian Stakenvicius from comment #4)
> (In reply to Samuli Suominen from comment #3)
> > ping?
> > 
> > maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> > genkernel-next ebuild?
> 
> 
> That seems valid to me, if genkernel-next doesn't want to grab
> 80-drivers*.rules ...

We're going to keep the current kmod/modutils structure upstream, so please just add that blocker to genkernel-next and then close this bug.
Comment 7 Fabio Erculiani (RETIRED) gentoo-dev 2014-07-06 12:47:35 UTC
I am not interested in supporting eudev in genkernel-next, but patches are always welcome.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2014-07-06 12:59:43 UTC
(In reply to Ian Stakenvicius from comment #4)
> (In reply to Samuli Suominen from comment #3)
> > ping?
> > 
> > maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> > genkernel-next ebuild?
> 
> 
> That seems valid to me, if genkernel-next doesn't want to grab
> 80-drivers*.rules ...

(In reply to Fabio Erculiani from comment #7)
> I am not interested in supporting eudev in genkernel-next, but patches are
> always welcome.

OK then

+  06 Jul 2014; Samuli Suominen <ssuominen@gentoo.org> genkernel-next-55.ebuild,
+  genkernel-next-58.ebuild:
+  Block sys-fs/eudev with USE="-kmod modutils" wrt #509624
Comment 9 Anthony Basile gentoo-dev 2014-07-07 13:03:51 UTC
(In reply to Samuli Suominen from comment #8)
> (In reply to Ian Stakenvicius from comment #4)
> > (In reply to Samuli Suominen from comment #3)
> > > ping?
> > > 
> > > maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> > > genkernel-next ebuild?
> > 
> > 
> > That seems valid to me, if genkernel-next doesn't want to grab
> > 80-drivers*.rules ...
> 
> (In reply to Fabio Erculiani from comment #7)
> > I am not interested in supporting eudev in genkernel-next, but patches are
> > always welcome.
> 
> OK then
> 
> +  06 Jul 2014; Samuli Suominen <ssuominen@gentoo.org>
> genkernel-next-55.ebuild,
> +  genkernel-next-58.ebuild:
> +  Block sys-fs/eudev with USE="-kmod modutils" wrt #509624

To be clear, its not that genkernel-next doesn't play nice with eudev.  Its just that you have to have +kmod and -modutils.  This should be fine, so we keep the backwards compatibility.
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-07 14:32:51 UTC
(In reply to Anthony Basile from comment #9)
> (In reply to Samuli Suominen from comment #8)
> > (In reply to Ian Stakenvicius from comment #4)
> > > (In reply to Samuli Suominen from comment #3)
> > > > ping?
> > > > 
> > > > maybe it's time to add !sys-fs/eudev[-kmod,modutils] blocker to
> > > > genkernel-next ebuild?
> > > 
> > > 
> > > That seems valid to me, if genkernel-next doesn't want to grab
> > > 80-drivers*.rules ...
> > 
> > (In reply to Fabio Erculiani from comment #7)
> > > I am not interested in supporting eudev in genkernel-next, but patches are
> > > always welcome.
> > 
> > OK then
> > 
> > +  06 Jul 2014; Samuli Suominen <ssuominen@gentoo.org>
> > genkernel-next-55.ebuild,
> > +  genkernel-next-58.ebuild:
> > +  Block sys-fs/eudev with USE="-kmod modutils" wrt #509624
> 
> To be clear, its not that genkernel-next doesn't play nice with eudev.  Its
> just that you have to have +kmod and -modutils.  This should be fine, so we
> keep the backwards compatibility.

Correction, that's +kmod,+modutils  -- if USE="-modutils", then there is no module support at all in eudev, regardless of whether USE="kmod" is set or not.

At any rate, the block added is correct.  Thanks for fixing!