systemd/debian
Dan Streetman 02df3e5aa4 d/t/storage: change plaintext_name to include testname
Setting the plaintext name to include the testname makes debugging failures
easier.

Also for convenience, create service_name field in setup method, for use
in tests and/or teardown method.
2019-07-24 14:15:09 -04:00
..
extra d/e/checkout-upstream: set user.name, user.email if unset 2019-07-24 07:25:58 -04:00
patches Replace manual removal of halt-local.service with upstream patch 2019-06-07 22:41:39 +02:00
source No longer necessary with gbp 2014-04-26 10:25:11 +02:00
tests d/t/storage: change plaintext_name to include testname 2019-07-24 14:15:09 -04:00
changelog Release version 242-2 to experimental 2019-06-07 22:44:48 +02:00
compat Bump debhelper compatibility level to 10 2017-05-26 15:15:23 +02:00
control Enable portabled and install related files in systemd-container 2019-06-05 12:52:57 +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 experimental 2019-04-19 01:11:50 +02: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 nss-my*.postinst: configure at the end of the hosts line, not before files. 2015-07-27 15:06:21 +02:00
libnss-myhostname.postrm libnss-*.prerm: Remove possible [key=value] options from NSS modules as well 2016-09-20 13:25:28 +02: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 nss-my*.postinst: configure at the end of the hosts line, not before files. 2015-07-27 15:06:21 +02:00
libnss-mymachines.postrm libnss-*.prerm: Remove possible [key=value] options from NSS modules as well 2016-09-20 13:25:28 +02: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 Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
libnss-resolve.postrm libnss-*.prerm: Remove possible [key=value] options from NSS modules as well 2016-09-20 13:25:28 +02: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 Package libnss-systemd 2016-11-30 14:24:24 +01:00
libnss-systemd.postrm Package libnss-systemd 2016-11-30 14:24:24 +01:00
libpam-systemd.install Clean up Debian specific file installation 2015-01-22 09:46:15 +01:00
libpam-systemd.postinst Add pam-auth-update calls to libpam-systemd's postinst and prerm 2010-09-01 21:10:41 +02:00
libpam-systemd.prerm Do proper refcounting of the PAM module package on prerm 2014-04-26 12:38:03 +02:00
libsystemd0.install Install the new combined libsystemd0 library 2014-07-16 23:29:00 +02:00
libsystemd0.symbols debian/libsystemd0.symbols: Add new symbol from release 241 2019-02-21 20:08:51 -03: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 Drop outdated section from README.Debian about switching back to SysV init 2018-06-28 12:01:03 +02:00
README.source debian/README.source: Update patch and changelog handling to current reality 2017-02-13 22:04:22 +01:00
rules Replace manual removal of halt-local.service with upstream patch 2019-06-07 22:41:39 +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.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 debian/systemd-coredump.postinst: Do daemon-reload before starting systemd-coredump 2016-04-25 09:00:29 +02:00
systemd-coredump.prerm systemd-coredump.{prerm,postinst}: Fix order 2016-03-14 17:13:22 +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 systemd-sysv.postinst: Adjust syntax for better portability 2015-03-26 08:30:11 +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 Register interest in the status of dracut and initramfs-tools in reportbug template 2016-10-17 20:44:50 -03: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 Fix comment about why we disable hwclock.service 2019-02-13 09:48:50 -03:00
systemd.lintian-overrides Quiesce possibly-insecure-handling-of-tmp-files lintian warning 2014-12-28 12:05:28 +01: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 Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
systemd.postrm Clean up dbus-org.freedesktop.timesync1.service Alias on purge 2018-07-22 20:39:32 +02:00
systemd.prerm Update the checks which test if systemd is the active init. 2013-06-20 01:17:00 +02: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 Import Debian changes 234-2.1 2017-08-30 10:41:41 -03: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 Move systemd.link(5) to udev package 2017-03-12 12:32:01 +01:00
udev.links Drop /sbin/udevadm compat symlink 2019-05-08 01:33:37 +02:00
udev.maintscript Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
udev.NEWS debian/udev.NEWS: Reformat old entry 2016-07-14 14:09:59 +02:00
udev.postinst Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
udev.postrm Remove /var/log/udev on purge 2014-04-26 22:57:48 +02:00
udev.preinst Remove obsolete udev maintainer script checks 2016-02-08 23:21:36 +01:00
udev.prerm Stop testing for unknown arguments in udev maintainer scripts 2015-12-10 15:58:53 +01:00
udev.README.Debian udev README.Debian: Include initrd rebuild and some clarifications in migration 2018-03-18 16:19:07 +01:00
udev.triggers Switch the hwdb trigger to interest-noawait 2013-07-21 15:33:42 +02:00
watch d/watch: add version mangle to transform -rc to ~rc 2019-01-28 10:24:39 -03: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