Commit Graph

11021 Commits

Author SHA1 Message Date
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
Anthony G. Basile
29f9e04a96 Merge pull request #137 from 10ne1/dev/aratiu/upstream-disable-mtd_probe
configure.ac: add option to disable mtd_probe
2016-12-21 14:27:43 -05:00
Ioan-Adrian Ratiu
2edc3cf879 configure.ac: add option to disable mtd_probe
FTL is not necessarily present on all kernels so it's useful to
have an option to disable this.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
2016-12-21 16:30:44 +02:00
Anthony G. Basile
823db6f44c configure.ac bump 3.2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 11:50:20 -05:00
Bastien Nocera
c61e6c912b udev: Add rules for accelerometer orientation quirks
This commit adds a rules file to extract the properties from hwdb
to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX
property on IIO devices, to be consumed by iio-sensor-proxy or
equivalent daemon.

The hwdb file contains documentation on how to write quirks. Note
however that mount information is usually exported in:
- the device-tree for ARM devices
- the ACPI DSDT for Intel-compatible devices
but currently not extracted by the kernel.

Also note that some devices have the framebuffer rotation that changes
between the bootloader and the main system, which might mean that the
accelerometer is then wrongly oriented. This is a missing feature in the
i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894
which needs to be fixed, and won't require quirks.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:55:12 -05:00
Anthony G. Basile
48e435dcfd hwdb, rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 10:52:02 -05:00
Luca Barbato
04bb81119c travis: Add docbook dep 2016-11-26 00:25:36 +01:00
Anthony G. Basile
b226ddfc1b rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 20:00:48 -05:00
Anthony G. Basile
d08aa94fec hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 11:44:20 -05:00
Anthony G. Basile
d3aab3bde9 src/libudev/libudev.h, src/udev/udev.h: include <sys/sysmacros.h>
<sys/sysmacros.h> is no longer implicitly pulled in via <sys/types.h>
in glibc 2.24 and above.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-21 07:22:53 -05:00
Thomas Petazzoni
4f3b8298fb src/shared/missing.h: fix getrandom system call number on ARM64
The getrandom() system call number is indeed 384 on ARM, but it is not
the same on ARM64. ARM64 uses the asm-generic headers, including for
system call numbers, so the getrandom() system call number on ARM64 is
278. This fixes runtime issues of eudev on ARM64, such as:

Populating /dev using udev: [    6.186817] udevd[1204]: starting version 3.1.5
[    6.191662] udevd[1204]: syscall 384
[    6.195217] Code: aa0503e4 aa0603e5 aa0703e6 d4000001 (b13ffc1f)
[    6.201291] CPU: 4 PID: 1204 Comm: udevd Not tainted 4.7.0+ #1
[    6.207079] Hardware name: ARM Juno development board (r2) (DT)
[    6.212954] task: ffff800976421900 task.stack: ffff800975610000
[    6.218825] PC is at 0xffff97f12234
[    6.222281] LR is at 0x41b15c
[    6.225214] pc : [<0000ffff97f12234>] lr : [<000000000041b15c>] pstate: 80000000
[    6.232544] sp : 0000ffffcf9b3870
[    6.235828] x29: 0000ffffcf9b3870 x28: 0000000000428218
[    6.241110] x27: 0000000000000000 x26: 000000000042a7e3
[    6.246395] x25: 0000ffffcf9b39c8 x24: 0000000000428000
[    6.251670] x23: 0000000000449000 x22: 0000000000449678
[    6.256946] x21: 0000000000000010 x20: 0000000000449000
[    6.262233] x19: 0000000000449678 x18: 0000000000000000
[    6.267507] x17: 0000ffff97f12210 x16: 0000000000449440
[    6.272779] x15: 0000ffff97e4f730 x14: 0000ffff98050cb8
[    6.278060] x13: 000000000000033c x12: 00000000000004b4
[    6.283331] x11: 0000000000000000 x10: 0101010101010101
[    6.288604] x9 : 0000000000001010 x8 : 0000000000000180
[    6.293882] x7 : ffffffffffffffff x6 : ffffffffffffffff
[    6.299154] x5 : 00000000271e36c0 x4 : 0007061c00190d07
[    6.304426] x3 : 00000000271e36d0 x2 : 0000000000000001
[    6.309705] x1 : 0000000000000010 x0 : 0000000000449678
[    6.314976]
[    6.398734] sky2 0000:08:00.0 enp8s0: renamed from eth0

