Commit Graph

11021 Commits

Author SHA1 Message Date
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
Marcus Folkesson
e521ce6ba5 util.c: cleanup warnings
Resolve warning:
util.c:1730:23: warning: passing argument 1 of ‘__xpg_basename’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-12-04 07:13:12 -05:00
Marcus Folkesson
a13158b968 CONTRIBUTION: give instruction on how to send patches to mailinglist
For all those who prefer emails instead of web GUIs.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:22:21 -05:00
Marcus Folkesson
b1e47be382 libudev-monitor.c: fail to monitor udev if udev is not started
We makes two controls if we consider udev is started;
	access(UDEV_ROOT_RUN "/udev/control", F_OK) < 0
and
	!udev_has_devtmpfs(udev))

If one(not both) of these statements fails, we consider that udev is not
running.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:21:11 -05:00
Marcus Folkesson
7e2a3327b3 udevd.c: event-timout options requires an argument
The optionparser will simply abort(3) if you try to access optarg on an
option that not takes arguments.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:20:26 -05:00
Marcus Folkesson
4aed06cacc udevd.c: list all short options in help text
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-29 06:19:53 -05:00
Anthony G. Basile
8154c679d0 configure.ac: bump to version 3.2.5
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-11-21 16:46:37 -05:00
Anthony G. Basile
f5e3aea95b Include <sys/sysmacros.h> to build under glibc-2.25
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-10-21 18:08:22 -04:00
Anthony G. Basile
eb12fb7139 Merge pull request #152 from mtansorier/master
configure.ac: fix typo on blkid
2017-10-08 12:22:37 -04:00
Mickaël Tansorier
ab8b62f1c1 configure.ac: fix typo on blkid 2017-10-06 17:30:41 +02:00
Anthony G. Basile
7b07373ca8 configure.ac: bump to version 3.2.4
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-05 18:06:23 -04:00
Anthony G. Basile
451bbdaa39 man/udev.xml: remove repeated section, gentoo bug #619434
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-04 20:49:25 -04:00
Anthony G. Basile
99e12e394f rules: restore input SUBSYSTEM rule in default
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-04 18:29:33 -04:00
Anthony G. Basile
1aa224d074 configure.ac: bump to version 3.2.3
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 14:09:56 -04:00
Anthony G. Basile
ac4be6d36e src/ata_id/ata_id.c: fix names under /dev/disk/by-id/, gentoo bug #616628
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:51:25 -04:00