]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
7 years agoMerge pull request #5852 from phomes/trivial
Martin Pitt [Sat, 29 Apr 2017 11:39:47 +0000 (13:39 +0200)] 
Merge pull request #5852 from phomes/trivial

Trivial cleanups

7 years agoMerge pull request #5801 from keszybz/help-error
Lennart Poettering [Sat, 29 Apr 2017 10:30:29 +0000 (12:30 +0200)] 
Merge pull request #5801 from keszybz/help-error

nspawn,cgtop: make sure --version, --help always work

7 years agosd-boot: remove unnecessary defines (#5848)
Max Resch [Sat, 29 Apr 2017 10:24:25 +0000 (12:24 +0200)] 
sd-boot: remove unnecessary defines (#5848)

As discussed in #5829 `#define` is not necessary, meson and autotools
set the correct compiler flags and the default value is provided by them.

7 years agotest: explain why we explicitly make all despite test/Makefile's check target calling...
Chris Lamb [Sat, 29 Apr 2017 06:23:13 +0000 (07:23 +0100)] 
test: explain why we explicitly make all despite test/Makefile's check target calling it (#5830)

7 years agomeson: do not link libshared dynamically against libudev (#5850)
Michael Biebl [Sat, 29 Apr 2017 06:21:07 +0000 (08:21 +0200)] 
meson: do not link libshared dynamically against libudev (#5850)

Linking dynamically against libudev will fail once
https://github.com/mesonbuild/meson/pull/1545 is merged and apparently
already triggers a link failure on s390x.

Make libshared provide the udev symbols by including libudev_sources
into libshared. This will cause those files to be compiled twice, but it
actually reduces the installed size and is closer to what the autotools
build system is doing.

Closes #5828

7 years agotree-wide: remove unused variables 5852/head
Thomas Hindoe Paaboel Andersen [Fri, 28 Apr 2017 21:49:50 +0000 (23:49 +0200)] 
tree-wide: remove unused variables

7 years agonetworkd: remove duplicated include
Thomas Hindoe Paaboel Andersen [Fri, 28 Apr 2017 21:44:57 +0000 (23:44 +0200)] 
networkd: remove duplicated include

7 years agoshared: assert the source for memcpy
Thomas Hindoe Paaboel Andersen [Fri, 28 Apr 2017 21:37:35 +0000 (23:37 +0200)] 
shared: assert the source for memcpy

7 years agobuild-sys: do not install manpages from disabled features (#5844)
userwithuid [Fri, 28 Apr 2017 12:22:17 +0000 (12:22 +0000)] 
build-sys: do not install manpages from disabled features (#5844)

A few of the manpages where missing the "conditional" attribute.

7 years agohwdb: add Samsung 880Z5E series touchpad overrides (#5825)
Peter Hutterer [Fri, 28 Apr 2017 06:19:31 +0000 (16:19 +1000)] 
hwdb: add Samsung 880Z5E series touchpad overrides (#5825)

https://bugs.freedesktop.org/show_bug.cgi?id=100631

7 years agomeson: add compiler flags for "--tpm" in EFI apps (#5829)
Max Resch [Fri, 28 Apr 2017 00:59:37 +0000 (02:59 +0200)] 
meson: add compiler flags for "--tpm" in EFI apps (#5829)

Readds boot log tpm feature that was missing in meson by readding a
defines in efi_conf.h

7 years agoMerge pull request #5827 from keszybz/meson-libcap
Martin Pitt [Thu, 27 Apr 2017 20:12:28 +0000 (22:12 +0200)] 
Merge pull request #5827 from keszybz/meson-libcap

meson: fixes to allow meson builds on Ubuntu Trusty

7 years agomeson: do not install files from disabled features (#5811)
userwithuid [Thu, 27 Apr 2017 17:47:04 +0000 (17:47 +0000)] 
meson: do not install files from disabled features (#5811)

Mirror conditions from Makefile.am.

7 years agoMerge pull request #5818 from mbiebl/meson-no-libudev
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 17:40:15 +0000 (13:40 -0400)] 
Merge pull request #5818 from mbiebl/meson-no-libudev

meson: drop implicit libudev link dependencies

7 years agoMerge branch 'master' into meson-no-libudev 5818/head
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 17:39:54 +0000 (13:39 -0400)] 
Merge branch 'master' into meson-no-libudev

7 years agoMerge pull request #5821 from mbiebl/meson-no-libiptc
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 17:37:01 +0000 (13:37 -0400)] 
Merge pull request #5821 from mbiebl/meson-no-libiptc

Merge libfirewall into libshared, and link libshared to libip[46]tc directly.

7 years agobuild-sys: only install libexecdir/resolv.conf if resolved is enabled (#5826)
userwithuid [Thu, 27 Apr 2017 17:22:40 +0000 (17:22 +0000)] 
build-sys: only install libexecdir/resolv.conf if resolved is enabled (#5826)

as mentioned in https://github.com/systemd/systemd/pull/5811

7 years agomeson: fix detection of "-Wno-" options 5827/head
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 14:05:41 +0000 (10:05 -0400)] 
meson: fix detection of "-Wno-" options

7 years agomeson: add version check for libseccomp
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 14:05:18 +0000 (10:05 -0400)] 
meson: add version check for libseccomp

Compilation fails because of the missing arm64 bits with old seccomp versions.

7 years agomeson: also search for libcap directly
Zbigniew Jędrzejewski-Szmek [Thu, 27 Apr 2017 05:30:30 +0000 (01:30 -0400)] 
meson: also search for libcap directly

7 years agoimprove readability (#5814)
Matija Skala [Thu, 27 Apr 2017 00:08:52 +0000 (02:08 +0200)] 
improve readability (#5814)

7 years agoupdate-done: Create using a temporary file (#5789)
codekipper [Wed, 26 Apr 2017 23:49:06 +0000 (01:49 +0200)] 
update-done: Create using a temporary file (#5789)

'/etc/.updated' is created without using a temporary file, this can be
problematic with filesystems that cache writes. Modify so that the
timestamp is written to a temporary file and then use an atomic move
to move it to its correct place.

7 years agomeson: get rid of libfirewall 5821/head
Michael Biebl [Wed, 26 Apr 2017 20:14:23 +0000 (22:14 +0200)] 
meson: get rid of libfirewall

7 years agomeson: drop libiptc link dependencies from libshared
Michael Biebl [Wed, 26 Apr 2017 16:57:18 +0000 (18:57 +0200)] 
meson: drop libiptc link dependencies from libshared

The only place where libiptc is needed is in libfirewall, which already
takes care of linking against libiptc.

7 years agomeson: drop implicit libudev link dependencies 5817/head
Michael Biebl [Tue, 25 Apr 2017 18:19:54 +0000 (20:19 +0200)] 
meson: drop implicit libudev link dependencies

Executables which link against libshared do not need an explicit
dependency on libudev, as libshared will make sure that those symbols
are available.

7 years agomain: improve RLIMIT_NOFILE handling (#5795)
Christian Brauner [Wed, 26 Apr 2017 04:18:10 +0000 (06:18 +0200)] 
main: improve RLIMIT_NOFILE handling (#5795)

This has systemd look at /proc/sys/fs/nr_open to find the current maximum of
open files compiled into the kernel and tries to set the RLIMIT_NOFILE max to
it. This has the advantage the value chosen as limit is less arbitrary and also
improves the behavior of systemd in containers that have an rlimit set: When
systemd currently starts in a container that has RLIMIT_NOFILE set to e.g.
100000 systemd will lower it to 65536. With this patch systemd will try to set
the nofile limit to the allowed kernel maximum. If this fails, it will compute
the minimum of the current set value (the limit that is set on the container)
and the maximum value as soft limit and the currently set maximum value as the
maximum value. This way it retains the limit set on the container.

7 years agoimportd: support SUSE style checksums supplementary (#5800)
tblume [Wed, 26 Apr 2017 00:37:07 +0000 (02:37 +0200)] 
importd: support SUSE style checksums supplementary (#5800)

some small changes to make the code look better

7 years agobus: report builtins in GetManagedObjects() (#5799)
David Herrmann [Wed, 26 Apr 2017 00:36:30 +0000 (02:36 +0200)] 
bus: report builtins in GetManagedObjects() (#5799)

We already report builtin interfaces with InterfacesAdded and InterfacesRemoved. However,
we never reported them in GetManagedObjects(). This might end up confusing callers that
want to use those interfaces (or simply rely on the interface count to be coherent).

Report the builtins for all objects that are queried.

7 years agoMerge pull request #5803 from ssahani/util
Zbigniew Jędrzejewski-Szmek [Wed, 26 Apr 2017 00:28:38 +0000 (20:28 -0400)] 
Merge pull request #5803 from ssahani/util

config_parser: add util function config_parse_uint8

7 years agoMerge pull request #5805 from keszybz/apendv-man-rule
Michael Biebl [Tue, 25 Apr 2017 19:16:34 +0000 (21:16 +0200)] 
Merge pull request #5805 from keszybz/apendv-man-rule

meson: add sd_bus_message_appendv alias to man list

7 years agomeson: add sd_bus_message_appendv alias to man list 5805/head
Zbigniew Jędrzejewski-Szmek [Tue, 25 Apr 2017 18:20:55 +0000 (14:20 -0400)] 
meson: add sd_bus_message_appendv alias to man list

As generated by "nj update-man-rules".

7 years agoMerge pull request #5804 from ssahani/geneve
Michael Biebl [Tue, 25 Apr 2017 16:00:32 +0000 (18:00 +0200)] 
Merge pull request #5804 from ssahani/geneve

meson: add geneve to build system

7 years agomeson: add geneve to build system 5804/head
Susant Sahani [Tue, 25 Apr 2017 15:00:34 +0000 (20:30 +0530)] 
meson: add geneve to build system

```
[107/1793] Compiling c object 'src/basic/basic@sta/log.c.o'
In file included from ../src/basic/log.c:44:0:
../src/basic/missing.h:762:6: warning: "HAVE_DECL_IFLA_GENEVE_LABEL" is not defined, evaluates to 0 [-Wundef]
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[108/1793] Compiling c object 'src/basic/basic@sta/path-util.c.o'
In file included from ../src/basic/path-util.c:40:0:
../src/basic/missing.h:762:6: warning: "HAVE_DECL_IFLA_GENEVE_LABEL" is not defined, evaluates to 0 [-Wundef]
^~~~~~~~~~~~~~~~~~~~~~~~~~~

```

7 years agonetworkd: route add missing search for route object. 5803/head
Susant Sahani [Tue, 25 Apr 2017 14:29:39 +0000 (19:59 +0530)] 
networkd: route add missing search for route object.

Probaly this happened during rebase.

7 years agonetworkd: replace geneve parsers with generic config_parse_uint8
Susant Sahani [Tue, 25 Apr 2017 13:12:56 +0000 (18:42 +0530)] 
networkd: replace geneve parsers with generic config_parse_uint8

7 years agoconfig parser: Introduce config_parse_uint8
Susant Sahani [Tue, 25 Apr 2017 13:11:50 +0000 (18:41 +0530)] 
config parser: Introduce config_parse_uint8

7 years agoMerge pull request #5704 from keszybz/meson
Evgeny Vereshchagin [Tue, 25 Apr 2017 13:10:15 +0000 (16:10 +0300)] 
Merge pull request #5704 from keszybz/meson

meson: build systemd using meson

7 years agonspawn: check cgroups after parsing options 5801/head
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:05 +0000 (19:28 -0400)] 
nspawn: check cgroups after parsing options

Same justification as in previous commit.

7 years agocgtop: check cgroups after parsing options
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:05 +0000 (19:28 -0400)] 
cgtop: check cgroups after parsing options

We would try to determine controllers even if not necessary:
<mock-chroot><mock-chroot> sh-4.4# ./systemd-cgtop --help
Failed to determine supported controllers: No medium found
<mock-chroot><mock-chroot> sh-4.4# ./systemd-cgtop --version
Failed to determine supported controllers: No medium found

This broke check-help-systemd-cgtop under mock, but even apart
from that, the program should be able to print --version in any
circumstances.

7 years agomeson: require newest meson and revert m4 patch 5704/head
Zbigniew Jędrzejewski-Szmek [Tue, 25 Apr 2017 12:49:58 +0000 (08:49 -0400)] 
meson: require newest meson and revert m4 patch

This reverts 78b68dcb55.

7 years agomeson: use name arg so check result is reported
Zbigniew Jędrzejewski-Szmek [Tue, 25 Apr 2017 01:46:40 +0000 (21:46 -0400)] 
meson: use name arg so check result is reported

7 years agomeson: fix checking of linker args
Zbigniew Jędrzejewski-Szmek [Tue, 25 Apr 2017 01:03:35 +0000 (21:03 -0400)] 
meson: fix checking of linker args

Previous checks did nothing, because cc.has_argument only does compilation,
without any linking. Unfortunately cc.links() cannot be used, because it does
not accept any options. Providing the test file as a static source is easiest,
even if not every elegant.

https://github.com/mesonbuild/meson/issues/1676

7 years agomeson: also indent scripts with 8 spaces
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:40:02 +0000 (19:40 -0400)] 
meson: also indent scripts with 8 spaces

7 years agofix parenthesis in pager.c (#5798)
Matija Skala [Tue, 25 Apr 2017 12:44:29 +0000 (14:44 +0200)] 
fix parenthesis in pager.c (#5798)

- result of dup2 should be compared against 0
- making parenthesis around comparisons just to be sure

7 years agoMerge pull request #5752 from ssahani/geneve
Lennart Poettering [Tue, 25 Apr 2017 10:34:36 +0000 (12:34 +0200)] 
Merge pull request #5752 from ssahani/geneve

networkd: Introduce geneve GEneric NEtwork Virtualization Encapsulation

7 years agonetworkd: make IPv6 route preference configurable (#5700)
Susant Sahani [Tue, 25 Apr 2017 07:32:59 +0000 (13:02 +0530)] 
networkd: make IPv6 route preference configurable (#5700)

The work supports route preference configurable.
i.e. able to set low, medium and high.

7 years agoExport sd_bus_message_append_ap. It is renamed to sd_bus_message_appendv to follow...
Federico [Tue, 25 Apr 2017 07:32:24 +0000 (09:32 +0200)] 
Export sd_bus_message_append_ap. It is renamed to sd_bus_message_appendv to follow systemd naming conventions. (#5753)

Moreover, man page for sd_bus_message_append is updated with reference to new exposed function.
Makefile-man is updated too, to reflect new alias.

7 years agoload-fragment: don't print error about incorrect syntax when IPv6 is disabled (#5791)
Michal Sekletar [Tue, 25 Apr 2017 07:31:52 +0000 (09:31 +0200)] 
load-fragment: don't print error about incorrect syntax when IPv6 is disabled (#5791)

7 years agodocs: clarify ExecStop= implications for remaining processes (#5793)
Amir Yalon [Tue, 25 Apr 2017 07:31:29 +0000 (10:31 +0300)] 
docs: clarify ExecStop= implications for remaining processes (#5793)

7 years agonetworkd: Introduce GENEVE netdev 5752/head
Susant Sahani [Tue, 25 Apr 2017 04:15:05 +0000 (09:45 +0530)] 
networkd: Introduce GENEVE netdev

This work enables cration of geneve tunnel

7 years agosd-netlink: Add Geneve properties to netlink
Susant Sahani [Tue, 25 Apr 2017 04:14:28 +0000 (09:44 +0530)] 
sd-netlink: Add Geneve properties to netlink

7 years agoAdd Geneve netlink properties to missing.h
Susant Sahani [Tue, 25 Apr 2017 04:13:41 +0000 (09:43 +0530)] 
Add Geneve netlink properties to missing.h

7 years agomeson: add git-snapshot target
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:05 +0000 (19:28 -0400)] 
meson: add git-snapshot target

The output is systemd-<sha1abbrev>.tar.gz in source root.

7 years agomeson: test-ns is manual, not just unsafe
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:05 +0000 (19:28 -0400)] 
meson: test-ns is manual, not just unsafe

7 years agomeson: there is no smack library
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:04 +0000 (19:28 -0400)] 
meson: there is no smack library

Detection would always fail, so this was broken.
Treat this as a binary enable/disable option.

7 years agomeson: add forgotten tpm support
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:04 +0000 (19:28 -0400)] 
meson: add forgotten tpm support

7 years agomeson: use -f{function,data}-sections for optimized builds
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 23:28:04 +0000 (19:28 -0400)] 
meson: use -f{function,data}-sections for optimized builds

7 years agomeson: allow static linking of systemd-hwdb
Michael Biebl [Fri, 21 Apr 2017 16:32:14 +0000 (18:32 +0200)] 
meson: allow static linking of systemd-hwdb

Various distros split udev and its helpers into a separate binary
package. In case of Debian this also includes systemd-hwdb.
In Debian, the udev package is not supposed to depend on systemd, so a
dependency on libsystemd-shared.so is not desired. Allow the
systemd-hwdb binary to be linked statically if link-udev-shared is set
to false.

Follow-up for 3a30f21ff8ddbef5eae61d6e4305ec1cd2e4e041.

7 years agomeson: add forgotten parse_hwdb.py test
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 01:36:29 +0000 (21:36 -0400)] 
meson: add forgotten parse_hwdb.py test

7 years agomeson: fix gcrypt config option
Michael Biebl [Fri, 21 Apr 2017 21:45:54 +0000 (23:45 +0200)] 
meson: fix gcrypt config option

Also detect libgpg-error. Require both to be present for HAVE_CRYPT,
even though libgpg-error is only used in src/resolve. If one is available,
the other should be too, so it doesn't seem worth the trouble to make two
separate conditions.

7 years agomeson: add option to disable libacl support
Zbigniew Jędrzejewski-Szmek [Fri, 21 Apr 2017 17:53:59 +0000 (13:53 -0400)] 
meson: add option to disable libacl support

7 years agomeson: $DESTDIR might be undefined
Zbigniew Jędrzejewski-Szmek [Thu, 20 Apr 2017 16:06:14 +0000 (12:06 -0400)] 
meson: $DESTDIR might be undefined

This causes an error with -u. Just add an empty fallback.

7 years agomeson: define gnu_efi_arch for the arch efi name, fix ldsdir detection
Zbigniew Jędrzejewski-Szmek [Thu, 20 Apr 2017 02:57:52 +0000 (22:57 -0400)] 
meson: define gnu_efi_arch for the arch efi name, fix ldsdir detection

This fixes ldsdir detection under Debian.

v2:
- define gnu_efi_arch for the arch efi include directory name

  In the autotools naming convention, efi_arch and this directory always had
  the same name. But meson.cpu_family() uses a slightly different convention,
  so those two don't always match.

7 years agohwdb: add IBM USB Travel Mouse (MO32BO) (#5787)
Zbigniew Jędrzejewski-Szmek [Mon, 24 Apr 2017 21:02:09 +0000 (17:02 -0400)] 
hwdb: add IBM USB Travel Mouse (MO32BO) (#5787)

Contributed by rderooy. Closes #5785.

7 years agoimportd: support SUSE style checksums (#5206)
tblume [Mon, 24 Apr 2017 18:37:11 +0000 (20:37 +0200)] 
importd: support SUSE style checksums (#5206)

In order to verify a pulled container or disk image, importd only supports
SHA256SUMS files with the detached signature in SHA256SUMS.gpg.
SUSE is using an inline signed file with the name of the image itself and the
suffix .sha256 instead.
This commit adds support for this type of signature files.

It is first attempted to pull the .sha256 file.
If this fails with error 404, the SHA256SUMS and SHA256SUMS.gpg files are
pulled and used for verification.

7 years agoMerge pull request #5354 from msekletar/issue-518
Lennart Poettering [Mon, 24 Apr 2017 17:51:34 +0000 (19:51 +0200)] 
Merge pull request #5354 from msekletar/issue-518

service: serialize information about currently executing command

7 years agoupdate TODO
Lennart Poettering [Mon, 24 Apr 2017 16:48:10 +0000 (18:48 +0200)] 
update TODO

7 years agofstab-generator: do not skip Before= ordering for noauto mountpoints (#5547)
Ivan Shapovalov [Mon, 24 Apr 2017 16:38:53 +0000 (20:38 +0400)] 
fstab-generator: do not skip Before= ordering for noauto mountpoints (#5547)

7 years agosd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually deleted...
Michal Sekletar [Mon, 24 Apr 2017 16:33:12 +0000 (18:33 +0200)] 
sd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually deleted/moved (#5580)

When caller invokes sd_journal_open() we usually open at least one
directory with journal files. add_root_directory() function increments
current_invalidate_counter. After sd_journal_open() returns
current_invalidate_counter != last_invalidate_counter.

After caller waits for journal events (e.g. waits for new messages in
journal) then it usually calls sd_journal_process(). However, on first
call to sd_journal_process(), function determine_change() returns
SD_JOURNAL_INVALIDATE even though no journal files were
deleted/moved. This is because current_invalidate_counter !=
last_invalidate_counter.

After the fix we make sure counters has the same value before we begin
processing inotify events.

7 years agoredirect stdout/stderr back when closing the pager (#5661)
Matija Skala [Mon, 24 Apr 2017 16:30:50 +0000 (18:30 +0200)] 
redirect stdout/stderr back when closing the pager (#5661)

7 years agoload-fragment: resolve specifiers in BindPaths/BindReadOnlyPaths (#5687)
Danielle Church [Mon, 24 Apr 2017 16:23:35 +0000 (12:23 -0400)] 
load-fragment: resolve specifiers in BindPaths/BindReadOnlyPaths (#5687)

7 years agoman: clarify udevadm monitor --tag-match/--filter-match (#5726)
Julian Mehne [Mon, 24 Apr 2017 14:56:40 +0000 (16:56 +0200)] 
man: clarify udevadm monitor --tag-match/--filter-match (#5726)

--tag-match only filters tags, not properties
--tag-match only has an effect on udev events
--subsystem-match filters both event types

7 years agoman: systemd.journal-fields: Note about originator PID (#5724)
Michal Koutný [Mon, 24 Apr 2017 14:19:53 +0000 (16:19 +0200)] 
man: systemd.journal-fields: Note about originator PID (#5724)

7 years agomeson: detect getrandom in sys/random.h, fall back to linux/random.h
Zbigniew Jędrzejewski-Szmek [Thu, 20 Apr 2017 01:20:54 +0000 (21:20 -0400)] 
meson: detect getrandom in sys/random.h, fall back to linux/random.h

This is analogous to commit e84397d95c3da2b9722ff265843ad4a8874643d8.

7 years agomeson: check string.h not strings.h for explicit_bzero
Zbigniew Jędrzejewski-Szmek [Wed, 19 Apr 2017 20:14:16 +0000 (16:14 -0400)] 
meson: check string.h not strings.h for explicit_bzero

I used strings.h because that's what explicit_bzero(3) says. But glibc defines
it in string.h. There are no other available implementations atm (musl does not
define it, bionic aliases it to memset in openbsd-compat.h, yikes). We also
include just string.h from the code. So just look for the function in string.h,
and if it ever appears in other places, we can change the detection and includes.

7 years agomeson: fix 'clean'
Zbigniew Jędrzejewski-Szmek [Wed, 19 Apr 2017 15:30:32 +0000 (11:30 -0400)] 
meson: fix 'clean'

7 years agomeson: install the dbus aliases for resolve1 and network1 in /etc
Zbigniew Jędrzejewski-Szmek [Wed, 19 Apr 2017 14:32:42 +0000 (10:32 -0400)] 
meson: install the dbus aliases for resolve1 and network1 in /etc

This way when the units are disabled, their dbus activation is also disabled.

v2:
- fix the symlink location

7 years agoREADME: update with meson instructions
Zbigniew Jędrzejewski-Szmek [Wed, 19 Apr 2017 01:52:30 +0000 (21:52 -0400)] 
README: update with meson instructions

v2:
- call the project ninja-build and the executable ninja.
  (/usr/bin/ninja-build is a fedora-ism, hopefully gone soon.)

7 years agomeson: add rule to regenerate man/rules/meson.build
Zbigniew Jędrzejewski-Szmek [Wed, 19 Apr 2017 01:00:46 +0000 (21:00 -0400)] 
meson: add rule to regenerate man/rules/meson.build

7 years agomeson: add ln --relative check
Zbigniew Jędrzejewski-Szmek [Tue, 18 Apr 2017 23:11:54 +0000 (19:11 -0400)] 
meson: add ln --relative check

7 years agomeson: use "sh -eu" and make .sh +x, .py -x
Zbigniew Jędrzejewski-Szmek [Tue, 18 Apr 2017 21:14:48 +0000 (17:14 -0400)] 
meson: use "sh -eu" and make .sh +x, .py -x

Shell scripts should be executable so that meson reports their
invocation succinctly (does not print 'sh' '-e').
Python scripts should not be executable so that meson does the
detection of the right python binary itself.

Add -u everywhere to catch potential errors.

7 years agomeson: use run_target instead of custom_target where appropriate
Zbigniew Jędrzejewski-Szmek [Mon, 17 Apr 2017 23:48:20 +0000 (19:48 -0400)] 
meson: use run_target instead of custom_target where appropriate

This way a fake output does not need to be specified.

7 years agomeson: add libblkid as libudev-core dep to fix include dir
Zbigniew Jędrzejewski-Szmek [Mon, 17 Apr 2017 23:33:10 +0000 (19:33 -0400)] 
meson: add libblkid as libudev-core dep to fix include dir

Follow-up for 6b5cf3ea62.

v2:
- also link udevadm and systemd-udev statically if requested

v3:
- fix install_rpath for udevadm (Michael Biebl)

7 years agomeson: reindent all files with 8 spaces
Zbigniew Jędrzejewski-Szmek [Mon, 17 Apr 2017 23:25:00 +0000 (19:25 -0400)] 
meson: reindent all files with 8 spaces

The indentation for emacs'es meson-mode is added .dir-locals.

All files are reindented automatically, using the lasest meson-mode from git.
Indentation should now be fairly consistent.

7 years agomeson: use efi-includedir to look for header
Zbigniew Jędrzejewski-Szmek [Mon, 17 Apr 2017 17:22:28 +0000 (13:22 -0400)] 
meson: use efi-includedir to look for header

This change mirrors cba49f2deab481045408d5452ac8c84fc03bccd5.

7 years agomeson: allow optional static linking of shared code in udev helpers
Zbigniew Jędrzejewski-Szmek [Mon, 17 Apr 2017 16:07:12 +0000 (12:07 -0400)] 
meson: allow optional static linking of shared code in udev helpers

This makes the helper binaries significantly bigger (in some cases, the final
size depends on link options and optimization level), and is only useful for
distributions which want to provide the option to install udev without systemd.
As the linking is improved, the difference between the columns might shrink,
but it's unlikely that linking libshared statically could ever be more
efficient.

E.g. with -O0, no -flto:
                   (static) (shared)
src/udev/ata_id     999176    85696
src/udev/cdrom_id  1024344   111656
src/udev/collect    990344    81280
src/udev/scsi_id   1023592   115656
src/udev/v4l_id     811736    17744

When linked dynamically, install_rpath must be specified, so add that.

7 years agotest-efi-create-disk.sh: allow running from separate build dir, hook up to meson
Zbigniew Jędrzejewski-Szmek [Sun, 16 Apr 2017 16:04:46 +0000 (12:04 -0400)] 
test-efi-create-disk.sh: allow running from separate build dir, hook up to meson

This allow test-efi-disk.img to be created under meson.
The invocation of qemu is not converted yet, in particular because the
command-line used in Makefile.am is outdated.

7 years agomeson: add dist-check-includes replacement
Zbigniew Jędrzejewski-Szmek [Sun, 16 Apr 2017 02:50:56 +0000 (22:50 -0400)] 
meson: add dist-check-includes replacement

This is more-or-less the same as dist-check-includes. meson doesn't exactly
make it easy to call a compiler with a custom set of options. The tests
are included in the test listing.

7 years agohwdb: use curl instead of wget, and regenerate patch after successful update
Zbigniew Jędrzejewski-Szmek [Tue, 18 Apr 2017 21:28:14 +0000 (17:28 -0400)] 
hwdb: use curl instead of wget, and regenerate patch after successful update

libcurl is already our build dependency, so using curl reduces the deps
a bit, and curl also has a more modern codebase.

Regenerating the patch makes it more likely that the patch will apply
in the future.

Also, update URLs which return 302 to the new location.

(Patch suggested by Igor Gnatenko.)

7 years agomeson: add journal-install and hwdb-update hooks
Zbigniew Jędrzejewski-Szmek [Sat, 15 Apr 2017 04:56:05 +0000 (00:56 -0400)] 
meson: add journal-install and hwdb-update hooks

v2:
- ignore errors in chown/chmod/setfacl
- obey -Dadm-group=false, -Dwheel-group=false
- fix reversed condition for systemd-hwdb update hook

7 years agomeson: add hwdb/update target
Zbigniew Jędrzejewski-Szmek [Sat, 15 Apr 2017 04:40:59 +0000 (00:40 -0400)] 
meson: add hwdb/update target

7 years agomeson: add git-contrib target
Zbigniew Jędrzejewski-Szmek [Sat, 15 Apr 2017 04:16:23 +0000 (00:16 -0400)] 
meson: add git-contrib target

7 years agomeson: add man/doc-sync target
Zbigniew Jędrzejewski-Szmek [Sat, 15 Apr 2017 04:07:57 +0000 (00:07 -0400)] 
meson: add man/doc-sync target

Seems to work OK. It would be nicer to call it 'doc-sync' not 'man/doc-sync',
but OK.

7 years agomeson: add test-dlopen
Zbigniew Jędrzejewski-Szmek [Sat, 15 Apr 2017 00:10:28 +0000 (20:10 -0400)] 
meson: add test-dlopen

test-dlopen is a very simple binary that is only linked with libc and
libdl. From it we do dlopen() on the nss and pam modules to check that they are
linked to all necessary libs.

(meson-compiled nss modules are linked to less libraries, for whatever reason.
I suspected that some deps are missing, but it turns out that my suspicions
weren't justified, and the modules load just fine. Let's keep the test though,
it is very quick, and might detect missing linkage in the future.)

7 years agotest-nss: fix loading of modules under meson
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 23:49:15 +0000 (19:49 -0400)] 
test-nss: fix loading of modules under meson

There is no .libs dirs under meson. Just try both paths.

7 years agomeson: eliminate libsystemd_journal_internal and use libsystemd_internal less
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 22:49:47 +0000 (18:49 -0400)] 
meson: eliminate libsystemd_journal_internal and use libsystemd_internal less

This simplifies things and leads to a smaller installation footprint.
libsystemd_internal and libsystemd_journal_internal are linked into
libystemd-shared and available to all programs linked to libsystemd-shared.
libsystemd_journal_internal is not needed anymore, and libsystemd-shared
is used everwhere. The few exceptions are: libsystemd.so, test-engine,
test-bus-error, and various loadable modules.

7 years agomeson: add rootprefix option (for Gentoo)
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 02:15:01 +0000 (22:15 -0400)] 
meson: add rootprefix option (for Gentoo)

7 years agomeson: install test data
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 00:47:20 +0000 (20:47 -0400)] 
meson: install test data

v2:
- do not install test-data if instal-tests=no

7 years agomeson: replace yes/no/auto with true/false/auto
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 00:30:07 +0000 (20:30 -0400)] 
meson: replace yes/no/auto with true/false/auto

This doesn't feel as natural, but is more consistent with the boolean options
which require true/false, and allows setting of options without knowing of
which type the option is.

7 years agomeson: fix condition for installation of .in units, 99-default.link
Zbigniew Jędrzejewski-Szmek [Fri, 14 Apr 2017 00:17:04 +0000 (20:17 -0400)] 
meson: fix condition for installation of .in units, 99-default.link

The condition to install in_units was calculated, but not used.

99-default.link should be installed uncoditionally.