Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 877877

Summary: virtual/udev-217-r5: package doesn't require udev or eudev packages
Product: Gentoo Linux Reporter: José Pekkarinen <koalinux>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description José Pekkarinen 2022-10-22 06:53:26 UTC
Hi,

I have a system I installed before the transition from eudev
to udev. Currently investigating some issue in recent kernels
I found that I have virtual/udev installed, but non of eudev
or udev packages are installed. If I do emerge -1 udev, the
system will try to remove it on depclean:

# emerge -s virtual/udev
setlocale: unsupported locale setting
setlocale: unsupported locale setting
  
[ Results for search key : virtual/udev ]
Searching...

*  virtual/udev
      Latest version available: 217-r5
      Latest version installed: 217-r5
      Size of files: 0 KiB
      Homepage:      
      Description:   Virtual to select between different udev daemon providers
      License:       

[ Applications found : 1 ]

# emerge -p --depclean
setlocale: unsupported locale setting
setlocale: unsupported locale setting

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run 
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
>>> Calculating removal order...

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

 sys-fs/udev
    selected: 250 
   protected: none 
     omitted: none 

All selected packages: =sys-fs/udev-250

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

Packages installed:   1428
Packages in world:    104
Packages in system:   50
Required packages:    1427
Number to remove:     1

I understand any of the packages needs to be installed for proper
hw detection. Please correct me if I'm wrong.

Thanks!

José.
Comment 1 José Pekkarinen 2022-10-22 06:59:43 UTC
and just for completeness, this is how udev looks like in emerge -s udev:

$ emerge -s eudev
setlocale: unsupported locale setting
setlocale: unsupported locale setting
  
[ Results for search key : eudev ]
Searching...

*  app-emacs/eldev [ Masked ]
      Latest version available: 1.2.2
      Latest version installed: [ Not Installed ]
      Size of files: 234 KiB
      Homepage:      https://github.com/doublep/eldev/
      Description:   Emacs Lisp Development Tool
      License:       GPL-3+

*  sys-fs/eudev
      Latest version available: 3.2.11-r2
      Latest version installed: [ Not Installed ]
      Size of files: 2202 KiB
      Homepage:      https://github.com/gentoo/eudev
      Description:   Linux dynamic and persistent device naming support (aka userspace devfs)
      License:       LGPL-2.1 MIT GPL-2

*  sys-fs/udev
      Latest version available: 250
      Latest version installed: [ Not Installed ]
      Size of files: 0 KiB
      Homepage:      https://systemd.io/
      Description:   Virtual package to depend on sys-apps/systemd-utils
      License:       metapackage

*  virtual/udev
      Latest version available: 217-r5
      Latest version installed: 217-r5
      Size of files: 0 KiB
      Homepage:      
      Description:   Virtual to select between different udev daemon providers
      License:       

[ Applications found : 4 ]

Thanks!
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-24 14:20:55 UTC
You're probably using systemd-utils: https://www.gentoo.org/support/news-items/2022-04-19-systemd-utils.html.