On Thu, 2012-06-28 at 16:25:22 +0100, Wookey wrote:
> I've updated the stage-build patch for current dpkg 188.8.131.52 and
> included Patrick's dpkg-gencontrol patch:
> However on testing, whilst this does the desired job of adding
> Build-Stage: N if the package was built with DEB_BUILD_OPTIONS=stage=N
> it puts it right at the end of the control file after the description,
> which looks silly,
It just needs to be added to one of the %FIELD_ORDER variables.
> and dpkg-deb complains about this user-defined field:
> dpkg-deb: building package krb5-pkinit' in ../krb5-pkinit_1.10.1+dfsg-1_amd64.deb'.
> dpkg-deb: warning: 'debian/libkrb5-3/DEBIAN/control' contains user-defined field 'Build-Stage'
And this needs to be added to either the fieldinfos array in
lib/dpkg/parse.c if dpkg needs to know about the fields, or to
arbitrary_fields in dpkg-deb/build.c.
But do not take these hints as blessing the implementation, my opinion
from the above link (which seems to have been ignored) still applies.
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com