Commit Graph

10911 Commits

Author SHA1 Message Date
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
Anthony G. Basile
7fc1d0b190 Merge pull request #149 from msmith626/symlink_spaces_fix
always replace spaces in symlinks, unless string_escape=none
2017-09-03 13:32:07 -04:00
Anthony G. Basile
47367bc4df rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:20:33 -04:00
Anthony G. Basile
7b3556d1ea hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-09-03 13:05:05 -04:00
Marc A. Smith
5c39ec9686 "always replace spaces in symlinks, unless string_escape=none" -- This fix is backported from systemd which resolves an issue with whitespace characters in symbolic links created by [e]udev. See systemd/systemd issue # 4833 and systemd/systemd pull request # 4837 for details. This issue was originally observed with some NVMe devices when using eudev 3.2.x and this fix resolves eudev issue # 148. 2017-08-25 11:44:29 -04:00
Anthony G. Basile
6b5db4f21e configure.ac: bump to version 3.2.2 2017-04-19 17:09:29 -04:00
Anthony G. Basile
90a8c95446 src/udev/udev-rules.c: fix global properties, issue #142
An important hunk was lost when merging systemd commit
adeba500 leading to broken global properties, issue #142.
This commit fixes this bug.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-02-25 14:59:19 -05:00
Anthony G. Basile
5bab4d8de0 src/udev/udev-builtin-keyboard.c: fix build with gperf 3.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-05 16:21:17 -05:00
Yann E. MORIN
18565392cf configure.ac: add option to disable building programs
In some cases (e.g. trimmed-down chroot or containers), libudev is the
only thing needed, with udevd and assorted programs totally useless
(e.g. because /dev is bind-mounted from the real one and managed
out-side the chroot/container).

Add an option to ./configure to enable/disable building the programs;
this option defaults to "enable", so that it is backward compatible with
existing build procedure, and because it by default makes sense to have
udevd et al.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2017-01-01 18:19:58 -05:00
Anthony G. Basile
23a9d68c21 Merge pull request #139 from barbieri/eudev-old-kernels
udev-builtin-input_id.c: add missing kernel header defines.
2016-12-30 17:57:33 -05:00
Gustavo Sverzut Barbieri
c0f63850ad udev-builtin-input_id.c: add missing kernel header defines.
Add missing defines so eudev builds for older kernels such as 2.6

Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
2016-12-30 12:55:13 -02:00