Commit Graph

9673 Commits

Author SHA1 Message Date
Anthony G. Basile
bcc69ef934 Reintroduce keymaps build and test
This commit reintroduces code to

 1) build src/keymap
 2) test keymap/Makefile.am that it has all the key maps listed
 3) test that all the key names in keymap/* are in <linux/input.h>
 4) do a syntax check on rules/*.rules which now includes
    95-keymap.rules and 95-keyboard-force-release.rules

For #4, the regex expressions in rule-syntax-check.py had to be
updated.  They do not allow trailing comments via # comment, and
I did not include that.  A rule in 95-keymap.rules had to have its
comment moved from the end to another line.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-20 14:44:47 -05:00
Anthony G. Basile
802d021d2e test/Makefile.am: fix tests for make distcheck
At several points in the forked code, top_srcdir and top_builddir
are mixed up.  It is not clear if this is an upstream bug or if this
is a result of the initial restructuring of the build system.  This
commit addresses this issue for tests triggered during make distcheck.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-19 19:09:48 -05:00
Luca Barbato
a21f6c078b doc: clarify the scope of the project 2012-11-19 18:19:50 +01:00
Richard Yao
31040610c9 Reintroduce blkid-builtin
The build failure that prompted its removal has been resolved.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-19 11:09:29 -05:00
klondike
54f8992ab9 Merge branch 'master' of github.com:gentoo/eudev 2012-11-19 03:43:53 +01:00
klondike
e0b2bb0a47 Check for unshare on the configure and provide an inline replacement when not available 2012-11-19 03:43:35 +01:00
Anthony G. Basile
940706d45a Fix manpage build under make distcheck
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18 18:55:34 -05:00
Anthony G. Basile
d68f655644 Fix manpage build
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18 17:17:35 -05:00
Richard Yao
d4efe353da Add missing #include <sys/syscall.h>
A last minute change to commit 189d09a42e
caused a build failure. This fixes it.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18 16:54:31 -05:00
Richard Yao
189d09a42e Define unshare() macro to avoid dependence on __GNU_SOURCE
unshare() is a linux syscall that we need. Unfortunately, access to it
depends on __GNU_SOURCE, which we would like to avoid. As such, we
define a macro to invoke it by its syscall code. This is necessary to
avoid the following warning from Clang:

implicit declaration of function 'unshare' is invalid in C99
[-Wimplicit-function-declaration]

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18 16:10:09 -05:00
Richard Yao
2182f784f0 Include dev-setup.h and cgroup-util.h to explicitly declare functions
Clang 3.1 indicated that we had implicitly declared several, which is
illegal in C99.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18 15:20:03 -05:00
Richard Yao
32419e7864 Fix "attribute 'packed' is ignored" warnings when using Clang
Clang 3.1 warned that "attribute 'packed' is ignored". This stems from
placing "__attribute__ ((packed))" at the start of structure
declarations when common practice is to place it at the end.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-18 15:20:03 -05:00
Kacper Kowalik (Xarthisius)
6424773980 Fix wrong format warnings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18 10:15:15 -05:00
Kacper Kowalik (Xarthisius)
c189ab04cb Fix unused result warnings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18 10:14:19 -05:00
Kacper Kowalik (Xarthisius)
2af83cafa0 Fix implicit declaration warning
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-18 10:12:25 -05:00
Anthony G. Basile
fb71ce410e Fix gtk-doc build
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-18 09:38:09 -05:00
Anthony G. Basile
814a724368 Got helper in src/* and make distcheck working 2012-11-18 07:08:19 -05:00
Anthony G. Basile
7730dfb5e1 Restructure src/ as per lu_zero 2012-11-17 16:22:12 -05:00
Felipe Contreras
8b75afdbc2 Fix build when gtk-doc is enabled
Looks like gtk-doc.make is meant for automake, not make.

Some previous changes need to be reverted.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-17 21:15:36 +01:00
Felipe Contreras
54cdf5fe91 Truly fix build without gtk-doc
The gtk-doc.m4 was not merged to 'master' but we don't need it. It's
better to generate it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-17 21:07:10 +01:00
Felipe Contreras
b0dd066bcc Add gitignore
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-17 13:12:10 -05:00
Felipe Contreras
d10ce69cc7 autogen: cleanup
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-17 13:10:13 -05:00
Felipe Contreras
b0d2945b5b Allow build without gtk-doc
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-11-17 13:09:34 -05:00
Anthony G. Basile
5c40c23567 Fix all Makefile.am: work towards 'make distcheck' sanity 2012-11-17 11:44:13 -05:00
Anthony G. Basile
67cae77034 Rename src/shared to src/include, a saner name 2012-11-17 10:13:59 -05:00
Justin Lecher
af7b6e9317
Fix typo 2012-11-17 11:46:38 +01:00
Umut Tezduyar
cf7b139404 udev: firmware - disable firmware loading when firmware file is 0 byte
If firmware file is not found in the file system, udev
terminates firmware loading. This is not the case if
firmware file exists in the file system but doesn't have
any data in it.
2012-11-17 02:59:06 -05:00
Richard Yao
c6aceba193 Add missing HAVE_ACL preprocessor directives
This fixes a build failure with --disable-acl

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17 02:37:53 -05:00
Anthony G. Basile
98520888b8 src/test: disable for now to get a full build 2012-11-17 01:33:48 -05:00
Richard Yao
151d9085b4 Eliminate blkid-builtin
Changes to rules were introduced by
7c2dee4a4d while builtin-blkid support was
introduced in other commits. The removal of systemd resulted in this
code causing linker errors. This code adds complexity with no clear
benefit, so we remove it.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17 01:07:22 -05:00
Richard Yao
a91a7609b2 Eliminate kmod dependency
Changes to rules were introduced by
06316d9f1a while kmod support was
introduced in other commits. A ton of commits were made involving kmod
and it is quite clear that it is broken, so we remove it.

This changes our rules to depend on modprobe. As long as the modprobe
binary is in /, and not /usr, udev module loading should function
properly.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17 01:07:22 -05:00
Anthony G. Basile
7412678986 src/gudev: builds successfully 2012-11-17 00:46:40 -05:00
Anthony G. Basile
a27ee4898f src/udev: breakout Makefile.am for helpers 2012-11-17 00:33:19 -05:00
Anthony G. Basile
8b9605d16a src/udev: continue restoring needed deps 2012-11-17 00:12:08 -05:00
Anthony G. Basile
dbc4814264 src/udev: restore needed deps from src/share 2012-11-16 22:22:07 -05:00
Anthony G. Basile
d626c1395b src/udev/log.c: remove log_parse_environment() 2012-11-16 20:49:51 -05:00
Anthony G. Basile
9ac9a4d1b7 src/udev/Makefile.am: work towards fixing up udev build 2012-11-16 20:40:11 -05:00
Anthony G. Basile
40e1789c0b src/udev: work towards building udev 2012-11-16 19:43:17 -05:00
Anthony G. Basile
aa8f9e6be0 configure.ac: fix gtk-doc 2012-11-16 19:42:09 -05:00
Anthony G. Basile
99392adc27 README: correct klondike's last name 2012-11-16 19:01:34 -05:00
Anthony G. Basile
9a570fc299 README: add lu_zero and klondike to the team 2012-11-16 18:53:34 -05:00
Matthew Thode
ed0adf8e24 changed tabs to spaces :| 2012-11-15 22:54:25 -06:00
Matthew Thode
694e2efbbf changed tabs to 4 characters 2012-11-15 22:52:31 -06:00
Matthew Thode
136ad274ef added Matthew Thode (prometheanfire) to the readme 2012-11-15 22:51:29 -06:00
Anthony G. Basile
a2b01dbfa5 src/libudev: successfully builds 2012-11-15 23:11:59 -05:00
Anthony G. Basile
eb203b01c9 Final step of revamping the build system
The structure of the source tree is basically correct and this is
about as far as we can go without hacking at the C code.
2012-11-15 21:47:20 -05:00
Anthony G. Basile
c47f33a498 Second step of revamping the build system
The original Makefile.am was drawn to the top level.  This commit
breaks it out into the various directories with SUBDIRS connecting
them.  This makes each directory easier to maintain.
2012-11-15 20:18:22 -05:00
Anthony G. Basile
b7b2cc298c Initial revamping of the build system
This is the first pass attempting to keep as much of the build system
as is necessary for only udev from the fork.  Emphasis was given to
configure.ac.  Gutting had to be done to Makefile.am but this needs
work to be broken out into SUBDIR Makefile.am which each address those
pieces.
2012-11-15 14:51:20 -05:00
Anthony G. Basile
7d4a62f8c1 Isolation of udev code from remaining systemd
This commit is a first attempt to isolate the udev code from the
remaining code base.  It intentionally does not modify any files
but purely delete files which, on a first examination, appear to
not be needed.  This is a sweeping commit which may easily have
missed needed code.  Files can be retrieved by doing a checkout
from the previous commit:

 git checkout 2944f347d0 -- <filename>
2012-11-15 10:33:16 -05:00
Anthony G. Basile
2944f347d0 Fork of Original Code Base: anongit.freedesktop.org/systemd
This is the initial fork of the code base from freedsktop.org.
The code is provided here as a reference of the initial starting
point and for possible future checkouts after a large portion
of this code is removed.

Merge git://anongit.freedesktop.org/systemd/systemd
2012-11-15 10:10:41 -05:00