Changelog
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 <email address hidden>. 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 <email address hidden>. Closes: #956321
* dpkg-source: Check that debian/tests/control has the required fields.
Prompted by Felix Lechner <email address hidden>.
* dpkg-deb, dpkg: Do not accept relative pathnames in DEBIAN/conffiles.
Reported by Niels Thykier <email address hidden>.
* 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 <email address hidden>.
* 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 <email address hidden>.
* 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 <email address hidden>.
* 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 <email address hidden>.
- Add DPKG_ROOT support for symlink to and from directory switches.
Based on a patch by Bastien ROUCARIÈS <email address hidden>.
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 <email address hidden>.
* 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 <email address hidden>. Closes: #956055
- Dpkg::Vendor::Debian: Detect merged-usr-via-symlinks also with absolute
pathnames. Reported by Adam Borowski <email address hidden>.
- 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 <email address hidden>. Closes: #955028
- man: Trim trailing whitespace from output.
Thanks to Bjarni Ingi Gislason <email address hidden>. Closes: #955030
- man: Mention that dpkg(1) does not provide all back-end interfaces.
Prompted by Elana Hashman <email address hidden>.
- 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 <email address hidden>.
- man: Mark commands (eval) in bold and quote library names (libgcc).
Reported by Helge Kreutzmann <email address hidden>.
- 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 <email address hidden>.
- 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 <email address hidden>.
- 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 <email address hidden>.
- 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 <email address hidden>.
* 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).
-- Guillem Jover <email address hidden> Sat, 27 Jun 2020 02:41:48 +0200