🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5107

Bug#1154477: sbuild: enable access to selected distribution in sbuild.conf

#5107
From: Jarl Gullberg
Date: Thu, 19 Nov 2026 14:20
48 lines
3434 bytes
Package: sbuild
Version: 0.91.11
Severity: wishlist

Dear Maintainer,

When building dynamic configuration options in sbuild.conf, accessing
the name of the distribution that sbuild either determined or was
supplied with on the command line is often useful. In particular,
distribution-specific output directories would benefit from this.

While we can access $distribution, that variable is only defined if the
user has explicitly set it themselves in the configuration file. There 
is precedent for this with the percent-escapes in options passed to
piuparts, autopkgtest, and autopkgtest-virt-server
(%SBUILD_DISTRIBUTION), but this is not available generally.

In particular, $build_dir does not interpolate %SBUILD_DISTRIBUTION.

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.117+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.152
pn  libsbuild-perl  <none>
ii  perl            5.40.1-6+deb13u1

Versions of packages sbuild recommends:
pn  autopkgtest  <none>
pn  debootstrap  <none>
ii  iproute2     6.15.0-1
pn  mmdebstrap   <none>
pn  schroot      <none>
pn  uidmap       <none>

Versions of packages sbuild suggests:
ii  e2fsprogs  1.47.2-3+b12
ii  kmod       34.2-2
ii  wget       1.25.0-2
Technical Details
Message-ID: <O1b9v-cTX0-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Jarl Gullberg <jarl.gullberg@visar-systems.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154477: sbuild: enable access to selected distribution in sbuild.conf
Date: Thu, 19 Nov 2026 15:20:01 +0100
Message-ID: <O1b9v-cTX0-3@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov 19 14:19:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Jarl Gullberg <jarl.gullberg@visar-systems.com>, 1154477@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sbuild@packages.debian.org
X-Debian-Pr-Message: report 1154477
X-Debian-Pr-Package: sbuild
X-Debian-Pr-Source: sbuild
Authentication-Results: ste-pvt-msa1.bahnhof.se (amavisd-new);
	dkim=pass (2048-bit key) header.d=visar-systems.com
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Greylist: delayed 364 seconds by postgrey-1.37 at buxtehude; Thu, 19 Nov 2026 14:17:12 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003558
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 48
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 19 Nov 2026 15:17:08 +0100
X-Original-Message-ID: <179509782887.1000.9609212657124711910.reportbug@debian>