UDEV (eudev) update

1,554 views
Skip to first unread message

Oleg Vinichenko

unread,
Jan 24, 2014, 12:05:08 AM1/24/14
to Funtoo
Funtoo restricting udev update for last ~2.5 years. It caused various issues with certain packages, numerous masks, package forks and version restrictions. Funtoo needs to update...to eudev, a special flavor of udev package by Gentoo. Why eudev? First of all, ebuild is better, eudev build system looks good and it's very latest udev code, predictable networking is disabled by default (using old fashioned, wlan*, eth*, ath*). Update will solve:
1. udev fixes itself
2. package restrictions, masked due newer udev requirement
3. hwdb, hardware vendors support, which is not working correct with old udev
4. lvm2 udev USE flag build issue
5. much better desktop support

Ebuilds added to tree. Tested locally, works fine. Following steps required to test:

emerge --sync

add to /etc/portage/package.unmask

>=virtual/udev-208
>=sys-fs/eudev-1.4
>=sys-apps/hwids-20140103

remove udev from world file:

emerge --deselect udev

Update eudev and friends:

emerge -u virtual/udev hwids

Reboot and report all possible issues. Main support is http://bugs.funtoo.org/browse/FL-986 , here and on IRC #funtoo.
Best regards, Oleg.

Oleg Vinichenko

unread,
Jan 24, 2014, 4:34:51 AM1/24/14
to Funtoo
sys-fs/lvm2 unmask and update required (if installed)
adding

>=sys-fs/lvm2-2.02.103
to /etc/portage/package.unmask

and emerge lvm2 should be sufficient for complete update

Raphael Bastos

unread,
Jan 24, 2014, 5:40:16 AM1/24/14
to funto...@googlegroups.com
Oleg,

How do I upgrade from mdev? I've migrated to mdev a few months. 
Congratulations for the excellent work!


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014/1/24 Oleg Vinichenko <ol...@funtoo.org>
--
--
To manage your subscription, visit this group at
http://groups.google.com/group/funtoo-dev?hl=en
---
Also be sure to check out:
Funtoo Forums: http://forums.funtoo.org
Planet Larry: http://larrythecow.org
 
---
You received this message because you are subscribed to the Google Groups "Funtoo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to funtoo-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Oleg Vinichenko

unread,
Jan 24, 2014, 6:59:09 AM1/24/14
to Funtoo
your system is not affected then :) but if it causing any side-effects, please, report.

Raphael Bastos

unread,
Jan 24, 2014, 10:20:50 AM1/24/14
to funto...@googlegroups.com
Thanks Oleg. :D

Guy Fontaine

unread,
Jan 24, 2014, 12:48:06 PM1/24/14
to Funtoo
I applied the procedure to a testing environment.

It'a a basic system with X and twm. Kernel is 3.13.0. No problem in rebooting into new environment.

Nota Bene : this environment will be used to migrate to systemd.


2014/1/24 Raphael Bastos <raphae...@hackstore.com.br>

Guy Fontaine

unread,
Jan 24, 2014, 7:46:07 PM1/24/14
to funto...@googlegroups.com
I can't fully migrate to eudev-1.4 because of  @preserved-rebuild :

!!! existing preserved libs:
>>> package: sys-fs/lvm2-2.02.95-r2
 *  - /lib64/libdevmapper.so.1.02
 *      used by /opt/VirtualBox/VBoxVolInfo (app-emulation/virtualbox-bin-4.3.6)
 *      used by /usr/lib64/libcryptsetup.so.4.5.0 (sys-fs/cryptsetup-1.6.3)
>>> package: sys-fs/udev-171-r10
 *  - /lib64/libudev.so.0
 *  - /lib64/libudev.so.0.11.5
 *      used by /bin/findmnt (sys-apps/util-linux-2.23.2-r1)
 *      used by /bin/lsblk (sys-apps/util-linux-2.23.2-r1)
 *      used by /lib64/dhcpcd/dev/udev.so (net-misc/dhcpcd-6.2.0-r1)
 *      used by 13 other files

Also /etc/init.d/udev --nodeps restart doesn't work :

* Starting udev ...
 * start-stop-daemon: /sbin/udevd is already running
 * Failed to start udev

Guy Fontaine

unread,
Jan 24, 2014, 8:29:10 PM1/24/14
to funto...@googlegroups.com
About my previous message... that is the situation in my Funtoo MATE environment. I restored previous environment because I use it on an everyday basis.


