Commit Graph

397 Commits

Author SHA1 Message Date
Luca Boccassi
36537d2214 systemd-standalone-*: copy manpages too 2022-01-17 13:50:17 +00:00
Michael Biebl
af47d04610 Don't stop systemd-oomd.socket during upgrades
This works around an issue in systemd which doesn't process multiple
units that are passed to systemctl as a single transaction with the
correct ordering.

Closes: #1003641
2022-01-14 13:53:47 +01:00
Luca Boccassi
c3c5422a8e Disable libcryptsetup-plugins
They are new, and might not even be supported by libcryptsetup yet
2022-01-13 23:42:02 +00:00
Luca Boccassi
6b5e99f1d7 Build with and suggest fido2 and tpm libraries
These are used via dlopen only if available by some tools like
systemd-cryptsetup, systemd-cryptenroll and systemd-repart,
with graceful fallbacks if they are not found.
Build-depend on them so that the features get compiled in
(apart from stage1 builds), and add appropriate Suggests.

Closes: #991129 #1003383
2022-01-13 23:42:02 +00:00
Michael Biebl
4a93ec2f56 Enable systemd-repart and ship it in the main systemd package
Add fdisk as test dependency, needed by test-repart which calls sfdisk.
2022-01-08 21:25:29 +01:00
Lukas Märdian
88ae06ef41 d/rules: Enable build of systemd-oomd 2022-01-06 09:20:49 +01:00
Michael Biebl
4f982a70de Don't override sourcedir/destdir anymore
No longer necessary after dropping the separate udeb build flavour.

Gbp-Dch: Ignore
2022-01-02 21:04:11 +01:00
Michael Biebl
f6917cd87c Drop separate udeb build
The only real benefit from a separate build apparently is that udev does
not get a dependency on libacl and libselinux. But we have udebs for
those dependencies anyway.
Dropping the separate build basically cuts the build times in half and
simplifies debian/rules quite a bit.
It also brings udev as used in d-i closer to what is actually used in
the installed system, which is a good thing.
2022-01-02 21:04:01 +01:00
Michael Biebl
782e42d947 Remove dbus introspection files
Those are probably best shipped in a -dev package. Remove for the time
being until we have found a proper place for them.
They weigh over 600kB, so the main systemd package is probably not a good
fit.

Gbp-Dch: Short
2021-12-21 01:30:04 +01:00
Michael Biebl
2d11110e91 Revert "Temporarily disable LTO"
It appears to have helped to make the build reproducible on arm64 but
not for armhf.

This reverts commit e2d5c74481.

See also https://alioth-lists.debian.net/pipermail/reproducible-builds/Week-of-Mon-20211213/013354.html

Gbp-Dch: Short
2021-12-21 01:23:04 +01:00
Michael Biebl
e928fb5a85 Explicitly disable OpenSSL support
We don't want to pick up an OpenSSL dependency in a tainted build
environment and pull a second crypto stack into systemd's dependencies.
2021-12-21 01:23:04 +01:00
Michael Biebl
e34e3b5b8a Use -Durlify=false instead of shipping an upstream revert patch 2021-12-21 01:23:04 +01:00
Michael Biebl
e8ed38e451 Update removal of upstream provided license files 2021-12-21 01:23:01 +01:00
Michael Biebl
e2d5c74481 Temporarily disable LTO
This is a test to see if it fixes the failure to build reproducibly on
arm*.
2021-11-13 18:01:27 +01:00
Michael Biebl
06aaa01f52 Provide standalone binaries for sysusers and tmpfiles
Closes: #946456
2021-08-08 22:45:58 +02:00
Michael Biebl
6dc0498f59 Remove obsolete systemd-resolve compat symlink 2021-08-06 22:25:24 +02:00
Michael Biebl
a12cf5d187 Fix removal of systemd-hwdb-update.service
As we don't support factory-reset, we don't need this service.
In Debian, the hwdb binary database is updated via a dpkg file trigger.
2021-07-07 20:20:20 +02:00
Balint Reczey
8dae9a8dbc debian/rules: Don't ship README files in (/usr)/lib/*.d
README files are typically shipped in /usr/share/doc.
2021-05-07 00:23:02 +02:00
Balint Reczey
b3966ec43a debian/rules: Build without TPM2 support
This is a new feature and needs further review.
2021-05-06 23:00:03 +02:00
Balint Reczey
3ec25d3dfa debian/rules: Build translations for debs but not for udebs 2021-05-06 23:00:03 +02:00
Balint Reczey
63225f2e67 debian/rules: Build support for flushing of the nscd caches 2021-05-06 23:00:03 +02:00
Balint Reczey
13021954a2 debian/rules: Enable new systemd-sysext tool 2021-05-06 23:00:03 +02:00
Matthias Klumpp
63f22a7a8d Configure localed to run locale-gen to generate missing locale
This applies an (upstreamed) patch to permit systemd-localed to run
locale-gen to generate missing locale when requested to switch the
system locale.
This makes localectl usable on Debian for changing locale without
breaking system localization or even prevent certain applications from
running at all after switching to a non-generated locale.
2021-01-18 03:05:05 +01:00
Michael Biebl
c0f9a7a87b Move libraries and NSS modules from /lib to /usr/lib
Keep libpam_systemd.so installed in /lib, as PAM doesn't support
loading PAM modules from /usr/lib on a split-usr system.
2021-01-02 17:05:34 +01:00
Michael Biebl
cd72d4a3e4 Increase timeout when running unit tests
The default timeout for individual unit tests is 30s. On slower
architectures and environments like reproducible-builds, this sometimes
is not enough.
Instead of fine-tuning the timeout for each individual test, we instead
increase the timeouts by a factor of 10.
2020-12-25 23:58:14 +01:00
Michael Biebl
170fb124a3 Switch to "unified" cgroup hierarchy (i.e. cgroupv2)
Closes: #943981
2020-12-21 20:05:09 +01:00
Michael Biebl
b36fa9dca2 Use -Dmode=release as we want a release, not developer, build 2020-11-12 21:22:59 +01:00
Michael Biebl
d124c0dd53 Explicitly disable oomd 2020-11-12 21:22:59 +01:00
Michael Biebl
ed60de5fd9 Disable libfido2 support
This is only used by homed which we don't enable.
2020-07-30 22:02:46 +02:00
Michael Biebl
536137206c Convert to dh_installsystemd and disable dh_installsystemduser 2020-05-17 19:24:03 +02:00
Michael Biebl
e99d4d7c1f Disable DNSSEC support by default in resolved
The upstream default, DNSSEC=allow-downgrade can lead to compatibility
issues with certain network access points. Previously, DNSSEC support
was only turned off when built for a stable Debian release, but it is
safer and more consistent to just generally change the default to
DNSSEC=no.

