summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-01-15Dpkg::Source::Patch: Do not recommend --include-removal when not supportedGuillem Jover2-4/+7
If the option has not been set, then the source format does not support it and we should thus not recommend the --include-removal option in the warning. Closes: #913012
2019-01-15Dpkg::Source::Package: Do not reinitialize fields member in constructorGuillem Jover2-2/+2
We initialized it already in the new constructor, no point in doing the same twice.
2019-01-15Dpkg::Shlibs::Objdump: Only select objdump program when going to use itGuillem Jover2-10/+14
Running code in the module scope means that anything importing the module will execute that code, which is undesirable. Move the initialization into a _select_objdump() sub, which gets assigned into a state variable on demand.
2019-01-15Dpkg::Shlibs::Objdump: Remove unused Dpkg::IPC importGuillem Jover2-1/+1
The spawn() call was removed but not the matching import. Fixes: commit 8ae966ae7d3635b8359829085db4262923ceae96
2019-01-15Dpkg::Vendor::Ubuntu: Fix buildflags override after default setting moveGuillem Jover4-5/+68
The default buildflags got moved from the Dpkg::BuildFlags module to the Dpkg::Vendor::Debian, but this module was not adapted to match. Instead of running the Debian hooks after the Ubuntu buildflags are set up, run them first, and then modify/prepend the bits we need to change. This fixes compiler optimization on ppc64el, and makes setting it more future proof. Fixes: commit d5374bc618310917557daa9c9ac2f4930515a0b2 Closes: #915881 Co-Author: Iain Lane <laney@ubuntu.com> Co-Author: Adam Conrad <adconrad@ubuntu.com>
2019-01-15Dpkg::File: Make file_slurp() also accept pathnames in addition to filehandlesGuillem Jover6-18/+23
This makes several call sites more clear, as we move the logic inside the function.
2019-01-15Dpkg::Changelog::Debian: Preserve modelines at EOFGuillem Jover14-11/+50
We should keep these and consider them as pseudo-EOF markers, and stop processing once seen. [lamby@debian.org: - Initial test cases for dpkg-mergechangelogs functional tests. ] Closes: #916056
2019-01-15Dpkg::Deps::Simple: Fix POD signature for new constructorGuillem Jover2-1/+2
2019-01-15perl: Fix POD for Dpkg::Interface::Storable derived method implementationsGuillem Jover9-74/+80
Document inherited methods. Document the return values. Note which arguments are optional. Reorder methods by their position in the stack.
2019-01-15doc: Update Doxygen configuration from version 1.8.13Guillem Jover1-16/+73
2019-01-15man: Refer to the dpkg-architecture(1) TERMS section in the VARIABLES sectionGuillem Jover2-1/+4
Makes it more explicit what these variables actually mean. Prompted-by: Axel Beckert <abe@debian.org>
2019-01-15man: Document the version introducing the -f option in dpkg-query(1)Guillem Jover2-2/+3
2019-01-15man: Clarify character classes for various formatsGuillem Jover6-10/+17
It is not always entirely clear how each character class described maps to the actual characters allowed. For example in some cases alphanumeric includes only lower-case letters, sometimes both lower-case and upper-case. Clarify it by appending the actual explicit range within parenthesis. Prompted-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2019-01-15man: Clarify databases used by --yet-to-unpack and --predep-package in dpkg(1)Guillem Jover2-0/+8
These commands use both the available database and the package selections. Prompted-by: Johannes Schauer <josch@debian.org>
2019-01-15man: Clarify deb-control(5)Guillem Jover2-1/+4
Add a reference to deb-src-control(5). Remove invalid comment in example, as this format does not allow it. Prompted-by: Helmut Grohne <helmut@subdivi.de>
2019-01-15man: Clarify dpkg-query(1) --list option behaviorGuillem Jover2-8/+12
Make it clear what will be printed when no arguments are specified. Closes: #917098
2019-01-15man: Clarify dpkg(1) --remove actionGuillem Jover2-2/+8
Describe when --remove is equivalent to --purge, and what data it will cleanup and when. Closes: #914478
2019-01-15debian: Fix changelogGuillem Jover1-4/+3
Merge subsections and fix a typo.
2018-10-11Update German translation of manual pagesHelge Kreutzmann3-160/+106
Update to 2952t1f.
2018-10-10debian: Create the log file in postinst only if it does not existGuillem Jover2-3/+9
There's no point in creating and messing with the owner and permissions for this file on each upgrade. This also makes it possible to workaround a problem when installing dpkg with --force-not-root, as pre-creating the log file will diasrm the failing chown and chmod calls. Prompted-by: Johannes Schauer <josch@debian.org>
2018-10-10test: Add new shellcheck author testGuillem Jover5-1/+75
2018-10-10build: Set locale for CPAN tests to CGuillem Jover2-0/+3
The test suite expects to run under the C locale. Fixes: https://rt.cpan.org/Ticket/Display.html?id=127314
2018-10-10build: Set environment variables only for CPAN testsGuillem Jover2-6/+9
All these environment variables are only relevant while running the test suite. Do not pollute the rest of the environment.
2018-10-10build: Add «set -e» to run-scriptGuillem Jover2-0/+3
The cd commands might fail, so we should either check their return values or globally make errors fatal. Let's do the latter. Warned-by: shellcheck
2018-10-10shell: Quote variablesGuillem Jover6-12/+13
Reported-by: Johannes Schauer <josch@debian.org> Warned-by: shellcheck
2018-10-10build: Remove unused PERL_PROFILE variable from run-scriptGuillem Jover2-1/+3
This variable requires to be left unquoted, which makes it unsafe to use. But at the same time is unnecessary as we can just use PERL5OPT instead, so let's just remove it. Warned-by: shellcheck
2018-10-10build: Use $() instead of deprecated `` in run-scriptGuillem Jover2-2/+3
Warned-by: shellcheck
2018-10-10build: Use a format string with printf in get-versionGuillem Jover2-1/+3
Warned-by: shellcheck
2018-10-10dpkg-maintscript-helper: Use explicit escape instead of literal backslashGuillem Jover2-2/+6
Warned-by: shellcheck
2018-10-09Update German scripts translationHelge Kreutzmann2-5/+7
Update to 603t.
2018-10-08German dpkg translation updateSven Joachim2-35/+19
Update to 1116t.
2018-10-08debian: Switch to debhelper compatibility level 11Guillem Jover3-2/+3
2018-10-08debian: Bump Standards-Version to 4.2.1 (no changes needed)Guillem Jover2-2/+3
2018-10-08doc: Fix typoGuillem Jover1-1/+1
Warned-by: codespell
2018-10-08Bump version to 1.19.3Guillem Jover1-0/+6
2018-10-08Release 1.19.2Guillem Jover1-2/+2
2018-10-08po: Regenerate .pot files and merge .po files with themGuillem Jover94-1038/+4980
2018-10-08dpkg, dpkg-query: Add new --no-pager optionGuillem Jover5-0/+26
This makes it possible to disable any pager usage from these programs. For dpkg this also becomes a configuration option. Closes: #909754
2018-10-08libdpkg: Add a pager kill switchGuillem Jover3-0/+17
This way we will be able to forcefully disable it.
2018-10-08libdpkg: Set stdout to be fully buffered when using a pagerGuillem Jover2-0/+6
Force the output to fully buffered, because originally stdout was a tty, so it was set as line buffered. This way we send as much as possible to the pager, which will handle the output by itself.
2018-10-08libdpkg: Ignore SIGPIPE when setting up a pagerGuillem Jover3-1/+17
If the pager quits early, the parent will receive a SIGPIPE as the write end of the pipe will not be available anymore. Instead we ignore SIGPIPE and also EPIPE errors when writing to stdout. Otherwise if we quit the pager early, the program will exit with an error code. Reported-by: Holger Levsen <holger@layer-acht.org> Ref: #909754
2018-10-08libdpkg: When spawning a pager set LESS to “-FRSXMQ” if not already setGuillem Jover4-0/+22
2018-10-08libdpkg: Honor DPKG_PAGERGuillem Jover5-1/+14
This makes it possible to use a dpkg specific pager. Suggested-by: Craig Sanders <cas@taz.net.au> Ref: #909754
2018-10-08libdpkg: Do not spawn a pager if we are going to call «cat»Guillem Jover2-4/+6
There's no point in executing «cat», we are already dumping the contents to stdout.
2018-10-08libdpkg: Call the pager with «$SHELL -c» to respect POSIXGuillem Jover4-9/+16
The PAGER environment variable is specified in POSIX as taking a pager command and any number of arguments to be passed to «sh -c», so we have to preserve that behavior or this breaks badly on systems where PAGER is set that way. This actually gets in the way of improving the pager command presence detection, but we'll fix that later on, by making the scanning of the environment variable smarter or by trying to execute the fallbacks. Closes: #910009
2018-10-08libdpkg: Pass the file contents to the pager instead of the filenameGuillem Jover6-7/+22
Let's just handle opening the file and passing its data to the pager ourselves, as that gives us more control, and then can decide not to run a pager at all, and do not need to mess with arguments which might need to be passed to «sh -c».
2018-10-08dpkg-divert, dpkg-statoverride: Add new --instdir and --root optionsGuillem Jover7-28/+107
This makes it possible to use alternative installation directories. And will make these commands honor those directories when specified for dpkg, and passed down to the maintainer script via the DPKG_ROOT environment variable.
2018-10-08libdpkg: Add new fsys-dir moduleGuillem Jover9-0/+171
This module handles setting and getting the filesystem root directory.
2018-10-08dpkg: Fix --force-not-rootGuillem Jover6-8/+37
Ignore EPERM for chown and chmod based syscalls. And give a more meaningful error message on chroot(). Closes: #614126
2018-10-08dpkg-split: Use nfstrnsave() instead of nfmalloc() + memcpy()Guillem Jover2-4/+8