🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.dpkg
Article #22

Bug#1155323: dpkg-dev: .changes file format has no way to indicate the target archive/repository

#22
From: Guillem Jover
Date: Thu, 26 Nov 2026 05:00
83 lines
5144 bytes
Hi!

On Wed, 2026-11-25 at 16:16:34 +0000, Colin Watson wrote:
> Package: dpkg-dev
> Version: 1.23.11
> Severity: wishlist

> This has been a design issue in the .changes file format for as long as 
> I can remember, and I've seen it worked around in several different 
> places.  I could have sworn I'd had a discussion about it in a bug 
> report at some point, but I just looked through all of dpkg's archived 
> and unarchived bugs for likely keywords and to my surprise couldn't find 
> anything.  I suspect I'll end up working around this again, but it seems 
> like a good idea to at least start figuring out how things could be 
> improved for the future.

It's late now, so I don't want to spend lots of time writing a long
mail, but didn't want to not send one either. So just a quick mental
dump and state update.


I've been recently planning on retrying a .changes format bump, to
deprecate old stuff and change semantics for fields with confusing or
odd names (such as Suite instead of Distribution). So I've now rebased
and updated a bit the next/changes-format-2.0 branch in the
https://git.hadrons.org/cgit/debian/dpkg.git repo.


I also thought we already had an Origin field in .changes, but
apparently I only added one to .buildinfo! In any case I've also wanted
to improve our general Origin tracking for a long time:

  https://lists.debian.org/debian-derivatives/2012/10/msg00046.html
  https://lists.debian.org/debian-devel/2017/03/msg00339.html

Specially the reference to:

  https://www.hadrons.org/~guillem/debian/docs/origin.proposal

Which until these "recent" mails, I mostly circulated them on IRC,
and which AFAIR was the basis for the current dpkg-vendor and increasing
Origin support.

And had been also working on pushing this a bit further with the
pu/origin-tracking (which I've now also rebased and reworked a bit)
in the same hadrons.org repo.


I think one of my biggest mental blocks for pushing this further has been
that it's not clear to me whether there should be a distinction between:

  * the target source vendor (as say specified in debian/changelog),
    because one should be able to build a source elsewhere (for example
    for other distros that do simple source rebuilds), but the intent
    for the target suite (which can be ambiguous) is currently encoded
    in there!
  * the target binary vendor (as obtained from the current chroot dpkg
    vendor), because this represents the environment this was built in.
    (That's why the current field in .buildinfo is called Build-Origin.)
  * or even if it even makes sense to override (any of) these concepts.

Another is that tracking Origin in .debs requires most probably for the
archive to drop the fields from the metaindices to avoid bloating it
with redundant information.

And as you imply with your proposed field names (?), the Origin might
not even be enough sometimes to qualify an upload, where even for Debian
you need to use different queues and hosts for different repos. Although
I think that might perhaps be no such issue as the queues should be
mappable from the suite names? (I'm thinking about dupload here for
example.)


(For ref, I was also recently exposed to
https://wiki.debian.org/DebVendorVariable which is also somehow related
to all this.)

(I might also be missing stuff, I'll try to better collect my thoughts
tomorrow.)


Thanks,
Guillem
Technical Details
Message-ID: <O3zKp-ecAu-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O3nSV-e66R-7@gated-at.bofh.it> <O3nSV-e66R-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Guillem Jover <guillem@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.dpkg
Subject: Bug#1155323: dpkg-dev: .changes file format has no way to indicate the target archive/repository
Date: Thu, 26 Nov 2026 06:00:01 +0100
Message-ID: <O3zKp-ecAu-1@gated-at.bofh.it>
References: <O3nSV-e66R-7@gated-at.bofh.it> <O3nSV-e66R-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov 26 04:51:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Guillem Jover <guillem@debian.org>, 1155323@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-dpkg@lists.debian.org
X-Debian-Pr-Message: followup 1155323
X-Debian-Pr-Package: dpkg-dev
X-Debian-Pr-Source: dpkg
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005142
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 83
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 26 Nov 2026 05:49:20 +0100
X-Original-Message-ID: <awe6UMVwULvorcr5@thunder.hadrons.org>
X-Original-References: <awcJ4gitAnX5U8q6@camorr.rosewood.vpn.ucam.org> <awcJ4gitAnX5U8q6@camorr.rosewood.vpn.ucam.org>