Skip to contentSkip to conversation

udev: fixed obsolete udevadm syntax for udev init.d script.

PATCH NAK Ihar Hrachyshka 7 participants 31 messages May 24, 2009 – May 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 udev: fixed obsolete udevadm syntax for udev init.d script.

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

---
 recipes/udev/udev-124/init |    4 ++--
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_124.bb   |    2 +-
 recipes/udev/udev_141.bb   |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
recipes/udev/udev-124/init +2 -2
index efe4470..7188b5a 100644
@@ -56,10 +56,10 @@ kill_udevd > "/dev/null" 2>&1
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         /sbin/udevd -d
 
-        /sbin/udevadm control env STARTUP=1
+        /sbin/udevadm control --env STARTUP=1
 		if [ "$not_first_boot" != "" ];then
 			/sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics  --subsystem-nomatch=backlight --subsystem-nomatch=video4linux  --subsystem-nomatch=platform
-			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control env STARTUP=)&
+			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
 			if [ "$DEVCACHE" != "" ]; then
 				rm -f /tmp/uname
 				rm -f /tmp/cmdline
recipes/udev/udev-141/init +2 -2
index efe4470..7188b5a 100644
@@ -56,10 +56,10 @@ kill_udevd > "/dev/null" 2>&1
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         /sbin/udevd -d
 
-        /sbin/udevadm control env STARTUP=1
+        /sbin/udevadm control --env STARTUP=1
 		if [ "$not_first_boot" != "" ];then
 			/sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics  --subsystem-nomatch=backlight --subsystem-nomatch=video4linux  --subsystem-nomatch=platform
-			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control env STARTUP=)&
+			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
 			if [ "$DEVCACHE" != "" ]; then
 				rm -f /tmp/uname
 				rm -f /tmp/cmdline
recipes/udev/udev_124.bb +1 -1
index 834a70a..be545f7 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 /dev/, handles hotplug events and loads drivers at boot time. It replaces \
 the hotplug package and requires a kernel not older than 2.6.12."
 RPROVIDES_${PN} = "hotplug"
-PR = "r17"
+PR = "r18"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://noasmlinkage.patch;patch=1 \
recipes/udev/udev_141.bb +1 -1
index e7438fb..7e26798 100644
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
Signature · 1 line
1.6.3.1
#1 lore raw

PATCH 2/2 udev: moved udevadm to the main udev package

The reason for the move is that udevadm binary is executed from udev init.d script.

---
 recipes/udev/udev_141.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
recipes/udev/udev_141.bb +3 -3
index 7e26798..42b96e4 100644
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r7"
+PR = "r8"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
@@ -41,11 +41,11 @@ INITSCRIPT_PARAMS = "start 03 S ."
 PACKAGES =+ "udev-utils libvolume-id libvolume-id-dev"
 
 FILES_libvolume-id-dev = "${includedir}/libvolume_id.h ${libdir}/libvolume_id.a ${libdir}/libvolume_id.so ${libdir}/pkgconfig/libvolume_id.pc"
-FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest"
+FILES_udev-utils = "${usrbindir}/udevinfo ${usrbindir}/udevtest"
 FILES_libvolume-id = "${base_libdir}/libvolume_id.so.*"
 
 RPROVIDES_${PN} = "hotplug"
-FILES_${PN} += "${usrbindir}/* ${usrsbindir}/udevd"
+FILES_${PN} += "${usrbindir}/* ${sbindir}/udevadm ${usrsbindir}/udevd"
 FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
 
 FILES_${PN} += "${libdir}/udev/* ${base_libdir}/udev/*"
Signature · 1 line
1.6.3.1
#2 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Dnia niedziela, 24 maja 2009 o 20:33:05 Ihar Hrachyshka napisał(a):

Quoted 2 lines

The reason for the move is that udevadm binary is executed from udev init.d script.

NACK, NACK, NACK - udevadm is also udevinfo and is used by HAL. Your patch will make my mdev images not working properly because I would need to install mdev and udev to get HAL working and then find a way to not run udev at boot time (even after package upgrades).

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#3 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 8 lines · Marcin Juszkiewicz

Dnia niedziela, 24 maja 2009 o 20:33:05 Ihar Hrachyshka napisał(a):

Quoted 2 lines

The reason for the move is that udevadm binary is executed from udev init.d script.

