summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-24meson: add option to disable libacl supportZbigniew Jędrzejewski-Szmek
2017-04-24meson: $DESTDIR might be undefinedZbigniew Jędrzejewski-Szmek
This causes an error with -u. Just add an empty fallback.
2017-04-24meson: define gnu_efi_arch for the arch efi name, fix ldsdir detectionZbigniew Jędrzejewski-Szmek
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.
2017-04-24hwdb: add IBM USB Travel Mouse (MO32BO) (#5787)Zbigniew Jędrzejewski-Szmek
Contributed by rderooy. Closes #5785.
2017-04-24importd: support SUSE style checksums (#5206)tblume
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.
2017-04-24Merge pull request #5354 from msekletar/issue-518Lennart Poettering
service: serialize information about currently executing command
2017-04-24update TODOLennart Poettering
2017-04-24fstab-generator: do not skip Before= ordering for noauto mountpoints (#5547)Ivan Shapovalov
2017-04-24sd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually ↵Michal Sekletar
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.
2017-04-24redirect stdout/stderr back when closing the pager (#5661)Matija Skala
2017-04-24load-fragment: resolve specifiers in BindPaths/BindReadOnlyPaths (#5687)Danielle Church
2017-04-24man: clarify udevadm monitor --tag-match/--filter-match (#5726)Julian Mehne
--tag-match only filters tags, not properties --tag-match only has an effect on udev events --subsystem-match filters both event types
2017-04-24man: systemd.journal-fields: Note about originator PID (#5724)Michal Koutný
2017-04-23meson: detect getrandom in sys/random.h, fall back to linux/random.hZbigniew Jędrzejewski-Szmek
This is analogous to commit e84397d95c3da2b9722ff265843ad4a8874643d8.
2017-04-23meson: check string.h not strings.h for explicit_bzeroZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: fix 'clean'Zbigniew Jędrzejewski-Szmek
2017-04-23meson: install the dbus aliases for resolve1 and network1 in /etcZbigniew Jędrzejewski-Szmek
This way when the units are disabled, their dbus activation is also disabled. v2: - fix the symlink location
2017-04-23README: update with meson instructionsZbigniew Jędrzejewski-Szmek
v2: - call the project ninja-build and the executable ninja. (/usr/bin/ninja-build is a fedora-ism, hopefully gone soon.)
2017-04-23meson: add rule to regenerate man/rules/meson.buildZbigniew Jędrzejewski-Szmek
2017-04-23meson: add ln --relative checkZbigniew Jędrzejewski-Szmek
2017-04-23meson: use "sh -eu" and make .sh +x, .py -xZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: use run_target instead of custom_target where appropriateZbigniew Jędrzejewski-Szmek
This way a fake output does not need to be specified.
2017-04-23meson: add libblkid as libudev-core dep to fix include dirZbigniew Jędrzejewski-Szmek
Follow-up for 6b5cf3ea62. v2: - also link udevadm and systemd-udev statically if requested v3: - fix install_rpath for udevadm (Michael Biebl)
2017-04-23meson: reindent all files with 8 spacesZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: use efi-includedir to look for headerZbigniew Jędrzejewski-Szmek
This change mirrors cba49f2deab481045408d5452ac8c84fc03bccd5.
2017-04-23meson: allow optional static linking of shared code in udev helpersZbigniew Jędrzejewski-Szmek
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.
2017-04-23test-efi-create-disk.sh: allow running from separate build dir, hook up to mesonZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: add dist-check-includes replacementZbigniew Jędrzejewski-Szmek
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.
2017-04-23hwdb: use curl instead of wget, and regenerate patch after successful updateZbigniew Jędrzejewski-Szmek
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.)
2017-04-23meson: add journal-install and hwdb-update hooksZbigniew Jędrzejewski-Szmek
v2: - ignore errors in chown/chmod/setfacl - obey -Dadm-group=false, -Dwheel-group=false - fix reversed condition for systemd-hwdb update hook
2017-04-23meson: add hwdb/update targetZbigniew Jędrzejewski-Szmek
2017-04-23meson: add git-contrib targetZbigniew Jędrzejewski-Szmek
2017-04-23meson: add man/doc-sync targetZbigniew Jędrzejewski-Szmek
Seems to work OK. It would be nicer to call it 'doc-sync' not 'man/doc-sync', but OK.
2017-04-23meson: add test-dlopenZbigniew Jędrzejewski-Szmek
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.)
2017-04-23test-nss: fix loading of modules under mesonZbigniew Jędrzejewski-Szmek
There is no .libs dirs under meson. Just try both paths.
2017-04-23meson: eliminate libsystemd_journal_internal and use libsystemd_internal lessZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: add rootprefix option (for Gentoo)Zbigniew Jędrzejewski-Szmek
2017-04-23meson: install test dataZbigniew Jędrzejewski-Szmek
v2: - do not install test-data if instal-tests=no
2017-04-23meson: replace yes/no/auto with true/false/autoZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: fix condition for installation of .in units, 99-default.linkZbigniew Jędrzejewski-Szmek
The condition to install in_units was calculated, but not used. 99-default.link should be installed uncoditionally.
2017-04-23meson: skip index generation when lxml is not availableZbigniew Jędrzejewski-Szmek
2017-04-23meson: ima supportZbigniew Jędrzejewski-Szmek
2017-04-23meson: libxkbcommon supportZbigniew Jędrzejewski-Szmek
2017-04-23meson: recreate dist-check-helpZbigniew Jędrzejewski-Szmek
2017-04-23meson: use join_paths consistentlyMichael Biebl
With -Dsplit-usr=true, we set rootprefix to /. This leads to //lib/systemd or //lib/udev for various dir variables. Using join_paths() avoids this.
2017-04-23meson: rework processing of unit filesZbigniew Jędrzejewski-Szmek
Ideally, we would chain the m4 processing, .in substitutions, and file installation so that the commands don't have to be repeated. Unfortunately this does not seem currently possible, because custom_target() output cannot be fed into install_data(), so it's necessary to use the 'install', 'install_dir' arguments to control installation. Nevertheless, rework the rules to repeat less stuff and unify handling of conditions between the different file types.
2017-04-23meson: support (the removal of) lines with ##Zbigniew Jędrzejewski-Szmek
2017-04-23meson: fix a bunch of substitutionsZbigniew Jędrzejewski-Szmek
This makes the diff -r output on autotools and meson installations empty, except for binary files and ## comments.
2017-04-23meson: properly conditionalize polkit installationZbigniew Jędrzejewski-Szmek
... including pkla installation on Debian. v2: - fix polkit-gobject-1 pkgconfig name
2017-04-23meson: add support for building efi modulesZbigniew Jędrzejewski-Szmek
This is a very straightforward conversion of the rules in Makefile.am. Generated objects (on arm64) are identical. The only difference in executed commands is that automake uses ld -m elf_x86_64, without us specifying the -m option anywhere. I suspect that using the default for the given linker should be OK, so it's fine to just skip it.