systemd/debian
2020-07-30 22:02:45 +02:00
..
extra dhclient-exit-hooks.d/timesyncd: Act only when systemd-timesyncd is available 2020-07-05 11:09:31 +02:00
patches Rebase patches 2020-07-30 22:01:34 +02:00
source No longer necessary with gbp 2014-04-26 10:25:11 +02:00
tests Add libzstd-dev and zstd as build and test deps 2020-07-23 11:54:27 +00:00
changelog New upstream version 246 2020-07-30 21:56:40 +02:00
control Bump libapparmor-dev Build-Depends to (>= 2.13) 2020-07-30 22:02:45 +02:00
copyright Small updates to debian/copyright 2020-04-04 10:09:42 +02:00
gbp.conf Switch debian-branch to debian/experimental 2020-07-30 21:54:03 +02:00
git-cherry-pick Delete empty lines at end of file 2020-05-16 11:25:10 +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 file for libsystemd0 2020-07-30 22:02:20 +02: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 Convert to dh_installsystemd and disable dh_installsystemduser 2020-05-17 19:24:03 +02: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-timesyncd.install Ship systemd-timesyncd in a separate package 2020-04-02 16:36:09 +02:00
systemd-timesyncd.postinst Small fixups for the previous commit 2020-04-04 08:58:22 +02:00
systemd-timesyncd.postrm Ship systemd-timesyncd in a separate package 2020-04-02 16:36:09 +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 Ship systemd-timesyncd in a separate package 2020-04-02 16:36:09 +02:00
systemd.links Drop alias for rc.local and urandom as well 2019-11-09 17:06:38 +01:00
systemd.lintian-overrides Small fixups for the previous commit 2020-04-04 08:58:22 +02:00
systemd.maintscript Ship systemd-timesyncd in a separate package 2020-04-02 16:36:09 +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 Add reference to upstream issue for systemd-tmpfiles needing /proc 2020-04-18 20:39:24 +02:00
systemd.postrm Fix systemd-pstore.service enablement symlink on upgrades 2020-04-13 13:57:49 +02:00
systemd.preinst Ship systemd-timesyncd in a separate package 2020-04-02 16:36:09 +02: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 Install 60-block.rules in udev-udeb and initramfs-tools 2020-04-27 17:55:26 +02: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 Delete empty lines at end of file 2020-05-16 11:25:10 +03: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 Drop custom initramfs update code 2020-05-17 19:28:30 +02: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 Delete empty lines at end of file 2020-05-16 11:25:10 +03: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 Switch debian-branch to debian/experimental 2020-07-30 21:54:03 +02: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