NACK, NACK, NACK - udevadm is also udevinfo and is used by HAL. Your patch will make my mdev images not working properly because I would need to install mdev and udev to get HAL working and then find a way to not run udev at boot time (even after package upgrades).

I tried to understand your complain (really) but don't get it. What do you mean when saying "udevadm is also udevinfo and is used by HAL"? And also please provide your solution for the problem of broken images with unfuctional udev subsystem.

Quoted 14 lines

Regards,
--
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 11 lines · Ihar Hrachyshka
Quoted 8 lines · Marcin Juszkiewicz

Dnia niedziela, 24 maja 2009 o 20:33:05 Ihar Hrachyshka napisał(a):

Quoted 2 lines

The reason for the move is that udevadm binary is executed from udev init.d script.

NACK, NACK, NACK - udevadm is also udevinfo and is used by HAL. Your patch will make my mdev images not working properly because I would need to install mdev and udev to get HAL working and then find a way to not run udev at boot time (even after package upgrades).

Quoted 4 lines

I tried to understand your complain (really) but don't get it. What do you mean when saying "udevadm is also udevinfo and is used by HAL"? And also please provide your solution for the problem of broken images with unfuctional udev subsystem.

If you want to have a system that uses mdev as /dev manager and hal, you need to install udevadm to make hal happy. I think the solution is to do something like this:

RDEPENDS_udev += "udev-utils" in udev_141.bb

regards,

Koen

PS: mdev users need to start thinking about how devicekit and util-linux-ng will integrate into their systems, since the hal world seems to be moving away from hal to libudev + util-linux-ng

regards,

Koen

#5 lore raw

PATCH 1/1 udev: include udev-utils into udev rootfs

The reason for the move is that udevadm binary is executed from udev init.d script.

---
 recipes/udev/udev_141.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/udev_141.bb +4 -1
index 7e26798..068d23c 100644
@@ -6,7 +6,10 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r7"
+PR = "r8"
+
+# needed for init.d script
+RDEPENDS += "udev-utils"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
Signature · 1 line
1.6.3.1
#6 lore raw

PATCH 1/1 udev: include udev-utils into udev rootfs

The reason for the move is that udevadm binary is executed from udev init.d script.

---
 recipes/udev/udev_141.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/udev_141.bb +4 -1
index 7e26798..068d23c 100644
@@ -6,7 +6,10 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r7"
+PR = "r8"
+
+# needed for init.d script
+RDEPENDS_udev += "udev-utils"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
Signature · 1 line
1.6.3.1
Acked-by on v1 1/1
#7 lore raw

Re: [PATCH] udev: include udev-utils into udev rootfs

Quoted 2 lines · Ihar Hrachyshka

The reason for the move is that udevadm binary is executed from udev init.d script.

Quoted 22 lines
---
  recipes/udev/udev_141.bb |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/udev_141.bb +4 -1
index 7e26798..068d23c 100644
@@ -6,7 +6,10 @@ LICENSE = "GPL"
  # Untested
  DEFAULT_PREFERENCE = "-1"
 
-PR = "r7"
+PR = "r8"
+
+# needed for init.d script
+RDEPENDS_udev += "udev-utils"
 
  SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
  	   file://mount.blacklist \
#8 lore raw

Re: [PATCH] udev: include udev-utils into udev rootfs

Hello,

NACK!

Quoted 4 lines · Koen Kooi
Quoted 3 lines · Ihar Hrachyshka

The reason for the move is that udevadm binary is executed from udev init.d script.

Wouldn't be better to move udevadm to udev binary?

It makes non-sense to have another package installed by default and bring more things then required. If it is used by init.d, and this is ok, so please move the required binary for the udev package and that's solved.

My 2c.

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
#9 lore raw

Re: [PATCH] udev: include udev-utils into udev rootfs

Quoted 10 lines · Otavio Salvador

Hello,

NACK!

Quoted 4 lines · Koen Kooi
Quoted 3 lines · Ihar Hrachyshka

The reason for the move is that udevadm binary is executed from udev init.d script.

Quoted 6 lines

Wouldn't be better to move udevadm to udev binary?

It makes non-sense to have another package installed by default and bring more things then required. If it is used by init.d, and this is ok, so please move the required binary for the udev package and that's solved.

We *already* clarified the reasons to do the exact thing (in another thread): some people (f.e. with mdev rather udev) wants to be able to install udev stuff needed by HAL but with no udev as a default device manager.

Quoted 13 lines

My 2c.

--
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#10 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

