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

Bug 630788

Summary: sys-kernel/genkernel-next-67: udevd not found when systemd is not installed
Product: Gentoo Hosted Projects Reporter: Christian Bricart <christian>
Component: genkernel-nextAssignee: Ettore Di Giacinto (RETIRED) <mudler>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Bricart 2017-09-12 08:28:29 UTC
# top-down code in gen_initramfs.sh:

append_udev() {
..
    local udevd_bin=/sbin/udevd
    [ ! -e "${udevd_bin}" ] && udevd_bin=${systemd_dir}/systemd-udevd
    [ ! -e "${udevd_bin}" ] && gen_die "cannot find udevd"
..

${systemd_dir} resolves to:
  ..
  local systemd_dir=$(_get_systemdutildir)
  ..

which is:

_get_systemdutildir() {
    local systemdutil_dir=$(pkg-config systemd --variable=systemdutildir)
..

apparently, `pkg-config systemd ..` does not reveal any info if sys-apps/systemd is not installed:

> ~ # pkg-config systemd --variable=systemdutildir
> Package systemd was not found in the pkg-config search path.
> Perhaps you should add the directory containing `systemd.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'systemd' found
> ~ #



Reproducible: Always
Comment 1 Christian Bricart 2017-09-13 11:23:03 UTC
fixed upstream with =sys-kernel/genkernel-next-68