User:Elukey/Ops/DebianPackaging

From Wikitech

Useful commands

# pdebuild
DIST=buster pdebuild

# Regular git pbuilder
GIT_PBUILDER_AUTOCONF=no ARCH=amd64 DIST=buster gbp buildpackage -j4 -sa -us -uc --git-builder=git-pbuilder --git-color=on --git-ignore-branch

# If you need to allow network while building
elukey@deneb:~$ cat ~/.pbuilderrc
USENETWORK=yes

elukey@deneb:~$ https_proxy=http://webproxy.eqiad.wmnet:8080 GIT_PBUILDER_AUTOCONF=no ARCH=amd64 DIST=buster gbp buildpackage -j4 -sa -us -uc --git-builder=git-pbuilder --git-color=on --git-ignore-branch

# Quilt
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index" 
export QUILT_PATCHES=debian/patches

# gbp import
# This imports a tarball downloaded from upstream,
# creates a pristine-tar branch and an upstream branch with proper git tags.
# It also finally merge the new code to the master node (where you can put
# the debian directory for example).
gbp import-orig --pristine-tar ../1.9.5.tar.gz