systemd/debian
2022-01-06 09:20:49 +01:00
..
extra Stop setting up device symlinks for CD-RW/DVD drives 2021-07-31 19:32:56 +02:00
patches Rebase patches 2022-01-05 20:14:18 +01:00
source No longer necessary with gbp 2014-04-26 10:25:11 +02:00
tests autopkgtest: install dbus-user-session for upstream test 2021-12-21 01:23:04 +01:00
upstream Set upstream metadata fields: Bug-Submit, Bug-Database, Repository, Repository-Browse 2021-01-18 17:36:20 +01:00
changelog Release version 250.1-1 to experimental 2022-01-05 21:43:13 +01:00
control Bump meson Build-Depends to (>= 0.53.2) 2021-12-20 22:22:05 +01:00
copyright Small updates to debian/copyright 2021-12-21 01:23:04 +01:00
gbp.conf Switch debian-branch to experimental 2021-12-09 20:53:38 +01:00
git-cherry-pick Delete empty lines at end of file 2020-05-16 11:25:10 +03:00
libnss-myhostname.install Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Don't override sourcedir/destdir anymore 2022-01-02 21:04:11 +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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +01:00
libsystemd0.symbols Update symbol versions for the v250 release 2021-12-24 08:47:32 +01:00
libsystemd-dev.install Use more consistent ordering in .install files 2021-11-13 18:27:30 +01:00
libudev1-udeb.install Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +01:00
libudev1.install Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +01:00
libudev1.symbols Update symbol versions for the v247 release 2020-11-26 19:16:01 +01:00
libudev-dev.install Use more consistent ordering in .install files 2021-11-13 18:27:30 +01: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 d/rules: Enable build of systemd-oomd 2022-01-06 09:20:49 +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 systemd-container: install systemd-dissect binary 2020-11-12 21:22:59 +01:00
systemd-container.lintian-overrides Add lintian override for systemd-container 2019-12-01 14:52:17 +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 sysusers: split up systemd.conf 2021-11-13 19:06:51 +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-timesyncd.install Don't override sourcedir/destdir anymore 2022-01-02 21:04:11 +01: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 Don't override sourcedir/destdir anymore 2022-01-02 21:04:11 +01: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 Clean up old versions from maintscript files 2021-07-30 22:10:12 +02:00
systemd.NEWS Switch to "unified" cgroup hierarchy (i.e. cgroupv2) 2020-12-21 20:05:09 +01:00
systemd.postinst Drop obsolete migration code for RAMTMP, TPMTIME and UTC 2021-11-11 22:02:41 +01: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 Revert "Trigger a systemctl daemon-reload when init scripts are installed or removed" 2020-11-19 22:33:24 +01:00
udev-udeb.dirs Remove obsolete debian/udev*.dirs entries 2013-07-18 20:34:39 +02:00
udev-udeb.install Don't override sourcedir/destdir anymore 2022-01-02 21:04:11 +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 Delete empty lines at end of file 2020-05-16 11:25:10 +03:00
udev.install Don't override sourcedir/destdir anymore 2022-01-02 21:04:11 +01:00
udev.links Drop /sbin/udevadm compat symlink 2019-05-08 01:33:37 +02:00
udev.NEWS Move udev NEWS entry to systemd 2020-12-20 20:37:58 +01:00
udev.postinst Remove obsolete upgrade code from maintainer scripts 2021-07-30 22:10:06 +02:00
udev.postrm 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 Revert "Switch debian/watch from systemd-stable to systemd to get pre releases" 2021-07-07 21:36:22 +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