summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22po: Regenerate .pot files and merge .po files with themGuillem Jover8-202/+265
2019-01-15scripts/mk: Add support for an improved dpkg_vendor_derives_from macroGuillem Jover6-8/+49
Version the macros so that both can be used, and default the unversioned one to the version 0 macro.
2019-01-15scripts/mk: Fix dpkg_vendor_derives_from macro documentationColin Watson1-1/+1
Add a missing comma, and $(shell) make function invocation. Closes: #913816 Signed-off-by: Guillem Jover <guillem@debian.org>
2019-01-15dpkg-scanpackages: Emit a warning with the list of repeat packagesGuillem Jover1-0/+8
When not using --multiversion, track any repeated instance that would possibly benefit from running with --multiversion, and output it at the end with a suggestion to use that option. Prompted-by: Johannes Schauer <josch@debian.org>
2019-01-15dpkg-scanpackages: Unroll a single iteration loopGuillem Jover1-14/+14
When not in multi-version mode, we can only ever have one package in the %packages hash, remove the confusing loop and replace with an explicit assignment using the first array reference element.
2019-01-15dpkg-scanpackages: Do not compute unnecessary checksumsGuillem Jover1-6/+5
When we specify a --hash argument we should not compute all checksums to then discard them. Closes: #916456 Based-on-patch-by: Chris Lamb <lamby@debian.org>
2019-01-15dpkg-shlibdeps: Remove duplicate word across newline boundaryGuillem Jover1-1/+1
2019-01-15dpkg-shlibdeps: Remove unused variableGuillem Jover1-2/+0
2019-01-15dpkg-genchanges: Only reference binary packages being uploadedGuillem Jover4-18/+12
The .changes file describes an upload, and its Binary and Description fields should contain (as documented) only references to the packages being uploaded. In case of a source-only upload, the Binary and Description fields should be empty. Closes: #818618
2019-01-15dpkg-source: Stop filtering @builddeps@ from Testsuite-Triggers fieldGuillem Jover1-2/+2
Filtering this meta-variable means that code parsing the field is unable to know whether the source specified the build dependencies as relevant for retriggering. We should also not expand the meta-variable as that would lose information, so we let it through now. Closes: #910734
2019-01-15dpkg-source: Use new format argument for Dpkg::Source::Package->new()Guillem Jover1-8/+4
This makes the creation of the object more compact and easier to read.
2019-01-15dpkg-source: Move source format selection earlier in the buildGuillem Jover1-19/+20
This move it at the beginning were it belongs, as the later code can change behavior based on the format selected. This also will make it possible to delegate the source format object selection to the Dpkg::Source::Package class.
2019-01-15Dpkg::Source::Package, dpkg-source: Switch to new Dpkg::Source::Format moduleGuillem Jover2-38/+26
This move all ad-hoc code to use the new Dpkg::Source::Format module.
2019-01-15Dpkg::Source::Format: New moduleGuillem Jover4-0/+262
This new public module centralizes the handling of debian/source/format so that other projects can reuse it instead of having to reimplement it. Prompted-by: Mattia Rizzolo <mattia@debian.org> Ref: https://salsa.debian.org/debian/devscripts/merge_requests/63
2019-01-15Dpkg::Source::Package: Improve debian/source/format parsing and validationGuillem Jover1-16/+9
Make the regex more strict and decompose it right away instead of doing a second pass over it. Only initialize minor when we need to update the format. And fix the error for an invalid format to stop referencing the Format field, which might not be involved during the parsing.
2019-01-15Dpkg::Source::Package: Add a new format option to the new constructorGuillem Jover1-5/+16
This makes it easier to construct a source package object with the desired object, and initialize it as required. Prompted-by: James McCoy <jamesan@debian.org> Ref: https://salsa.debian.org/debian/devscripts/merge_requests/61
2019-01-15Dpkg::Source::Package::V3::Bzr: Fix format name in output messageGuillem Jover1-1/+1
2019-01-15Dpkg::Source::Patch: Do not recommend --include-removal when not supportedGuillem Jover1-4/+5
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 Jover1-2/+1
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 Jover1-10/+13
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 Jover1-1/+0
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 Jover3-5/+65
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 Jover4-13/+19
This makes several call sites more clear, as we move the logic inside the function.
2019-01-15Dpkg::Changelog::Debian: Preserve modelines at EOFGuillem Jover11-4/+40
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 Jover1-1/+1
2019-01-15perl: Fix POD for Dpkg::Interface::Storable derived method implementationsGuillem Jover8-74/+79
Document inherited methods. Document the return values. Note which arguments are optional. Reorder methods by their position in the stack.
2018-10-10build: Set locale for CPAN tests to CGuillem Jover1-0/+2
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 Jover1-6/+8
All these environment variables are only relevant while running the test suite. Do not pollute the rest of the environment.
2018-10-10shell: Quote variablesGuillem Jover1-2/+2
Reported-by: Johannes Schauer <josch@debian.org> Warned-by: shellcheck
2018-10-10dpkg-maintscript-helper: Use explicit escape instead of literal backslashGuillem Jover1-2/+2
Warned-by: shellcheck
2018-10-09Update German scripts translationHelge Kreutzmann1-5/+4
Update to 603t.
2018-10-08po: Regenerate .pot files and merge .po files with themGuillem Jover8-255/+307
2018-10-08Dpkg::Source::Package::V2: Move binary file detection to BinaryFiles moduleGuillem Jover2-44/+59
This makes it possible to reuse the code by other modules.
2018-10-08Dpkg::Source::Package::V2: Split BinaryFiles module into its own fileGuillem Jover4-84/+113
2018-10-08Dpkg::Source::Functions: Reimplement is_binary() w/o using diff(1)Guillem Jover1-23/+8
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 Jover1-0/+165
2018-10-08Dpkg::OpenPGP: Do not read the gpg user configuration fileGuillem Jover1-1/+3
2018-10-08Dpkg::OpenPGP: Ignore Version field in enarmored outputGuillem Jover1-0/+1
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-08test: Skip version checks involving «dpkg --compare-versions» if not availableGuillem Jover1-2/+15
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 Jover1-2/+20
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 Jover1-1/+1
2018-10-08build: Add a release_status key to the CPAN metadataGuillem Jover1-0/+2
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 Jover1-1/+1
Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that directly in the Build.PL.in file.
2018-09-26po: Regenerate .pot files and merge .po files with themGuillem Jover8-355/+805
2018-09-26test: Make po checks cope with missing po files in CPAN distributionGuillem Jover1-1/+1
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 Jover1-0/+37
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 scripts translationHelge Kreutzmann1-2/+5
Update to 602t.
2018-09-18perl: Replace all calls to Cwd::cwd with Cwd::getcwdJosh Triplett4-4/+4
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 Jover4-6/+14
This option will make the output be in reverse order.