summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-09-26po: Regenerate .pot files and merge .po files with themGuillem Jover94-13260/+20176
2018-09-26po: Update Traditional Chinese programs translation林博仁(Buo-ren Lin)2-544/+256
Update to 1029t61f19u. Closes: #905887 Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> Signed-off-by: Guillem Jover <guillem@debian.org>
2018-09-26man: Add a warning in s-s-d(8) about using --pidfile alone with non-root filesGuillem Jover2-3/+13
Prompted-by: Michael Orlitzky <michael@orlitzky.com> Ref: https://redmine.kannel.org/issues/771
2018-09-26libdpkg: Check that the public headers can be compiled with C++Guillem Jover4-0/+87
2018-09-26debian: Add Breaks on apt for --status-fd duplicate removalsGuillem Jover2-0/+3
apt was expecting duplicate entries, and was producing confusing warnings. We add a versioned Breaks to avoid confusing users.
2018-09-26test: Change cppcheck test to cope with CPAN distribution pathsGuillem Jover1-1/+1
The paths are different in the CPAN distribution, so we need to use a glob to catch the file in both layouts.
2018-09-26test: Make po checks cope with missing po files in CPAN distributionGuillem Jover2-1/+2
We do not distribute the PO files yet for CPAN, so the checks should not fail when they are missing, even when testing with AUTHOR_TESTING=1.
2018-09-26build: Distribute the data files from the CPAN Build.PL scriptGuillem Jover1-0/+4
When building the CPAN package, we need to also distribute the data files, otherwise the modules will not work correctly once installed.
2018-09-26build: Perform Dpkg module substitution during CPAN module buildingGuillem Jover2-5/+39
We had an empty do_perl_subst variable in the dist-cpan autotools target that resulted in copying an empty file, but that was shadowed by a subsequent copy of the original. So we were ending up with a pristine non-substituted file. We actually need to substitute the install paths during the CPAN module building to preserve system and user settings at that point. Otherwise the dpkg autotools configure settings might be completely out of touch with the settings from the system where the CPAN module gets built.
2018-09-19Update German translation of manual pagesHelge Kreutzmann1-16/+76
Update to 2930t1f.
2018-09-19Update German scripts translationHelge Kreutzmann1-2/+5
Update to 602t.
2018-09-18perl: Replace all calls to Cwd::cwd with Cwd::getcwdJosh Triplett8-7/+11
The former calls /bin/pwd, while the latter uses the getcwd() syscall directly. Signed-off-by: Guillem Jover <guillem@debian.org>
2018-09-18dpkg-parsechangelog: Add new --reverse optionGuillem Jover6-7/+21
This option will make the output be in reverse order.
2018-09-18scripts: Track automatic packages using the new file attributeGuillem Jover4-6/+18
This should make it possible to ignore the warning w/o hardcoding any distribution specific package name pattern on the code.
2018-09-18Dpkg::Dist::Files: Add support for file attributesGuillem Jover5-14/+46
This will make it possible to track key/value attributes for each file, so that we can track interesting information and pass it to the various programs parsing the debian/files file.
2018-09-18Dpkg::Vendor::Debian: Add fixfilepath support to reproducible featureGuillem Jover4-4/+30
This is a superset of the fixdebugpath feature supported by gcc-8, but covering in addition mappings for macros such as __FILE__ and similar.
2018-09-18Dpkg::Deps::KnownFacts: Satisfy :native with arch:all packages tooGuillem Jover3-2/+27
Architecture:all packages are treated as native ones as part of the current multi-arch design, the only current exception is in build dependencies with the :native arch-qualifier. It looks like this was an oversight when implementing the :native support, as there's been no rationale found for the current behavior. Closes: #854438 Analysis-by: Johannes Schauer <josch@debian.org>
2018-09-18libdpkg: Fix filesystem digest parsingGuillem Jover1-1/+1
Allocate the digest into the non-freeing memory pool, as we have stopped doing that for the entire loaded file with the switch to the file_slurp() function. Otherwise when we release the varbuf the fsys nodes will be pointing to garbage. Fixes: commit 1166bbb5f099580a0c1c26d0e29b1ae3fe11ad0f Reported-by: Sven Joachim <svenjoac@gmx.de> Bisected-by: Sven Joachim <svenjoac@gmx.de>
2018-09-03dpkg-maintscript-helper: Check that DPKG_MAINTSCRIPT_PACKAGE is definedGuillem Jover2-0/+10
When we need the environment variablem check that it is defined, and error out otherwise. Closes: #907772
2018-09-03Dpkg::Shlibs: Ignore nonexistent directories present in LD_LIBRARY_PATHGuillem Jover2-1/+4
We were trying to use realpath() on nonexistent directories, which means we'd get undef. Instead just completely ignore nonexistent directories from any processing. Fixes: commit 174a5bd2a080847d0ed901d269a2ba74476eba8b
2018-09-02Dpkg::Substvars: Fix typoGuillem Jover1-2/+1
2018-08-31Update German translation of manual pagesHelge Kreutzmann1-75/+130
Update to 2924t1f.
2018-08-31Update Netherlands translation of manual pagesHelge Kreutzmann1-79/+134
Update to 2905t10f10u. This update only deals with strings which can be trivially unfuzzied.
2018-08-30German dpkg translation updateSven Joachim1-223/+231
Update to 1113t.
2018-08-30Update German scripts translationHelge Kreutzmann1-6/+26
Update to 602t.
2018-08-30data: Add missing purpose and column description for tupletableGuillem Jover2-0/+16
2018-08-30test: Add new codespell author testGuillem Jover6-1/+82
2018-08-30test: Delete fixup lines from i18nspector output instead of emptying themGuillem Jover2-2/+3
The previous regex was just turning the line into an empty one, but we count the length to check whether there was any output. In this particular case this did not trigger because we have a chomp, that would get rid of the last empty line, which happened to be fine as we currently only emit one such empty line per file. But this is not future-proof, so let's fix it before it bites us.
2018-08-30dpkg-shlibdeps: Split string at \n boundaryGuillem Jover1-2/+3
Having the string read as “\nTo” confuses codespell, as a typo for not. Just break the string at the newline to make it more clear for humans and spell checkers alike. Warned-by: codespell
2018-08-30dselect: Rename $ans variable to $answer in multicd methodGuillem Jover1-2/+2
This is detected by codespell as a spelling error. Just use the non-abbreviated form to make it more clear and stop triggering codespell. Warned-by: codespell
2018-08-30scripts/t: Improve coverage of unit testsGuillem Jover8-16/+138
2018-08-30libdpkg: Add new unit tests for namevalue, fsys-hash and pkg-hash modulesGuillem Jover6-0/+341
2018-08-30build: Disable C optimization levels when configuring for code coverageGuillem Jover2-2/+3
Optimizations mess up the coverage reporting, as the reslting object layout changes substantialy to the point of it not matching what is being actually covered by the test suite.
2018-08-30build: Only sign the perl distribution if we are doing an actual releaseGuillem Jover4-2/+17
Forcing the signing while not actually preparing a tarball for a release disitribution, that is due to a signed tag, means that any random «make distcheck» will trigger an annoying gpg prompt.
2018-08-30Dpkg::Control::Fields: Do not use & sigil for function callsGuillem Jover3-3/+8
Warned-by: perlcritic Fixes: Subroutines::ProhibitAmpersandSigils
2018-08-30Dpkg::OpenPGP: Return the destination path on successful ASCII armor conversionGuillem Jover2-2/+4
This way we can distinguish the failure from the success case.
2018-08-30Dpkg::Source::Package::V3::Quilt: Print series file used when applying patchesGuillem Jover2-0/+4
We might use a vendor specific series file, so we should print the one being used to notify if this fact.
2018-08-30Dpkg::Shlibs: Warn when using LD_LIBRARY_PATH with a descendent of cwdGuillem Jover2-0/+12
This makes the deprecation explicit, so that we can start noticing what is inappropriately setting this variable for a purpose it was not designed for.
2018-08-30dpkg-gensymbols: Add new -l optionGuillem Jover3-0/+16
This option will make it possible to stop using LD_LIBRARY_PATH when calling this script.
2018-08-30dpkg-query: Support dumping all --status and --print-avail recordsGuillem Jover3-51/+60
When not passing any argument these commands will dump the entire database. This way external programs will have a proper public interface to get all package records, even when there are unmerged journal entries. Closes: #616342
2018-08-30dpkg-query: Split enqperpackage() into each different actionGuillem Jover2-66/+116
2018-08-30dpkg-query: Flush output for --status, --print-avail and --listfiles at the endGuillem Jover2-2/+3
Do not flush the output on each entry output, instead wait until we have finished to flush it all out. This should speed up the output.
2018-08-30dpkg: Fix use after free in maintainer scripts handlingGuillem Jover2-3/+4
Fixes: commit 44b0bf1a576e3b0cfcb4c87f18d4195c3ffccb8f
2018-08-30dpkg-query: Run --list output through a pager if we are on a terminalGuillem Jover4-88/+33
The current code, checks whether we are running on a terminal, and then truncates the output fields so that it can fit within. This causes data loss and can confuse the user depending where the cut point has happened. Instead we remove that logic, and always redirect the outout through a pager in case we are running on a terminal, which gives full information and does not necessarily emit ugly output. Closes: #898603
2018-08-30libdpkg, dpkg: Use new pager spawning supportGuillem Jover3-23/+17
Use it instead of open-coding it, or piping it via a shell invocation, which required metacharacter escaping.
2018-08-30libdpkg: Add pager spawning and reaping supportGuillem Jover4-0/+73
This will make using a pager way easier, and make it possible to remove some redundant and unsafe system() usage.
2018-08-30libdpkg: Require both stdin and stdout to be a tty to use a pagerGuillem Jover2-1/+3
A pager requires both input being connected to a tty, and we want to use it when the output goes to the tty, so require both.
2018-08-30libdpkg: Split pager specific code into its own moduleGuillem Jover14-62/+181
We also namespace the pager function with the module name.
2018-08-30libdpkg: Fix internerr format stringGuillem Jover1-1/+1
Do not print filename which is going to be NULL. Fixes: commit 9f7e58acdf28043bce2dfaf24ba27bb878418658
2018-08-30libdpkg: Dump database package records in alphabetical orderGuillem Jover2-4/+16
When dumping all stanzas from the package database, do it in alphabetical order, so that we get reproducible output, both on disk and for the upcoming output to stdout.