Commit Graph

10081 Commits

Author SHA1 Message Date
Anthony G. Basile
a1a5424a62 configure.ac: bring version numbers in line with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-03 13:31:29 -04:00
Kay Sievers
40c72b0478 udev: do not export "static node" tags for non-existing devices
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-03 08:55:58 -04:00
Tom Gundersen
5aafc733e7 udev: persistent naming - we cannot use virtio numbers as they are not stable
This reverts commit 8741f2defa: 'Add virtio-blk support to path_id' and
commit e3d563346c4237af23335cc6904e0662efdf62ad: 'udev: net_id - handle virtio buses'.

Distros may want to take note of this, as it changes behavior.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:44:54 -04:00
Kay Sievers
0d6a3aec20 udev: update net_id comments
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:43:15 -04:00
Anthony G. Basile
75e0b7ce10 Update hwdb
This is upstream commits

    f89b42ec0fd51feab5566d6bdbacee101023c037

    15f392394e75ffb7f318920008fd1bbe4e82b488

by Marcel Holtmann <marcel@holtmann.org> and Scott Thrasher <scott.thrasher@gmail.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-28 11:40:34 -04:00
Anthony G. Basile
6330a66ad2 configure.ac: bump to 1.5.3
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 18:44:40 -04:00
Kay Sievers
0114457e2f hwdb: update 2014-03-22 18:21:20 -04:00
Anthony G. Basile
974354dee5 Revisit issue #87: fails to build on linux headers 3.13
Dropping <fcntl.h> in favor of <linux/fcntl.h> is incorrect.  Yet
uClibc needs O_CLOEXEC from <linux/fcntl.h>.  So we re-introduce
<fcntl.h> and include <linux/fcntl.h> only on uClibc systems to
avoid redefinitions.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 18:07:36 -04:00
blueness
ac73951d24 Merge pull request #91 from lhb-jr/fix_discardconst_warn
src/udev/udev-builtin-kmod.c: fix discardconst warn

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:52:55 -04:00
blueness
fbfcfb49a6 Merge pull request #90 from lhb-jr/fix_nocheckreturn
Fixed gcc warnings that call returns not checked

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:51:07 -04:00
blueness
12c87cef17 Merge pull request #88 from lhb-jr/check_for_docbook
configure.ac: find docbook catalog

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22 16:50:11 -04:00
lhb-jr
a45adc4f91 completed fix to 'discard const' warning
modified:   src/udev/udev-builtin-kmod.c
2014-03-21 12:19:04 -04:00
lhb-jr
123cccd833 workaround 'discards const' warning during compile
modified:   src/udev/udev-builtin-kmod.c

Temporary copies of the arguments to the 'execv' call are made so that gcc doesn't give,
possibly confusing warning about 'discarding const' during compilation.
2014-03-21 12:04:32 -04:00
lhb-jr
728baddb47 fixed gcc warnings that call returns not checked
modified:   src/collect/collect.c
modified:   src/udev/udev-node.c
modified:   src/udev/udevadm-settle.c
modified:   src/udev/udevd.c
2014-03-21 11:55:36 -04:00
lhb-jr
8a5de44bb8 modified: configure.ac
modified:   man/Makefile.am
Added checking for DocBook in configure
2014-03-20 20:51:06 -04:00
Anthony G. Basile
c0acbd0656 UPSTREAM.notes: updated
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-17 12:13:50 -04:00
Martin Pitt
2d98bf7569 input_id: Recognize buttonless joystick types
Input devices like rudders or pedals are joystick-like; they don't have
buttons, but axes like RX, THROTTLE, or RUDDER. These don't interfere with
other device types with absolute axes (touch screens, touchpads, and
accelerometers), so it's fairly safe to mark them as ID_INPUT_JOYSTICK and thus
hand out dynamic ACLs to the user.

https://bugs.freedesktop.org/show_bug.cgi?id=70734
2014-03-17 12:02:40 -04:00
Lukas Nykryn
10e0d09f13 udev: properly detect reference to unexisting part of PROGRAM's result 2014-03-17 12:01:47 -04:00
Josh Triplett
7b85b243b2 Use strlen even for constant strings
GCC optimizes strlen("string constant") to a constant, even with -O0.
Thus, replace patterns like sizeof("string constant")-1 with
strlen("string constant") where possible, for clarity.  In particular,
for expressions intended to add up the lengths of components going into
a string, this often makes it clearer that the expression counts the
trailing '\0' exactly once, by putting the +1 for the '\0' at the end of
the expression, rather than hidden in a sizeof in the middle of the
expression.
2014-03-17 12:01:15 -04:00
Miklos Vajna
df97ff7456 udev: spelling fixes 2014-03-17 11:59:52 -04:00
Anthony G. Basile
c5a77c7d10 Fix issue #87: fails to build on linux headers 3.13
Commit 80b10107cb added #include <linux/fcntl.h> in
src/accelerometer and friends for builds on uclibc.
This only works with glibc and musl systems with
linux headers 3.9 but fails with linux headers 3.13.

