[buildd-tools-devel] Bug#655215: Bug#655215: sbuild: Do not do run "fakeroot ./debian/rules clean" before building source

Daniel Dehennin daniel.dehennin at baby-gnu.org
Fri Jan 20 12:23:58 UTC 2012


Roger Leigh <rleigh at codelibre.net> writes:


[...]

> In this situation, I guess there are two possibilities:
>
> 1) You run "dpkg-source -b" yourself, then run sbuild with the
>    resulting .dsc.  This won't require any changes to sbuild directly.
>
> 2) We add an option to sbuild to permit cleaning of the tree to be
>    skipped.  I guess we can add -nc like for dpkg-buildpackage.
>
> It depends on whether (1) is too much of an inconvenience.  But it's
> certainly possible to do (2).

I would prefer (2) for personal use, I like doing:

#+begin_src sh
me at home:~$ git buildpackage --git-builder="sbuild -A -d unstable" --git-cleaner=/bin/true
#+end_src

This is fine for arch=all packages but requires X runs for X
architectures, so I'm looking at rebuildd and its interaction with
reprepro[1][2].

In that case, I'm inclined to use something like:

#+begin_src sh
me at home:~$ git buildpackage \
  --git-builder="dpkg-buildpackage -nc -d -S" \
  --git-postbuild='dput reprepro "${GBP_CHANGES_FILE}"'
  --git-cleaner=/bin/true
#+end_src

and let rebuildd to the work.

Regards.

Footnotes: 
[1]  http://inodes.org/2009/09/14/building-a-private-ppa-on-ubuntu/

[2]  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656187

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120120/ee65c11d/attachment.pgp>


More information about the Buildd-tools-devel mailing list