systemd/debian
Michael Biebl 13acdb61a3 Revert "Enable seccomp support on riscv64"
This requires further changes to the source code and a newer, not yet
officially released, libseccomp. Since this complicates backports revert
this change for the time being.
2020-04-02 11:51:20 +02:00
..
extra Update udev-udeb to use 73-usb-net-by-mac.link 2019-12-02 23:44:12 +01:00
patches Rebase patches 2020-03-18 23:04:54 +01:00
source No longer necessary with gbp 2014-04-26 10:25:11 +02:00
tests d/t/logind: use grep -s when checking /sys/power/state 2020-03-25 15:00:06 -04:00
changelog Update changelog 2020-04-02 09:12:08 +02:00
compat Bump debhelper compatibility level to 10 2017-05-26 15:15:23 +02:00
control Revert "Enable seccomp support on riscv64" 2020-04-02 11:51:20 +02:00
copyright debian/copyright: Move global wildcard section to the top 2018-04-01 13:00:54 +02:00
gbp.conf Switch debian-branch to debian/master 2019-12-02 18:07:37 +01:00
git-cherry-pick git-cherry-pick: Actually use cherry-pick for picking 2017-03-08 11:05:54 -03:00
libnss-myhostname.install Move a few files into their correct packages 2015-07-08 18:49:15 +02:00
libnss-myhostname.lintian-overrides Override package-name-doesnt-match-sonames lintian warning for libnss-* 2017-03-03 18:48:14 +01:00
libnss-myhostname.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-myhostname.postrm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-mymachines.install Move a few files into their correct packages 2015-07-08 18:49:15 +02:00
libnss-mymachines.lintian-overrides Override package-name-doesnt-match-sonames lintian warning for libnss-* 2017-03-03 18:48:14 +01:00
libnss-mymachines.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-mymachines.postrm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-resolve.install Add libnss-resolve package 2015-11-11 11:20:27 +01:00
libnss-resolve.lintian-overrides Override package-name-doesnt-match-sonames lintian warning for libnss-* 2017-03-03 18:48:14 +01:00
libnss-resolve.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-resolve.postrm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-systemd.install Package libnss-systemd 2016-11-30 14:24:24 +01:00
libnss-systemd.lintian-overrides Override package-name-doesnt-match-sonames lintian warning for libnss-* 2017-03-03 18:48:14 +01:00
libnss-systemd.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libnss-systemd.postrm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libpam-systemd.install Clean up Debian specific file installation 2015-01-22 09:46:15 +01:00
libpam-systemd.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libpam-systemd.prerm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
libsystemd0.install Install the new combined libsystemd0 library 2014-07-16 23:29:00 +02:00
libsystemd0.symbols Update symbols 2020-03-11 11:35:09 +01:00
libsystemd-dev.install Strip leading / for consistencies sake 2016-09-27 21:38:24 +02:00
libudev1-udeb.install Add .install files for the udev packages 2013-07-18 16:54:10 +02:00
libudev1.install Add .install files for the udev packages 2013-07-18 16:54:10 +02:00
libudev1.symbols Add Build-Depends-Package to libudev1.symbols and libsystemd0.symbols 2016-07-08 11:42:31 +02:00
libudev-dev.install Strip leading / for consistencies sake 2016-09-27 21:38:24 +02:00
README.Debian README.Debian: document KillUserProcesses behavior in Debian 2019-08-31 12:38:02 +02:00
README.source debian/README.source: Update patch and changelog handling to current reality 2017-02-13 22:04:22 +01:00
rules Disable repart, userdb, homed, fdisk, pwquality, p11kit feature 2020-03-11 12:54:06 +01:00
shlibs.local.in debian/shlibs.local.in: More precisely define version of internal shared lib 2016-09-25 23:08:22 +02:00
systemd-container.install Enable portabled and install related files in systemd-container 2019-06-05 12:52:57 +02:00
systemd-container.lintian-overrides Add lintian override for systemd-container 2019-12-01 14:52:17 +01:00
systemd-container.maintscript Install D-Bus policy files in /usr 2017-03-03 13:06:48 +01:00
systemd-container.postinst Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
systemd-container.postrm Enable machines.target by default 2016-11-14 16:30:20 -03:00
systemd-coredump.install Move systemd-coredump socket and service into systemd-coredump binary package 2016-02-27 12:02:30 +01:00
systemd-coredump.postinst Use same GECOS field description as upstream for systemd-coredump 2020-03-18 23:15:43 +01:00
systemd-coredump.prerm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
systemd-journal-remote.install Move a few man pages from systemd to systemd-journal-remote 2018-07-12 22:41:39 +02:00
systemd-journal-remote.postinst Use DynamicUser= for systemd-journal-upload.service 2017-11-15 09:08:49 +01:00
systemd-sysv.install Use compat symlinks as provided by upstream 2018-03-07 20:50:13 +01:00
systemd-sysv.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
systemd-tests.install Split upstream tests into systemd-tests binary package 2017-04-08 11:40:37 +02:00
systemd-tests.lintian-overrides Update lintian override for systemd-tests 2017-07-12 22:28:57 +02:00
systemd.bug-control Report status of libpam-systemd and libnss-systemd in systemd reportbug template 2020-01-29 18:50:51 +01:00
systemd.bug-script Drop fallback for older reportbug versions when attaching files 2016-12-21 20:20:45 +01:00
systemd.dirs Don't enable persistent storage of journal log files. 2013-01-19 15:40:12 +01:00
systemd.install Install new systemd-id128 binary 2018-12-22 03:31:13 +01:00
systemd.links Drop alias for rc.local and urandom as well 2019-11-09 17:06:38 +01:00
systemd.lintian-overrides Drop unused lintian override 2019-08-31 01:35:13 +02:00
systemd.maintscript Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
systemd.NEWS Go back to statically allocate system users for timesyncd, networkd and resolved 2018-07-16 18:51:20 +02:00
systemd.postinst Enable systemd-pstore.service by default on new installs and upgrades 2020-04-02 11:29:57 +02:00
systemd.postrm Remove empty /var/log/journal/ on purge 2020-02-07 01:19:46 +01:00
systemd.prerm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
systemd.triggers Trigger a systemctl daemon-reload when init scripts are installed or removed 2015-04-08 10:54:30 +02:00
udev-udeb.dirs Remove obsolete debian/udev*.dirs entries 2013-07-18 20:34:39 +02:00
udev-udeb.install Update udev-udeb to use 73-usb-net-by-mac.link 2019-12-02 23:44:12 +01:00
udev.bug-control Include the state of the udev package when filing a bug against systemd, and vice versa 2015-10-29 01:25:03 +01:00
udev.bug-script Drop fallback for older reportbug versions when attaching files 2016-12-21 20:20:45 +01:00
udev.init udev.init: Use new s-s-d --notify-await to start udev daemon 2019-03-11 18:58:31 +01:00
udev.install Make it easier to override MAC based name policy for USB network adapters 2019-12-02 18:07:33 +01:00
udev.links Drop /sbin/udevadm compat symlink 2019-05-08 01:33:37 +02:00
udev.lintian-overrides Add lintian override for udev 2019-12-01 14:48:45 +01:00
udev.maintscript Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
udev.NEWS Document that DRM render nodes are now owned by group "render" 2019-05-17 19:51:37 +02:00
udev.postinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
udev.postrm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
udev.preinst Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
udev.prerm Use more consistent shell script headers 2020-01-31 10:46:58 +01:00
udev.README.Debian Update documentation regarding network interface naming 2020-02-01 04:47:09 +01:00
udev.triggers Switch the hwdb trigger to interest-noawait 2013-07-21 15:33:42 +02:00
watch debian/watch: Switch to watch tags at github.com/systemd/systemd-stable 2020-01-25 16:24:14 +01:00

