Commit Graph

10835 Commits

Author SHA1 Message Date
Arsen Arsenović
3cd39b4113
ci: add workflow to build eudev 2021-09-30 22:37:07 +02:00
Arsen Arsenović
4b7f66ba72
autotools: make autogen.sh exit on failure 2021-09-30 01:13:25 +02:00
Boian Bonev
8b4177dc60
Update README.md 2021-09-16 15:00:44 +03:00
Boian Bonev
1d093c25fb
Update README.md 2021-09-15 00:51:52 +03:00
Boian Bonev
4aeeabe313
Update README.md 2021-09-14 23:58:49 +03:00
Anthony G. Basile
226a9f4ded src/udev/udev-event.c: clean up whitespaces
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-08-23 12:06:49 -04:00
Andoni Zarate
841cd0ce3f On collision rename my name to a temporal one letting others got my name...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-08-23 12:03:05 -04:00
Issam E. Maghni
61d3f39975 Makefile: flag -n of ln is not POSIX
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-08-23 11:55:44 -04:00
Anthony G. Basile
f559dc96f4 README.md: Add deprecation notice
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-08-20 17:31:36 -04:00
Anthony G. Basile
be7068512c configure.ac: bump to version 3.2.10, version 243
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-02-09 14:12:04 -05:00
Thomas Deutschmann
9d4010a362 udevadm: hwdb: allow empty properties
Backport of afe87974dd.

Will address shown error

> Error, empty key or value ' XKB_FIXED_VARIANT' in '/usr/lib/udev/hwdb.d/60-keyboard.hwdb'

caued by recent changes in sys-apps/hwids-20201207 [Link 1].

Link 1: f30071bbeb (diff-7b9ba9c30888b1b5b1fa008f185e4efaff34eaff2c13f35c38b2ae0416cd891eR1840)
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-02-09 14:07:34 -05:00
Thomas Deutschmann
14748acf5e udevadm: hwdb: sync with systemd
Backports some changes from 6a34639e76.

Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-02-09 14:07:34 -05:00
Yann Dirson
9a240b197b
Revert bad 78-sound-card.rules update causing path_id skip
The following device properly got assigned ID_PATH with eudev 3.2.1,
but does not get it any more with recent versions:

P: /devices/platform/rt5651-sound/sound/card0
E: DEVPATH=/devices/platform/rt5651-sound/sound/card0
E: SOUND_FORM_FACTOR=internal
E: SOUND_INITIALIZED=1
E: SUBSYSTEM=sound
E: USEC_INITIALIZED=507638688065

This results in pulseaudio giving a non-stable card name by using a
device number.

I tracked the problem to commit
47367bc4df, which changed (without
explaining why it does so) the rules for "internal" sound cards,
notably preventing `IMPORT{builtin}="path_id"` from being reached.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2021-01-14 12:52:26 -05:00
Issam E. Maghni
fa0ea89c14
configure: test -a|o is not POSIX
Fixes `test: too many arguments` when building Linux-PAM using sbase.
This is due to a non-POSIX syntax test ... -a ... and test ... -o ....

> The XSI extensions specifying the -a and -o binary primaries and the
> '(' and ')' operators have been marked obsolescent.

See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2020-12-22 09:58:51 -05:00
Max Verevkin
9aadd2bfd6
Pavilion 13 x360 keys
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2020-11-16 07:40:04 -05:00
Ethan Sommer
79f7650b59 switch make usage to be POSIX compatible
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2020-04-22 18:04:20 -04:00
Marius Bakke
941d20bce3
rules/64-btrfs.rules: Expand @bindir@ to the absolute directory name.
This fixes #182 by ensuring @bindir@ is fully expanded at installation
time.  See "Installation Directory Variables" in the GNU Autoconf
manual, in particular the note about AC_CONFIG_FILES.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2020-04-10 09:26:02 -04:00
Anthony G. Basile
799591c573 src/libudev/libudev-monitor.c: do not check if /dev is tmpfs
This check fails for buildroot systems where /dev is not mounted
as a tmpfs filesystem.  Dropping this check should be safe even
on regular systems.

This solves issue #172.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2020-01-06 11:14:47 -05:00
Anthony G. Basile
2ab887ec67 configure.ac: bump to version 3.2.9, version 243
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-10-26 16:18:03 -04:00
Anthony G. Basile
c58b3204cb hwdb: updated tool to parse hwdb grammer
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-10-26 16:13:27 -04:00
Anthony G. Basile
e71f6f4b0b hwdb: sync with systemd/hwdb.d
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-10-26 16:10:55 -04:00
Anthony G. Basile
53bf38a6b4 hwdb: updated tool to parse hwdb grammer
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-08-19 20:06:53 -04:00
Anthony G. Basile
3879568b00 hwdb: sync with systemd/hwdb
as of 06e93130b4045db1c75f8de506d2447642de74cf

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-08-19 20:05:22 -04:00
Anthony G. Basile
d69f3f2834 configure.ac: bump to version 3.2.8
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-05-20 08:27:38 -04:00
Anthony G. Basile
253ed1fcc4
configure.ac: update to version 228, issue #173
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-05-19 08:32:01 -04:00
Michał Kępień
d941e2ee75 src/libudev/libudev-device.c: properly handle empty tag list
See: https://github.com/gentoo/eudev/pull/171

