Lennart Poettering [Thu, 14 Jan 2021 14:02:27 +0000 (15:02 +0100)]
systemctl: explicitly comment two cases where we don't log on error cases, on purpose
Lennart Poettering [Thu, 14 Jan 2021 14:01:55 +0000 (15:01 +0100)]
systemctl: properly initialize return params in all success cases
Lennart Poettering [Thu, 14 Jan 2021 14:00:41 +0000 (15:00 +0100)]
unit-file: downgrade log message to debug
In the other error paths unit_file_find_fragment() doesn't log beyond
debug level, i.e. is of the non-logging library-like kind. Make sure
this error path is handled the same, so that the caller can log.
Lennart Poettering [Thu, 14 Jan 2021 14:00:29 +0000 (15:00 +0100)]
unit-file: fix indentation
Lennart Poettering [Thu, 14 Jan 2021 13:14:24 +0000 (14:14 +0100)]
update TODO
krissgjeng [Wed, 13 Jan 2021 23:08:36 +0000 (00:08 +0100)]
hwdb: add Cube Mix Plus (i18B) rotation info
Added Cube Mix Plus (i18B) Rotation information.
Also Combined the sensor lines with the different Cube i7 stylus models because they use the same ACCEL_MOUNT_MATRIX
Luca Boccassi [Thu, 14 Jan 2021 10:00:24 +0000 (10:00 +0000)]
Merge pull request #18226 from mrc0mmand/actions-flake-workarounds
ci: assorted workarounds for recent flakes
Josh Triplett [Wed, 30 Dec 2020 23:11:30 +0000 (15:11 -0800)]
Add install-sysconfdir=no-samples option for (non-)installation of sample configs
By default, systemd installs various sample configuration files
containing commented-out defaults. Systems seeking to minimize the
number of files in /etc may wish to install directories and
configuration files that have semantic effects, but not install not
commented-out sample configuration files.
Turn install-sysconfdir into a multi-valued option, with a "no-samples"
value to skip installing sample-only configuration files.
Frantisek Sumsal [Wed, 13 Jan 2021 20:42:13 +0000 (21:42 +0100)]
ci: introduce a watchdog for the sanitized unit test run
Frantisek Sumsal [Tue, 12 Jan 2021 21:14:59 +0000 (22:14 +0100)]
ci: skip test-execute on GH Actions under ASan
It seems to suffer from the same issue as on Travis CI, where the test
randomly fails due to timeouts in its subtests.
See: https://github.com/systemd/systemd/issues/10696#issuecomment-
758501797
Yu Watanabe [Wed, 13 Jan 2021 15:10:23 +0000 (00:10 +0900)]
udev: add missing short option name
Follow-up for
4fcc033b5476039a7a8030e1edc261d42cec028b.
Fixes CID#
1442307.
Lennart Poettering [Wed, 13 Jan 2021 20:52:44 +0000 (21:52 +0100)]
Merge pull request #18227 from yuwata/network-dhcp6-pd-manage-temporary-address
network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section
krissgjeng [Wed, 13 Jan 2021 20:52:11 +0000 (21:52 +0100)]
hwdb: add Linx Vision 8 rotation information (#18228)
Frantisek Sumsal [Wed, 13 Jan 2021 20:48:36 +0000 (21:48 +0100)]
ci: optimize the sanitized build under gcc as well
Yu Watanabe [Wed, 13 Jan 2021 15:20:04 +0000 (00:20 +0900)]
Merge pull request #9864 from ximion/master
localed: Run locale-gen if available to generate missing locale
Yu Watanabe [Wed, 13 Jan 2021 15:19:29 +0000 (00:19 +0900)]
Merge pull request #18170 from OnkelUlla/udev_introduce_TxQueueLen=_setting
udev: introduce TxQueueLength= setting
Yu Watanabe [Tue, 12 Jan 2021 21:34:32 +0000 (06:34 +0900)]
network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section
The setting is enabled by default, as NDisc also enabled the flag by
default.
Closes #18208.
Yu Watanabe [Tue, 12 Jan 2021 21:20:44 +0000 (06:20 +0900)]
network: drop a function argument which is always constant
Felix Stupp [Thu, 29 Oct 2020 11:48:48 +0000 (12:48 +0100)]
Added option --check-inhibitors for non-tty usage
As described in #2680, systemctl did ignore inhibitors if it is not
attached to a tty to allow scripts to ignore inhibitors automatically.
This pull request preserves this behavior but allows scripts to
explicit check inhibitors if required.
The new parameter '--check-inhibitors=yes' enables this feature.
The old parameter '-i'/'--ignore-inhibitors' was deprecated in favor
of '--check-inhibitors=no', the default behaviour can be specified
with '--check-inhibitors=auto'.
The new parameter is also described in the documentations and shell
completions found here.
Yu Watanabe [Wed, 13 Jan 2021 06:57:42 +0000 (15:57 +0900)]
Merge pull request #18225 from poettering/tmpfiles-argument
tmpfiles: fix documentation about quoting the "argument" field in tmpfiles.d snippets
Ulrich Ölmann [Wed, 6 Jan 2021 17:43:06 +0000 (18:43 +0100)]
udev: introduce TxQueueLength= setting
Enable udev to set the transmit queue length of a device via a new directive to
be used in link files. The kernel stores this parameter as an unsigned 32 bit
integer. As typical values currently range in the order of 10 to a few 10,000
packets reduce the domain of valid values for this directive to 0..
4294967294
and take the excluded
4294967295 == UINT32_MAX to indicate that the directive
is unset.
Ulrich Ölmann [Wed, 13 Jan 2021 05:26:28 +0000 (06:26 +0100)]
link-config: amend log message for failed application of settings
This has been forgotten in pull request #17628 ("udev: Add support to
configure Generic Segment Offload"), see [1].
[1] https://github.com/systemd/systemd/pull/17628
Matthias Klumpp [Fri, 8 Jan 2021 22:59:38 +0000 (23:59 +0100)]
localed: Run locale-gen if available to generate missing locale
This change improves integration with distributions using locale-gen to
generate missing locale on-demand, like Debian-based distributions
(Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
We only ever enable new locales for generation, and never disable them.
Furthermore, we only generate UTF-8 locale.
This feature is only used if explicitly enabled at compile-time, and
will also be inert at runtime if the locale-gen binary is missing.
Matthias Klumpp [Sat, 10 Oct 2020 02:40:23 +0000 (04:40 +0200)]
Add helper for case-independent string equality checks
Yu Watanabe [Tue, 12 Jan 2021 14:35:01 +0000 (23:35 +0900)]
network: reconfigure interface when wifi iftype is updated
Follow-up for
a66a402da471f6230ab8674fd2c1df6d918773b5.
Fixes #18059.
Frantisek Sumsal [Tue, 12 Jan 2021 21:13:33 +0000 (22:13 +0100)]
ci: drop the `unbuffer` workaround
It actually didn't do anything, the issue was somewhere else.
Lennart Poettering [Tue, 12 Jan 2021 17:49:11 +0000 (18:49 +0100)]
import: mangle untarred OS images after pull-tar, too
We do this for import-tar and import-fs, we should do it for pull-tar,
too.
Fixes: #17563
Lennart Poettering [Tue, 12 Jan 2021 20:39:02 +0000 (21:39 +0100)]
test: add a test that ensures we don't regress on "argument" field handling in tmpfiles.d
Let's make sure what is now documented as fix for #17740 is not
accidentally changed anymore.
Lennart Poettering [Tue, 12 Jan 2021 20:38:04 +0000 (21:38 +0100)]
tmpfiles: add ANSI highlighting to our help text
As it is common now in our tools.
Lennart Poettering [Tue, 12 Jan 2021 20:36:54 +0000 (21:36 +0100)]
extract-word: don't rely on C's downgrade-to-bool feature for chars
The `quote` char variable ectually contains a character, not a pointer
or boolean. hence do an explicit comparison rather than rely on C's
downgrade to bool feature, as per our coding style.
Lennart Poettering [Tue, 12 Jan 2021 20:34:50 +0000 (21:34 +0100)]
tmpfiles: document that the "argument" field doesn't do quotes
This adjust the documentation to match the code, addressing #17740.
I actually think that not making the "argument" field accept quotes was
a mistake, but I also understand why this choice was made. Given that we
shipped this forever like this though I don't think it's worth changing
the behaviour now. Supporting quotes for this is not that important I
guess. Hence document the current behaviour.
Fixes: #17740
feliperodriguesfr [Tue, 12 Jan 2021 20:48:15 +0000 (17:48 -0300)]
hwdb: add Digibras F10-30 rotation information (#18215)
Yu Watanabe [Tue, 12 Jan 2021 20:43:10 +0000 (05:43 +0900)]
Merge pull request #18216 from yuwata/dhcp-user-class-length
dhcp: length of each user class field must be positive
Yu Watanabe [Tue, 12 Jan 2021 20:42:53 +0000 (05:42 +0900)]
Merge pull request #18157 from ssahani/vlan-qos
network: Allow to configure VLan egress qos maps
Yu Watanabe [Tue, 12 Jan 2021 20:42:23 +0000 (05:42 +0900)]
Merge pull request #17628 from ssahani/network-gso
udev: Add support to configure Generic Segment Offload
Franck Bui [Fri, 4 Dec 2020 08:48:52 +0000 (09:48 +0100)]
journal: send journald logs to kmsg again
This was broken by commit
bc694c06e60505efeb09e5278a7b22cdfa23975e.
Arian van Putten [Sun, 20 Dec 2020 22:11:57 +0000 (23:11 +0100)]
nspawn: make rootfs relative to oci bundle path
This is inline with the OCI runtime spec:
On POSIX platforms, path is either an absolute path or a relative path
to the bundle. For example, with a bundle at /to/bundle and a root
filesystem at /to/bundle/rootfs, the path value can be either
/to/bundle/rootfs or rootfs. The value SHOULD be the conventional
rootfs.
(https://github.com/opencontainers/runtime-spec/blob/master/config.md)
Yu Watanabe [Tue, 12 Jan 2021 12:00:27 +0000 (21:00 +0900)]
timedate: actually reset system time with new timezone
Fix a bug introduced by
56b0ef2fc283425df6ae6f1dc198e0c408f70471.
Closes CID#
1436943.
Karel Zak [Mon, 30 Nov 2020 10:38:21 +0000 (11:38 +0100)]
udev-builtin-blkid: add support for --hint offsets
The next libblkid v2.37 is going to support session offsets for
multi-session CD/DVDs. This feature is implemented by "hint offsets".
These offsets are optional and prober specific (e.g., iso, udf, ...).
For this purpose, the library provides a new function
blkid_probe_set_hint(), and blkid(8) provides a new command-line
option --hint <name>=<offset>. For CD/DVD, the offset name is
"session_offset".
The difference between classic --offset and the new --hint is that
--offset is very restrictive and defines the probing area and the rest
of the device is invisible to the library. The new --hint works
like a suggestion, it provides a hint where the user assumes the
filesystem, but the rest of the device is still readable for the
library (for example, to get some additional superblock information
etc.).
If the --hint is without a value then it defaults to zero.
The option --hint implementation in udev-builtin-blkid.c is backwardly
compatible. If compiled against old libblkid, then the option is used in
the same way as --offset.
Addresses: https://github.com/karelzak/util-linux/issues/1161
Addresses: https://github.com/systemd/systemd/pull/17424
Yu Watanabe [Tue, 12 Jan 2021 15:57:34 +0000 (00:57 +0900)]
Merge pull request #18212 from yuwata/two-coverity-fixes
Two coverity fixes
Yu Watanabe [Tue, 12 Jan 2021 13:48:47 +0000 (22:48 +0900)]
network: merge config_parse_dhcp_user_class() and _vendor_class()
Yu Watanabe [Tue, 12 Jan 2021 13:38:29 +0000 (22:38 +0900)]
dhcp6: refuse zero length vendor class
Also, fixes the maximum length of the vendor class to UINT16_MAX.
Moreover, a memory leak in sd_dhcp6_client_set_request_vendor_class().
Yu Watanabe [Tue, 12 Jan 2021 13:28:36 +0000 (22:28 +0900)]
dhcp6: add an assert()
Yu Watanabe [Tue, 12 Jan 2021 13:23:53 +0000 (22:23 +0900)]
dhcp: do not assign value twice
Yu Watanabe [Tue, 12 Jan 2021 13:03:43 +0000 (22:03 +0900)]
dhcp6: refuse zero length dhcp user class
This also fixes a memory leak when
sd_dhcp6_client_set_request_user_class() is called multiple times.
Yu Watanabe [Tue, 12 Jan 2021 12:55:15 +0000 (21:55 +0900)]
network: refuse zero length dhcp user class
Yu Watanabe [Tue, 12 Jan 2021 12:47:23 +0000 (21:47 +0900)]
dhcp: length of each user class field must be positive
This also fixes an memory leak when sd_dhcp_client_set_user_class()
is called multiple times.
Susant Sahani [Tue, 12 Jan 2021 12:36:49 +0000 (13:36 +0100)]
link: Add support to configure Generic Segment Offload
Lennart Poettering [Tue, 12 Jan 2021 14:00:08 +0000 (15:00 +0100)]
meson: catch up with 'update-man-rules'
Yu Watanabe [Tue, 12 Jan 2021 13:53:44 +0000 (22:53 +0900)]
Merge pull request #18217 from ssahani/todo-network
TODO: Already implemented with SendDecline=
Susant Sahani [Tue, 12 Jan 2021 13:52:00 +0000 (14:52 +0100)]
TODO: SR_IOV already implemeted
Susant Sahani [Tue, 12 Jan 2021 13:47:39 +0000 (14:47 +0100)]
TODO: Already implemented with SendDecline=
Lennart Poettering [Tue, 12 Jan 2021 13:38:27 +0000 (14:38 +0100)]
update TODO
Susant Sahani [Tue, 12 Jan 2021 10:02:12 +0000 (11:02 +0100)]
network: Allow to configure VLan egress qos maps
Susant Sahani [Tue, 12 Jan 2021 13:30:56 +0000 (14:30 +0100)]
network: Allow to configure VLan egress qos maps
Susant Sahani [Tue, 12 Jan 2021 12:35:31 +0000 (13:35 +0100)]
sd-netlink: add support to configure Generic Segment Offload
Yu Watanabe [Tue, 12 Jan 2021 11:46:44 +0000 (20:46 +0900)]
sd-bus: fix memleak
Closes CID#
1437780.
Yu Watanabe [Tue, 12 Jan 2021 11:43:02 +0000 (20:43 +0900)]
boot: at least one of os_name_pretty or os_name exists in this block
Closes CID#
1438933.
Tad Fisher [Thu, 7 Jan 2021 22:13:06 +0000 (14:13 -0800)]
hwdb.d/70-mouse.hwdb: add entry for ELECOM Huge TrackBall
Yu Watanabe [Tue, 12 Jan 2021 05:24:37 +0000 (14:24 +0900)]
Merge pull request #18209 from poettering/virt-fix
three minor fixes to virt.c
Yu Watanabe [Mon, 11 Jan 2021 15:02:09 +0000 (00:02 +0900)]
network: introduce new UseAddress= setting in [DHCPv6] section
If it is disabled, then the addresses provided by the DHCPv6 server will
be ignored.
Closes #18203.
Yu Watanabe [Tue, 12 Jan 2021 05:18:24 +0000 (14:18 +0900)]
Merge pull request #18204 from yuwata/wifi-util-fix-18059
wifi-util: do not ignore wifi iftype when the interface does not have SSID
igo95862 [Mon, 11 Jan 2021 13:04:33 +0000 (16:04 +0300)]
docs: `mesonconf` is not a valid command, `meson configure` is
Meson documentation for `meson configure`
https://mesonbuild.com/Commands.html#configure
Iago López Galeiras [Fri, 11 Dec 2020 12:21:54 +0000 (13:21 +0100)]
exit-status: fix mappings comment
It didn't reflect the current status.
Lennart Poettering [Mon, 11 Jan 2021 20:09:37 +0000 (21:09 +0100)]
virt: fix path mentioned in log message
Lennart Poettering [Mon, 11 Jan 2021 20:08:51 +0000 (21:08 +0100)]
virt: debug log on unexpected error conditions
Let's make this more debuggable by logging if we look for something and
get any error other than ENOENT back.
Lennart Poettering [Mon, 11 Jan 2021 20:08:01 +0000 (21:08 +0100)]
virt: merge three variable declarations
Luca Boccassi [Mon, 11 Jan 2021 17:56:13 +0000 (17:56 +0000)]
Merge pull request #18174 from systemd/coverity-now-for-real
ci: move the Coverity job to GitHub Actions
Yu Watanabe [Mon, 11 Jan 2021 14:36:42 +0000 (23:36 +0900)]
wifi-util: do not ignore wifi iftype when SSID is not set
Previously, if an interface does not have SSID, e.g. run in mesh-point
type, then the wifi iftype obtained by the netlink call was ignored.
Fixes #18059.
Yu Watanabe [Mon, 11 Jan 2021 14:26:54 +0000 (23:26 +0900)]
wifi-util: cleanup header inclusion
Frantisek Sumsal [Mon, 11 Jan 2021 14:14:10 +0000 (15:14 +0100)]
ci: remove remaining Travis CI artifacts
Frantisek Sumsal [Fri, 8 Jan 2021 20:45:08 +0000 (21:45 +0100)]
ci: move the Coverity job to GitHub Actions
Frantisek Sumsal [Fri, 8 Jan 2021 18:53:43 +0000 (19:53 +0100)]
ci: drop a forgotten empty line
Evgeny Vereshchagin [Mon, 11 Jan 2021 14:39:47 +0000 (17:39 +0300)]
Merge pull request #18195 from bluca/bpf_init
bpf: do not use structured initialization for bpf_attr
Daan De Meyer [Mon, 11 Jan 2021 11:52:03 +0000 (12:52 +0100)]
Merge pull request #18198 from yuwata/trivial-cleanups
Trivial cleanups
Susant Sahani [Thu, 7 Jan 2021 13:37:38 +0000 (14:37 +0100)]
sd-netlink: Add VLan QOS map properties
Susant Sahani [Mon, 16 Nov 2020 12:55:49 +0000 (13:55 +0100)]
sd-netlink: Add Generic Segment Offload attributes
Yu Watanabe [Mon, 11 Jan 2021 04:31:33 +0000 (13:31 +0900)]
linux: move nl80211.h to basic/linux
As sd-netlink uses the header.
Yu Watanabe [Mon, 11 Jan 2021 04:29:39 +0000 (13:29 +0900)]
udev: drop doubled blank line
Luca Boccassi [Sun, 10 Jan 2021 15:39:24 +0000 (15:39 +0000)]
ci: do not build with --optimization=1 with Clang
Luca Boccassi [Sun, 10 Jan 2021 15:36:31 +0000 (15:36 +0000)]
bpf: do not use structured initialization for bpf_attr
It looks like zero'ing the struct is not enough, and with some level
of optimizations there is still non-zero padding left over.
Switch to member-by-member initialization. Also convert all remaining
bpf_attr variables in other files.
Luca Boccassi [Sun, 10 Jan 2021 15:06:04 +0000 (15:06 +0000)]
dissect: fix root hash signature autodiscovery
The root hash signature is auto discovered only if the root hash was specified
manually. Ensure that an auto discovered root hash is also enough.
Luca Boccassi [Sun, 10 Jan 2021 14:37:56 +0000 (14:37 +0000)]
Merge pull request #18186 from DaanDeMeyer/translations-option
meson: Add option to disable translations
Daan De Meyer [Sat, 9 Jan 2021 19:05:56 +0000 (20:05 +0100)]
mkosi: Disable translations
Speeds up incremental builds by half a second. Let's assume translations
won't be necessary in the resulting test images.
Daan De Meyer [Sat, 9 Jan 2021 18:59:56 +0000 (19:59 +0100)]
meson: Add option to disable translations
This speeds up the meson install step by half a second
which, given the trivial changes required to add this
option, makes it worth the effort to support this.
Before:
```
‣ Running build script...
[1/418] Generating version.h with a custom command
Installing /root/build/po/be.gmo to /root/dest/usr/share/locale/be/LC_MESSAGES/systemd.mo
Installing /root/build/po/be@latin.gmo to /root/dest/usr/share/locale/be@latin/LC_MESSAGES/systemd.mo
Installing /root/build/po/bg.gmo to /root/dest/usr/share/locale/bg/LC_MESSAGES/systemd.mo
Installing /root/build/po/ca.gmo to /root/dest/usr/share/locale/ca/LC_MESSAGES/systemd.mo
Installing /root/build/po/cs.gmo to /root/dest/usr/share/locale/cs/LC_MESSAGES/systemd.mo
Installing /root/build/po/da.gmo to /root/dest/usr/share/locale/da/LC_MESSAGES/systemd.mo
Installing /root/build/po/de.gmo to /root/dest/usr/share/locale/de/LC_MESSAGES/systemd.mo
Installing /root/build/po/el.gmo to /root/dest/usr/share/locale/el/LC_MESSAGES/systemd.mo
Installing /root/build/po/es.gmo to /root/dest/usr/share/locale/es/LC_MESSAGES/systemd.mo
Installing /root/build/po/fr.gmo to /root/dest/usr/share/locale/fr/LC_MESSAGES/systemd.mo
Installing /root/build/po/gl.gmo to /root/dest/usr/share/locale/gl/LC_MESSAGES/systemd.mo
Installing /root/build/po/hr.gmo to /root/dest/usr/share/locale/hr/LC_MESSAGES/systemd.mo
Installing /root/build/po/hu.gmo to /root/dest/usr/share/locale/hu/LC_MESSAGES/systemd.mo
Installing /root/build/po/id.gmo to /root/dest/usr/share/locale/id/LC_MESSAGES/systemd.mo
Installing /root/build/po/it.gmo to /root/dest/usr/share/locale/it/LC_MESSAGES/systemd.mo
Installing /root/build/po/ja.gmo to /root/dest/usr/share/locale/ja/LC_MESSAGES/systemd.mo
Installing /root/build/po/ko.gmo to /root/dest/usr/share/locale/ko/LC_MESSAGES/systemd.mo
Installing /root/build/po/lt.gmo to /root/dest/usr/share/locale/lt/LC_MESSAGES/systemd.mo
Installing /root/build/po/pl.gmo to /root/dest/usr/share/locale/pl/LC_MESSAGES/systemd.mo
Installing /root/build/po/pt_BR.gmo to /root/dest/usr/share/locale/pt_BR/LC_MESSAGES/systemd.mo
Installing /root/build/po/ro.gmo to /root/dest/usr/share/locale/ro/LC_MESSAGES/systemd.mo
Installing /root/build/po/ru.gmo to /root/dest/usr/share/locale/ru/LC_MESSAGES/systemd.mo
Installing /root/build/po/sk.gmo to /root/dest/usr/share/locale/sk/LC_MESSAGES/systemd.mo
Installing /root/build/po/sr.gmo to /root/dest/usr/share/locale/sr/LC_MESSAGES/systemd.mo
Installing /root/build/po/sv.gmo to /root/dest/usr/share/locale/sv/LC_MESSAGES/systemd.mo
Installing /root/build/po/tr.gmo to /root/dest/usr/share/locale/tr/LC_MESSAGES/systemd.mo
Installing /root/build/po/uk.gmo to /root/dest/usr/share/locale/uk/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_CN.gmo to /root/dest/usr/share/locale/zh_CN/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_TW.gmo to /root/dest/usr/share/locale/zh_TW/LC_MESSAGES/systemd.mo
Installing /root/build/po/pa.gmo to /root/dest/usr/share/locale/pa/LC_MESSAGES/systemd.mo
real 0m1.467s
user 0m1.064s
sys 0m0.392s
```
After (with translations disabled):
```
‣ Running build script...
[1/418] Generating version.h with a custom command
real 0m0.925s
user 0m0.622s
sys 0m0.301s
```
Yu Watanabe [Sun, 10 Jan 2021 11:41:46 +0000 (20:41 +0900)]
Merge pull request #18178 from weblate/weblate-systemd-master
Translations update from Weblate
Luka Kudra [Sun, 10 Jan 2021 05:36:07 +0000 (06:36 +0100)]
network: register callback for dhcp server (#18146)
Setting dhcp_server_callback is needed in order to get an event when dhcp
leases change.
The callback was introduced by
38ee31a6e4ceb0381ed838340929aae2b5634c3e,
but never used.
Daan De Meyer [Sat, 9 Jan 2021 19:48:39 +0000 (20:48 +0100)]
meson: Optimize add-wants targets
Instead of invoking meson-add-wants.sh once for each wants that has
to be added, we pass all wants to a single invocation of
meson-add-wants.sh and in meson-add-wants.sh, loop over the
arguments.
This saves about 300ms on the install step.
Before:
```
‣ Running build script...
[1/418] Generating version.h with a custom command
Installing /root/build/po/be.gmo to /root/dest/usr/share/locale/be/LC_MESSAGES/systemd.mo
Installing /root/build/po/be@latin.gmo to /root/dest/usr/share/locale/be@latin/LC_MESSAGES/systemd.mo
Installing /root/build/po/bg.gmo to /root/dest/usr/share/locale/bg/LC_MESSAGES/systemd.mo
Installing /root/build/po/ca.gmo to /root/dest/usr/share/locale/ca/LC_MESSAGES/systemd.mo
Installing /root/build/po/cs.gmo to /root/dest/usr/share/locale/cs/LC_MESSAGES/systemd.mo
Installing /root/build/po/da.gmo to /root/dest/usr/share/locale/da/LC_MESSAGES/systemd.mo
Installing /root/build/po/de.gmo to /root/dest/usr/share/locale/de/LC_MESSAGES/systemd.mo
Installing /root/build/po/el.gmo to /root/dest/usr/share/locale/el/LC_MESSAGES/systemd.mo
Installing /root/build/po/es.gmo to /root/dest/usr/share/locale/es/LC_MESSAGES/systemd.mo
Installing /root/build/po/fr.gmo to /root/dest/usr/share/locale/fr/LC_MESSAGES/systemd.mo
Installing /root/build/po/gl.gmo to /root/dest/usr/share/locale/gl/LC_MESSAGES/systemd.mo
Installing /root/build/po/hr.gmo to /root/dest/usr/share/locale/hr/LC_MESSAGES/systemd.mo
Installing /root/build/po/hu.gmo to /root/dest/usr/share/locale/hu/LC_MESSAGES/systemd.mo
Installing /root/build/po/id.gmo to /root/dest/usr/share/locale/id/LC_MESSAGES/systemd.mo
Installing /root/build/po/it.gmo to /root/dest/usr/share/locale/it/LC_MESSAGES/systemd.mo
Installing /root/build/po/ja.gmo to /root/dest/usr/share/locale/ja/LC_MESSAGES/systemd.mo
Installing /root/build/po/ko.gmo to /root/dest/usr/share/locale/ko/LC_MESSAGES/systemd.mo
Installing /root/build/po/lt.gmo to /root/dest/usr/share/locale/lt/LC_MESSAGES/systemd.mo
Installing /root/build/po/pl.gmo to /root/dest/usr/share/locale/pl/LC_MESSAGES/systemd.mo
Installing /root/build/po/pt_BR.gmo to /root/dest/usr/share/locale/pt_BR/LC_MESSAGES/systemd.mo
Installing /root/build/po/ro.gmo to /root/dest/usr/share/locale/ro/LC_MESSAGES/systemd.mo
Installing /root/build/po/ru.gmo to /root/dest/usr/share/locale/ru/LC_MESSAGES/systemd.mo
Installing /root/build/po/sk.gmo to /root/dest/usr/share/locale/sk/LC_MESSAGES/systemd.mo
Installing /root/build/po/sr.gmo to /root/dest/usr/share/locale/sr/LC_MESSAGES/systemd.mo
Installing /root/build/po/sv.gmo to /root/dest/usr/share/locale/sv/LC_MESSAGES/systemd.mo
Installing /root/build/po/tr.gmo to /root/dest/usr/share/locale/tr/LC_MESSAGES/systemd.mo
Installing /root/build/po/uk.gmo to /root/dest/usr/share/locale/uk/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_CN.gmo to /root/dest/usr/share/locale/zh_CN/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_TW.gmo to /root/dest/usr/share/locale/zh_TW/LC_MESSAGES/systemd.mo
Installing /root/build/po/pa.gmo to /root/dest/usr/share/locale/pa/LC_MESSAGES/systemd.mo
real 0m1.465s
user 0m1.025s
sys 0m0.426s
```
After:
```
‣ Running build script...
[1/418] Generating version.h with a custom command
Installing /root/build/po/be.gmo to /root/dest/usr/share/locale/be/LC_MESSAGES/systemd.mo
Installing /root/build/po/be@latin.gmo to /root/dest/usr/share/locale/be@latin/LC_MESSAGES/systemd.mo
Installing /root/build/po/bg.gmo to /root/dest/usr/share/locale/bg/LC_MESSAGES/systemd.mo
Installing /root/build/po/ca.gmo to /root/dest/usr/share/locale/ca/LC_MESSAGES/systemd.mo
Installing /root/build/po/cs.gmo to /root/dest/usr/share/locale/cs/LC_MESSAGES/systemd.mo
Installing /root/build/po/da.gmo to /root/dest/usr/share/locale/da/LC_MESSAGES/systemd.mo
Installing /root/build/po/de.gmo to /root/dest/usr/share/locale/de/LC_MESSAGES/systemd.mo
Installing /root/build/po/el.gmo to /root/dest/usr/share/locale/el/LC_MESSAGES/systemd.mo
Installing /root/build/po/es.gmo to /root/dest/usr/share/locale/es/LC_MESSAGES/systemd.mo
Installing /root/build/po/fr.gmo to /root/dest/usr/share/locale/fr/LC_MESSAGES/systemd.mo
Installing /root/build/po/gl.gmo to /root/dest/usr/share/locale/gl/LC_MESSAGES/systemd.mo
Installing /root/build/po/hr.gmo to /root/dest/usr/share/locale/hr/LC_MESSAGES/systemd.mo
Installing /root/build/po/hu.gmo to /root/dest/usr/share/locale/hu/LC_MESSAGES/systemd.mo
Installing /root/build/po/id.gmo to /root/dest/usr/share/locale/id/LC_MESSAGES/systemd.mo
Installing /root/build/po/it.gmo to /root/dest/usr/share/locale/it/LC_MESSAGES/systemd.mo
Installing /root/build/po/ja.gmo to /root/dest/usr/share/locale/ja/LC_MESSAGES/systemd.mo
Installing /root/build/po/ko.gmo to /root/dest/usr/share/locale/ko/LC_MESSAGES/systemd.mo
Installing /root/build/po/lt.gmo to /root/dest/usr/share/locale/lt/LC_MESSAGES/systemd.mo
Installing /root/build/po/pl.gmo to /root/dest/usr/share/locale/pl/LC_MESSAGES/systemd.mo
Installing /root/build/po/pt_BR.gmo to /root/dest/usr/share/locale/pt_BR/LC_MESSAGES/systemd.mo
Installing /root/build/po/ro.gmo to /root/dest/usr/share/locale/ro/LC_MESSAGES/systemd.mo
Installing /root/build/po/ru.gmo to /root/dest/usr/share/locale/ru/LC_MESSAGES/systemd.mo
Installing /root/build/po/sk.gmo to /root/dest/usr/share/locale/sk/LC_MESSAGES/systemd.mo
Installing /root/build/po/sr.gmo to /root/dest/usr/share/locale/sr/LC_MESSAGES/systemd.mo
Installing /root/build/po/sv.gmo to /root/dest/usr/share/locale/sv/LC_MESSAGES/systemd.mo
Installing /root/build/po/tr.gmo to /root/dest/usr/share/locale/tr/LC_MESSAGES/systemd.mo
Installing /root/build/po/uk.gmo to /root/dest/usr/share/locale/uk/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_CN.gmo to /root/dest/usr/share/locale/zh_CN/LC_MESSAGES/systemd.mo
Installing /root/build/po/zh_TW.gmo to /root/dest/usr/share/locale/zh_TW/LC_MESSAGES/systemd.mo
Installing /root/build/po/pa.gmo to /root/dest/usr/share/locale/pa/LC_MESSAGES/systemd.mo
real 0m1.162s
user 0m0.803s
sys 0m0.338s
```
Lennart Poettering [Sat, 9 Jan 2021 20:52:56 +0000 (21:52 +0100)]
Merge pull request #18183 from poettering/arg-json-rework
--json= argument rework in various tools
Lennart Poettering [Sat, 9 Jan 2021 15:32:55 +0000 (16:32 +0100)]
test-xattr-util: don't insist that /usr supports xattrs
(apparently overlayfs has issues with xattrs, hence don't require that
/usr supports xattrs)
Daan De Meyer [Sat, 9 Jan 2021 17:27:56 +0000 (17:27 +0000)]
Merge pull request #18182 from DaanDeMeyer/mkosi-build-pushd
mkosi.build: Silence "Entering directory" message from ninja
Daan De Meyer [Sat, 9 Jan 2021 16:41:16 +0000 (17:41 +0100)]
mkosi.build: Only create groups if they don't exist yet
Daan De Meyer [Sat, 9 Jan 2021 16:32:00 +0000 (17:32 +0100)]
mkosi.build: Silence "Entering directory" message from ninja
When using `ninja -C "$BUILDDIR"`, ninja prints an annoying log
message about entering the directory that cannot be silenced. Let's
manually move in and out of the build directory instead.
Lennart Poettering [Sat, 9 Jan 2021 16:31:02 +0000 (17:31 +0100)]
busctl: port busctl to JSON_FORMAT_OFF too
This is a bit more complex, since busctl's JSON code predates json.c and
was only minimally updated sofar.
Lennart Poettering [Sat, 9 Jan 2021 16:08:53 +0000 (17:08 +0100)]
json: port various tools to the new JSON_FORMAT_OFF flag
These are the obvious cases.
Lennart Poettering [Sat, 9 Jan 2021 15:58:46 +0000 (16:58 +0100)]
json: add generic cmdline parser for --json= switch
Lennart Poettering [Sat, 9 Jan 2021 15:56:00 +0000 (16:56 +0100)]
json: add new json format flag for disabling JSON output
This adds a new flag JSON_FORMAT_OFF that is a marker for "no JSON
output please!".
Of course, this flag sounds pointless in a JSON implementation, however
this is useful in code that can generate JSON output, but also more
human friendly output (for example our table formatters).
With this in place various tools that so far maintained one boolean
field "arg_json" that controlled whether JSON output was requested at
all and another field "arg_json_format_flags" for selecing the precise
json output flags may merge them into one, simplifying code a bit.
Luca Boccassi [Fri, 8 Jan 2021 23:47:03 +0000 (23:47 +0000)]
bpf: zero bpf_attr before initialization
When building with Clang and using structured initialization, the
bpf_attr union is not zero-padded, so the kernel misdetects it as
an unsupported extension.
zero it until Clang's behaviour matches GCC. Do not skip the test
on Github Actions anymore.
Lennart Poettering [Sat, 9 Jan 2021 16:34:50 +0000 (17:34 +0100)]
Merge pull request #18179 from poettering/machine-image-tweaks
two simple tweaks to the machine-image.c logic
Lennart Poettering [Fri, 8 Jan 2021 15:57:02 +0000 (16:57 +0100)]
machine-image: pick up crtime of directory images, too