[Pbuilder-maint] Bug#381036: Needs of a pbuilder-buildpackage?
Proposal.
Loïc Minier
lool at dooz.org
Sun Oct 22 16:53:58 CEST 2006
debuild seems to currently hardcode dpkg-buildpackage. It also
hardcodes switching to dpkg-cross if available. I'm not sure this very
scalable, I would rather see debuild call dpkg-buildpackage or a
command with the same interface, and various Debian tools provide
compatible wrappers to their functionality.
In particular, we currently have svn-buildpackage, tla-buildpackage,
arch-buildpackage, bzr-buildpackage, pbuilder and pdebuild.
Devscripts already have some SCM aware commands, such as "debcommit", I
suppose it would be coherent to have the same checks decide to run
*-buildpackage. The SCM wrappers have usually a "builder" config, e.g.
--svn-builder=debuild, so it would be a simple matter of setting these
up to call pdebuild.
Or we could even make debuild have a "default" builder, which would be
dpkg-buildpackage by default, but which people could override to
pbuilder-builkdpackage in their config or on each run; pdebuild would
be trivially (re-)implemented as debuild --builder=
pbuilder-buildpackage.
So, perhaps it would make sense to provide a pbuilder-buildpackage
which would map --pbuilder-* options to "pbuilder build" flags and
would pass the rest to dpkg-buildpackage.
What do you think?
--
Loïc Minier <lool at dooz.org>
More information about the Pbuilder-maint
mailing list