We keep <linux/fcntl.h> but drop <fcntl.h>.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-15 08:16:41 -04:00
Anthony G. Basile
ac1546da71 UPSTREAM.notes: updated 2014-03-13 15:03:11 -04:00
Anthony G. Basile
e0aa59ede2 configure.ac: bump to version 1.5.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-09 13:43:28 -04:00
Lennart Poettering
01e635e556 udev-builtin-blkid: modernizations and minor fixes 2014-03-09 13:31:46 -04:00
Anthony G. Basile
80b10107cb builtins: add <linux/fcntl.h> for uclibc 2014-03-09 13:16:31 -04:00
Marcel Holtmann
81ecc0c3e7 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-05 15:06:51 -05:00
Anthony G. Basile
3836f0afa1 configure.ac: bump to version 1.5.1 2014-03-04 09:32:50 -05:00
Anthony G. Basile
28b8a50320 rules: retain, but do not install 80-net-setup-link.rules
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-02 09:42:54 -05:00
Anthony G. Basile
e906d02b61 configure.ac: bump to version 1.5 2014-02-28 17:35:51 -05:00
Anthony G. Basile
c51c39f7a9 Enable some missed udev rules
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 17:14:31 -05:00
Kieran Clancy
a160f72144 hwdb: keymaps for Samsung 900X3E/900X3F
Keymaps for Samsung 900X3E and 900X3F should be the same as for other
models in the series.

I have also moved the comment for '# Series 9' to the right place

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:57:02 -05:00
Lukas Nykryn
53f2bc3b0d udev/rules: setup tty permissions and group for sclp_line, ttysclp and 3270/tty
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:53:26 -05:00
Lukas Nykryn
e8f1205bbc cdrom_id: use the old MMC fallback
https://bugzilla.redhat.com/show_bug.cgi?id=1038015
The problem seems to be that the your virtual DVD is emulating a really
old DVD device, and doing it kind of strangely.

> dracut:# /lib/udev/cdrom_id --debug /dev/sr0
> probing: '/dev/sr0'
> INQUIRY: [IMM     ][Virtual CD/DVD   ][0316]
> GET CONFIGURATION failed with SK=5h/ASC=24h/ACQ=00h

So your virtual drive rejects the GET CONFIGURATION command as illegal.

Other pre-MMC2 drives that don't accept this command usually return the
error
SK=5h,ASC=20h (invalid/unsupported command code), in which case cdrom_id
tries an older method, and then ID_CDROM_MEDIA_TRACK_COUNT_DATA gets set
and all the /dev/disk/by-label (etc) links get set up.

The virtual drive returns the error SK=5h,ASC=24h (invalid field in
Command Descriptor Block), which cdrom_id doesn't handle, so it gives up
and the links never get made.

The ideal solution would be to make the IMM to emulate a device that's
less than 15 years old, but I'm not going to hold my breath waiting for
that.

So probably cdrom_id should also use the old MMC fallback when the error
is SK=5h,ASC=24h, and then all of this would work as expected.

Suggested-by:Luca Miccini <lmiccini@redhat.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:52:08 -05:00
Zbigniew Jędrzejewski-Szmek
93f976f5f6 Remove dead lines in various places
As pointed-out by clang -Wunreachable-code.

No behaviour changes.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:51:06 -05:00
Andreas Fuchs
b5f6b5410e gudev: add device::get_sysfs_attr_keys and device::has_sysfs_attr
For gudev -> gudevdevice:
- Add support for get_sysfs_attr_keys()
- Add support for has_sysfs_attr()

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-22 16:01:47 -05:00
Marcel Holtmann
1adb2870c1 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-22 15:14:44 -05:00
Tom Gundersen
6a1fd0c8a9 udev: net_setup - import ID_NET_DRIVER
This will do until all net properties are imported.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-22 15:12:08 -05:00
Anthony G. Basile
153929b11e Add missing REENABLE_WARNING and unlink_noerrno()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 12:11:59 -05:00
Anthony G. Basile
306c786fdc macro: introduce a nice macro for disabling -Wformat-nonliteral temporarily
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:20:31 -05:00
Lennart Poettering
4e8d48be86 udev: make sure we always return a valid error code in trie_store()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:07:51 -05:00
Lennart Poettering
63a5187884 make gcc shut up
If -flto is used then gcc will generate a lot more warnings than before,
among them a number of use-without-initialization warnings. Most of them
without are false positives, but let's make them go away, because it
doesn't really matter.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:53 -05:00
Jason St. John
c785a1cb69 replace tabs with spaces in some files
Files:
* hwdb/60-keyboard.hwdb
* shell-completion/zsh/_systemd-coredumpctl
* src/test/test-helper.h

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:33 -05:00
Jan Engelhardt
547454da02 doc: update punctuation
Resolve spotted issues related to missing or extraneous commas, dashes.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:18 -05:00
Zbigniew Jędrzejewski-Szmek
45fa7a7d79 Remove unused variable and two function stubs
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:00 -05:00
Lennart Poettering
4e918b7253 everywhere: always use O_CLOEXEC where it makes sense
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:05:34 -05:00
Lennart Poettering
9fa108ac48 everywhere: make use of new0() and macro() macros, and stop using perror()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:05:22 -05:00
Zbigniew Jędrzejewski-Szmek
c1db5c60e3 Update some message formats
Use PID_FMT/USEC_FMT/... in more places.

Also update logind error messages to print the full path to a file that
failed. This should make debugging easier for people who do not know
off the top of their head where logind stores it state.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-09 08:18:06 -05:00
Jóhann B. Guðmundsson
96d6c22b3b udev: add zram to the list of devices inappropriate for symlinks
udev seems to have a race condition with swapon to see which can open
/dev/zram0 first, causing swapon to fail. Seems to be most noticeable
on arm devices one out of every 7 times or something.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-09 08:14:56 -05:00
Greg KH
8fe0351586 use memzero(foo, length); for all memset(foo, 0, length); calls
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set).  So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length).

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-02 07:15:23 -05:00
Martin Pitt
7eefa0ad0d keymap: Add Toshiba EQUIUM
Thanks Aleksander Kowalski <aleksander.kowalski.1@gmail.com>!
2014-01-30 17:47:42 -05:00