Hi again,

Jakub Wilk wrote:
> * Jonathan Nieder <jrnie...@gmail.com>, 2012-05-01, 13:22:

>>I'm not convinced this is worth a dpkg-buildpackage option on its own.
>
> Well, I am.

Good, now our positions are staked out. Hopefully it is possible to
take care of all our needs without interfering with the others.

I am concerned that this --build-twice option would clutter the
documentation and make it harder for readers to understand the role
dpkg-buildpackage is supposed to have (that is, it is a layering
violation). Worse, it seems to be designed to work around a bug in
tools that call dpkg-buildpackage --- instead of providing a
convenient interface to run some other sequence of commands instead of
"dpkg-buildpackage", if I understand correctly you are saying they
only allow passing options to it. So if someone wants to test what
happens when building a package three times in a row, say, (or when
building for a second, killing the build, cleaning up, and then
finishing the build) there would need to be yet another commandline
option.

>> Possible alternative methods:
>>
>> a) teaching sbuild and $VCS-buildpackage an option to use another command
>> instead of dpkg-buildpackage, or
>>
>> b) (as a hack, if (a) is too fussy) overriding dpkg-buildpackage with a
>> wrapper that appears earlier on the $PATH.
>
> I'm not interested in patching multiple builders or dirtying my build
> environment.

In case (a), wouldn't you only need to patch one builder (namely the
one you use), and wouldn't case (b) be possible without dirtying your
build environment if another package (or a pbuilder hook, or whatever)
provided the dpkg-buildpackage wrapper?

I can imagine there being other reasons to want to implement this in
dpkg (are there some?), but without such a reason I am concerned that
this is expanding the scope of dpkg-buildpackage --- instead of
supporting the general case with sufficient generality, supporting
special cases.

Hoping that clarifies,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to