Confirmed users
3,990
edits
| Line 72: | Line 72: | ||
There are some different ways to build a binary package | There are some different ways to build a binary package | ||
==== Building from orig.tar.gz, debian.tar.gz and dsc ==== | ==== Building from orig.tar.gz, debian.tar.gz and dsc ==== | ||
sudo pbuilder --build --distribution precise --architecture amd64 --basetgz /var/cache/pbuilder/base-precise-amd64.tgz | sudo pbuilder --build --distribution precise --architecture amd64 \ | ||
--basetgz /var/cache/pbuilder/base-precise-amd64.tgz --buildresult ./out *.dsc | |||
"out" directory will be populated with files you'll need to import into the repo. | "out" directory will be populated with files you'll need to import into the repo. | ||
By default if the same upstream version has 2 entries in debian/changelog, packaging tools don't add orig.tar.gz in the *.changes files (used when you import the package). If for some reason you need to add the upstream source into the "changes" file (for example, when you backport some package) pass "-sa" to the packaging tools: | By default if the same upstream version has 2 entries in debian/changelog, packaging tools don't add orig.tar.gz in the *.changes files (used when you import the package). If for some reason you need to add the upstream source into the "changes" file (for example, when you backport some package) pass "-sa" to the packaging tools: | ||
sudo pbuilder --build --distribution precise --architecture amd64 --basetgz /var/cache/pbuilder/base-precise-amd64.tgz | sudo pbuilder --build --distribution precise --architecture amd64 \ | ||
--basetgz /var/cache/pbuilder/base-precise-amd64.tgz --buildresult out --debbuildopts "-sa" *.dsc | |||
==== Building using git-buildpackage ==== | ==== Building using git-buildpackage ==== | ||