Building from source
--------------------
Install “git-buildpackage” and run the following steps:

  gbp clone git+ssh://git.debian.org/git/pkg-systemd/systemd.git
  cd systemd
  gbp buildpackage

We recommend you use pbuilder to make sure you build in a clean environment:

  gbp buildpackage --git-pbuilder

Changelog
---------
The systemd package uses gbp dch for automatically generating
debian/changelog entries from the corresponding git commits. This makes
cherry-picking, merging, and rebasing much simpler.

Thus, for any packaging change *don't* modify debian/changelog, just write a
meaningful git commit log with proper bug references (such as "Closes: #12345"
on the last line). For doing a release, run

  gbp dch --auto

then beautify the generated debian/changelog, then run the usual "dch -r" and
"debcommit -ar --sign-tags".

Patch handling
--------------
The systemd package uses gbp pq for maintaining patches with a git-like
workflow in a "patch-queue/<branch>" local branch and then exporting them as
quilt series.  For working on patches you run

  gbp pq import --force

Then you are in the patch-queue branch and can git log, commit, cherry-pick
upstream commits, rebase, etc. there. After you are done, run

  gbp pq export

which will put you back into master and update debian/patches/ (including
series). You need to git add etc. new patches, possibly other
packaging changes, and then git commit as usual.

systemd uses gbp pq's "topic" branches for organizing patches; for simplicity
(as this is the most common operation), upstream cherry-picks go into the
"empty" topic (i. e. directly into debian/patches/), while Debian specific
patches go into "Gbp-Pq: Topic debian" (i. e. debian/patches/debian/).

Rebasing patches to a new upstream version
------------------------------------------
gbp pq's "rebase" command does not work very conveniently as it fails on merge
conflicts. First, ensure you are in the master branch:

  git checkout master  # in case you aren't already

Now, do one of

 (1) To import a new upstream release into the existing master branch for unstable,
do:

  gbp pq import --force
  gbp pq switch   # switch back to master from patch-queue/master
  gbp import-orig [...]
  gbp pq switch   # switch to patch-queue/master
  git rebase master

 (2) To import a new upstream release into a new branch for Debian experimental, do:

  git branch experimental
  git checkout experimental
  editor debian/gbp.conf  # set "debian-branch=experimental"
  gbp import-orig [...]
  git branch patch-queue/experimental patch-queue/master
  git checkout patch-queue/experimental
  git rebase experimental

Now resolve all the conflicts, skip obsolete patches, etc. When you are done, run

  gbp pq export

Note that our debian/gbp.conf disables patch numbers.

Cherry-picking upstream patches
-------------------------------
You can add the systemd upstream branch as an additional remote to the Debian
packaging branch. Call it "github" or similar to avoid confusing it with the
already existing "upstream" branch from git-buildpackage:

  git remote add github https://github.com/systemd/systemd.git
  git fetch github -n

Now you can look at the upstream log and cherry-pick patches into the
patch-queue branch:

  gbp pq import --force
  git log github/master
  git cherry-pick 123DEADBEEF

debian/git-cherry-pick is a nice tool to automate all that:

  debian/git-cherry-pick 123DEADBEEF 987654 AFFE99
  git checkout master  # switch back from patch-queue branch