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

Bug 831251

Summary: sys-apps/busybox mdev wrong executable paths in default /etc/mdev.conf
Product: Gentoo Linux Reporter: ev
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: minor CC: jstein, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ev 2022-01-15 12:46:10 UTC
Default mdev.conf contains paths to scripts in /lib/mdev/ which doesn't exist on 64bit systems. On amd64 these scripts are located in /lib64/mdev

Reproducible: Always

Steps to Reproduce:
1. install gentoo with busybox mdev
2. run `rc-service mdev start` or `rc-service mdev restart`
3.
Actual Results:  
# /etc/init.d/mdev restart
 * WARNING: you are stopping a sysinit service
 * Setting up mdev as hotplug agent ...                                   [ ok ]
 * Populating /dev with existing devices with mdev -s ...
sh: line 1: /lib/mdev/usbdisk_link: No such file or directory
sh: line 1: /lib/mdev/usbdisk_link: No such file or directory
sh: line 1: /lib/mdev/usbdisk_link: No such file or directory             [ ok ]

Expected Results:  
# /etc/init.d/mdev restart
 * WARNING: you are stopping a sysinit service
 * Setting up mdev as hotplug agent ...                                   [ ok ]
 * Populating /dev with existing devices with mdev -s ...                 [ ok ]

It could be fixed by adding "sed -i s/lib/lib64/' "${ED}"/etc/mdev.conf" to src_install in ebuild, but it requires some architecture check.b
Comment 1 Larry the Git Cow gentoo-dev 2022-06-30 21:41:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d39f17df96ae1796d782bda741e28c77cb9027

commit 94d39f17df96ae1796d782bda741e28c77cb9027
Author:     Viorel Munteanu <ceamac.paragon@gmail.com>
AuthorDate: 2022-04-17 06:46:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-30 21:40:14 +0000

    sys-apps/busybox: Fix mdev configuration on amd64
    
    Closes: https://bugs.gentoo.org/831251
    Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/busybox/busybox-1.34.1-r1.ebuild | 348 ++++++++++++++++++++++++++++++
 1 file changed, 348 insertions(+)