Debian Package Management

German only - and rather outdated: DebianPaketVerwaltung

Managing Patches with Quilt

Cf. DebianWiki:UsingQuiltdebian
  1. Setup quilt environment:
    export QUILT_PATCHES=debian/patches
    export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
  2. … (More to come)

Building packages in a clean environment

pbuilder is a tool to create build chroots to check wether all build-dependencies are specified or to build for different flavors. cowbuilder adds support for recyclable build chroots. chroots can be created with cowbuilder --create.

If you would like to create a clean chroot for Debian Wheezy you would run:

sudo cowbuilder --create --basepath /var/cache/pbuilder/wheezy64.cow --distribution wheezy

pdebuild --pbuilder cowbuilder builds the source package first and then the binary package inside the chroot. Built packages end up in /var/cache/pbuilder/result/.

If you would like to build the package for Debian Wheezy and have created an appropriate chroot as described above, you would run:

pdebuild --pbuilder cowbuilder -- --basepath  /var/cache/pbuilder/wheezy64.cow

git-buildpackage

Cf. DebianWiki:PackagingWithGitdebian

Managing patches in git

gbp-pq is a tool to manage patches in a separate patch-queue branch.

gbp-pq import creates and checks out the patch-queue branch. gbp-pq export creates patches for all commits to the patch-queue branch. Quite a few rebasing and git history rewriting may be required to keep the patches in shape.

Cf. https://honk.sigxcpu.org/piki/development/debian_packages_in_git/

git-pbuilder

Cf. DebianWiki:git-pbuilderdebian

Useful tools

$ DebPkg:debian-eldebian: Emacs-modes for various Debian-related file formats.

-- Christo - 2014
Topic revision: r8 - 2014-08-06, BastianNeuburger - This page was cached on 2024-11-24 - 11:12.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)