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

Bug 395319

Summary: virtual/dev-manager ebuild enhancement request to support busybox[mdev]
Product: Gentoo Linux Reporter: Walter Dnes <waltdnes>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: bkohler, bsd+disabled, rdalek1967
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 395409    

Description Walter Dnes 2011-12-19 22:29:30 UTC
It is possible to run with busybox's mdev in place of udev.  I and a couple of other people have been testing it, after hearing of Redhat developers' intention to make udev require /usr on the / partition. I'll skip the rant. To completely remove udev from the system requires 2 changes to virtual/dev-manager

1) add "sys-apps/busybox[mdev]" to RDEPEND.

2) add "EAPI=2" at the top. This is the minimum EAPI level that supports the syntax in change 1).

This will allow the removal of udev from those systems where "mdev" has been specified as a flag for busybox.  I am not a developer. To the best of my knowledge, these changes should not impact users of udev or other dev-managers. A sample ebuild is listed below...

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/virtual/dev-manager/dev-manager-0.ebuild,v 1.1 2011/04/15 21:46:03 ulm Exp $

EAPI=2

DESCRIPTION="Virtual for the device filesystem manager"
HOMEPAGE=""
SRC_URI=""

LICENSE=""
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""

DEPEND=""
RDEPEND="|| ( sys-fs/udev
                sys-apps/busybox[mdev]
                sys-fs/devfsd
                sys-fs/static-dev
                sys-freebsd/freebsd-sbin )"
Comment 1 SpanKY gentoo-dev 2011-12-20 15:55:13 UTC
i've dropped the USE=mdev default from busybox:
http://sources.gentoo.org/sys-apps/busybox/busybox-1.19.3-r1.ebuild?r1=1.1&r2=1.2

then allowed busybox to provide dev-manager:
http://sources.gentoo.org/virtual/dev-manager/dev-manager-0.ebuild?r1=1.1&r2=1.2
Comment 2 Ben Kohler gentoo-dev 2011-12-20 21:00:23 UTC
Shouldn't this default be dropped from all busybox versions?