summaryrefslogtreecommitdiff
path: root/scripts/Dpkg
AgeCommit message (Collapse)AuthorFilesLines
2019-11-30Add missed import of Dpkg::IPC::spawnIgor Pashev1-0/+1
2019-11-29Add scripts/Dpkg/Vendor/Dyson.pmIgor Pashev1-0/+30
2019-11-29Fix missing $dirIgor Pashev2-2/+2
2019-11-29Merge https://salsa.debian.org/dpkg-team/dpkgIgor Pashev1-4/+12
2019-11-27Dpkg::Source::Package: Honor require_valid_signature optionGuillem Jover1-4/+12
We need to pass this option forward to the verify_signature() calls, otherwise we use the default. Fixes: commit 139dfc4c78593d995610c0aa180300a9a7dd94ac Fixes: commit 3821f024d92aabf24a333025c1c1956d8a45e718
2019-11-26Merge https://salsa.debian.org/dpkg-team/dpkgIgor Pashev54-1874/+2883
2019-11-26Dpkg::Source::Package::V3::Native: Do not say v1.0 for 3.0 formatsGuillem Jover1-1/+1
2019-11-26Dpkg::Changelog: Clarify inheritance and implementation referencesGuillem Jover2-6/+14
Make it clear that these classes inherit from some other base class, which will contain the missing documentation. Prompted-by: intrigeri <intrigeri@debian.org>
2019-11-26Dpkg: Say class instead of object when appropriateGuillem Jover26-47/+48
These were referring to the type and not the instance, which makes using the incorrect nomenclature confusing.
2019-11-26Dpkg::Exit: Register exit handlers also for __DIE__Guillem Jover2-17/+6
This makes sure we execute the handlers on normal errors, and can thus remove the traps from several functions to run the handlers and to then rethrow the exception.
2019-11-26Dpkg::Exit: Unregister all signal handlers once we have executed themGuillem Jover1-3/+20
We should cleanup the handlers to the previous state otherwise we end up changing the behavior globally, when this should be a local cleanup behavior. Closes: #932841
2019-11-26Dpkg::Vendor: Remove obsolete 'keyrings' hookGuillem Jover2-6/+0
This hook has been obsoleted for a while and been emitting deprecation warnings, so it's safe to remove now.
2019-11-26Dpkg::Conf: Remove obsolete methods and obsolete croak for method optionGuillem Jover1-19/+7
We do not bump the module version to 2.00, as these functions and option have croak'ed almost since their introduction.
2019-11-26Dpkg::Checksums: Remove obsolete 'program' property warningGuillem Jover1-5/+5
2019-11-26Dpkg::Version: Remove deprecation warning from semantic change in bool overloadGuillem Jover1-7/+6
2019-11-26Dpkg::Index: Change default value for unique_tuple_key to 1Guillem Jover1-20/+15
Bump module version to 2.00.
2019-11-26Dpkg::Substvars: Remove obsolete no_warn() methodGuillem Jover1-16/+5
Bump module version to 2.00.
2019-11-26Dpkg::Source::Package: Remove and hide internal lowercase variablesGuillem Jover1-9/+7
Bump module version to 2.00.
2019-11-26Dpkg::Gettext: Remove obsolete _g() functionGuillem Jover1-12/+4
Bump module version to 2.00.
2019-11-26Dpkg::Exit: Hide internal lowercase @handlers variableGuillem Jover1-5/+6
Bump module version to 2.00.
2019-11-26Dpkg::Deps::KnownFacts: Remove obsolete check_package() methodGuillem Jover1-32/+5
Bump module version to 2.00.
2019-11-26Dpkg::Compression: Hide internal lowercase variablesGuillem Jover1-8/+9
Bump module version to 2.00.
2019-11-26Dpkg::Changelog::Parse: Remove warnings for obsolete options and functionsGuillem Jover1-53/+7
Remove warnings for obsolete options forceplugin and libdir. Remove obsolete functions changelog_parse_debian() and changelog_parse_plugin(). Bump module version to 2.00.
2019-11-26Dpkg::Changelog::Parse: Remove $ sigil from option names in PODGuillem Jover1-1/+1
These are not actual variables, but option passed in a hash, so using the $ sigil here is very confusing.
2019-11-26Dpkg::Changelog::Entry::Debian: Remove obsolete methods and hide variablesGuillem Jover1-40/+9
Remove obsolete methods check_header() and check_trailer(). Hide internal lowercase variables $regex_header and $regex_trailer. Bump module version to 2.00.
2019-11-26Dpkg::Changelog: Remove obsolete methods dpkg() and rfc822()Guillem Jover1-31/+5
Bump module version to 2.00.
2019-11-26Dpkg::Deps: Check for valid virtual package version relationsGuillem Jover1-1/+18
Do not allow non-equal version relations in virtual provides. Closes: #930317
2019-11-26Dpkg::Vendor::Debian: Do not set -Werror=implicit-function-declaration for C++Guillem Jover1-2/+15
Closes: #939969
2019-11-26Dpkg::Vendor::Debian: Only scan /usr/local/ directories that existGuillem Jover1-1/+1
Closes: #932967
2019-10-30Dpkg::Changelog: Document methods provided by subclassesGuillem Jover1-0/+16
Reported-by: Felix Lechner <felix.lechner@lease-up.com>
2019-10-30Dpkg::Source::Package::V2: Emit a special patch header on single-debian-patchGuillem Jover1-0/+12
The previous default patch header does not make sense for a conglomerate patch. Instead provide a more suitable default, that can always be overridden with either the local-patch-header or patch-header files. Closes: #933152
2019-10-30Dpkg::BuildFlags: Add new unset() methodGuillem Jover1-1/+19
This makes it possible to unset variables, so that they do not get output by the various tools. Requested-by: Daniel Schepler <dschepler@gmail.com>
2019-10-30Dpkg::BuildFlags: Remove unused hash keysGuillem Jover1-2/+0
2019-10-30Dpkg::Source::Package: Verify original tarball signatures at build timeGuillem Jover3-2/+40
When we are building the source package, while detecting whether there is any original upstream tarball signature to be included in the .dsc, it's the best time to verify them, so that when the .dsc gets eventually signed there's a certification path for the maintainer that they are including what they expected to be there.
2019-10-30Dpkg::OpenPGP: Add support for importing an OpenPGP key into a keyringGuillem Jover1-0/+36
This is needed, for example, to verify original tarball signatures.
2019-10-30Dpkg::OpenPGP: Make it possible to verify detached signaturesGuillem Jover1-0/+1
This is required to be able to verify original upstream tarball signatures, as they are expected to be ASCII armored detached signatures for the upstream tarballs.
2019-10-12Dpkg::OpenPGP: Refactor signature verification into a new functionGuillem Jover2-38/+49
2019-10-12perl: Use File::Copy instead of spawning mv/cp commandsGuillem Jover1-2/+3
We use cp() in Dpkg::Source::Package to preserve the file attributes, but just move() in dpkg-buildpackage where it does not matter.
2019-10-12Dpkg::Source::Package: Refactor original tarball handlingGuillem Jover2-21/+19
2019-10-12scripts: Remove support for versioned GnuPG 2 program and packagesGuillem Jover1-5/+1
The current default in Debian and anywhere else is to use unversioned GnuPG 2.x binaries, so there's no need anymore to try these first or at all.
2019-06-03doc: Fix typosGuillem Jover1-1/+1
Warned-by: codespell
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-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 Jover3-1/+26
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-01-15Dpkg::Source::Package, dpkg-source: Switch to new Dpkg::Source::Format moduleGuillem Jover1-30/+22
This move all ad-hoc code to use the new Dpkg::Source::Format module.
2019-01-15Dpkg::Source::Format: New moduleGuillem Jover1-0/+191
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