Closes: #959996
2020-05-17 19:19:17 +02:00
Dan Streetman
65f46a7d14 remove Ubuntu-specific ondemand.service
New processors handle scaling/throttling in internal firmware
(e.g. intel_pstate), and do not require OS config.

Additionally, nobody else does this, not even Debian.

And finally, this has caused problems for years, e.g.:

https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1497375
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1503773
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1480320
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579278
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1806012
https://bugs.launchpad.net/charm-sysconfig/+bug/1873028
2020-04-16 10:53:10 -04:00
Dan Streetman
05dc1ac6b4 d/rules: in dh_auto_test, include meson param --print-errorlogs
Also, don't cat testlog.txt; it's noisy and not very helpful.

Upstream request:
https://github.com/systemd/systemd/pull/14338#issuecomment-603432989
2020-04-06 18:19:49 -04:00
Balint Reczey
d6483013d5 Ship systemd-timesyncd in a separate package
The new systemd-timesyncd package conflicting with other NTP-related
packages resolves the problems arising when installing systemd-timesyncd
and other NTP servers on the same system.

Co-authored-by: Michael Biebl <biebl@debian.org>
LP: #1849156
Closes: #805927, #947936
2020-04-02 16:36:09 +02:00
Michael Biebl
58bf8b5016 Disable repart, userdb, homed, fdisk, pwquality, p11kit feature
Those are new features which drag in new dependencies and need further
review first.
2020-03-11 12:54:06 +01:00
Michael Biebl
9f32b45d6a Update debian/rules clean target to remove all Python bytecode 2020-02-01 20:43:42 +01:00
Helmut Grohne
19faa76be4 Add basic support for the noinsttest build profile
https://wiki.debian.org/BuildProfileSpec#Registered_profile_names
2020-01-25 22:33:11 +01:00
Michael Biebl
317c69c00c Revert "When doing upstream ci, install any missing files into the systemd package."
This reverts commit c3bf9ffe3a.
2020-01-25 16:19:03 +01:00
Michael Biebl
31ea6d210d Revert "Install missing files, prior to deduplication."
This reverts commit c7872b2618.
2020-01-25 16:19:01 +01:00
Dimitri John Ledkov
c7872b2618 Install missing files, prior to deduplication. 2019-12-21 00:07:05 +00:00
Dimitri John Ledkov
c3bf9ffe3a When doing upstream ci, install any missing files into the systemd package. 2019-12-20 22:16:32 +00:00
Michael Biebl
e8066121ad Switch default hierarchy (back) to hybrid
Since v243, the new upstream default is unified, but this still causes
regressions in important packages, like LXC or Docker, so switch the
default back to hybrid for now.
2019-11-09 02:20:20 +01:00
Balint Reczey
0599fc89ab Use package version as systemd's reported version
LP: #1849158
2019-10-29 20:01:04 +01:00
Dan Streetman
346871cead d/rules: add CONFFGLAGS_UPSTREAM to dh_auto_configure -- params
By default this var is empty and so will have no effect, but adding it
to the deb/udeb configure line allows upstream tests to pass custom meson
params, and since it's passed last in the line of different CONFFLAGS_*
its values will override any previously set params.

This can be used either by Ubuntu CI, or by Semaphore CI, to pass custom
meson params without having to sed-edit the rules file.
2019-08-25 10:10:23 -04:00
Michael Biebl
5b162f252f Merge branch 'master' into experimental 2019-08-21 22:07:20 +02:00
Michael Biebl
b0c697c519 Use /usr/sbin/nologin as nologin shell
In Debian the nologin shell is installed in /usr/sbin, not /sbin.

Closes: #931850
2019-07-18 19:31:38 +02:00
Michael Biebl
23cb344304 Replace manual removal of halt-local.service with upstream patch
One less downstream modification.

Gbp-Dch: Short
2019-06-07 22:41:39 +02:00
Luca Boccassi
4b7a238163 Enable portabled and install related files in systemd-container
Keep disabled for the udeb profile.

Closes: #918606
2019-06-05 12:52:57 +02:00
Michael Biebl
ccf7a5dc83 Revert "Build manpages in .deb variant."
Upstream CI was switched to use the experimental branch, so let's revert
this commit in master to keep the changes for buster minimal.

This reverts commit 0a67c4bc15.

Gbp-Dch: Ignore
2019-05-17 19:48:29 +02:00
Michael Biebl
ffe96f1cf6 Stop removing enablement symlinks in /etc/systemd/system
With v242 this is no longer necessary as `ninja install` will no longer
create those symlinks.

See also https://github.com/systemd/systemd/pull/12164 and
https://github.com/systemd/systemd/pull/12569
2019-05-16 21:53:55 +02:00