In reply to Koen Kooi
Quoted 4 lines · Koen Kooi

PS: mdev users need to start thinking about how devicekit and util-linux-ng will integrate into their systems, since the hal world seems to be moving away from hal to libudev + util-linux-ng

I think the mdev market is for devices not using hal/devicekit to boot. Personally I think if your trying to replace udev with mdev on a device that still need hal/devicekit for dynamic devices your probably peeing into the wind!

Graeme

#11 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

In reply to Ihar Hrachyshka
Quoted 11 lines · Ihar Hrachyshka
Quoted 8 lines · Marcin Juszkiewicz

Dnia niedziela, 24 maja 2009 o 20:33:05 Ihar Hrachyshka napisał(a):

Quoted 2 lines

The reason for the move is that udevadm binary is executed from udev init.d script.

NACK, NACK, NACK - udevadm is also udevinfo and is used by HAL. Your patch will make my mdev images not working properly because I would need to install mdev and udev to get HAL working and then find a way to not run udev at boot time (even after package upgrades).

Quoted 4 lines

I tried to understand your complain (really) but don't get it. What do you mean when saying "udevadm is also udevinfo and is used by HAL"? And also please provide your solution for the problem of broken images with unfuctional udev subsystem.

I think he's saying that udevadm is needed by HAL for correct operation, even if you're using mdev instead of udev itself.

It looks like udev used to Depend on udev-utils due to the existence of /sbin/udevsettle in version 124. But, in version 141, that symlink has gone away and hence the dependency is no longer created. The right fix is probably to add an explicit RDEPENDS_${PN} += "udev-utils" or some such.

p.

#12 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 17 lines · Phil Blundell
Quoted 11 lines · Ihar Hrachyshka
Quoted 8 lines · Marcin Juszkiewicz

Dnia niedziela, 24 maja 2009 o 20:33:05 Ihar Hrachyshka napisał(a):

Quoted 2 lines

The reason for the move is that udevadm binary is executed from udev init.d script.

NACK, NACK, NACK - udevadm is also udevinfo and is used by HAL. Your patch will make my mdev images not working properly because I would need to install mdev and udev to get HAL working and then find a way to not run udev at boot time (even after package upgrades).

Quoted 4 lines

I tried to understand your complain (really) but don't get it. What do you mean when saying "udevadm is also udevinfo and is used by HAL"? And also please provide your solution for the problem of broken images with unfuctional udev subsystem.

Quoted 8 lines

I think he's saying that udevadm is needed by HAL for correct operation, even if you're using mdev instead of udev itself.

It looks like udev used to Depend on udev-utils due to the existence of /sbin/udevsettle in version 124.  But, in version 141, that symlink has gone away and hence the dependency is no longer created.  The right fix is probably to add an explicit RDEPENDS_${PN} += "udev-utils" or some such.

Just sent the fix to ML.

Quoted 10 lines

p.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#13 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Hello,

Having it in mind

On Mon, May 25, 2009 at 7:55 AM, Ihar Hrachyshka
<[email protected]> wrote:
[...]

Quoted 7 lines
Quoted 5 lines

It looks like udev used to Depend on udev-utils due to the existence of /sbin/udevsettle in version 124.  But, in version 141, that symlink has gone away and hence the dependency is no longer created.  The right fix is probably to add an explicit RDEPENDS_${PN} += "udev-utils" or some such.

Just sent the fix to ML.

I belive that the right way to fix it is add a binary package only for udevadm and make udev depends on it and mdev suggests 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
#14 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 13 lines · Otavio Salvador

Hello,

Having it in mind

On Mon, May 25, 2009 at 7:55 AM, Ihar Hrachyshka
<[email protected]> wrote:
[...]

Quoted 6 lines
Quoted 5 lines

It looks like udev used to Depend on udev-utils due to the existence of /sbin/udevsettle in version 124. But, in version 141, that symlink has gone away and hence the dependency is no longer created. The right fix is probably to add an explicit RDEPENDS_${PN} += "udev-utils" or some such.

Quoted 4 lines
Quoted 1 line

Just sent the fix to ML.

I belive that the right way to fix it is add a binary package only for udevadm

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

Quoted 1 line

and make udev depends on it and mdev suggests it.

Mdev itself doesn't have any use for udevadm, so having mdev Recommend udev-utils wouldn't be the right thing; this would just be a waste of space for people who are using mdev without HAL (which, I suspect, is actually the majority of mdev users).

