summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2018-07-30Dpkg::Deps: Fix typo in PODGuillem Jover1-1/+1
2018-07-30Dpkg::Deps: Merge all Copyright notices into the same blockGuillem Jover1-8/+5
There should be no difference between Copyright and Portions Copyright, remove the distinction, and merge all these notices.
2018-07-30perl: Make Build.PL check Module::Build availability at run-timeGuillem Jover1-1/+5
Doing a normal import via use, means that we need the module to be present for the unit tests, when we only need it as part of the distribution process.
2018-07-30Dpkg::Gettext: Document textdomain() and ngettext() replacement functionsGuillem Jover1-0/+13
We should mention when these functions are present and what they do, so that users know when they can rely on these. Warned-by: Test::Pod::Coverage
2018-07-30Dpkg::Gettext: Fix fallback textdomain() to honor its expected interfaceGuillem Jover1-0/+7
Even though we will not use the domain value set by this function, we should honor its original interface and return a domain string, and update it when requested.
2018-07-25Update German scripts translationHelge Kreutzmann1-31/+31
Update to 600t.
2018-07-24dpkg-buildpackage: Mark profiles as a replaceable item in --help outputGuillem Jover1-1/+1
2018-07-24dpkg-buildpackage: Fold --[no-]check-builddeps into short option descriptionsGuillem Jover1-3/+2
This makes it easier to read which long option matches the short option.
2018-07-24dpkg-buildpackage: Add --build equivalents for short build type optionsGuillem Jover1-7/+7
This makes the --help output clearer, and matches the man page.
2018-07-24dpkg-buildpackage: Clarify pre and post-clean options and their default stateGuillem Jover1-2/+2
2018-07-24dpkg-buildpackage: Add new --no-post-clean optionGuillem Jover1-0/+3
This makes it possible to select the current default behavior.
2018-07-24dpkg-buildpackage: Rename and logic invert $noclean to $postcleanGuillem Jover1-7/+7
Makes the purpose of the variable clear.
2018-07-24dpkg-buildpackage: Rename $cleansource to $postcleanGuillem Jover1-4/+4
Makes the purpose of the variable clear.
2018-07-24Dpkg::BuildFlags: Move default flags setting into the Dpkg::Vendor modulesGuillem Jover2-12/+24
This should really be a vendor specific default. It's also documented that way in the man page.
2018-07-24Dpkg::Vendor::Debian: Inline _parse_feature_area() into _add_build_flags()Guillem Jover1-13/+7
This function was being called on each foreach iteration to parse the options within the DEB_BUILD_MAINT_OPTIONS and DEB_BUILD_OPTIONS environment variables, and needed to parse these at construction time every time. Inlining it should make it more performant and in addition reduce line count.
2018-07-24Dpkg::Shlibs: Disable bool overload Dpkg::Version warningsGuillem Jover2-0/+8
The usage in this file is correct, but we are still doing boolean evaluation.
2018-07-24Dpkg::Shlibs::SymbolFile: Always assign proper Dpkg::Version to deprecatedGuillem Jover1-1/+1
We should always assign a proper Dpkg::Version object to the deprecated variable. Otherwise it can get confused with the scalar value 0 used on boolean context to denote it is *not* deprecated, instead of it being a version number 0.
2018-07-24Dpkg::Version: Bump VERSION and improve semantic change descriptionGuillem Jover1-4/+12
Give context to the warning message, otherwise it's not clear what is going on. If the users to not conditionalize the warning usage they will get a perl warning about the unknown warning category itself, bump the module version to be able to discern this change, and update documentation to reflect this.
2018-07-24test: Add new po author testGuillem Jover1-0/+26
Use i18nspector (if available) to check the .po and .pot files.
2018-07-24dpkg-buildpackage: Only check required build dependencies for known targetsGuillem Jover1-0/+5
When we specify the debian/rules targets to call with --rules-target, we should check only the build dependencies required bu those targets, and nothing more. Reported-by: Johannes Schauer <josch@debian.org>
2018-07-24Dpkg::Build::Types: Add new set_build_type_from_targets() functionGuillem Jover1-0/+32
2018-07-24Dpkg::Build::Types: Fix set_build_type_from_options() descriptionGuillem Jover1-2/+3
2018-07-24dpkg-buildpackage: Only check for fallback build targets on binary buildsGuillem Jover1-4/+5
If we are not going to build any binary package, there is no point in checking whether we need to run any of the build targets.
2018-07-24dpkg-buildpackage: Fix --rules-file option parsingGuillem Jover1-1/+1
Parse --rules-file instead of --rules-target, which made it a no-op. Fixes: commit 293bd243a19149165fc4fd8830b16a51d471a5e9 Stable-Candidate: 1.18.x
2018-06-22scripts: Do not use stringy eval to define different sub implementationsGuillem Jover2-37/+31
We can just assign an anonymous sub to the typeglob.
2018-05-08dpkg-buildpackage: Avoid using an uninitialized variableGuillem Jover1-0/+1
If DEB_SIGN_KEYID is not set in the environment or the signing key is not passed via --sign-key, dpkg-buildpackage emits a perl warning. Warned-by: perl Fixes: commit 6f903af181057a046a1344aadca552b113a2c2ee Based-on-patch-by: Sven Joachim <svenjoac@gmx.de>
2018-05-05Update German scripts translationHelge Kreutzmann1-10/+12
Update to 600t.
2018-05-05Dpkg::Changelog::Parse: Stop using tail(1) to read the end of the fileGuillem Jover1-3/+7
Instead of relying on the tail command, simply read the end of the file ourselves, assuming a packed set of 80 character lines, reading 4096 bytes before the end, implies around 51 lines, which is close to the 40 lines currently used. This should be both faster and should improve portability, because even if we are using the POSIX -n option, some systems do not have a POSIX compliant tail(1) on the default path, such as Solaris. Analysis-by: James Clarke <jrtc27@debian.org>
2018-05-04Update German scripts translationHelge Kreutzmann1-2/+16
Update to 601t.
2018-05-04dpkg-buildpackage: Validate OpenPGP signing key IDsGuillem Jover1-0/+17
We should not accept short key IDs, and warn about long key IDs. Recommend to use fingerprints.
2018-05-04Dpkg::Version: Fix bool overload behaviorGuillem Jover3-13/+27
The current bool overload has broken semantics, because it considers the version "0" to be false. The bool overload used to have sane semantics (equivalent to is_valid()) before commit 5b9f353b2940de751df47036608afbe71992d622, but there it got changed to return the stringified version if it was valid, or undef otherwise, to fix a problem within dpkg-shlibdeps, instead of properly fixing the local-only problem in the tool. This makes the overload hard to use, and broke existing callers from external projects. We will emit a warning until dpkg 1.20.x to notify of the semantic change in case there is code relying on the broken semantics. For fixed code the warning can then be quiesced with: no warnings qw(Dpkg::Version::semantic_change::overload::bool); Closes: #895004
2018-05-04scripts: Refresh test data and update code to matchGuillem Jover7-664/+911
2018-05-04Dpkg::Shlibs::Objdump: Fix ELF program detectionGuillem Jover2-4/+12
An ELF executable is defined by whether the object has the EXEC_P flag defined or an interpreter in the program header. The former applies to statically linked programs, the latter to dynamically linked programs and possibly some shared libraries that can be executed, such as the ones provided by glibc. This is now more relevant as PIE makes normal executables show up as shared objects, so they do not contain the EXEC_P flag, and were not being detected as executables.
2018-05-04Dpkg::Shlibs::Objdump: Remove duplicate assignment in reset() methodGuillem Jover1-1/+0
2018-05-04dpkg-source: Do not emit perl warnings on source formats w/o optionsGuillem Jover1-0/+1
At least the format "3.0 (native)" supports no format specific options, which makes the describe_cmdline_options() return an empty list.
2018-05-03dpkg-checkbuilddeps: Fix indentationGuillem Jover1-35/+34
2018-05-03build: Add CPAN distribution machineryGuillem Jover3-3/+92
Add a new dist-cpan target that takes care of preparing a perl distribution to be uploaded to CPAN. Only the modules are shipped, some of which do require dpkg tools being installed though. Closes: #821177
2018-05-03Dpkg: Fix default DATADIRGuillem Jover1-1/+1
Even though we always override it from the build system the default pathname got out-of-sync with the repository when the architecture tables got moved into the data directory. Fixes: commit 97309bef8b664c2d58cb689a3e82848021ae9bad
2018-05-03Revert "Dpkg::Deps: Accept $archqual for add_provided_package() method"Guillem Jover4-15/+7
This reverts commit 83272497c5be8c4e703ab179906cf904465fe775. This commit introduced a regression in the author test suite. And there's a patch by Johannes 'josch' Schauer <josch@mister-muffin.de> which should be fixing this and other problems. If this is needed after all, we will need to refactor the functions first to take a hash instead of a long list of arguments.
2018-03-25Dpkg::Vendor::Debian: Mark riscv64 as having gcc built-in PIE supportGuillem Jover1-0/+1
2018-03-25Dpkg::Vendor::Debian: Split pie builtin arches one per lineGuillem Jover1-2/+17
This makes changing them easier to see when diffing.
2018-03-25Dpkg::Deps: Accept $archqual for add_provided_package() methodGuillem Jover4-7/+15
2018-03-25Dpkg::Deps: Turn virtualpkg tracking from an arrayyref into a hashrefGuillem Jover2-7/+15
This is more extensible and more clear.
2018-02-22Update German scripts translationHelge Kreutzmann1-29/+36
Update to 599t.
2018-02-19scripts/mk: Export architecture variables by defaultJack Bates1-1/+1
The dpkg-architecture(1) man page states that these variables are exported, and that's what dpkg-buildpackage does itself when setting up the build environment. Doing this is always safe. Closes: #888964 Signed-off-by: Guillem Jover <guillem@debian.org>
2018-02-19Dpkg::Source::Package: Print building lines for upstream tarball signaturesGuillem Jover2-7/+16
When we are picking up upstream tarball signatures, we should also print them as being used to create the source package. Closes: #888787
2018-02-19Dpkg::Source::Package::V2: Print one building line per existing tarballGuillem Jover1-2/+4
Lumping all found tarballs into a single line makes the output more confusing.
2018-01-16dpkg-buildpackage: Add new --rules-requires-rootGuillem Jover1-1/+7
This new option makes it possible to force falling back to the legacy behavior of assuming that debian/rules files require root.
2018-01-16spec/R³: Add new DEB_RULES_REQUIRES_ROOT variableGuillem Jover1-0/+3
This variable is set by the builder to notify debian/rules that it supports this specification. Wordsmithing-by: Niels Thykier <niels@thykier.net>
2018-01-16dpkg-buildpackage: Do not set DEB_GAIN_ROOT_CMD on <implementations-keywords>Guillem Jover1-0/+5
The specification is clear on this, and we should not be setting this variable when the values are different to "no" and "binary-targets".