util-linux/debian
Yue-Lan b994252b6c update changelog. 2023-04-25 11:04:03 +08:00
..
logcheck/ignore.d.server Update the debian directory. 2023-02-17 15:11:35 +08:00
patches merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
po Update the debian directory. 2023-02-17 15:11:35 +08:00
source changed debian/source/format to native 2022-05-14 03:14:50 +08:00
tests Update the debian directory. 2023-02-17 15:11:35 +08:00
upstream Update the debian directory. 2023-02-17 15:11:35 +08:00
.gitlab-ci.yml Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
README.build-profiles Update the debian directory. 2023-02-17 15:11:35 +08:00
README.source Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdextrautils.install Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdextrautils.links Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdextrautils.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdextrautils.preinst Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdutils.install Update the debian directory. 2023-02-17 15:11:35 +08:00
bsdutils.lintian-overrides Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
changelog update changelog. 2023-04-25 11:04:03 +08:00
clean Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
control Update the debian directory. 2023-02-17 15:11:35 +08:00
copyright Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
eject-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
eject-udeb.postinst Update the debian directory. 2023-02-17 15:11:35 +08:00
eject-udeb.templates Update the debian directory. 2023-02-17 15:11:35 +08:00
eject.install Update the debian directory. 2023-02-17 15:11:35 +08:00
fdisk-udeb.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
fdisk-udeb.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
fdisk.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
gbp.conf Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
hwclock-set Update the debian directory. 2023-02-17 15:11:35 +08:00
hwclock.5 Update the debian directory. 2023-02-17 15:11:35 +08:00
libblkid-dev.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libblkid1-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libblkid1-udeb.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libblkid1.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libblkid1.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libblkid1.shlibs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libblkid1.symbols Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk-dev.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk1-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk1-udeb.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk1.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk1.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libfdisk1.shlibs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libfdisk1.symbols Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount-dev.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount1-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount1-udeb.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount1.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount1.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libmount1.shlibs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libmount1.symbols Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols-dev.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols1-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols1-udeb.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols1.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols1.lintian-overrides Update the debian directory. 2023-02-17 15:11:35 +08:00
libsmartcols1.shlibs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libsmartcols1.symbols Update the debian directory. 2023-02-17 15:11:35 +08:00
libuuid1-udeb.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libuuid1.install Update the debian directory. 2023-02-17 15:11:35 +08:00
libuuid1.shlibs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
libuuid1.symbols Update the debian directory. 2023-02-17 15:11:35 +08:00
mount.docs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
mount.examples Update the debian directory. 2023-02-17 15:11:35 +08:00
mount.fstab Update the debian directory. 2023-02-17 15:11:35 +08:00
mount.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
mount.lintian-overrides Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
rfkill.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
rules 跳过riscv64架构的编译检查,规避构建错误 2023-04-25 11:00:12 +08:00
util-linux-extra.hwclock.sh.init Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux-extra.install Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux-extra.manpages Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux-locales.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux-udeb.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.README.Debian Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.docs Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.examples Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux.install Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux.links Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.lintian-overrides Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.manpages Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux.mime Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.postinst Update the debian directory. 2023-02-17 15:11:35 +08:00
util-linux.postrm Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.prerm Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.runuser-l.pam Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.runuser.pam Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.su-l.pam Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
util-linux.su.pam Update the debian directory. 2023-02-17 15:11:35 +08:00
uuid-dev.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
uuid-runtime.dirs Update the debian directory. 2023-02-17 15:11:35 +08:00
uuid-runtime.install Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
uuid-runtime.postinst Update the debian directory. 2023-02-17 15:11:35 +08:00
uuid-runtime.postrm Import Debian changes 2.34-ok1 2022-05-14 03:14:32 +08:00
watch Update the debian directory. 2023-02-17 15:11:35 +08:00

README.source

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

  debcheckout --git-track '*' util-linux
  cd util-linux
  git branch -l | grep debian
  git checkout master
  gbp buildpackage

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

  gbp buildpackage --git-pbuilder

Patch handling
--------------
The official form of modifications to the upstream source are quilt patches in
debian/patches/, like most Debian packages do. You are welcome to use quilt to
add or modify patches, but you might prefer using a git commit based approach.
gbp pq provides that by synthesizing a "patch-queue/<branch>" local branch
which represents each quilt patch as git commit. You create this with

  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 the debian branch and update debian/patches/
(including series). You need to git add etc. new patches, add a changelog
and other packaging changes, and then debcommit as usual.

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 debian branch:

  git checkout master  # in case you aren't already on it

Fetch new git history from upstream:

  git remote add kzak git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
  git fetch kzak [upstream-version-tag]

Now, to import a new upstream release into the existing branch,
ie. when updating from v2.24 to v2.24.2,
do:

  gbp pq import --force
  gbp pq switch   # switch back to debian branch from patch-queue branch
  gbp import-orig --upstream-vcs-tag=v2.24.2 ../tarballs/util-linux-2.24.2.tar.xz
  gbp pq switch   # switch to patch-queue branch
  git rebase master

  gbp pq export

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

Also, don't forget to commit your newly generated patches!

  git add debian/patches
  git commit -v

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

  git remote add kzak git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
  git fetch kzak -n

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

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

Finally, export and commit your newly generated debian/patches changes:
  gbp pq export
  git add debian/patches
  git commit -v

Modifying packaging files
-------------------------------

When making changes to debian/ general "git-buildpackage conventions" apply.
Follow usual git conventions for commit message but also see "man gbp-dch"
META TAGS section.
Finally once you're done update debian/changelog using "gbp dch --auto"
and commit it.