p.

#15 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 5 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Quoted 6 lines
Quoted 1 line

and make udev depends on it and mdev suggests it.

Mdev itself doesn't have any use for udevadm, so having mdev Recommend udev-utils wouldn't be the right thing; this would just be a waste of space for people who are using mdev without HAL (which, I suspect, is actually the majority of mdev users).

Agreed. But AFAIK suggested packages do not get installed by bitbake by default.

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
#16 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 4 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

Quoted 8 lines

[...]

Quoted 5 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Why so?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

and make udev depends on it and mdev suggests it.

Mdev itself doesn't have any use for udevadm, so having mdev Recommend udev-utils wouldn't be the right thing; this would just be a waste of space for people who are using mdev without HAL (which, I suspect, is actually the majority of mdev users).

Agreed. But AFAIK suggested packages do not get installed by bitbake by default.

Ah yes, sorry, I misread your first mail. Having mdev Suggest udev-utils would indeed be harmless since you're right, ipkg doesn't install suggestions automatically. It would still be fairly pointless though since nothing in mdev makes any use of udev-utils.

p.

#17 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Hello,

Quoted 9 lines · Phil Blundell
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 3 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Why so?

I think udev-udevadm is more sound for me.

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 1 line

and make udev depends on it and mdev suggests it.

Mdev itself doesn't have any use for udevadm, so having mdev Recommend udev-utils wouldn't be the right thing; this would just be a waste of space for people who are using mdev without HAL (which, I suspect, is actually the majority of mdev users).

Quoted 6 lines
Quoted 1 line

Agreed. But AFAIK suggested packages do not get installed by bitbake by default.

Ah yes, sorry, I misread your first mail.  Having mdev Suggest udev-utils would indeed be harmless since you're right, ipkg doesn't install suggestions automatically.  It would still be fairly pointless though since nothing in mdev makes any use of udev-utils.

Or maybe hal ought to depends on udev-(utils|udevadm) instead ;-)

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
#18 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 12 lines · Otavio Salvador

Hello,

Quoted 9 lines · Phil Blundell
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 3 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Why so?

I think udev-udevadm is more sound for me.

It's not only udevadm:
FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines

and make udev depends on it and mdev suggests it.

Mdev itself doesn't have any use for udevadm, so having mdev Recommend udev-utils wouldn't be the right thing; this would just be a waste of space for people who are using mdev without HAL (which, I suspect, is actually the majority of mdev users).

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Agreed. But AFAIK suggested packages do not get installed by bitbake by default.

Ah yes, sorry, I misread your first mail.  Having mdev Suggest udev-utils would indeed be harmless since you're right, ipkg doesn't install suggestions automatically.  It would still be fairly pointless though since nothing in mdev makes any use of udev-utils.

Or maybe hal ought to depends on udev-(utils|udevadm) instead ;-)

Not all hal users need these binaries, don't they?

Quoted 11 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

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#19 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

In reply to Otavio Salvador
Quoted 12 lines · Otavio Salvador

Hello,

Quoted 9 lines · Phil Blundell
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 3 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Why so?

I think udev-udevadm is more sound for me.

Ah, you mean the package name? Yes, udev-udevadm would probably be better if we were doing this again from scratch, but renaming an existing package is a fairly disruptive thing to do and I don't think the existing one is wrong enough to make it worthwhile.

Quoted 1 line

Or maybe hal ought to depends on udev-(utils|udevadm) instead ;-)

It already does. See hal_0.5.9.1.bb for example, which has:

RDEPENDS_${PN} += "udev-utils hal-info"

p.

#20 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Hello,

Quoted 18 lines · Phil Blundell
Quoted 17 lines · Otavio Salvador

Hello,

Quoted 14 lines · Phil Blundell
Quoted 12 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 5 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Why so?

I think udev-udevadm is more sound for me.

Ah, you mean the package name?  Yes, udev-udevadm would probably be better if we were doing this again from scratch, but renaming an existing package is a fairly disruptive thing to do and I don't think the existing one is wrong enough to make it worthwhile.

Well, I think it makes sense. What does not make sense to me is to install udevtest and udevinfo in a system that doesn't use them.

FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest"

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
#21 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Quoted 25 lines · Otavio Salvador

Hello,

Quoted 22 lines · Phil Blundell
Quoted 20 lines · Otavio Salvador

Hello,

Quoted 9 lines · Phil Blundell
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 1 line · Phil Blundell

