summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-08-18Avoid parsing d/control before handling --help/--listNiels Thykier3-4/+18
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-18Release debhelper/12.5.2Niels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-18dh_makeshlibs: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-18dh: Fix regression in dh addon APINiels Thykier2-8/+12
Previously, dh's API functions were sloppy in their return values but *often* they would return a truth value. We changed that in 12.5 by insisting on return undef. However, that broke addons relying on the API function to work around Perl's idiom of "module must end with a truth value". To resolve that, we now always return a truth value from all API functions to fix that. This also give consistent behaviour, which is better than the previous setup. Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-18dh_makeshlibs: Restore "igore errors"-misfeature in compat 10 and earlierNiels Thykier2-2/+17
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-18d/changelog: Fix typoGuillem Jover1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Release debhelper/12.5.1Niels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Update POT and PO filesNiels Thykier6-104/+130
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17dh_makeshlibs: Fix bug in handling of -XNiels Thykier2-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17dh_installdeb: Detect invalid token names passed to -D in most casesNiels Thykier2-2/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17dh_installdeb: Allow "+" in token namesNiels Thykier3-2/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Release debhelper/12.5Niels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17dh: Skip some invalid calls to helpers after an overrideNiels Thykier1-1/+13
With the new "conditional" addon feature, it was possible to trigger a gratious useless warning with a conditional override. Consider: override_dh_foo-arch: ... And dh_foo was added by an arch-only addon. Before this commit, we would do: debian/rules override_dh_foo-arch dh_foo -a -N<for each arch:any package> The latter call to dh_foo rightfully complained there was nothing to do. With this commit, we correctly omit the latter call. Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Dh_Lib: Fix typo in error messageNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17dh: Fix use of uninitialized variable in compat 13Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Update POT and PO filesNiels Thykier6-2026/+2261
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17d/control: Remove B-D only inserted for local testingNiels Thykier1-1/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17d/changelog: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17d/changelog: Fix typoNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-17Rewrite special-casing of ELF tools (dh_strip etc.) via an elf-tools sequenceNiels Thykier5-19/+60
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Fix logic for arch-only commands to make it testable againNiels Thykier4-20/+47
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Update documentation and changelog to cover new sequence/addon featuresNiels Thykier3-6/+47
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Dh_Lib: Only parse dh-sequence-X in dhNiels Thykier2-1/+7
We do not want to pay a non-trivial cost of loading Dpkg::Deps in every helper (for cases where that is needed to parse th dh-sequence clause). Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Dh_lib.pm: Extract d/control parse logic from getpackagesNiels Thykier1-6/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Generalize and move logic for filtering out arch-only helpersNiels Thykier2-3/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Support build-profiles and architecture restrictions for dh-sequence-X ↵Niels Thykier1-1/+9
build-depends Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Rewrite sequence handling to ensure add-on commands are ordered correctlyNiels Thykier4-125/+456
Previously, we relied on a command being inserted in the -arch sequence to be ordered correctly. With this rewrite, a command added only to the -indep sequence will still appear in the right order. Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh: Implement conditional sequence add-onsNiels Thykier2-31/+196
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh: Drop code only used for obsolete parametersNiels Thykier1-57/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh_makeshlibs: Avoid including omitted libraries in the udeb on auto-detectionNiels Thykier2-4/+38
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh_makeshlibs: Move objdump logic into _all_so_filesNiels Thykier1-18/+23
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh_makeshlibs: Avoid shelling out to locate all SO filesNiels Thykier1-10/+23
Also, remove undocumented and useless compat code. Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16Add Closes for dh_makeshlibs bugNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-16dh_makeshlibs: Fix bug in --no-add-udebNiels Thykier2-2/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15Dh_Lib: Add hint to resolve double-specified compat levelNiels Thykier2-0/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15dh_builddeb: Remove support for --destdirNiels Thykier2-10/+4
It is not useful as the packager cannot set it to anything as it is the builder that has an expectation of where the debs are produced. It would have been a lot more useful if the builder could have specified this value some how (but it would have to be aligned with dpkg with e.g. for the .changes). Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15Disable auto-abbrev of cli options in c13 to enable dh optimizationsNiels Thykier4-3/+24
Disable auto-abbreviation of command-line options in compat 13 and re-enable dh's optimization for skipping redundant commands when passed long options. Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15dh_auto_*: Officially adopt --sourcedir/--builddirNiels Thykier4-3/+9
Since the beginning, debhelper has accepted abbrevated command line parameters. Anyone that has been using (e.g.): dh $@ --sourcedir=foo To pass --sourcedir to dh_install has *also* implicitly passed it to the dh_auto_* helpers. Due to auto-abbrevation being enabled, they have considered it a short form of --sourcedirectory. This is trivially confirmable by comparing: dh_auto_configure --bar foo Unknown option: bar dh_auto_configure: unknown option or error during option parsing; aborting with dh_auto_configure --sourcedir foo dh_auto_configure: invalid or non-existing path to the source directory: foo Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15Lintian override: package-does-not-use-debhelper-or-cdbsAdam Borowski2-0/+5
It uses the freshest possible version of debhelper! Closes: debian/debhelper!22
2019-08-15CONTRIBUTING.md: Clarify that it is Debian's norms/rules that applyNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15CONTRIBUTING.md: Typo fix (ìn -> in)Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15CONTRIBUTING.md: Fixup a linkNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15Rewrite CONTRIBUTING.md in markdown as salsa does not render ReSTNiels Thykier1-77/+70
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15d/changelog: Describe Frank Schaefer's changesNiels Thykier1-1/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15dh_installmodules: Style fix for the regexNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-15look for .ko.(xz|bz2|gz) in addition to .koFrank Schaefer1-1/+1
2019-08-14d/changelog: Move dh_strip remark to a UNRELEASED versionNiels Thykier1-3/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-14dh_strip: Skip stripping of guile-2.2 filesNiels Thykier2-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-13dh: Remove dead variableNiels Thykier1-1/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-08-13CONTRIBUTING.rst: Fix typoSven Joachim1-1/+1