summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2018-10-08Dpkg::Source::Package::V2: Move binary file detection to BinaryFiles moduleGuillem Jover3-44/+61
This makes it possible to reuse the code by other modules.
2018-10-08Dpkg::Source::Package::V2: Split BinaryFiles module into its own fileGuillem Jover5-84/+115
2018-10-08Dpkg::Source::Functions: Reimplement is_binary() w/o using diff(1)Guillem Jover2-23/+9
The check is very simple, and can be done w/o requiring calling diff(1) for each input file. This makes the code shorter, more portable, and should be faster in the non-binary cases.
2018-10-08Dpkg: Add documentation about the module hierarchy and APIGuillem Jover2-0/+166
2018-10-08Dpkg::OpenPGP: Do not read the gpg user configuration fileGuillem Jover2-1/+4
2018-10-08Dpkg::OpenPGP: Ignore Version field in enarmored outputGuillem Jover2-0/+4
This will contain different data depending on the program used. We do not really care about that, later versions of GnuPG have stopped emitting it, and it makes the test suite fail when using GnuPG 1.x. Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=127217
2018-10-08debian: Break libapt-pkg5.0 instead of aptGuillem Jover2-1/+4
The behavior we are breaking is implemented in the shared library, not the standalone binary, which affects other frontends, such as aptitude. The affected behavior was introduced in apt 1.4~beta1, and the last ABI change of libapt-pkg was in apt 1.1~exp9, so earlier libapt-pkg* versions are not affected. Analysis-by: Sven Joachim <svenjoac@gmx.de> Closes: #909959
2018-10-08test: Skip version checks involving «dpkg --compare-versions» if not availableGuillem Jover2-2/+18
For the CPAN distribution or a non-dpkg-based distribution we cannot assume that dpkg will be installed, or even available at build time. Skip these tests if the tools is missing.
2018-10-08build: Improve test and author CPAN dependenciesGuillem Jover2-2/+21
Split the test recommends from the requires and add develop recommends into a prereqs metadata hierarchy.
2018-10-08build: Fix typo in CPAN recommends keyGuillem Jover2-1/+2
2018-10-08build: Add a release_status key to the CPAN metadataGuillem Jover3-1/+7
This will enable the -TRIAL versioning that CPAN uses to avoid indexing such releases.
2018-10-08build: Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE insteadGuillem Jover4-3/+7
Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that directly in the Build.PL.in file.
2018-10-08build: Do not make the Build.PL script executableGuillem Jover2-2/+2
CPAN does not like that on the grounds that the script itself does not know which perl to use.
2018-10-08build: Distribute a LICENSE file on CPANGuillem Jover2-0/+3
We listed the licence name in the metadata, but were not shipping the actual licence text.
2018-10-08po: Update Polish programs translationŁukasz Dulny2-116/+65
Signed-off-by: Guillem Jover <guillem@debian.org>
2018-10-08man: Document the PAGER environment variable usage in dpkg-query(1)Guillem Jover2-0/+4
When we started making «dpkg-query --list» use a pager, we missed documenting this environment variable. Fixes: commit 05458bb8d50cb3b0f29e53d2a079f2ef874b8f23
2018-10-07man: Clarify which fields are affected by dependency optionsGuillem Jover2-0/+7
This includes the --force-breaks, --force-conflicts, --force-depends, --force-depends-versio and --ignore-depends. Prompted-by: James Clarke <jrtc27@debian.org> (on IRC)
2018-10-07man: Document Build-Ids field in deb-control(5)Guillem Jover2-0/+15
Prompted-by: Stuart Prescott <stuart@debian.org>