Your message dated Sat, 27 Jun 2020 01:33:33 +0000
with message-id <e1jozin-000fbp...@fasolo.debian.org>
and subject line Bug#871808: fixed in dpkg 1.20.1
has caused the Debian Bug report #871808,
regarding u-a should follow DPKG_ROOT
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
871808: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871808
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dpkg
Version: 1.19.0
Severity: wishlist
File: /usr/bin/update-alternatives
User: debian-d...@lists.debian.org
Usertags: dpkg-root-support

The update-alternatives program, when run from a maintainer script with
DPKG_ROOT set, should respect that variable in order to facilitate
bootstrap installations[1].

There is a patch available at [2]/[3] in which OpenEmbedded implement
this (they call it "offline mode"); that patch doesn't apply anymore
though since the latest update-alternative changes, and AFAICT would
only work if the installation directory was the current working
directory (which AFAIK is not guaranteed by dpkg).

Given that update-alternatives already respects DPKG_ADMINDIR, it should
be sufficient to adapt altdir to prepend DPKG_ROOT; I'm just trying a
small patch to that.


Note that this is distinct from #77828 which was about using u-a for user
homes, while this just happens to mean that a user can also use u-a but
in an out-of-root Debian installation.

[1]: https://wiki.debian.org/Teams/Dpkg/Spec/InstallBootstrap?action=subscribe
[2]: https://lists.debian.org/debian-dpkg/2016/12/msg00004.html
[3]: https://patchwork.openembedded.org/patch/134905/

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-8.1
ii  libc6        2.24-14
ii  liblzma5     5.2.2-1.3
ii  libselinux1  2.6-3+b2
ii  tar          1.29b-2
ii  zlib1g       1:1.2.8.dfsg-5

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt            1.5~beta1
pn  debsig-verify  <none>

-- no debconf information

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: dpkg
Source-Version: 1.20.1
Done: Guillem Jover <guil...@debian.org>

