[OE-core] [PATCH] [OE-Core][PATCH] udev: Remove deprecated binaries from packaging

Marko Katić dromede at gmail.com
Sat Nov 17 18:02:37 UTC 2012


i definitely should have written a much more elaborate commit message,
sorry about that.

The patch is definitely not cosmetic. This patch also deals with the changed
installation path of udevadm. Older versions of udev installed udevadm in /sbin.
Recent versions of udev install udevadm into /usr/bin. This means that the
udev-utils package will be empty because:

a) udevinfo and udevtest no longer exist
b) udevadm is no longer installed in base_sbindir, so it will end up
in the main udev package.

Therefore, udev-utils package will not be made at all. This breaks
do_rootfs stage since udev.inc RRECOMMENDS udev-utils.

Also, the initscript that comes with udev 182 calls udevadm via
it's absolute path - /usr/bin/udevadm. Initscripts in older versions
of udev expect udevadm in /sbin/.

I don't know exactly which version of udev deprecated udevinfo and
udevtest. There is no mention of it
in udev 182 changelog and i couldn't find a git commit that made this
change. The entire udev 182 source
tree only mentions udevinfo and udevtest in the changelog and the NEWS file.

Chris, you raise a valid point concerning older udev versions. If the
general concensus is that udev.inc in
OE-Core should support older and newer versions of udev, then my patch
is clearly not a proper solution.

A proper solution might be to:

a) Leave udevtest and udevinfo in udev-utils to properly support older
versions of udev that have these packages.
b) Move udevadm into the main udev package. This makes a lot of sense
since udevadm is crucial for proper udev operation.
c) Remove udev-utils from RRECOMMENDS.

Or we could just add ALLOW_EMPTY to udev.inc. A messy but simple solution.




More information about the Openembedded-core mailing list