Creating a debian native package from scratch with git-buildpackage


A missing snippet from the manual of http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html was how to create a debian native package from scratch, I did something like this:


mkdir newdeb
cd newdeb
git init
git commit --allow-blank -m "Empty upstream, native Debian package"
# or with newer git (thanks marco)
git commit --allow-empty -m "Empty upstream, native Debian package"
git branch upstream
dh_make -p newdeb_1.0 -n -e joe@bloggs.com -s
git add debian
git commit -m "Initial blank Debian package template"

  1. #1 by Marco on February 14, 2012 - 10:45 am

    I get an “error: unknown option `allow-blank’”.
    Apparently it should be –allow-empty as of git version 1.7.5.4

    hth, Marco

(will not be published)