We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 871...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <guil...@debian.org> (supplier of updated dpkg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 27 Jun 2020 02:41:48 +0200
Source: dpkg
Architecture: source
Version: 1.20.1
Distribution: unstable
Urgency: medium
Maintainer: Dpkg Developers <debian-d...@lists.debian.org>
Changed-By: Guillem Jover <guil...@debian.org>
Closes: 832176 871808 953684 955028 955030 956055 956321 958229 958437 961850
Changes:
 dpkg (1.20.1) unstable; urgency=medium
 .
   [ Guillem Jover ]
   * Fix dpkg logging regression introduced in 1.20.0:
     - libdpkg: Use varbuf member .used instead of .size in log_message(),
       to avoid printing garbage.
     - libdpkg: Open the log file as write-only instead of read-only.
     Thanks to Roderich Schupp <roderich.sch...@gmail.com>. Closes: #953684
   * Unify and cleanup Makefile fragment files comments, including information
     about version of introduction.
   * Add new buildopts.mk Makefile fragment to support parsing DEB_BUILD_OPTIONS
     options with arguments, such as “parallel” as DEB_BUILD_OPTION_PARALLEL.
   * dpkg-genchanges: Handle empty Date fields from parsed debian/changelog.
     Based on a patch by Baptiste BEAUPLAT <lykn...@cilg.org>. Closes: #956321
   * dpkg-source: Check that debian/tests/control has the required fields.
     Prompted by Felix Lechner <felix.lech...@lease-up.com>.
   * dpkg-deb, dpkg: Do not accept relative pathnames in DEBIAN/conffiles.
     Reported by Niels Thykier <ni...@thykier.net>.
   * dpkg-split: Fix off-by-one check in ar header padding, that was making
     parsing error out on valid archives. Regression introduced in dpkg 1.18.8.
   * libdpkg: Fix error message for ending version character in dependency
     parser:
     - Move the version unterminated case before the catchall.
     - Print the actual wrong character and print what is expected.
   * libdpkg: Do not use econtext->errmsg on out of context abort, as it might
     be uninitialized.
   * update-alternatives: Set the umask to 022 on program start.
     Reported by Paul Wise <p...@debian.org>.
   * dpkg-parsechangelog: Fix --show-field for multiline fields. We were not
     stripping trailing whitespace, and were not prefixing empty lines with
     a ‘.’, like when printing with the field names.
     Reported by Paul Wise <p...@debian.org>.
   * dpkg: Add a new --robot option to be used with --version.
   * dpkg, dpkg-query: Document missing options in --help output.
   * Unify ellipsis formatting in programs --help output.
   * Add Protected field support.
   * dpkg-realpath: New program, to be used by dpkg-maintscript-helper, and
     any maintainer script that needs a realpath that can handle pathnames
     relative to the dpkg root directory.
   * dpkg-realpath: Add support for DPKG_ROOT.
     Thanks to Helmut Grohne <hel...@subdivi.de>.
   * dpkg-realpath: Add support for --root and --instdir options.
   * dpkg-maintscript-helper: Add support for DPKG_ROOT:
     - Add DPKG_ROOT support for conffiles.
       Thanks to David Kalnischkies <da...@kalnischkies.de>.
     - Add DPKG_ROOT support for symlink to and from directory switches.
       Based on a patch by Bastien ROUCARIÈS <roucaries.bast...@gmail.com>.
     Closes: #832176
   * update-alternatives: Add DPKG_ROOT support, and new --root and --instdir
     options. Closes: #871808
   * Portability:
     - libdpkg: When using uselocale(), include <xlocale.h> for locale_t if
       the header is available. Needed on BSDs.
       Reported by Sirio Balmelli <si...@b-ad.ch>.
   * Perl modules:
     - Dpkg: Add a LICENSE section to the POD.
     - Dpkg::Source::Package: Add new get_upstream_signing_key() method.
     - Dpkg::Source::Package: Check missing expected tarball signatures.
     - Dpkg::Source::Package::V1: Check version format matching source format.
     - Dpkg::Vendor::Debian: Add debian-nonupload.gpg keyring.
       Thanks to Taowa Munene-Tardif <ta...@debian.org>. Closes: #956055
     - Dpkg::Vendor::Debian: Detect merged-usr-via-symlinks also with absolute
       pathnames. Reported by Adam Borowski <kilob...@angband.pl>.
     - Dpkg::Build::Info: Avoid whitelist in function name.
     - Dpkg::Shlibs::SymbolFile: Avoid blacklist and whitelist terms.
   * Documentation:
     - man: Fix misused two-fonts macros.
       Thanks to Bjarni Ingi Gislason <bjarn...@rhi.hi.is>. Closes: #955028
     - man: Trim trailing whitespace from output.
       Thanks to Bjarni Ingi Gislason <bjarn...@rhi.hi.is>. Closes: #955030
     - man: Mention that dpkg(1) does not provide all back-end interfaces.
       Prompted by Elana Hashman <ehash...@debian.org>.
     - man: Clarify and fix file formats SYNOPSIS.
     - man: Clarify that deb-control(5) is a subset of deb-src-control(5).
       Closes: #958229
     - man: Unify warning and note admonitions formatting.
     - man: Remove useless commented out macros.
     - man: Fix unbalanced quotes in macro arguments.
     - man: Specify the indentation level for all following .IP macros, not
       just the first one.
     - man: Use .TP macros instead of hand-crafted formatting.
     - man: Fix font markup for some variable and literal strings.
     - dpkg-maintscript-helper: Add -?, --help and --version to --help output.
     - man: Fix apt and aptitude references.
       Reported by Helge Kreutzmann <deb...@helgefjell.de>.
     - man: Mark commands (eval) in bold and quote library names (libgcc).
       Reported by Helge Kreutzmann <deb...@helgefjell.de>.
     - man: Use UTF-8 quotes instead of ancient groff register variables.
     - man: Use literal double quotes instead of groff escape sequences.
     - man: Clarify that we resolve bug reports not bug report numbers.
       Reported by Helge Kreutzmann <deb...@helgefjell.de>.
     - man: Clarify POSIX shell eval command usage in dpkg-architecture(1).
     - man: Use item lists instead of verbatim or hand-crafted formatting.
     - man: Do not use verbatim formatting for text that is not an example.
     - man: Markup examples explicitly with .EX/.EE.
     - man: Fix indentation for a note admonition in dpkg-scansources(1).
     - man: Document that a 3.0 (quilt) patch cannot create or modify symlinks.
       Thanks to Johannes Schauer <jo...@debian.org>.
     - man: Reword text to reduce length in verbatim code block.
     - man: Add semicolons before verbatim code blocks.
     - man: Update dselect methods provided. Several got removed in 1.20.0.
     - man: The Installed-Size field does not get its value from du(1) since
       1.18.0.
     - man: Fix dpkg-gencontrol -P description to not refer to dpkg-source.
       Reported by Jakub Wilk <jw...@jwilk.net>.
     - man: Place description of override value column on its own paragraph.
     - man: Surround markup within verbatim blocks with .nf/.fi.
     - man: Balance font markup.
     - man: Do not nest font markup.
     - man: Use .ig/.. macros to disable text instead of commenting it out.
     - man: Do not mark end of sentence period with bold.
     - man: Add a missing comma after man page reference in SEE ALSO section.
     - man: Convert man pages from roff to POD.
     - man: Clarify the dpkg --no-act admonition.
     - man: Avoid whitelist term in dpkg-source man page.
   * Code internals:
     - Use $() in shell or qx() in perl instead of ``.
     - dpkg-split: Switch part number variables from unsigned int to int.
     - scripts: Refactor shell error handling into a shell library
     - Reformat shell code to follow the coding style.
     - update-alternatives: Parametrize option names in output strings.
     - update-alternatives: Move logging function close to output functions.
     - update-alternatives: Move argument parsing functions close to main().
     - update-alternatives: Add general purpose non-failing functions for
       administrative directory access.
     - update-alternatives: Add filesystem abstraction functions.
   * Build system:
     - Handle .git being a plain file when getting the dpkg tree version.
     - Add debian/changelog as a Changes file to the CPAN distribution.
     - Set DPKG_SERIES to 1.20.x when running the functional test suite.
     - When using po4a require at least po4a 0.59. Change the po4a --porefs
       argument from no longer supported “noline,wrap” to “file”, as wrapping
       is the default since po4a 0.58. We require po4a 0.59 as 0.58 had a
       regression in its --srcdir support.
     - Switch to set the po4a addendum in the po4a_paths section instead of
       repeating it for each man page.
     - Use po4a conditional addendum support, and remove empty addenda.
     - Use po4a mode=eof support in addenda.
     - Do not use make prerequisites on suffix rule definitions.
       Closes: #961850
     - Add man page number suffixes to the automake SUFFIXES variable.
     - Update false positive suppressions for cppcheck 2.1.
     - Install specifications and API contracts in docdir.
     - Add support for switching man pages from roff to POD format.
     - Fix shell files substitution for version variable.
   * Packaging:
     - Switch to debhelper compatibility level 13.
     - Remove debian/tmp prefix from manpages debhelper fragment files.
     - Handle missing localized man pages gracefully.
     - Install AUTHORS, THANKS, usertags, README.api and
       README.feature-removal-schedule only in dpkg.deb.
     - Rename debian/usertags to debian/README.bug-usertags.
     - Install specifications to /usr/share/doc/dpkg/ in the dpkg-dev package.
     - Detect merged-usr-via-symlinks also with absolute pathnames in
       bug-script. Reported by Adam Borowski <kilob...@angband.pl>.
   * Test suite:
     - Rename deb-content test cases to make them more descriptive.
     - Skip autogenerated files from codespell.
 .
   [ Updated programs translations ]
   * German (Sven Joachim).
   * Simplified Chinese (Boyuan Yang). Closes: #958437
 .
   [ Updated scripts translations ]
   * German (Helge Kreutzmann).
 .
   [ Updated man pages translations ]
   * German (Helge Kreutzmann).
Checksums-Sha1:
 5ac4e82a64cda75d6b678ec77cac6d29c7f7857b 2109 dpkg_1.20.1.dsc
 eb9818ef18c6ae74486d95ab09f22a3717f3f543 4708660 dpkg_1.20.1.tar.xz
 917e456e4450aea9160b9deed5d730e0842d5210 7290 dpkg_1.20.1_amd64.buildinfo
Checksums-Sha256:
 cb829ce0a5c4aa7f7ab67f55b79956800ad38ff1b6e2e9c2643e3738164af531 2109 
dpkg_1.20.1.dsc
 3e5cc2bb86332224039c4dc6d5f0f2f36b615b0396b7e32d58103ce48ec27827 4708660 
dpkg_1.20.1.tar.xz
 7e112acb1332380aa173ad9a0e6455ceb92f082bed8fed68c1bd0557d7adcdb2 7290 
dpkg_1.20.1_amd64.buildinfo
Files:
 d8d5ce305f45435f95e116671ba8faa4 2109 admin required dpkg_1.20.1.dsc
 82092e82dc1605c6a3d74820e05164ac 4708660 admin required dpkg_1.20.1.tar.xz
 5b32102beca17cb472f4a54ea841a391 7290 admin required 
dpkg_1.20.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAl72mD8ACgkQuXK/PqSu
V6OysA/+P3eA71mY0Xq/CO9Y8nLzvBCwui/5A11TB95NcttCqS+AVVVK18tX/17Y
s0vXZaMFI0OzRqBoe2wWIW1RHThlQs3SnwK4YmmLJqT0G2dmTpCMEM5A5+dvwZyU
n9auprQbaiQoWFkj8B+xVcZ8X3yMXJ3HLBnI6/tcxIKmaSQgkwdEPE4oMZPFVsZX
cwUguD6yWHLbmNwCFMe2w8HAijT8jgradFoC27O2R0IoasrODdVRkSgk6aAFc/V7
xgFFzWOtShsgiMzRM+DvxkntLy0k+IS6bAsqVRv/sutOZ3DnS2r/u26H5u2SwCw0
64UxNfUtjXhqjx+WRlwyQXOhW7FloGYqLTKj5g5AlfYUNbXKZKtdKuNIKZylWxUc
FgASvg8tnY00CftgSRMzB7xRJuOlU00pR7XecgGby1Y3wZbznz7qjwWMliXshWAN
1RbmEU3U/2I4Quk8Oav0ppFI4EGVS5BlaDSa7gEprRHV2CY6vG50G2CgrjRSd7wz
wMm/E4cd/mE1Odwm9Js+Rjc/OAcvbA1FJiR0xKTE90eMMbiJzhAdNpcTI0TX8V3p
5C0c6JTIk3c2w1IJJERnEBnsUOGOt2PFK3DbGW1p1vL40lvvjIW8yuep0GcvuLna
SUS98nwDNwplg3bC4NycSBwb+J88ahFAC4lvH/WEf/tuYsfUHSg=
=X2S/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to