Commit Graph

386 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
6b5db4f21e configure.ac: bump to version 3.2.2 2017-04-19 17:09:29 -04: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
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
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
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
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
ff28cff516 configure.ac: bump 3.1.5 = upstream 220 2015-10-13 02:00:05 -04:00
Ian Stakenvicius
305f0eef4d Forward-ported network rule-generator code from eudev-1.10 2015-09-25 12:38:07 -04:00
Romain Naour
0e2be0c217 build-sys: check for strndupa
strndupa is a GNU extension, therefore it's not available
for all libc libraries (musl).

This patch is based on the one proposed by Emil Renner Berthing for
systemd [1].

[1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:57:27 +02:00
Romain Naour
24ccb6ebc5 build-sys: check for mallinfo
mallinfo is not specified by POSIX or the C standards, therefore
it's not available for all libc libraries (musl).

Add the ability to disable mallinfo statistics.

Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
         struct mallinfo before_mallinfo, after_mallinfo;

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:49:20 +02:00
Anthony G. Basile
252150e181 src/gudev: remove Gobject libudev support.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:42:01 -04:00
Anthony G. Basile
1b6370e74b docs: remove gtk-docs.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:33:47 -04:00
Bastien Nocera
e172381913 It's moved to the iio-sensor-proxy D-Bus service.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 07:45:23 -04:00
Anthony G. Basile
c9ed0f0dc6 configure.ac: bump 3.1.2 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-19 12:33:33 -04:00
Anthony G. Basile
3c49a3776a configure.ac: bump 3.1.1 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-06-05 10:35:38 -04:00
Anthony G. Basile
ebb37f6a47 configure.ac: add --enable-hwdb option. Address issue #111.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:50:28 -04:00
Anthony G. Basile
53997d40dd configure.ac: slightly better organize xsltproc stuff
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:36:16 -04:00
Anthony G. Basile
047416ff0f configure.ac: fix --enable-manpages. Fixes issue #109.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 08:25:58 -04:00
Anthony G. Basile
5803c30ed2 configure.ac: bump udev to 220 and eudev to 3.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 06:53:04 -04:00
David Cortarello
6a398265f3 Remove hardcoded path /run and configure using --with-rootrundir=
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-03-27 11:34:13 -04:00
Anthony G. Basile
3cda11ed7c configure.ac: update udev version to 219. 2015-03-19 19:34:33 -04:00
Anthony G. Basile
298f6c8128 src/udev/udev-builtin.c: remove legacy optional keymap
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-11 18:40:16 -05:00
Anthony G. Basile
79bf63bcff src/udev/udev-builtin-kmod.c: remove the modprobe alt to kmod code 2015-02-11 18:06:47 -05:00
Anthony G. Basile
691df3c5c3 rule_generator: remove legacy code 2015-02-11 15:44:15 -05:00
Anthony G. Basile
ff78357e55 configure.ac: bump to 3.0 branch
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-02-11 14:59:18 -05:00
Anthony G. Basile
75039e7057 configure.ac: bump to 2.2 2015-02-08 11:52:13 -05:00
Emmanuel Benoît
ad1f456752 Build files: remove extraneous dependency
* configure.ac: use LT_LIBM to check for the maths library
* src/accelerometer/Makefile.am: use $(LIBM) instead of -lm in the link
flags

This causes all executables (except accelerometer) and libraries to be
linked without libm, which they do not need.
2015-01-21 16:45:55 +01:00
Anthony G. Basile
6740579367 configure.ac: don't die on missing linux/btrfs.h, fixes issue #100
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-16 13:40:43 -05:00
Michal Schmidt
03221aa40a hashmap: rewrite the implementation
We reintroduce hashmap.{h,c}, list.h and set.h verbatim from upstream,
before we punt dead code.  The following is the upstream message:

This is a rewrite of the hashmap implementation. Its advantage is lower
memory usage.

It uses open addressing (entries are stored in an array, as opposed to
linked lists). Hash collisions are resolved with linear probing and
Robin Hood displacement policy. See the references in hashmap.c.

Some fun empirical findings about hashmap usage in systemd on my laptop:
  - 98 % of allocated hashmaps are Sets.
  - Sets contain 78 % of all entries, plain Hashmaps 17 %, and
    OrderedHashmaps 5 %.
  - 60 % of allocated hashmaps contain only 1 entry.
  - 90 % of allocated hashmaps contain 5 or fewer entries.
  - 75 % of all entries are in hashmaps that use trivial_hash_ops.

Clearly it makes sense to:
  - store entries in distinct entry types. Especially for Sets - their
    entries are the most numerous and they require the least information
    to store an entry.
  - have a way to store small numbers of entries directly in the hashmap
    structs, and only allocate the usual entry arrays when the direct
    storage is full.

The implementation has an optional debugging feature (enabled by
defining the ENABLE_HASHMAP_DEBUG macro), where it:
  - tracks all allocated hashmaps in a linked list so that one can
    easily find them in gdb,
  - tracks which function/line allocated a given hashmap, and
  - checks for invalid mixing of hashmap iteration and modification.

Since entries are not allocated one-by-one anymore, mempools are not
used for entries. Originally I meant to drop mempools entirely, but it's
still worth it to use them for the hashmap structs. My testing indicates
that it makes loading of units about 5 % faster (a test with 10000 units
where more than 200000 hashmaps are allocated - pure malloc: 449±4 ms,
mempools: 427±7 ms).

Here are some memory usage numbers, taken on my laptop with a more or
less normal Fedora setup after booting with SELinux disabled (SELinux
increases systemd's memory usage significantly):

systemd (PID 1)                            Original   New    Change
dirty memory (from pmap -x 1) [KiB]            2152  1264     -41 %
total heap allocations (from gdb-heap) [KiB]   1623   756     -53 %

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 13:28:12 -04:00
Lennart Poettering
ea79c9cdf0 util: make use of the new getrandom() syscall if it is available when needing entropy
Doesn't require an fd, and could be a bit faster, so let's make use of
it, if it is available.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 11:58:25 -04:00
Anthony G. Basile
d3e4cb5ccb configure.ac: bump 2.1.1 = upstream 217
Release for bug fix on musl.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-29 16:20:14 -04:00
Anthony G. Basile
acbf3091de configure.ac: bump 2.1 = upstream 217
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-28 20:53:04 -04:00
Anthony G. Basile
429c3a7f17 configure.ac: require automake 1.13
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-15 17:01:33 -04:00
Anthony G. Basile
35257b404e configure.ac: bump 2.0 = upstream 216
Branch v2.X breaks from v1.X in that it removes the userland
firmware loading support.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-13 08:56:10 -04:00
Kay Sievers
3b71759460 udev: remove userspace firmware loading support
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-13 08:27:22 -04:00
Anthony G. Basile
0f90b52d51 configure.ac and src/libudev/Makefile.am: bump to 1.10 = upstream 216
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-22 08:03:24 -04:00