Reported-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-08-06 14:26:11 -04:00
Anthony G. Basile
ec9a5d6547 configure.ac: bump 3.2 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-06-01 14:33:43 -04:00
Murray Calavera
5c87a79fb0 udevd: remove unnecessary cgroups handling
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-31 09:46:45 -04:00
Anthony G. Basile
5ad7d7f9e7 rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 14:09:04 -04:00
Anthony G. Basile
114908765f hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 13:53:22 -04:00
Anthony G. Basile
31ce9f89a5 rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:59:30 -04:00
Anthony G. Basile
20a05c562a hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:57:32 -04:00
Murray Calavera
11cc291a3b shared: remove unused file exit-status
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:51 -04:00
Murray Calavera
d7072e1631 shared: remove unused function execute_command
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:28 -04:00
Anthony G. Basile
7f4f5b7dba src/shared/util.c: fix typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 11:54:57 -04:00
Anthony G. Basile
0fe32c8006 src/shared/util.c: add fallback for ppoll(), issue #129.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 10:58:31 -04:00
Anthony G. Basile
1e521c3cf1 configure.ac: fix some white space
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:51:40 -04:00
Anthony G. Basile
25a718a138 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:12:21 -04:00
Anthony G. Basile
4b6c99d7e5 configure.ac: use automake 1.11 2016-02-28 17:31:02 -05:00
Anthony G. Basile
754c98e8df configure.ac: we don't need xsltproc, but making doc's does 2016-02-28 14:45:12 -05:00
Anthony G. Basile
9caac1075e README.md: update for travis-ci 2016-02-28 14:35:29 -05:00
Anthony G. Basile
416e5ad886 travis.yml: we don't need gtk-doc-tools anymore 2016-02-27 03:04:50 -05:00
Anthony G. Basile
f33b94c6ab gitignore: ignore write_net_rules 2016-02-27 03:01:47 -05:00
Anthony G. Basile
7f3b6d02cc hwdb: update 2016-02-27 02:57:08 -05:00
Richard Narron
71ff5b6886 src/udev/udevd.c: add eudev startup message for kmsg
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-11-22 02:27:58 -05:00
Anthony G. Basile
57a0fdeeec Merge pull request #125 from rworkman/trivial
Remove obsolete udev_root references
2015-11-16 17:12:42 -05:00
Robby Workman
26b8f53163 Remove obsolete udev_root references
This was removed in 6ada823a9a
2015-11-15 15:11:13 -06:00
Anthony G. Basile
4ea0be0484 Update .travis.yml 2015-10-13 02:06:53 -04:00
Anthony G. Basile
ff28cff516 configure.ac: bump 3.1.5 = upstream 220 2015-10-13 02:00:05 -04:00
Anthony G. Basile
3677c2e3ae hwdb and rules: import changes from upstream. 2015-10-12 06:43:45 -04:00
Ian Stakenvicius
305f0eef4d Forward-ported network rule-generator code from eudev-1.10 2015-09-25 12:38:07 -04:00
Anthony G. Basile
389b9ce228 Revert "udevd: warn if we receive SIGCHLD from untracked worker"
This reverts commit 75e930ed64.

This fixes issue #121.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-09-11 14:56:07 -04:00
blueness
696a663370 Merge pull request #123 from gentoo/nonrot
Solid state drives should use noop IO elevator
2015-09-11 14:45:41 -04:00
blueness
0cc8789c71 Merge pull request #122 from RomainNaour/musl-fixes
Musl fixes
2015-09-11 14:44:10 -04:00
blueness
6de52b4e64 Merge pull request #124 from rcsheets/debug-output-spacing-fix
Add missing space between filename and error message
2015-09-11 14:42:27 -04:00
Robert C. Sheets
55015c019d Add missing space between filename and error message 2015-09-08 02:12:10 -07:00