On Mon, 2009-05-25 at 13:31 -0300, Otavio Salvador wrote:

[...]

Quoted 3 lines
Quoted 2 lines

I belive that the right way to fix it is add a binary package only for udevadm

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

That's pretty much what udev-utils is: it doesn't contain any binaries apart from udevadm.

In this case the binary package is wrong.

Why so?

I think udev-udevadm is more sound for me.

Quoted 7 lines
Quoted 4 lines

Ah, you mean the package name?  Yes, udev-udevadm would probably be better if we were doing this again from scratch, but renaming an existing package is a fairly disruptive thing to do and I don't think the existing one is wrong enough to make it worthwhile.

Well, I think it makes sense. What does not make sense to me is to install udevtest and udevinfo in a system that doesn't use them.

Do you suggest splitting uboot-utils like "uboot-udevadm + uboot-utils" where uboot-utils contains udevinfo and udevtest? Or do you suggest creating separate packages for every udev* binary? What's your point?

Quoted 14 lines

FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest"

--
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#22 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

Hello,

Quoted 4 lines · Ihar Hrachyshka

Do you suggest splitting uboot-utils like "uboot-udevadm + uboot-utils" where uboot-utils contains udevinfo and udevtest? Or do you suggest creating separate packages for every udev* binary? What's your point?

uboot-udevadm + uboot-utils

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
#23 lore raw

Re: [PATCH 2/2] udev: moved udevadm to the main udev package

In reply to Otavio Salvador
Quoted 5 lines · Otavio Salvador

Well, I think it makes sense. What does not make sense to me is to install udevtest and udevinfo in a system that doesn't use them.

FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest"

I don't know what udevtest is for but, notwithstanding its presence in FILES, no recent version of udev (at least, not 124 or 141) seems to ship it. udevinfo is just a symlink to udevadm in -124, and seems to be missing entirely in -141, so again that doesn't seem like a big deal.

p.

#24 lore raw
In reply to Ihar Hrachyshka
Quoted 11 lines · Ihar Hrachyshka

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

---
 recipes/udev/udev-124/init |    4 ++--
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_124.bb   |    2 +-
 recipes/udev/udev_141.bb   |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

There doesn't seem much point in patching udev 124 for this: that version doesn't actually emit the warning as far as I can tell. If the initscript is maintained separately for different versions then you might as well just patch the -141 version and save a rebuild/reinstall for people using 124. Or, alternatively, if the two initscripts are actually the same, maybe you could unify them and save on future maintenance.

p.

#25 lore raw
Quoted 13 lines · Phil Blundell
Quoted 11 lines · Ihar Hrachyshka

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

---
 recipes/udev/udev-124/init |    4 ++--
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_124.bb   |    2 +-
 recipes/udev/udev_141.bb   |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
Quoted 7 lines

There doesn't seem much point in patching udev 124 for this: that version doesn't actually emit the warning as far as I can tell. If the initscript is maintained separately for different versions then you might as well just patch the -141 version and save a rebuild/reinstall for people using 124. Or, alternatively, if the two initscripts are actually the same, maybe you could unify them and save on future maintenance.

I disagree. There are, I assume, things that could be done on top of the -141 script as further enchancements/cleanups that would not apply to -124. But keeping older files in sync, so long as (a) it works and
(b) the older version is cared about makes future buging easier, I've found.

Signature · 1 line
Tom Rini
#26 lore raw

Hello Tom,

Quoted 5 lines · Tom Rini

I disagree.  There are, I assume, things that could be done on top of the -141 script as further enchancements/cleanups that would not apply to -124.  But keeping older files in sync, so long as (a) it works and
(b) the older version is cared about makes future buging easier, I've found.

