1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

58427 Commits

Author SHA1 Message Date
Frantisek Sumsal
0ab5e9fe98 test: wrap binaries using systemd DSOs when running w/ ASan
Let's detect & wrap binaries which are linked against systemd DSOs and
we're running under ASan, since otherwise running such binaries ends
with:

```
==633==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
```

(cherry picked from commit 3917534d620c2b358a196431b9e2593218ba1ac9)
2022-11-08 00:09:18 +01:00
Frantisek Sumsal
6d4ae5a7cd test: make the virt detection quiet
Follow-up to cde09b07dfdc132a31672693c037bfc0b5879331.

(cherry picked from commit 12ee072db571d5d3aca37fbf9b9261441ac9aeff)
2022-11-08 00:09:18 +01:00
Frantisek Sumsal
024ee3def9 test: check for other hypervisors as well
EC2 machines run on Xen, so account for that as well when checking KVM
availability.

(cherry picked from commit cde09b07dfdc132a31672693c037bfc0b5879331)
2022-11-08 00:09:18 +01:00
Yu Watanabe
520be40734 test-mountpoint-util: support running on a mount namespace with another mount on /proc
Fixes #11505.

(cherry picked from commit b13268dc09eed68426c2e68a402c96b93f8b0fff)
2022-11-08 00:09:18 +01:00
Yu Watanabe
2cd4aed358 test-mountpoint-util: use log_info()
(cherry picked from commit 6c882f4faef362340ee6264e02d87b696f922eb4)
2022-11-08 00:09:18 +01:00
Zbigniew Jędrzejewski-Szmek
c7b66dbe2a test-mountpoint-util: fix NULL arg to %s
(cherry picked from commit 1b3502b072a9930af2345879d3ad42854ba3a287)
2022-11-08 00:09:18 +01:00
Yu Watanabe
4e49c726ad test: drop redundant log message
(cherry picked from commit 1b1e53d2a83fe5267cb549b57ca6c84475729fe8)
2022-11-08 00:09:18 +01:00
dependabot[bot]
b57ef0c672 build(deps): bump meson from 0.63.2 to 0.63.3 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.63.2 to 0.63.3.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.63.2...0.63.3)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 65444c9cba6ec820648232ab08e2faed88f633c8)
2022-11-08 00:09:18 +01:00
dependabot[bot]
8c80564405 build(deps): bump ninja from 1.10.2.3 to 1.10.2.4 in /.github/workflows
Bumps [ninja](https://github.com/ninja-build/ninja) from 1.10.2.3 to 1.10.2.4.
- [Release notes](https://github.com/ninja-build/ninja/releases)
- [Commits](https://github.com/ninja-build/ninja/commits)

---
updated-dependencies:
- dependency-name: ninja
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 8ef866ace45847694e0085ab7005c3cc14fefd12)
2022-11-08 00:09:18 +01:00
dependabot[bot]
70e90da84b build(deps): bump meson from 0.63.1 to 0.63.2 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.63.1 to 0.63.2.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.63.1...0.63.2)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 5d4ba4e534bfd0b68fb76d7107226691ba68e061)
2022-11-08 00:09:18 +01:00
dependabot[bot]
489c00dee5 build(deps): bump meson from 0.63.0 to 0.63.1 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.63.0 to 0.63.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.63.0...0.63.1)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit c19053e657a27a1922eee5f76169a04914ae3ff3)
2022-11-08 00:09:18 +01:00
dependabot[bot]
08e85ad43d build(deps): bump meson from 0.62.2 to 0.63.0 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.62.2 to 0.63.0.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.62.2...0.63.0)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit bc4b9a7117b617341231be703b2ea3d0639ee9bf)
2022-11-08 00:09:18 +01:00
dependabot[bot]
b0619c9c55 build(deps): bump meson from 0.62.0 to 0.62.2 in /.github/workflows
Bumps [meson](https://github.com/mesonbuild/meson) from 0.62.0 to 0.62.2.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.62.0...0.62.2)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 71562f517490337c16f85f7104a49f47c6f74a1f)
2022-11-08 00:09:18 +01:00
dependabot[bot]
d982169592 build(deps): bump systemd/mkosi
Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 792cbc60eb2dc4a58d66bb3c212bf92f8d50f6ea to 14. This release includes the previously tagged commit.
- [Release notes](https://github.com/systemd/mkosi/releases)
- [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md)
- [Commits](792cbc60eb...c9772ec920)

---
updated-dependencies:
- dependency-name: systemd/mkosi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit a61119e299a285971f374fc04ca835c5f8677017)
2022-11-08 00:09:18 +01:00
Luca Boccassi
9d4af5fea1 mkosi: libbpf0 -> libbpf1
(cherry picked from commit 022684221e5381f8c9da640e1c22331303e71713)
2022-11-08 00:09:18 +01:00
Daan De Meyer
3abf9f08f1 mkosi: Switch to Fedora 37
Official release date is close so let's switch mkosi CI to it already.

(cherry picked from commit 0aa1d406490f607262f699bf185ec3c5fc4447a0)
2022-11-08 00:09:18 +01:00
Luca Boccassi
18f9fbab08 mkosi: update to latest commit
Require dto fix Debian testing/unstable builds, as the initrd is
versioned

(cherry picked from commit dcf1bf3b6dd934d3af629a1f9f24e083fce85255)
2022-11-08 00:09:18 +01:00
Daan De Meyer
5403b727a7 mkosi: Use SourceFileTransfer=mount
Our source and build directories are nicely separated, so we should
have no issues with using SourceFileTransfer=mount, since the build
won't create any files owned by root in the source directory.

(cherry picked from commit 3e139a8e64820bf59552073524b21620d344fae7)
2022-11-08 00:09:18 +01:00
Daan De Meyer
9744c04ffd mkosi: Drop kernel-modules-extra from Fedora config
It pulls in the kernel, even if we don't want the kernel to be
installed.

(cherry picked from commit d555da00014bd850ec5ea546fd2b2d495ffc8be1)
2022-11-08 00:09:18 +01:00
Yu Watanabe
ab2f7a9b9e mkosi: install fdisk for test-loop-block
(cherry picked from commit 8aeccfdedfa3c5191bc8b00672507a325c871271)
2022-11-08 00:09:18 +01:00
Daan De Meyer
17acdca99d mkosi: Set ExtraSearchPaths=build/ by default
When hacking on systemd, let's have mkosi prefer executables from
the build directory over the system ones.

(cherry picked from commit 06d6ea1b16eb85e7648673f72bafdb2b27c5e52b)
2022-11-08 00:09:18 +01:00
Luca Boccassi
420e782904 mkosi: update to latest commit
Required to fix Debian testing/unstable builds, as resolved is
now in its own package

(cherry picked from commit 31ed4b91475b5c110dc3e6a50046745be79edbfe)
2022-11-08 00:09:18 +01:00
Luca Boccassi
43ef15c752 mkosi: add back packages removed from OpenSUSE build
Some packages were removed from the OpenSUSE build, which broke the
unit tests. Add them back.

Fixes: 37d35150cbb5 ("mkosi: Ensure we build all features/components in mkosi")
(cherry picked from commit a26e6bf8bfe1366590a4cce0ca9828d5ac4e140b)
2022-11-08 00:09:18 +01:00
Luca Boccassi
9a94aa1d88 mkosi: disable isc-dhcp-server again
It's still failing in Ubuntu:

● isc-dhcp-server.service  loaded failed failed ISC DHCP IPv4 server
● isc-dhcp-server6.service loaded failed failed ISC DHCP IPv6 server

Just disable them via the kernel command line masking.

(cherry picked from commit 255963ec3a092a3e8b8b0896b45b1ad3ec60f988)
2022-11-08 00:09:18 +01:00
Daan De Meyer
d1785c462f mkosi: Ensure we build all features/components in mkosi
Explicitly enable all features/components in the mkosi build to
ensure they all get built and we get an error if they can't be built.

We also rework the packages sections of all mkosi configs to reduce
duplication and cover all the dependencies necessary to build/use all
systemd features.

Note that for the final image, since systemd is installed by default
in base images, we rely on that to install the base library dependencies
and we only list extra optional dependencies and tools that aren't already
installed by default into the base image.

We also drop the centos stream 8 mkosi build as dependencies on that
distro are too out-of-date to be able to build all systemd features.
Since centos stream 9 has been out for a while, let's focus on that
and leave it to downstream to keep systemd building on centos stream 8.

Finally, there's a few additions to the mkosi scripts to make sure
services don't start by default on boot.

(cherry picked from commit 37d35150cbb5db063aaa8e5878ec03258414b0e5)
2022-11-08 00:09:18 +01:00
Jan Janssen
6712396da3 meson: Downgrade efi-ld warning
The warning isn't that serious and mostly there to inform the user that
lld/mold cannot build efi binaries. It is also better to build test with
fatal meson warnings.

(cherry picked from commit 4fb6506debb851ac062b3b46b46aaa3ac1a17321)
2022-11-08 00:09:18 +01:00
Jan Janssen
66309ee674 ci: Add mold to build tests
(cherry picked from commit ed862b95b2fb9fd14b26c43c53589d45e0f28246)
2022-11-08 00:09:18 +01:00
Frantisek Sumsal
86c25ca937 ci: build with clang-15; drop clang-12
(cherry picked from commit d7c1024b6b13c62a413e2beab2510570a81b906d)
2022-11-08 00:09:18 +01:00
Daan De Meyer
28457b030e mkosi: Drop workarounds
None of these should be necessary anymore with recent versions of
mkosi.

(cherry picked from commit 0e961391c17d4e487b323b6f3e0d3a1b183ba64a)
2022-11-08 00:09:18 +01:00
Daan De Meyer
abecb21561 mkosi: Update to latest commit
Fixes #1128

(cherry picked from commit 2dddae253b3a7781112db428efc2e1105019864b)
2022-11-08 00:09:18 +01:00
Daan De Meyer
d9eaf39930 mkosi: Update to latest commit
Introduces a more reliable mirror for Arch which should reduce the
number of mkosi Arch CI failures due to unreliable mirror selection.

(cherry picked from commit 599884bd9a3cfb376572e44935174939e0dab776)
2022-11-08 00:09:18 +01:00
Daan De Meyer
619b36b22c mkosi: Don't use InstallDirectory by default
While this provides some marginal speedup, the disadvantage is
that files are never removed when doing cached builds, which can
sometimes lead to hard to debug issues. So let's not do this by
default.

(cherry picked from commit d808662ec0dd4856818858595e3c523528dc1bfe)
2022-11-08 00:09:18 +01:00
Daan De Meyer
cdf3fd312a mkosi: Use mkosi.output/ as output directory by default
Better than creating a mess of output files in the root directory.

(cherry picked from commit 670dfcb6ecdf72fc26a362086fe31560d2a5f789)
2022-11-08 00:09:18 +01:00
Richard Phibel
b8a746e89b mkosi: Add package libfdisk to Ubuntu dependencies (#24211)
* mkosi: Add package libfdisk to Ubuntu dependencies

The libfdisk package is needed by systemd-repart.

(cherry picked from commit b6d1e2b4419f2694739b0442635f59db6549d4db)
2022-11-08 00:09:18 +01:00
Frantisek Sumsal
0e518f3639 ci: set a timeout for each mkosi stage
Work around #24202 so we don't wait ~6 hours for a stuck QEMU job.

(cherry picked from commit 578355684d8d4041d8096445922de7f7d1a20571)
2022-11-08 00:09:18 +01:00
Daan De Meyer
5e79cf977c mkosi: Update to latest
Fixed centos stream 8 builds that were hitting a nonexisting mirror
url

(cherry picked from commit a268e7f4021072e120a03b42660fad21e465c44e)
2022-11-08 00:09:18 +01:00
Daan De Meyer
edef8edf0b mkosi: Update to latest commit
With this update, Arch Linux keyring updates will be automatically
pulled in instead of having to update to a new mkosi commit every
time the keyring gets outdated.

(cherry picked from commit 859614439a77da2a69118235a0e78c94c8449aaa)
2022-11-08 00:09:18 +01:00
Daan De Meyer
a0402d3ab6 mkosi: Update to latest commit
Fixes an issue with Arch builds failing by updating the archlinux
keyring package.

(cherry picked from commit a41940ed0efc786f60404c5940a664adf047eaab)
2022-11-08 00:09:18 +01:00
Daan De Meyer
081168fa19 mkosi: Build against Fedora rawhide as well
(cherry picked from commit 2d625795700f391b5e40b24388d66a93ba6e49c3)
2022-11-08 00:09:18 +01:00
Daan De Meyer
a38a0504ec mkosi: Remove usage of deprecated option names/sections
(cherry picked from commit 7ca9563ca18e0238d97f1b6eed8df62fdc2436aa)
2022-11-08 00:09:18 +01:00
Daan De Meyer
47404f1802 mkosi: Changes to allow booting with sanitizers in mkosi
- Extra memory because ASAN needs it
- The environment variables to make the sanitizers more useful
- LD_PRELOAD because the ASAN DSO needs to be the first in the list
- The sanitizer library packages
- Disable syscall filters because they interfere with ASAN
- Disable systemd-hwdb-update because it's super slow when systemd-hwdb
  is built with sanitizers
- Take the value for meson's b_sanitize option from the SANITIZERS
  environment variable

(cherry picked from commit 69d638e67e5bfc5fedcae4072f144a4f7d798c9a)
2022-11-08 00:09:18 +01:00
Daan De Meyer
db1281e12e mkosi: Update Ubuntu config to 22.04
(cherry picked from commit 111ff5d5115cb2f49aba59da5dbdf96a28d0974d)
2022-11-08 00:09:18 +01:00
Daan De Meyer
ca8dc691fe mkosi: Install xxd in images
Came in handy while working on
https://github.com/systemd/systemd/pull/24024 so let's install it
in the image by default.

(cherry picked from commit a6e6b6954c3b245894f50929190ac687eda9019b)
2022-11-08 00:09:18 +01:00
Frantisek Sumsal
f12a6945c6 ci: limit which env variables we pass through sudo
to work around #23987.

(cherry picked from commit d46e7c7cfd6c286a38298c067f16ac784c2a26f0)
2022-11-08 00:09:18 +01:00
Luca Boccassi
7e24ac6d77 mkosi: update to latest main
Fix build failure on SUSE Tumbleweed due to config changes

(cherry picked from commit 3a883d36eb383581f3c1b06cd2629401cfaa446d)
2022-11-08 00:09:18 +01:00
Daan De Meyer
a46ba01e79 mkosi: Update to latest release
This fixes the mkosi github action to unbreak the mkosi CI

(cherry picked from commit 13f4f0fd81eb37b73c0c3c0b5fb70adf8fb8e3ba)
2022-11-08 00:09:18 +01:00
Daan De Meyer
7ef1d71895 mkosi: Pull in fix that solves action mirror issue
(cherry picked from commit c024a6ac96f6e08eca57bd0253df6ffad603981a)
2022-11-08 00:09:18 +01:00
Daan De Meyer
d3d90ae66b mkosi: Update CI to mkosi 13
(cherry picked from commit f304d038845a2f5e5c02512a099dfeb4a70ee883)
2022-11-08 00:09:18 +01:00
Evgeny Vereshchagin
9bf797be2c ci: build systemd with clang with -Dmode=release --optimization=2
This is what's most likely used to build systemd with clang in
practice so let's test it as well.

Preparation for reverting 0bd292567a
(which replaced bogus buffer overflow found with _FORTIFY_SOURCE=3
with actual segfaults).

(cherry picked from commit 36cb69fc43cbce6d883b3a0da4f793c81dbf4b2e)
2022-11-08 00:09:18 +01:00
Evgeny Vereshchagin
9e88b3a5e1 ci: bump gcc in the "build test" workflow
gcc-12 has been released

(cherry picked from commit af7211541272823b1ef4fef8c36d10dc1027733e)
2022-11-08 00:09:18 +01:00