🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#25
From: Ian Jackson
Date: Mon, 30 Nov 2026 15:30
95 lines
6333 bytes
Guillem Jover writes ("Re: Bug#1155323: dpkg-dev: .changes file format has no way to indicate the target archive/repository"):
> 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:

I think you're talking mostly about where this information should come
from, during the upload workflow.  I see two reasonable possibilities.

1. From the d/changelog.

If one takes a source package from one archive and intends to upload
it to another, possibly with modifications, the user/uploader is going
to be editing the changelog anyway.  We should not expect them to
alter metadata in d/control or elsewhere.

IDK precisely what the representation should be there.  There are a
lot of editors and things that read/write changelogs, which will need
to be considered.

2. At the point of signing

So, for example, signchanges could insert it.  After all, signchanges
is the point at which the user is declaring that the thing *should* be
uploaded and presumably at that point they know *where* as well.
signchanges could take a "target archive" parameter, and have a
configurable default (including a config for "must be specified every
time").

There are psome other tools that aren't just signchanges that sign
changes files.  In the dgit ecosystem, that includes dgit and the
tag2upload service.  dgit already needs to know where it's uploading,
and tag2upload gets the information from the tag made by git-debpush.

There is precedent for signing deb822 files  to involve minor
changes.  signchanges edits the .dsc's hashes into the .changes.
dgit push-built inserts the Dgit: header.


I think these two options are not necessarily mututally exclusive.

Probably this should be discussed on d-policy where a wider set of
people can help.


But, in the meantime, it would at least be possible to define an
optional target archive field in .changes.  That would at least make
it possible for tools that generate or manipulate .changes to make
them unambiguous.

I think that's a good first step, even if we don't understand, for
every tool that generates a signed .changes, how it would know what to
put in that field - after all, it could just leave it out, leaving us
with the status quo.


I suggest:

 * "Target:" or "Archive:"
 * "debian" means the collection of official archives run by the
   Debian Project.  (Ie, the suite namespace managed by Debian.)
   So "trixie-security" is in "debian".
 * If the field is absent, it is not checked.  Debian's
   systems will accept the upload if the field is absent.
 * If the field is present, it must match the archive by which
   the .changes is being processed.
 * At some point in the future, we intend to make the field
   mandatory.  This can be done by each target archive as and
   when they think their uploaders have software that will generate
   it.

This change would involve coordination with the archive team
and should probably be disucssed on -policy.


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

On terminology, in dgit we had to choose a consistent set.  I mostly
followed the dak nomenclature, in particular for "suite" which didn't
otherwise have a good name.  ("Distribution" is IMO rather wrong for
that.  "Debian" is a distribution; "trixie" is not; and
"trixie-updates" certainly isn't.)

Debian has historically had poor terminological consistency.  This is
another area where involving d-policy might be a good idea.

Ian.

-- 
Ian Jackson <ijackson@chiark.greenend.org.uk>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.
Technical Details
Message-ID: <O5buh-f8QE-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <O3nSV-e66R-7@gated-at.bofh.it> <O3zKp-ecAu-1@gated-at.bofh.it> <O3nSV-e66R-7@gated-at.bofh.it> <O3zKp-ecAu-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Ian Jackson <ijackson@chiark.greenend.org.uk>
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: Mon, 30 Nov 2026 16:30:01 +0100
Message-ID: <O5buh-f8QE-9@gated-at.bofh.it>
References: <O3nSV-e66R-7@gated-at.bofh.it> <O3zKp-ecAu-1@gated-at.bofh.it> <O3nSV-e66R-7@gated-at.bofh.it> <O3zKp-ecAu-1@gated-at.bofh.it>
X-Original-To: Guillem Jover <guillem@debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 30 15:21:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Ian Jackson <ijackson@chiark.greenend.org.uk>, 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-Transfer-Encoding: 7bit
X-Mailer: VM 8.2.0b under 27.1 (x86_64-pc-linux-gnu)
Dkim-Signature-Warning: NOTE REGARDING DKIM KEY COMPROMISE https://www.chiark.greenend.org.uk/dkim-rotate/README.txt https://www.chiark.greenend.org.uk/dkim-rotate/36/3610ad9ae50254710c755cf6d5f42d64.pem
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006093
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 95
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Colin Watson <cjwatson@debian.org>,
    1155323@bugs.debian.org
X-Original-Date: Mon, 30 Nov 2026 15:20:00 +0000
X-Original-Message-ID: <27405.37920.997841.816514@chiark.greenend.org.uk>
X-Original-References: <awcJ4gitAnX5U8q6@camorr.rosewood.vpn.ucam.org> <awe6UMVwULvorcr5@thunder.hadrons.org> <awcJ4gitAnX5U8q6@camorr.rosewood.vpn.ucam.org> <awe6UMVwULvorcr5@thunder.hadrons.org>