I also disagree but due different reasons. I believe we ought to drop the old version except if there're a real reason to keep it around. For udev 124 I think there's no reason for it to be kept (maybe I'm missing something here).

Obviously this ought to be done in dev, not stable, but it can make our life easier and avoid us to need to care about so many recipes. The final result is that old versions usually has ugly and unknown bugs that noone cares about.

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
#27 lore raw
Quoted 9 lines · Otavio Salvador

Hello Tom,

Quoted 5 lines · Tom Rini

I disagree.  There are, I assume, things that could be done on top of the -141 script as further enchancements/cleanups that would not apply to -124.  But keeping older files in sync, so long as (a) it works and
(b) the older version is cared about makes future buging easier, I've found.

Quoted 4 lines

I also disagree but due different reasons. I believe we ought to drop the old version except if there're a real reason to keep it around. For udev 124 I think there's no reason for it to be kept (maybe I'm missing something here).

Some distros still prefer this version. I think that's the reason you missed.

Quoted 5 lines

Obviously this ought to be done in dev, not stable, but it can make our life easier and avoid us to need to care about so many recipes. The final result is that old versions usually has ugly and unknown bugs that noone cares about.

If someone prefer the version then we should consider it as needed. Or drop the obsolete distro (btw I think it's a good thing to drop obsolete infrastructure things for which maintainers are too "busy" to sync their third-party gits with upstream).

Quoted 11 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

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#28 lore raw

PATCH 1/4 udev: fixed obsolete udevadm syntax for udev init.d script.

In reply to Ihar Hrachyshka

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

---
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_141.bb   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
recipes/udev/udev-141/init +2 -2
index efe4470..7188b5a 100644
@@ -56,10 +56,10 @@ kill_udevd > "/dev/null" 2>&1
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         /sbin/udevd -d
 
-        /sbin/udevadm control env STARTUP=1
+        /sbin/udevadm control --env STARTUP=1
 		if [ "$not_first_boot" != "" ];then
 			/sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics  --subsystem-nomatch=backlight --subsystem-nomatch=video4linux  --subsystem-nomatch=platform
-			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control env STARTUP=)&
+			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
 			if [ "$DEVCACHE" != "" ]; then
 				rm -f /tmp/uname
 				rm -f /tmp/cmdline
recipes/udev/udev_141.bb +1 -1
index e7438fb..7e26798 100644
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
Signature · 1 line
1.6.3.1
#29 lore raw

Any change we can get it in tree?

Quoted 44 lines · Ihar Hrachyshka

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

---
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_141.bb   |    2 +-

 2 files changed, 3 insertions(+), 3 deletions(-)
recipes/udev/udev-141/init +0 -0
index efe4470..7188b5a 100644
@@ -56,10 +56,10 @@ kill_udevd > "/dev/null" 2>&1

        echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug /sbin/udevd -d

-        /sbin/udevadm control env STARTUP=1
+        /sbin/udevadm control --env STARTUP=1
               if [ "$not_first_boot" != "" ];then
                       /sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics  --subsystem-nomatch=backlight --subsystem-nomatch=video4linux  --subsystem-nomatch=platform
-                       (/sbin/udevadm settle --timeout=3; /sbin/udevadm control env STARTUP=)&
+                       (/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
                       if [ "$DEVCACHE" != "" ]; then
                               rm -f /tmp/uname
                               rm -f /tmp/cmdline

recipes/udev/udev_141.bb +0 -0
index e7438fb..7e26798 100644
@@ -6,7 +6,7 @@ LICENSE = "GPL"
  # Untested

 DEFAULT_PREFERENCE = "-1"

recipes/udev/udev_141.bb +1 -1
-PR = "r6"
+PR = "r7"

 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
          file://mount.blacklist \
--
1.6.3.1

Acked-by on v1 1/4
#30 lore raw
In reply to Ihar Hrachyshka
Quoted 5 lines · Ihar Hrachyshka

Fixed the following warning message when executing udev init script:
"udevadm control commands requires the --<command> format, this will stop working in a future release."

So, while I would have preferred we fixup both, looking more long-term I think dev is going to move towards dropping some old programs, so..:

Quoted 44 lines
---
 recipes/udev/udev-141/init |    4 ++--
 recipes/udev/udev_141.bb   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
recipes/udev/udev-141/init +2 -2
index efe4470..7188b5a 100644
@@ -56,10 +56,10 @@ kill_udevd > "/dev/null" 2>&1
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         /sbin/udevd -d
 
-        /sbin/udevadm control env STARTUP=1
+        /sbin/udevadm control --env STARTUP=1
 		if [ "$not_first_boot" != "" ];then
 			/sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics  --subsystem-nomatch=backlight --subsystem-nomatch=video4linux  --subsystem-nomatch=platform
-			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control env STARTUP=)&
+			(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
 			if [ "$DEVCACHE" != "" ]; then
 				rm -f /tmp/uname
 				rm -f /tmp/cmdline
recipes/udev/udev_141.bb +1 -1
index e7438fb..7e26798 100644
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 	   file://mount.blacklist \
Signature · 7 lines
1.6.3.1


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Tom Rini