systemd/debian
Thomas Lamprecht 9865f4aeab bump version to 247.3-7+1-pmx11u1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-26 11:55:29 +02:00
..
extra udev-udeb: setup /dev/fd, /dev/std{in,out,err} symlinks 2021-04-12 20:21:00 +02:00
patches backport calendarspec fix for reverse DST change and safety net 2023-03-26 11:53:18 +02:00
source No longer necessary with gbp 2014-04-26 10:25:11 +02:00
tests autopktest: Fix timedated test dependencies 2022-03-20 20:55:22 +01:00
upstream Set upstream metadata fields: Bug-Submit, Bug-Database, Repository, Repository-Browse 2021-01-18 17:36:20 +01:00
changelog bump version to 247.3-7+1-pmx11u1 2023-03-26 11:55:29 +02:00
control Demote systemd-timesyncd from Depends to Recommends 2022-01-18 13:51:18 +01:00
copyright Small updates to debian/copyright 2020-04-04 10:09:42 +02:00
gbp.conf Switch debian-branch to debian/bullseye 2022-01-18 12:31:42 +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.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 libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +01: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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 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 v247 release 2020-11-26 19:16:01 +01:00
libsystemd-dev.install Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Move libraries and NSS modules from /lib to /usr/lib 2021-01-02 17:05:34 +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 Configure localed to run locale-gen to generate missing locale 2021-01-18 03:05:05 +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.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 pam: move systemd-user PAM config from /etc/pam.d to /usr/lib/pam.d 2020-11-18 01:12:04 +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 systemd Debian release 246.6-5 2020-11-26 17:58:35 +01:00
systemd.NEWS Switch to "unified" cgroup hierarchy (i.e. cgroupv2) 2020-12-21 20:05:09 +01:00
systemd.postinst Revert "Trigger a systemctl daemon-reload when init scripts are installed or removed" 2020-11-19 22:33:24 +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 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 Move udev NEWS entry to systemd 2020-12-20 20:37:58 +01: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/watch back to systemd-stable repo now that v247 is released 2020-12-01 14:30: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