Signed-off-by: Michał Kępień <github@kempniu.pl>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-03-28 20:27:13 -04:00
Anthony G. Basile
34b2037d37 Drop unused <langinfo.h>, resolves issue 167
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2019-01-09 06:21:06 -05:00
Anthony G. Basile
be666b18e9 Revert "udevadm: prepend $(DESTDIR) for symlink target"
This reverts commit 36d0c1c9d6.

This sets up the wrong symlink, see https://github.com/gentoo/eudev/pull/165

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-12-22 09:41:06 -05:00
Joel Carlson
36d0c1c9d6 udevadm: prepend $(DESTDIR) for symlink target
Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-12-21 18:59:00 -05:00
Eric Le Bihan
906654a0ab missing.h: add BTN_DPAD_UP
As explained in issue 6267 of systemd [1], Linux < 3.11 does not
provide definitions for BTN_DPAD_{UP,RIGHT}, which were introduced in
[2].

This patch fixes this issue.

[1] https://github.com/systemd/systemd/pull/6267
[2] 9ee2748712

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-12-11 06:34:25 -05:00
Fabrice Fontaine
2cb6b734de missing.h: add KEY_ALS_TOGGLE
KEY_ALS_TOGGLE has been added in kernel 4.8 with
9ee2748712

So add it to missing.h to fix build with kernel older than 4.8

Fixes:
 - http://autobuild.buildroot.org/results/0c0aff02df91cdb869efa01e397f7ccc0d9f69af

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-12-04 17:14:32 -05:00
Anthony G. Basile
4758e346a1 configure.ac: bump to version 3.2.7
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-10-26 09:42:39 -04:00
Peter Hutterer
93f20e9793 udev: don't label high-button mice as joysticks
If a device exposes more than 16 mouse buttons, we run into the BTN_JOYSTICK
range, also labelling it as joystick. And since 774ff9b this results in only
ID_INPUT_JOYSTICK but no ID_INPUT_MOUSE.

Fixes #8460

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-09-30 20:24:16 -04:00
Anthony G. Basile
96c5552c52 rules/64-btrfs.rules: substitue @bindir@
See https://bugs.gentoo.org/666892

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-09-23 21:03:33 -04:00
Anthony G. Basile
a8ffcd1b98 rules/50-udev-default.rules: fix issue 160
Thanks Joel Barrios (darkshram).

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-09-21 08:27:23 -04:00
Anthony G. Basile
0c35b136c0 configure.ac: bump to version 3.2.6
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-09-18 06:26:00 -04:00
Piraty
940a1a1392 hwdb: sync with systemd/hwdb
as of c1342d559739a07e1fe52bc73d6ccadff72f6920
2018-09-17 19:06:57 -04:00
Donald Johnson
51ba6124f5 Add line buffering to udevadm monitor output
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-05-30 13:32:30 -04:00
nnnn20430
6f630d32bf man: add short options to udevd.xml; update udev.7
short options which were added to the udevd manpage, were not added to
the .xml file, and everytime manpages get regenerated the change gets
overwritten.
also update pregenerated version of udev manpage

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-03-10 23:49:12 -05:00
Anthony G. Basile
9727d157d0 rules/Makefile.am: install 60-input-id.rules and 70-joystick.rules
Commit bb070c1 forgot to include the installation of 60-input-id.rules
and 70-joystick.rules via the Makefile.  Without this, commits dba4728
and 5df0137 leave the system without any useable input devices.
2018-02-18 04:13:42 -05:00
Anthony G. Basile
5df0137230 udev-builtin-input_id.c: remove BTN_DPAD_* keys, upstream's commit f472d466ec 2018-02-25 04:54:36 -05:00
Anthony G. Basile
dba4728c8d udev-builtin-input_id.c: import upstream's work on input devices, issue #154
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-02-24 10:59:11 -05:00
Marcus Folkesson
83d918449f hwdb: update
Update to match systemd v235-1952-gba3182b91

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-02-20 07:36:26 -05:00
Marcus Folkesson
bb070c154e rules: update
Update to match systemd v235-1952-gba3182b91

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-02-20 07:36:20 -05:00
Marcus Folkesson
e5fbcecaf9 hwdb: add tool to parse hwdb grammer
Inherited from systemd project.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2018-02-20 07:35:59 -05:00
Marcus Folkesson
38e7d6ccf9 consistently use #pragma once for header files
Some headerfiles are missing "#pragma once" or corresponding
"#ifndef..." which may result in build error if multiple source files
include the same file.

Use "#pragma once" for all header files.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-06 08:07:10 -05:00
Marcus Folkesson
120924985c udevd: spit out --debug to stderr
When using --debug, we want the output to our console.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-05 08:46:06 -05:00
Marcus Folkesson
e3eb9433e7 man: add short options to manpage
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-05 08:46:06 -05:00
Marcus Folkesson
cb1cfc6c1b man: remove UDEV_LOG environment variable
Last time $UDEV_LOG was referred in code was in
dacd994fda.

Remove all traces for this legacy option.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-05 08:45:57 -05:00
Marcus Folkesson
4f75438278 udev-event.c: do not assign s to address to pointer
Solve a bug that could result in really nasty behavior.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-04 07:13:35 -05:00