Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   help needed on field ordering (http://www.linux-archive.org/debian-dpkg/678163-help-needed-field-ordering.html)

Guillem Jover 06-28-2012 03:52 PM

help needed on field ordering
 
Hi!

On Thu, 2012-06-28 at 16:25:22 +0100, Wookey wrote:
> I've updated the stage-build patch for current dpkg 1.16.4.3 and
> included Patrick's dpkg-gencontrol patch:
> http://odin1.pehjota.net/~pj/debian-bootstrap/dpkg/dpkg-gencontrol.patch

<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661538#51>

> 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.

regards,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120628155226.GA23137@gaara.hadrons.org">http://lists.debian.org/20120628155226.GA23137@gaara.hadrons.org


All times are GMT. The time now is 07:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.