Le vendredi 24 janvier 2014 00:05:08 UTC-5, Oleg a écrit :

Oleg Vinichenko

unread,
Jan 25, 2014, 12:06:36 AM1/25/14
to Funtoo
it is required to run revdep-rebuild and emerge @preserved-rebuild, because packages need to rebuild against newer libudev, this is reflected in above message. You don't need to run /etc/init.d/udev --nodeps restart, you need to reboot. Will remove unnecessary step from ebuild.


--

Guy Fontaine

unread,
Jan 25, 2014, 9:00:30 AM1/25/14
to Funtoo
@preserved-rebuild doesn't work because google-chrome-beta needed and this is hard masked because split into three parts by Gentoo.

I can't install eudev-1.4 being blocked by lvm2 required by VirtualBox. 

Those are reasons why I'm back to udev-171 which works fine anyway. I'll move to systemd instead.


2014/1/25 Oleg Vinichenko <ol...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 9:11:34 AM1/25/14
to Funtoo
it is said to update lvm2 along with update, i don't understand why you skipping it?
 http://forums.funtoo.org/viewtopic.php?id=2415

Oleg Vinichenko

unread,
Jan 25, 2014, 9:12:02 AM1/25/14
to Funtoo
systemd is out of this announcement scope

Oleg Vinichenko

unread,
Jan 25, 2014, 9:14:24 AM1/25/14
to Funtoo
and there is no support reports in main page http://bugs.funtoo.org/browse/FL-986

Guy Fontaine

unread,
Jan 25, 2014, 9:42:21 AM1/25/14
to Funtoo
Oelg, you wrote that it works fine. What is your environment (desktop, Web browser, virtualization tool) ?

My desktop is MATE.

Web browser is www-client/google-chrome-32.0.1700.72_beta1:beta

Virtualization : app-emulation/virtualbox-bin-4.3.6:0


2014/1/25 Oleg Vinichenko <ol...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 9:43:44 AM1/25/14
to Funtoo
what doesn't work on your box

Martin Scholz

unread,
Jan 25, 2014, 11:27:36 AM1/25/14
to funto...@googlegroups.com
oleg, I think for him it is the block that is not working, as there is a block, so Guy, a simple unmask will do the trick for you
Martin 'golodhrim' Scholz
Funtoo Core Community Manager

Guy Fontaine

unread,
Jan 25, 2014, 12:04:41 PM1/25/14
to Funtoo
How can I go through the blocking issue ?

# emerge --sync
>>> Starting git pull...
remote: Counting objects: 128413, done.
remote: Compressing objects: 100% (32022/32022), done.
remote: Total 95032 (delta 91379), reused 66173 (delta 62991)
Receiving objects: 100% (95032/95032), 16.52 MiB | 1.09 MiB/s, done.
Resolving deltas: 100% (91379/91379), completed with 24854 local objects.
   8f61e28..dbbe4eb  funtoo.org -> origin/funtoo.org
Updating 8f61e28..dbbe4eb
Checking out files: 100% (38873/38873), done.
Fast-forward
>>> Git pull in /usr/portage successful

Performing Global Updates:
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/usr/portage/profiles/updates/1Q-2014..

======================================================================================================

Packages unmasking

# echo ">=virtual/udev-208" >> /etc/portage/package.unmask/udev
# echo ">=sys-fs/eudev-1.4" >> /etc/portage/package.unmask/eudev
# echo ">=sys-apps/hwids-20140103" >> /etc/portage/package.unmask/hwids

======================================================================================================

Removing udev from world set

# emerge --deselect udev
>>> Removing sys-fs/udev from "world" favorites file...

======================================================================================================

Updating (These are the issues I encounter)

