summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2019-10-12dpkg-shlibdeps: Add support for new Build-Depends-PackagesGuillem Jover1-2/+3
This makes it possible to specify more than one package, which might be needed during transition periods for example. Closes: #926669 Based-on-patch-by: Frank Schaefer <kelledin@gmail.com>
2019-10-12dpkg-genbuildinfo: Do not include irrelevant packages in the Binary fieldGuillem Jover1-1/+11
This change is the companion to the one in dpkg-genchanges that lists only relevant packages, instead of all the ones listed in debian/control, but for the .buildinfo file instead of the .changes file.
2019-10-12scripts/mk: Add support for nostrip DEB_BUILD_OPTIONS when setting STRIPGuillem Jover2-2/+13
2019-10-12dpkg-buildpackage: Remove transient backwards R³ compat codeGuillem Jover1-4/+0
This code got deprecated before the spec had been finalized, but left in just to make sure no remaining implementations were still using it.
2019-10-12scripts: Switch Getopt::Long from bundling to bundling_valuesGuillem Jover4-4/+4
This got introduced after a request so that we could switch our tools to a safe subset of the bundling logic, so let's enable it now that it is available in the minimum supported perl version. Bundling is in general unsafe, and not future-proof, as new options might gain arguments which would then get misinterpreted, we should not really be using it. But bundling the value into the option is a common pattern and should be allowed.
2019-06-08Bump version to 1.20.0Guillem Jover1-1/+1
2019-06-03po: Regenerate .pot files and merge .po files with themGuillem Jover8-10/+10
2019-06-03po: Unfuzzy translations due to typo fixesGuillem Jover7-7/+7
2019-06-03doc: Fix typosGuillem Jover1-1/+1
Warned-by: codespell
2019-05-10po: Update Catalan translationsGuillem Jover1-5/+2
2019-05-09po: Update Catalan translationsGuillem Jover1-242/+77
2019-03-25po: Regenerate .pot files and merge .po files with themGuillem Jover8-9/+9
2019-03-24dpkg-gencontrol: Check presence of package build dir before traversing itGuillem Jover1-1/+1
The find() function does not cope well with trying to traverse an unexistent directory and generates various alarming warnings.
2019-03-24Dpkg::Source::Package: Handle Format field being undefinedGuillem Jover1-1/+2
On source format 1.0, the default is for the debian/source/format file not being present, which means we'll start with an empty Format field name. Fixes: commit d1d35a56e401181b6d15baf474a7db21d3372a65
2019-03-24Dpkg::Source::Package::V1: Change default build option style to -saGuillem Jover1-1/+1
Using -sA by default means the user might lose data on overwrite if there is already a directory with the same name laying around. Closes: #910737
2019-02-24Update German scripts translationHelge Kreutzmann1-10/+5
Update to 603t.
2019-02-23po: Regenerate .pot files and merge .po files with themGuillem Jover8-25/+62
2019-02-23Dpkg::BuildOptions: Fix typo in PODGuillem Jover1-1/+1
2019-02-23Dpkg::Source::Package: Add a missing use Dpkg::Source::FormatGuillem Jover1-0/+1
Closes: #921031 Fixes: commit d1d35a56e401181b6d15baf474a7db21d3372a65 Diagnosed-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2019-02-23Dpkg::Vendor::Debian: Add support for usr-local-has-* tainted tagsGuillem Jover1-0/+14
These will detect problematic files under /usr/local which can taint the current build.
2019-02-23Dpkg::Vendor::Debian: Add support for merged-usr-via-symlinks tainted tagGuillem Jover1-0/+10
This will detect whether the system we are building on contains the problematic /usr merged via symlinks deployment method. Suggested-by: Alexander E. Patrakov <patrakov@gmail.com>
2019-02-23dpkg-genbuildinfo: Add support for a new Build-Tainted-By fieldGuillem Jover5-3/+31
This field will contain a list of tainting reason tags, which can denote that the current build has potentially been broken. Suggested-by: Alexander E. Patrakov <patrakov@gmail.com>
2019-02-23dpkg-maintscript-helper: Restrict find for dir-to-symlink move to -maxdepth 1Ralf Treinen1-1/+1
We do not want to move the entries beneath the first depth of the pathname, as when we try to move those, we will have already moved their parent. Closes: #922799 Signed-off-by: Guillem Jover <guillem@debian.org>
2019-02-23dpkg-buildpackage: Clarify the warning/error on short OpenPGP key IDsGuillem Jover1-2/+4
Print where these are to be used. Closes: #922039
2019-01-23Update German scripts translationHelge Kreutzmann1-10/+7
Update to 603t.
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