[Debian Wiki] Update of "BOINC/Development/GitUsage" by SteffenMoeller
Debian Wiki
debian-www at lists.debian.org
Mon Jan 3 12:16:59 UTC 2011
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.
The "BOINC/Development/GitUsage" page has been changed by SteffenMoeller:
http://wiki.debian.org/BOINC/Development/GitUsage?action=diff&rev1=33&rev2=34
== Build Packages ==
Make sure you are in the master branch, if unsure, run 'git checkout master'. You will notice the directory named 'debian'.
- Building packages with {{{git-buildpackage}}} is now as easy as running:
+ Building packages with {{{git-buildpackage}}} is now as easy as running: {{{
-
- {{{
git buildpackage -rfakeroot
- }}}
-
- Hm. One could improve that just a bit by not requesting signatures
+ }}}. One could improve that just a bit by not requesting signatures {{{
-
- {{{
git buildpackage -rfakeroot -uc -us
+ }}}. And if you are still evaluating bits
+ here or there without having them checked in or
+ the source tree was not properly cleaned from
+ side-effects of the build, then run {{{
+ git buildpackage -rfakeroot -uc -us --git-ignore-new
- }}}
+ }}}.
git-buildpackage will learn about the version to pack from the debian/changelog file. And since no .orig.tar.gz file is present, it will be recreated from the upstream branch. Once this was done, the remainder works as with dpkg-buildpackage, with no further involvement of the package maintainer.
- The annoying thing with git- or dpkg-buildpackage is that those start the packaging from scratch since they call "fakeroot ./debian/rules clean" by default. If that is not desired then consider calling "fakeroot ./debian/rules binary", instead. Once the packages are brought to pristine shape, then run git-buildpackage again for a clean picture.
+ The annoying thing with git- or dpkg-buildpackage is that those start the packaging from scratch since they call "fakeroot ./debian/rules clean" by default. If that is not desired then consider calling "fakeroot ./debian/rules binary", instead. It may also help to add the "-nc" (no clean) option to the *-buildpackage tools. Once the packages are brought to pristine shape, then run git-buildpackage again for a clean picture.
=== Variants for the invocation of git buildpackage ===
More information about the pkg-boinc-commits
mailing list