Commit Graph

11003 Commits

Author SHA1 Message Date
Jesse Smith
d16f9d5ff5 Permit eudev to work with rules which include escaped double-quotes
- Adjust parsing function to understand escaped double-quotes in rules.
- Added new test to udev-test.pl to confirm escaped quotes work.
- Bring eudev up to date with systemd pull request $6890.

This commit resolves GitHub issue #187.

This is a slightly adjusted patch/commit from systemd's udev.
Original upstream commit: 8a247d50abb5315adcc64daea10bc836c9d4c6e0
Provided by Franck Bui (GitHub user fbuihuu)
2021-10-06 08:27:54 -03:00
xfan1024
56bc3ebcbc src/libudev/conf-files.c: fix bug of using basename
BASENAME(3) Linux Programmer's Manual say:
> These functions may return pointers to statically allocated memory
> which may be overwritten by subsequent calls.

Using basename return value as key of hashmap is not safe, it may
cause that hashmap_put always return -EEXIST if hash collision happen.

Using basename return value as strcmp first and second parameters may
always return 0.

Signed-off-by: xiaofan <xiaofan@iscas.ac.cn>
2021-10-06 16:30:00 +08:00
Boian Bonev
74e8d28165
Add make check 2021-10-05 08:29:43 +03:00
Boian Bonev
c3aef5c323
Shorten action name 2021-10-05 08:20:36 +03:00
Boian Bonev
c14f496206
Change the CI icon 2021-10-05 08:08:32 +03:00
Boian Bonev
169de7af52
Add instructions for Alpine/Arch 2021-10-04 23:00:21 +03:00
Boian Bonev
36f1d6c388
Wrap all text to 80 columns
Remove instructions how to install git (assuming that is obvious)
Reword the text about git clone
Add a warning in the install section
2021-10-04 22:20:57 +03:00
Boian Bonev
4fd30d1a01
Add libtool to build dependencies 2021-10-04 22:09:36 +03:00
Boian Bonev
6a4cbd3546
Remove trailing whitespace 2021-10-04 22:08:46 +03:00
Boian Bonev
9e73a75128
Merge remote-tracking branch 'upstream/master' 2021-10-04 22:06:32 +03:00
Boian Bonev
a8a0eb73f5
Print the commands in verbose builds 2021-10-04 22:04:20 +03:00
Boian Bonev
3274500a96
Merge pull request #207 from slicer69/doc
Add build instructions
2021-10-04 01:20:13 +03:00
Jesse Smith
5e875ffa56 Remove build instructions from README
Back out build instructiosn from README as thy are now in BUILD.
2021-10-03 12:05:21 -03:00
Jesse Smith
258e2777b1 Add build instructions
- document how to install all dependencies
- document how to get source via tarball or git
- document how to build eudev
2021-10-03 12:04:12 -03:00
Boian Bonev
ea6124b724
Merge pull request #206 from ArsenArsen/master
add actions workflows to check compilation on glibc and musl (devuan, alpine)
2021-09-30 23:55:34 +03:00
Arsen Arsenović
3cd39b4113
ci: add workflow to build eudev 2021-09-30 22:37:07 +02:00
Jesse Smith
f4171bc0a8 Added clarification to build instructions.
Updated intro to build intructions to clarify build
process differs on non-Debian distros.
2021-09-30 15:19:45 -03:00
Jesse Smith
75857c0846 Adjusted instructions for installing dependencies to look nicer. 2021-09-30 13:20:54 -03:00
Jesse Smith
3c21322d12 Added new file (BUILD) with intructions for getting dependencies, configuring
eudev, and building the code.

Added blurb to README with simplified build instructions.
2021-09-30 11:20:31 -03: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