# emerge --ask --update virtual/udev hwids

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    #] sys-fs/eudev-1.4  USE="gudev hwdb introspection keymap kmod modutils rule-generator static-libs -doc (-selinux) {-test}" 
[ebuild     U #] virtual/udev-208 [171] USE="keymap* kmod%* static-libs*" 
[ebuild  N     ] sys-fs/udev-init-scripts-26 
[ebuild     U #] sys-apps/hwids-20140103 [20130131]
[uninstall     ] sys-fs/udev-171-r10 
[blocks b      ] <sys-fs/udev-186 ("<sys-fs/udev-186" is blocking sys-fs/udev-init-scripts-26)
[blocks b      ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-1.4)
[blocks B      ] <sys-fs/lvm2-2.02.97 ("<sys-fs/lvm2-2.02.97" is blocking sys-fs/eudev-1.4)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-fs/eudev-1.4::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-fs/eudev-1.3[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,modutils,gudev?,introspection?,selinux?,static-libs?] (>=sys-fs/eudev-1.3[abi_x86_64(-),modutils,gudev,introspection,static-libs]) required by (virtual/udev-208::gentoo, ebuild scheduled for merge)

  (sys-fs/lvm2-2.02.95-r2::gentoo, installed) pulled in by
    sys-fs/lvm2 required by (sys-fs/cryptsetup-1.6.3::gentoo, installed)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):



!!! The following installed packages are masked:
- www-client/google-chrome-32.0.1700.72_beta1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask/gentoo:
# Mike Gilbert <flo...@gentoo.org> (19 Jan 2014)
# To prevent accidental switching of release channels (bug 498306),
# google-chrome has been split into 3 packages:
#
# www-client/google-chrome
# www-client/google-chrome-beta
# www-client/google-chrome-unstable
#
# The stable channel remains as www-client/google-chrome, but has been
# switched to SLOT="0".
#
# Please unmerge your currently installed version and remerge one of the new
# packages.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.



2014/1/25 Martin Scholz <golo...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 12:05:59 PM1/25/14
to Funtoo

Raphael Bastos

unread,
Jan 25, 2014, 12:08:28 PM1/25/14
to funto...@googlegroups.com
Guy,

echo '>=sys-fs/lvm2-2.02.103' >> /etc/portage/package.unmask


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-25 Oleg Vinichenko <ol...@funtoo.org>

Guy Fontaine

unread,
Jan 25, 2014, 12:37:05 PM1/25/14
to Funtoo
Unblocking lmv2

 # echo '>=sys-fs/lvm2-2.02.103' >> /etc/portage/package.unmask/lvm2
 
 Same result :
 
# emerge --ask --update virtual/udev hwids
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    #] sys-fs/eudev-1.4  USE="gudev hwdb introspection keymap kmod modutils rule-generator static-libs -doc (-selinux) {-test}" 
[ebuild     U #] virtual/udev-208 [171] USE="keymap* kmod%* static-libs*" 
[ebuild     U #] sys-apps/hwids-20140103 [20130131]
[ebuild  N     ] sys-fs/udev-init-scripts-26 
[uninstall     ] sys-fs/udev-171-r10 
Someone else told me to unmerge lvm2 without manually emerging the unmasked one. 

Funtoo-MATE ~ # emerge --ask --unmerge sys-fs/lvm2
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

>>> These are the packages that would be unmerged:

 sys-fs/lvm2
    selected: 2.02.95-r2 
   protected: none 
     omitted: none 

All selected packages: sys-fs/lvm2-2.02.95-r2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] 
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 3 2 1 
>>> Unmerging (1 of 1) sys-fs/lvm2-2.02.95-r2...

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: sys-fs/lvm2-2.02.95-r2
 *  - /lib64/libdevmapper.so.1.02
 *      used by /opt/VirtualBox/VBoxVolInfo (app-emulation/virtualbox-bin-4.3.6)
 *      used by /usr/lib64/libcryptsetup.so.4.5.0 (sys-fs/cryptsetup-1.6.3)
Use emerge @preserved-rebuild to rebuild packages using these libraries

I don't run the @preserved-rebuild for now. Retrying to emerge eudev-1.4

 # emerge --ask --update virtual/udev hwids

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    #] sys-fs/eudev-1.4  USE="gudev hwdb introspection keymap kmod modutils rule-generator static-libs -doc (-selinux) {-test}" 
[ebuild     U #] virtual/udev-208 [171] USE="keymap* kmod%* static-libs*" 
[ebuild     U #] sys-apps/hwids-20140103 [20130131]
[ebuild  N     ] sys-fs/udev-init-scripts-26 
[uninstall     ] sys-fs/udev-171-r10 
[blocks b      ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-1.4)
[blocks b      ] <sys-fs/udev-186 ("<sys-fs/udev-186" is blocking sys-fs/udev-init-scripts-26)

!!! The following installed packages are masked:
- www-client/google-chrome-32.0.1700.72_beta1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask/gentoo:
# Mike Gilbert <flo...@gentoo.org> (19 Jan 2014)
# To prevent accidental switching of release channels (bug 498306),
# google-chrome has been split into 3 packages:
#
# www-client/google-chrome
# www-client/google-chrome-beta
# www-client/google-chrome-unstable
#
# The stable channel remains as www-client/google-chrome, but has been
# switched to SLOT="0".
#
# Please unmerge your currently installed version and remerge one of the new
# packages.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-fs/eudev-1.4
>>> Emerging (1 of 4) sys-fs/eudev-1.4
>>> Installing (1 of 4) sys-fs/eudev-1.4
>>> Emerging (2 of 4) virtual/udev-208
>>> Installing (2 of 4) virtual/udev-208
>>> Recording virtual/udev in "world" favorites file...
>>> Emerging (3 of 4) sys-apps/hwids-20140103
>>> Installing (3 of 4) sys-apps/hwids-20140103
>>> Recording sys-apps/hwids in "world" favorites file...
>>> Emerging (4 of 4) sys-fs/udev-init-scripts-26
>>> Installing (4 of 4) sys-fs/udev-init-scripts-26
>>> Uninstalling sys-fs/udev-171-r10
>>> Jobs: 4 of 4 complete                           Load avg: 1.29, 0.91, 0.50

 * Messages for package sys-fs/eudev-1.4:

 * Auto-adding 'udev-postmount' service to your default runlevel
 * 
 * For more information on eudev on Gentoo, writing udev rules, and
 * fixing known issues visit:
 * 

 * Messages for package sys-fs/udev-init-scripts-26:

 * The udev-postmount service has been removed because the reasons for
 * its existance have been removed upstream.
 * Please remove it from your runlevels.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: sys-fs/lvm2-2.02.95-r2
 *  - /lib64/libdevmapper.so.1.02
 *      used by /opt/VirtualBox/VBoxVolInfo (app-emulation/virtualbox-bin-4.3.6)
 *      used by /usr/lib64/libcryptsetup.so.4.5.0 (sys-fs/cryptsetup-1.6.3)
>>> package: sys-fs/udev-171-r10
 *  - /lib64/libudev.so.0
 *  - /lib64/libudev.so.0.11.5
 *      used by /bin/findmnt (sys-apps/util-linux-2.23.2-r1)
 *      used by /bin/lsblk (sys-apps/util-linux-2.23.2-r1)
 *      used by /lib64/dhcpcd/dev/udev.so (net-misc/dhcpcd-6.2.0)
 *      used by 13 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 4 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

Now it is ok.

============================================================================================

Running dispatch-conf

# dispatch-conf

--- /etc/conf.d/udev    2013-10-24 15:21:54.000000000 -0400
+++ /etc/conf.d/._cfg0000_udev  2014-01-25 12:23:57.506325067 -0500
@@ -1,25 +1,47 @@
 # /etc/conf.d/udev: config file for udev
 
-# Coldplug should be enabled for proper hardware detection and
-# module-autoloading. Normally, you will want this enabled. If
-# you need to disable it temporarily, you can either do so
-# below or use the "nocoldplug" kernel boot option.
-
-coldplug="yes"
-
-# Persistent_net will ensure that your network interface names
-# don't change. However, it can be disabled if you are planning
-# to change your hardware. This will prevent your new hardware
-# from showing up as eth1, eth2, etc. Some people prefer it
-# disabled. Recommended enabled unless you prefer otherwise.
-
-persistent_net="yes"
-
-# If you set the device_tarball option to yes, then 
-# prior to system shutdown, the state of /dev will be backed up
-# to an archive and restored when your system boots. This is
-# useful if you need to manually create device nodes and don't
-# want to keep repeating yourself. Disabled by default.
-
-device_tarball="no"
+# udev can trigger coldplug events which cause services to start and
+# kernel modules to be loaded.
+# Services are deferred to start in the boot runlevel.
+# Set rc_coldplug="NO" if you don't want this.
+# If you want module coldplugging but not coldplugging of services then you
+# can disable service coldplugging in baselayout/openrc config files.
+# The setting is named different in different versions.
+# in /etc/rc.conf: rc_hotplug="!*" or
+# in /etc/conf.d/rc: rc_plug_services="!*"
+#rc_coldplug="YES"
+
+# We can create a /dev/root symbolic link to point to the root device in
+# some situations. This is on by default because some software relies on
+# it,. However, this software should be fixed to not do this.
+# For more information, see
+# If you are not using any affected software, you do not need this, so
+# feel free to turn it off.
+#rc_dev_root_symlink="YES"
+
+# Expert options:
+
+# Timeout in seconds to wait for processing of uevents at boot.
+# There should be no need to change this.
+#udev_settle_timeout="60"
+
+# Add extra command line options to udevd, use with care
+# udevd --help for possible values
+#udev_opts=""
+
+# Run udevd --debug and write output to /run/udevdebug.log
+# Should not be kept on as it fills diskspace slowly
+#udev_debug="YES"
+
+# Run udevadmin monitor to get a log of all events
+# in /run/udevmonitor.log
+#udev_monitor="YES"
+
+# Keep udevmonitor running after populating /dev.
+#udev_monitor_keep_running="no"
+
+# Set cmdline options for udevmonitor.
+# could be some of --env --kernel --udev
+#udev_monitor_opts="--env"
 

>> (1 of 4) -- /etc/conf.d/udev
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:  

--- /etc/init.d/udev-mount      2013-10-24 15:21:54.000000000 -0400
+++ /etc/init.d/._cfg0000_udev-mount    2014-01-25 12:23:57.522325066 -0500
@@ -7,7 +7,7 @@
 depend()
 {
        provide dev-mount
-       keyword -vserver -lxc -openvz
+       keyword -vserver -lxc
 }
 
 mount_dev_directory()

>> (2 of 4) -- /etc/init.d/udev-mount
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:  









--- /etc/init.d/udev-postmount  2013-10-24 15:21:54.000000000 -0400
+++ /etc/init.d/._cfg0000_udev-postmount        2014-01-25 12:22:43.278328988 -0500
@@ -1,27 +1,52 @@
 #!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/udev-postmount-130-r2.initd,v 1.1 2008/10/28 21:59:05 zzam Exp $
 
-depend() {
-       keyword -openvz -vserver -lxc
-       need udev-mount localmount
+depend()
+{
+       need localmount
+       keyword -vserver -lxc -openvz
 }
 
-start() {
-       # check if this system uses udev
-       [ -d /dev/.udev/ ] || return 0
+dir_writeable()
+{
+        touch "$1"/.test.$$ 2>/dev/null && rm "$1"/.test.$$
+}
+
+# store persistent-rules that got created while booting
+# when / was still read-only
+store_persistent_rules()
+{
+       # create /etc/udev/rules.d if it does not exist and /etc/udev is writable
+       [ -d /etc/udev/rules.d ] || \
+               dir_writeable /etc/udev && \
+               mkdir -p /etc/udev/rules.d
+
+       # only continue if rules-directory is writable
+       dir_writeable /etc/udev/rules.d || return 0
+
+       local file dest
+       for file in /run/udev/tmp-rules--*; do
+               dest=${file##*tmp-rules--}
+               [ "$dest" = '*' ] && break
+               type=${dest##70-persistent-}
+               type=${type%%.rules}
+               ebegin "Saving udev persistent ${type} rules to /etc/udev/rules.d"
+               cat "$file" >> /etc/udev/rules.d/"$dest" && rm -f "$file"
+               eend $? "Failed moving persistent rules!"
+       done
+}
 
-       ebegin "udev: storing persistent rules"
+start()
+{
+       # check if this system uses udev
+       [ -d /run/udev ] || return 0
 
        # store persistent-rules that got created while booting
        # when / was still read-only
-       /lib/udev/move_tmp_persistent_rules.sh
-       eend $?
+       store_persistent_rules
 }
 
-stop() {
-       :
+stop()
+{
+       return 0
 }
-
-# vim:ts=4

>> (3 of 4) -- /etc/init.d/udev-postmount
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:  

--- /etc/udev/udev.conf 2013-10-24 15:21:54.000000000 -0400
+++ /etc/udev/._cfg0000_udev.conf       2014-01-25 12:22:40.935329111 -0500
@@ -1,5 +1,3 @@
-# The initial syslog(3) priority: "err", "info", "debug" or its
-# numerical equivalent. For runtime debugging, the daemons internal
-# state can be changed with: "udevadm control --log-priority=<value>".
-udev_log="err"
-# If you need to change mount-options, do it in /etc/fstab
+# see udev(7) for details
+
+#udev_log="info"

>> (4 of 4) -- /etc/udev/udev.conf
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:
   
Answered u to all requests

=============================================================================================

Running @preserved-rebuild

# emerge --ask @preserved-rebuild

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "www-client/google-chrome:beta".
(dependency required by "@preserved-rebuild" [argument])

Package is in my /etc/portage/package.unmask folder but not found.


2014/1/25 Raphael Bastos <raphae...@hackstore.com.br>

Adam Smith

unread,
Jan 25, 2014, 12:50:50 PM1/25/14
to funto...@googlegroups.com
These are the steps I took to work around this block

# USE="-static" emerge -v1 lvm2
# emerge -u virtual/udev hwids

Oleg Vinichenko

unread,
Jan 25, 2014, 12:52:32 PM1/25/14
to Funtoo
that's not correct, simple unmask required and it worked for Guy

Guy Fontaine

unread,
Jan 25, 2014, 1:00:27 PM1/25/14
to Funtoo
I'm currently working on issue with google-chrome.... @preserved-rebuild running now. Back with solution when process over.


2014/1/25 Oleg Vinichenko <ol...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 1:03:08 PM1/25/14
to Funtoo

this is not issue, this is requirement to rebuild packages against newer libudev version

Guy Fontaine

unread,
Jan 25, 2014, 1:08:58 PM1/25/14
to Funtoo
Oleg... I had to unmerge my installed version of beta google-chrome, because blocking @preserved-rebuild.

When 14 packages from @preserved-rebuild are rebuilt, I'll re-emerge google-chrome.


2014/1/25 Oleg Vinichenko <ol...@funtoo.org>

Jean-Francis Roy

unread,
Jan 25, 2014, 1:13:45 PM1/25/14
to funto...@googlegroups.com
Guy, google-chrome is a separate issue and has nothing to do with udev/eudev switch. You should fix existing issues on your system before attempting a switch like that, as you are accumulating problems :-) hehe

Guy Fontaine

unread,
Jan 25, 2014, 1:29:55 PM1/25/14
to Funtoo
JF... I know it is not directly related to eudev. I would have met with same issue just trying to update my system if @preserved-rebuild had have to be run. :-) 


2014/1/25 Jean-Francis Roy <jeanf...@funtoo.org>

Guy Fontaine

unread,
Jan 25, 2014, 1:54:52 PM1/25/14
to Funtoo
google-chrome issue resolved.... Not related to eudev but might happen if you haven't yet update google-chrome-beta.

Running @preserved-rebuild

# emerge --ask @preserved-rebuild

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "www-client/google-chrome:beta".
(dependency required by "@preserved-rebuild" [argument])


Unmerge google-chrome

# emerge --ask --unmerge google-chrome

Rerun @preserved-rebuild

# emerge --ask @preserved-rebuild

Emerge new google-chrome-beta

# emerge google-chrome-beta

Everything seems ok.

Time to reboot I think.


2014-01-25 Guy Fontaine <aram...@gmail.com>

Raphael Bastos

unread,
Jan 25, 2014, 1:59:10 PM1/25/14
to funto...@googlegroups.com
Oleg,

After unmerge sys-fs/lvm2-2.02.97 eudev and sys-fs/lvm2-2.02.103 compile fine in my system.
I had already migrated udev to mdev previously. After compile eudev, my openvpn stop working. File /dev/tun not created after reboot. :(



Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-25 Jean-Francis Roy <jeanf...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 2:04:47 PM1/25/14
to Funtoo
why do you messing with mdev/eudev? you have to use either one, and if you switched to eudev, you need to disable mdev from runlevels

Guy Fontaine

unread,
Jan 25, 2014, 2:20:39 PM1/25/14
to Funtoo
System rebooted... No third encounter for now :-P


2014-01-25 Oleg Vinichenko <ol...@funtoo.org>

Raphael Bastos

unread,
Jan 25, 2014, 2:20:55 PM1/25/14
to funto...@googlegroups.com
Oleg,

I had removed the mdev. Anyway, After eudev recompiled again, only the /etc/init.d/udev-postmount  was created. 
I also noticed that it does not create the /dev/fd, which is just a symlink to /proc/self/fd

Oleg Vinichenko

unread,
Jan 25, 2014, 2:24:04 PM1/25/14
to Funtoo
no issues with /dev/fd on my side, there should be automatic addition of udev-mount udev into sysinit runlevel and udev-postmount in default runlevel, please, check if you made something manually?

Oleg Vinichenko

unread,
Jan 25, 2014, 2:25:03 PM1/25/14
to Funtoo
even better paste output of rc-status sysinit and rc-status default

Guy Fontaine

unread,
Jan 25, 2014, 2:34:14 PM1/25/14
to Funtoo
That's what rc-update show | grep udev must return :

udev                        sysinit
udev-mount             sysinit
udev-postmount      boot default


2014-01-25 Oleg Vinichenko <ol...@funtoo.org>

Oleg Vinichenko

unread,
Jan 25, 2014, 2:34:53 PM1/25/14
to Funtoo
right, that's how it supposed to look.

Raphael Bastos

unread,
Jan 25, 2014, 2:41:46 PM1/25/14
to funto...@googlegroups.com
vm-jupiter ~ # grep udev /var/log/rc.log
 * Unable to find udev executable.
 * ERROR: udev failed to start
 * Starting udevd daemon ...
 * start-stop-daemon: /sbin/udevd does not exist
 * ERROR: udevd failed to start
 * Unable to find udev executable.
 * ERROR: udev failed to start
 * Starting udevd daemon ...
 * start-stop-daemon: /sbin/udevd does not exist
 * ERROR: udevd failed to start

Oleg Vinichenko

unread,
Jan 25, 2014, 2:43:48 PM1/25/14
to Funtoo
something screwed on your box, could be fixed by emerge -1 eudev

Guy Fontaine

unread,
Jan 25, 2014, 2:43:58 PM1/25/14
to Funtoo
Raphael... did you run /etc/init.d/udev restart ? I did that and I got into a mess.


2014-01-25 Raphael Bastos <raphae...@hackstore.com.br>

Oleg Vinichenko

unread,
Jan 25, 2014, 2:45:13 PM1/25/14
to Funtoo
do not run any scripts manually, reboot required

Raphael Bastos

unread,
Jan 25, 2014, 3:25:45 PM1/25/14
to funto...@googlegroups.com
Thanks Oleg,

But not solve my problem to create /dev/tun :(

See:

vm-jupiter ~ # rc-update show | grep udev
                 udev |                       sysinit
           udev-mount |                       sysinit
       udev-postmount | boot default
            udev-save |              shutdown




vm-jupiter ~ # ps auxw|grep udev
root      1407  0.0  0.1  34104  1736 ?        Ss   17:54   0:00 /sbin/udevd --daemon



Guy Fontaine

unread,
Jan 25, 2014, 6:01:57 PM1/25/14
to Funtoo
I don't have udev-save. What's the reason ?


2014-01-25 Raphael Bastos <raphae...@hackstore.com.br>

Oleg Vinichenko

unread,
Jan 25, 2014, 11:58:47 PM1/25/14
to Funtoo
it's not needed (not used)

Adam Smith

unread,
Jan 31, 2014, 9:09:11 AM1/31/14
to funto...@googlegroups.com
Having some issues with sys-fs/lvm2-2.02.103 unable to build when static useflag is set.

Full build log is here

snippet from build log
(.text+0x16b): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libudev.a(util.o): In function `now':
(.text+0x138): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
Makefile:129: recipe for target 'dmsetup.static' failed
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-fs/lvm2-2.02.103/work/LVM2.2.02.103/tools'
make.tmpl:250: recipe for target 'tools.device-mapper' failed
make: *** [tools.device-mapper] Error 2

Adam



On Fri, Jan 24, 2014 at 4:34 AM, Oleg Vinichenko <ol...@funtoo.org> wrote:
sys-fs/lvm2 unmask and update required (if installed)
adding

>=sys-fs/lvm2-2.02.103
to /etc/portage/package.unmask

and emerge lvm2 should be sufficient for complete update

Raphael Bastos

unread,
Jan 31, 2014, 9:14:26 AM1/31/14
to funto...@googlegroups.com
I am using mdev + eudev and is running fine. : D


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-31 Adam Smith <absm...@gmail.com>:

Oleg Vinichenko

unread,
Jan 31, 2014, 9:09:47 AM1/31/14
to Funtoo
emerge --info

Guy Fontaine

unread,
Jan 31, 2014, 12:31:44 PM1/31/14
to Funtoo
Hi Raphael,

What are advantages in using both ?


2014-01-31 Oleg Vinichenko <ol...@funtoo.org>:

Adam Smith

unread,
Jan 31, 2014, 12:36:41 PM1/31/14
to funto...@googlegroups.com

Raphael Bastos

unread,
Jan 31, 2014, 2:04:19 PM1/31/14
to funto...@googlegroups.com
Guy,

I'm using eudev ebuild just to keep updated udev ebuilds dependent. 
The eudev alone did not create TUN devices, and not needed for VPN also creates new devices such as flash drive or external hd. 

I reported this a few days ago.


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-31 Adam Smith <absm...@gmail.com>:

Raphael Bastos

unread,
Jan 31, 2014, 2:05:30 PM1/31/14
to funto...@googlegroups.com
and not "create" new devices such as flash drive or external hd. 


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-31 Raphael Bastos <raphae...@hackstore.com.br>:

Guy Fontaine

unread,
Jan 31, 2014, 2:39:09 PM1/31/14
to Funtoo
Raphael,

Thus mdev + eudev  + openrc sound like recommended combination. Can we think of an alternative to systemd ?


2014-01-31 Raphael Bastos <raphae...@hackstore.com.br>:

Raphael Bastos

unread,
Jan 31, 2014, 2:45:27 PM1/31/14
to funto...@googlegroups.com
Guy,

OpenRC + mdev + eudev = perfect! \o/

In my opinion not recommend systemd on servers since it is not yet ready. Try running the command HALT and then tell me what happens using systemd. kkkkkkkkkkkkkkkkkk

I'm using systemd in openSUSE 13.1 and am really enjoying this version. 

It may be that from May or June be able to test systemd in Funtoo. 
It is a great idea since numerous companies and distros are adopting it. CentOS, Fedora, RedHat and SUSE and OpenSUSE are already using the system in beta and stable at least 1 year.


Att,
Raphael Bastos aka Coffnix

====================================================
Linux Reg. User: 388431  //  LPI ID: LPI000214711
email:~> $ echo "xgvngkrhgyzuyFngiqyzuxk4ius4hx" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Yaxkin/Gentoo Linux - http://downloads.hackstore.com.br
Wiki Hackstorehttp://wiki.hackstore.com.br
Área 31 Hackerspace - http://www.area31.net.br
Kankin/Funtoo Linux - http://kankin.area31.net.br
====================================================


2014-01-31 Guy Fontaine <aram...@gmail.com>:

Oleg Vinichenko

unread,
Jan 31, 2014, 5:27:38 PM1/31/14
to Funtoo
Adam, you using ~arch, you should have glibc-2.18 on your box. This version has correct statc link detection and should be sufficient to update lvm2/eudev

Adam Smith

unread,
Jan 31, 2014, 8:26:31 PM1/31/14
to funto...@googlegroups.com

That is what I get for not updating for awhile. All is good now

Thank you

Jonathan Vasquez

unread,
Mar 14, 2014, 6:58:42 PM3/14/14
to funto...@googlegroups.com
1. package.unmask:

>=virtual/udev-208
>=sys-fs/eudev-1.4
>=sys-apps/hwids-20140103
=sys-fs/lvm2-2.02.103
=sys-fs/cryptsetup-1.6.4
 

2. emerge --deselect udev

(at this point even if lvm2/cryptsetup were unmasked, there were still lvm2/cryptsetup blocks, so I unmerged lvm2/cryptsetup temporarily, updated udev, and merged lvm2/cryptsetup later.
I havent tried this but doing an explicit install as oleg said probably will work: emerge -au lvm2/cryptsetup)
 
3. unmerge lvm2/cryptsetup

4. emerge -u virtual/udev hwids

5. remove udev-postmount from 'boot' service since there are two udev-postmounts (one that was probably from old udev, and eudev adds another one to default)

6. merge lvm2/cryptsetup

7. emerge --depclean

8. preserved-rebuild stuff for new eudev

9. then I removed 'lvm' and 'device-mapper' from 'boot' runlevel since I dont need them

other:
 
is it good if 'virtual/udev' gets added to world? would it be better to not have udev in world and 1 shot it? if anything udev should be part of @system

Jonathan Vasquez

unread,
Mar 14, 2014, 6:59:18 PM3/14/14
to funto...@googlegroups.com
Everything worked btw.. the previous post was the steps I took to get it working.
Reply all
Reply to author
Forward
0 new messages