udev: Remove deprecated binaries from packaging
PATCH 1/1 udev: Remove deprecated binaries from packaging
From: Marko Katic <dromede.gmail.com>
udev provides a udev-utils package that once provided utility binaries such as udevadm, udevtest and udevinfo. udevtest and udevinfo are deprecated and their functions are now handled by udevadm.
https://bugzilla.redhat.com/show_bug.cgi?id=597539
remove udevinfo and udevtest from the udev-utils package.
--- meta/recipes-core/udev/udev.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/udev/udev.inc +1 -1
@@ -74,7 +74,7 @@ FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-c FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules" -FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm" +FILES_udev-utils = "${bindir}/udevadm" RDEPENDS_udev-consolekit += "udev-acl" FILES_udev-consolekit = "${libdir}/ConsoleKit"
Signature · 1 line
1.7.9.5
Quoted 9 lines · On Fri, Nov 16, 2012 at 09:11:39PM +0100, [email protected] wrote:
From: Marko Katic <dromede.gmail.com>
udev provides a udev-utils package that once provided utility binaries such as udevadm, udevtest and udevinfo. udevtest and udevinfo are deprecated and their functions are now handled by udevadm.
https://bugzilla.redhat.com/show_bug.cgi?id=597539
remove udevinfo and udevtest from the udev-utils package.
Are they still built? If yes then there should be warning about unpackaged files (you would need to delete them in do_install) or they are picked by some other package (PN probably).
Cheers,
Quoted 27 lines
Signed-off-by Marko Katic <dromede.gmail.com>--- meta/recipes-core/udev/udev.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/udev/udev.inc +1
-1@@ -74,7 +74,7 @@ FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-c FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules" -FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm" +FILES_udev-utils = "${bindir}/udevadm" RDEPENDS_udev-consolekit += "udev-acl" FILES_udev-consolekit = "${libdir}/ConsoleKit"Signature · 7 lines
1.7.9.5 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 2 lines · Marko Katić
Udevtest and udevinfo are not being built because they no longer exist in udev 182 sources.
Ah, so this change is only cosmetic and does not change package output (otherwise missing PR bump).
Cheers,
Quoted 53 lines · Martin Jansa
Quoted 19 lines · On Fri, Nov 16, 2012 at 09:11:39PM +0100, [email protected] wrote:
Quoted 9 lines
From: Marko Katic <dromede.gmail.com>
udev provides a udev-utils package that once provided utility binaries such as udevadm, udevtest and udevinfo. udevtest and udevinfo are deprecated and their functions are now handled by udevadm.
https://bugzilla.redhat.com/show_bug.cgi?id=597539
remove udevinfo and udevtest from the udev-utils package.
Are they still built? If yes then there should be warning about unpackaged files (you would need to delete them in
do_install) or they are picked by some other package (PN probably).Cheers,
Quoted 1 line
Quoted 6 lines
Review
Quoted 6 lines
Signed-off-by Marko Katic <dromede.gmail.com>--- meta/recipes-core/udev/udev.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-core/udev/udev.inc
Quoted 4 lines
meta/recipes-core/udev/udev.inc FILES_udev-cache = "${sysconfdir}/init.d/udev-cache
Quoted 4 lines
index 4705b9b..7133cc4 100644
meta/recipes-core/udev/udev.inc +0
-0@@ -74,7 +74,7 @@ FILES_udev-cache = "${sysconfdir}/init.d/udev-cache${sysconfdir}/default/udev-c
Quoted 2 lines
meta/recipes-core/udev/udev.inc FILES_udev-cache = "${sysconfdir}/init.d/udev-cache · line 74
Quoted 2 lines
meta/recipes-core/udev/udev.inc +0
-0FILES_udev-acl = "${base_libdir}/udev/udev-acl${base_libdir}/udev/rules.d/70-acl.rules"
Quoted 2 lines
meta/recipes-core/udev/udev.inc FILES_udev-cache = "${sysconfdir}/init.d/udev-cache · line 75
Quoted 2 lines
meta/recipes-core/udev/udev.inc +0
-1-FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest${base_sbindir}/udevadm"
Quoted 15 lines
Quoted 8 lines
meta/recipes-core/udev/udev.inc +1
-1+FILES_udev-utils = "${bindir}/udevadm" RDEPENDS_udev-consolekit += "udev-acl" FILES_udev-consolekit = "${libdir}/ConsoleKit" --1.7.9.5
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core--
Martin 'JaMa' Jansa jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 7 lines · Martin Jansa
Quoted 2 lines · Marko Katić
Udevtest and udevinfo are not being built because they no longer exist in udev 182 sources.
Ah, so this change is only cosmetic and does not change package output (otherwise missing PR bump).
Changing udev.inc like this when you're specifically addressing one version is cause for concern.
Exactly which udev version deprecated the utilities? oe-core might not have many udev versions around, but other layers still do, for machines running older kernels.
Signature · 1 line
Christopher Larson
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.
Quoted 6 lines · On Fri, Nov 16, 2012 at 6:11 PM, <[email protected]> wrote:
From: Marko Katic <dromede.gmail.com>
udev provides a udev-utils package that once provided utility binaries such as udevadm, udevtest and udevinfo. udevtest and udevinfo are deprecated and their functions are now handled by udevadm.
Quoted 6 lines
https://bugzilla.redhat.com/show_bug.cgi?id=597539
remove udevinfo and udevtest from the udev-utils package.
Signed-off-by Marko Katic <dromede.gmail.com>
Please rm them in do_install_append so if they ever are not build anymore we'll get a build-error and can handle it.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 8 lines · Marko Katić
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.
This sounds like a clean, solid route to me. Hopefully someone else will chime in with input on it as well.
Signature · 1 line
Christopher Larson
Quoted 11 lines · Chris Larson
Quoted 8 lines · Marko Katić
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.
Quoted 3 lines
This sounds like a clean, solid route to me. Hopefully someone else will chime in with input on it as well.
I see no value in having the others and deprecated tools available. Having udevadm available in udev-utils allows for it use with mdev for trigger the events in kernel, for example. I like to have this possibility.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 19 lines · Otavio Salvador
Quoted 12 lines · Chris Larson
Quoted 8 lines · Marko Katić
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.Quoted 2 lines
This sounds like a clean, solid route to me. Hopefully someone else will chime in with input on it as well.
Quoted 9 lines
I see no value in having the others and deprecated tools available. Having udevadm available in udev-utils allows for it use with mdev for trigger the events in kernel, for example. I like to have this possibility.
--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Ok, so udevadm should stay in udev-utils. In that case i propose we:
a) Add ${bindir}/udevadm and ${base_sbindir}/udevadm to FILES_udev-utils. This should
ensure that udevadm will always go in udev-utils regardless of the udev version being built.
This should also ensure that udev-utils package will always be made.
b) Make udevadm available in both ${bindir} and ${base_sbindir} via symlinks installed indo_install_append. This should ensure proper support for all versions of udev.
Quoted 39 lines · Marko Katić
Quoted 19 lines · Otavio Salvador
Quoted 12 lines · Chris Larson
Quoted 8 lines · Marko Katić
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.Quoted 2 lines
This sounds like a clean, solid route to me. Hopefully someone else will chime in with input on it as well.
Quoted 9 lines
I see no value in having the others and deprecated tools available. Having udevadm available in udev-utils allows for it use with mdev for trigger the events in kernel, for example. I like to have this possibility.
--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.brOk, so udevadm should stay in udev-utils. In that case i propose we:
a) Add ${bindir}/udevadm and ${base_sbindir}/udevadm to FILES_udev-utils. This should
ensure that udevadm will always go in udev-utils regardless of the udev version being built.
This should also ensure that udev-utils package will always be made.
Quoted 3 lines
b) Make udevadm available in both ${bindir} and ${base_sbindir} via symlinks installed in
do_install_append. This should ensure proper support for all versions of udev.
I like your plan.
+1
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 40 lines · Otavio Salvador
Quoted 39 lines · Marko Katić
Quoted 19 lines · Otavio Salvador
Quoted 12 lines · Chris Larson
Quoted 8 lines · Marko Katić
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.Quoted 2 lines
This sounds like a clean, solid route to me. Hopefully someone else will chime in with input on it as well.
Quoted 9 lines
I see no value in having the others and deprecated tools available. Having udevadm available in udev-utils allows for it use with mdev for trigger the events in kernel, for example. I like to have this possibility.
--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.brOk, so udevadm should stay in udev-utils. In that case i propose we:
a) Add ${bindir}/udevadm and ${base_sbindir}/udevadm to FILES_udev-utils. This should
ensure that udevadm will always go in udev-utils regardless of the udev version being built.
This should also ensure that udev-utils package will always be made.
Quoted 8 lines
Quoted 3 lines
b) Make udevadm available in both ${bindir} and ${base_sbindir} via symlinks installed in
do_install_append. This should ensure proper support for all versions of udev.I like your plan.
+1
Oh dear, i completely forgot about this patch. It's been sitting in my local repo for weeks!
So here's my (hopefully) final solution:
(quoted diff) +0 -0
b/meta/recipes-core/udev/udev.inc
index 4705b9b..677c33a 100644
meta/recipes-core/udev/udev.inc +0 -0
@@ -74,7 +74,7 @@ FILES_udev-cache = "${sysconfdir}/init.d/udev-cache
${sysconfdir}/default/udev-c
FILES_udev-acl = "${base_libdir}/udev/udev-acl
${base_libdir}/udev/rules.d/70-acl.rules"
-FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm"
+FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm ${bindir}/udevadm"
RDEPENDS_udev-consolekit += "udev-acl"
FILES_udev-consolekit = "${libdir}/ConsoleKit"
@@ -97,4 +97,19 @@ do_install_append () {
rm -f ${D}${base_libdir}/udev/hid2hci
echo 'udev_run="/var/run/udev"' >>${D}${sysconfdir}/udev/udev.conf
+
+ #Starting with udev 176, udevadm is by default installed in
${bindir}.
+ #To properly support all versions of udev we make udevadm
available
+ #in ${bindir} and in ${base_sbindir}.
+
+ if [ "${PV}" -gt "175" ]
+ then
+ install -d ${D}${base_sbindir}
+ ln -s ${bindir}/udevadm ${D}${base_sbindir}/udevadm
+
+ else
+ install -d ${D}${bindir}
+ ln -s ${base_sbindir}/udevadm ${D}${bindir}/udevadm
+
+ fi
}
Quoted 4 lines · Marko Katić
Oh dear, i completely forgot about this patch. It's been sitting in my local repo for weeks!
So here's my (hopefully) final solution:
The patch seems broken for my e-mail reader (dunno if you pasted it here).
--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 4 lines · Otavio Salvador
Quoted 3 lines · Marko Katić
Oh dear, i completely forgot about this patch. It's been sitting in my local repo for weeks!
Quoted 8 lines
Quoted 1 line
So here's my (hopefully) final solution:
The patch seems broken for my e-mail reader (dunno if you pasted it here).
--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Sorry about that. This one should work.
meta/recipes-core/udev/udev.inc +13 -1
@@ -74,7 +74,7 @@ FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-c FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules" -FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm" +FILES_udev-utils = "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm ${bindir}/udevadm" RDEPENDS_udev-consolekit += "udev-acl" FILES_udev-consolekit = "${libdir}/ConsoleKit"
@@ -97,4 +97,16 @@ do_install_append () { rm -f ${D}${base_libdir}/udev/hid2hci echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf + + if [ "${PV}" -gt "175" ] + then + install -d ${D}${base_sbindir} + ln -s ${bindir}/udevadm ${D}${base_sbindir}/udevadm + + elif [ "${PV}" -lt "175" ] + then + install -d ${D}${bindir} + ln -s ${base_sbindir}/udevadm ${D}${bindir}/udevadm + + fi }
Quoted 7 lines · Marko Katić
Quoted 6 lines · Otavio Salvador
Quoted 4 lines · Marko Katić
Oh dear, i completely forgot about this patch. It's been sitting in my local repo for weeks!
So here's my (hopefully) final solution:
Quoted 8 lines
Quoted 6 lines
The patch seems broken for my e-mail reader (dunno if you pasted it here).
--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.brSorry about that. This one should work.
Please send a full patch, with commit log and everything. The patch itself seems fine but it would be better to have the final and ready to apply patch for test and review.
Regards,
--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br