To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Please provide a configuration option to set an environment variable
Date: Fri, 27 Sep 2024 13:22:07 -0700
Package: dpkg
Version: 1.22.11
Severity: wishlist
X-Debbugs-Cc: josh@joshtriplett.org
I'd love to be able to set an option in dpkg.cfg.d that causes dpkg to
set an environment variable when running any commands. This would make
it easy to, for instance, always set DEBIAN_FRONTEND=noninteractive for
apt/dpkg invocations, while not setting it systemwide in
/etc/environment.
-- Package-specific info:
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64
Kernel: Linux 6.10.9-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.8-6
ii libc6 2.40-3
ii liblzma5 5.6.2-2
ii libmd0 1.1.0-2
ii libselinux1 3.7-3
ii libzstd1 1.5.6+dfsg-1
ii tar 1.35+dfsg-3
ii zlib1g 1:1.3.dfsg+really1.3.1-1
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 2.9.8
pn debsig-verify <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#1082896; Package dpkg.
(Sat, 28 Sep 2024 01:45:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Sat, 28 Sep 2024 01:45:01 GMT) (full text, mbox, link).
To: Josh Triplett <josh@joshtriplett.org>, 1082896@bugs.debian.org
Subject: Re: Bug#1082896: Please provide a configuration option to set an
environment variable
Date: Sat, 28 Sep 2024 03:41:11 +0200
On Fri, 2024-09-27 at 13:22:07 -0700, Josh Triplett wrote:
> Package: dpkg
> Version: 1.22.11
> Severity: wishlist
> X-Debbugs-Cc: josh@joshtriplett.org
> I'd love to be able to set an option in dpkg.cfg.d that causes dpkg to
> set an environment variable when running any commands. This would make
> it easy to, for instance, always set DEBIAN_FRONTEND=noninteractive for
> apt/dpkg invocations, while not setting it systemwide in
> /etc/environment.
I'm not sure that would be effective for debconf though, given that by
default it is doing pre-configuration via an apt hook.
Thanks,
Guillem
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.