All of lore.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] udev 171
@ 2011-05-27  0:08 Kay Sievers
  2011-05-27  6:47 ` Gabor Z. Papp
  2011-05-27 10:09 ` Paul Bender
  0 siblings, 2 replies; 3+ messages in thread
From: Kay Sievers @ 2011-05-27  0:08 UTC (permalink / raw)
  To: linux-hotplug

Here comes a new udev version. Thanks to all who have contributed to
this release.

The tarball can be found here:
 ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/

The development repository can be found here:
 http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=summary

The ChangeLog can be found here:
 http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=blob;hb=HEAD;f=ChangeLog

udev 171
====
Bugfixes.

The systemd service files require systemd version 28. The systemd
socket activation make it possible now to start 'udevd' and 'udevadm
trigger' in parallel.

The systemd udev.socket files has been split and renamed. If they
are called from package install scripts, the names need to be
adapted.

udev 170
====
Fix bug in control message handling, which can lead to a failing
udevadm control --exit. Thanks to Jürg Billeter for help tracking
it down.

udev 169
====
Bugfixes.

We require at least Linux kernel 2.6.32 now. Some platforms might
require a later kernel that supports accept4() and similar, or
need to backport the trivial syscall wiring to the older kernels.

The hid2hci tool moved to the bluez package and was removed.

Many of the extras can be --enable/--disabled at ./configure
time. The --disable-extras option was removed. Some extras have
been disabled by default. The current options and their defaults
can be checked with './configure --help'.

udev 168
====
Bugfixes.

Udev logs a warning now if /run is not writable at udevd
startup. It will still fall back to /dev/.udev, but this is
now considered a bug.

The running udev daemon can now cleanly shut down with:
  udevadm control --exit

Udev in initramfs should clean the state of the udev database
with: udevadm info --cleanup-db which will remove all state left
behind from events/rules in initramfs. If initramfs uses
--cleanup-db and device-mapper/LVM, the rules in initramfs need
to add OPTIONS+="db_persist" for all dm devices. This will
prevent removal of the udev database for these devices.

Spawned programs by PROGRAM/IMPORT/RUN now have a hard
timeout of 120 seconds per process. If that timeout is reached the
spawned process will be killed. The event timeout can be overwritten
with udev rules.

If systemd is used, udev gets now activated by netlink data.
Systemd will bind the netlink socket which will buffer all data.
If needed, such setup allows a seemless update of the udev daemon,
where no event can be lost during a udevd update/restart.
Packages need to make sure to: systemctl stop udev.socket
udev.service or 'mask' udev.service during the upgrade to prevent
any unwanted auto-spawning of udevd.
This version of udev conflicts with systemd version below 25. The
unchanged service files will not work correctly.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] udev 171
  2011-05-27  0:08 [ANNOUNCE] udev 171 Kay Sievers
@ 2011-05-27  6:47 ` Gabor Z. Papp
  2011-05-27 10:09 ` Paul Bender
  1 sibling, 0 replies; 3+ messages in thread
From: Gabor Z. Papp @ 2011-05-27  6:47 UTC (permalink / raw)
  To: linux-hotplug

* Kay Sievers <kay.sievers@vrfy.org>:

| udev 171
| ====
| Bugfixes.

[...]

| udev 169
| ====
| Bugfixes.

| We require at least Linux kernel 2.6.32 now.

  CC     extras/input_id/input_id.o
extras/input_id/input_id.c: In function 'test_key':
extras/input_id/input_id.c:167: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function)
extras/input_id/input_id.c:167: error: (Each undeclared identifier is reported only once
extras/input_id/input_id.c:167: error: for each function it appears in.)
make[2]: *** [extras/input_id/input_id.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

$ uname -a
Linux gzp 2.6.32.41 #1 SMP PREEMPT Tue May 24 09:17:23 CEST 2011 i686 GNU/Linux

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] udev 171
  2011-05-27  0:08 [ANNOUNCE] udev 171 Kay Sievers
  2011-05-27  6:47 ` Gabor Z. Papp
@ 2011-05-27 10:09 ` Paul Bender
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Bender @ 2011-05-27 10:09 UTC (permalink / raw)
  To: linux-hotplug

On 5/26/2011 11:47 PM, Gabor Z. Papp wrote:
> * Kay Sievers<kay.sievers@vrfy.org>:
>
> | udev 171
> | ====
> | Bugfixes.
>
> [...]
>
> | udev 169
> | ====
> | Bugfixes.
>
> | We require at least Linux kernel 2.6.32 now.
>
>    CC     extras/input_id/input_id.o
> extras/input_id/input_id.c: In function 'test_key':
> extras/input_id/input_id.c:167: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function)
> extras/input_id/input_id.c:167: error: (Each undeclared identifier is reported only once
> extras/input_id/input_id.c:167: error: for each function it appears in.)
> make[2]: *** [extras/input_id/input_id.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> $ uname -a
> Linux gzp 2.6.32.41 #1 SMP PREEMPT Tue May 24 09:17:23 CEST 2011 i686 GNU/Linux

I believe that BTN_TRIGGER_HAPPY was added to linux/input.h in the 
2.6.34 kernel.

Given that the udev function in question is attempting to differentiate 
between KEY_* and BTN_* events and given that KEY_* and BTN_* events are 
intermixed numerically, I cannot think of a reliable solution (even the 
current implementation is not reliable).

When I wrote eventlircd, my solution to this problem (I wanted to 
separate keyboard events from mice and joystick events) was to write an 
awk script that created a look up array for KEY_* versus BTN_* by 
parsing linux/input.h. I used the autoconf archives macro 
AX_ABSOLUTE_HEADER to locate linux/input.h at build time in the 
configure phase. While not ideal, it was the best hack I could come up with.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-27 10:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27  0:08 [ANNOUNCE] udev 171 Kay Sievers
2011-05-27  6:47 ` Gabor Z. Papp
2011-05-27 10:09 ` Paul Bender

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.