summaryrefslogtreecommitdiff
path: root/dh
AgeCommit message (Collapse)AuthorFilesLines
2017-06-26Avoid fork+exec for rm -f and ln -s in non-deprecated toolsNiels Thykier1-1/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04Revert 80c955221e83327efb984845f59648678c729978Niels Thykier1-10/+8
It made dh skip "-arch" and "-indep" targets. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04include present/wanted architecture in error messageMichael Stapelberg1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-05-06Remove remains of dh_pysupportNiels Thykier1-7/+1
There is no point in loading a sequence that conditionally adds a tool that no longer exists. Just give a deprecation warning for people still explicitly loading it and drop the rest. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-10pkgfile: Create a "secret" bulk check call for dhNiels Thykier1-3/+2
With "enough" packages, pkgfile is still a very expensive part of dh. Mostly due to the can_skip check which often need to call pkgfile to determine if a helper can be skipped. By doing a "bulk check" we can reduce that overhead by about roughly 50% (20-25% of dh's total runtime). Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-10dh: Juggle some loops to move invariants outNiels Thykier1-11/+12
It does not matter that much for actual performance, but it does seem like it under Devel::NYTProf. By juggling these loops around, we avoid some minor unnecessary work and Devel::NYTProf now produces more accurate reports. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-10dh: Avoid unnecessary work for empty overridesNiels Thykier1-10/+12
Save an inner loop over all packages for empty overrides. This makes empty overrides a lot cheaper when there are many packages. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-10pkgfile: Attempt to make it scale better for more pkgsNiels Thykier1-0/+5
Each time pkgfile is called, it will glob the debian/ dir (with a filter). Obviously this adds up, but unfortunately, glob is a lot cheaper in some cases than calling buildarch()/buildos(), which requires Dpkg::Arch. To solve this, we implement a cache of the globbing so we at most glob once per file name. Depending on that result, we will now unconditionally check for architecture qualified files or not. This should make both cases faster for 2+ packages. It should also apply to dh when checking if it can skip a command. When testing about 500 empty "transitional" packages, we save about 7-8% run time for dh_install. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh: Include dh_missing in the sequence after dh_fixpermsNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-01-17dh: Avoid repeating added build commands after "dh_auto_test"Niels Thykier1-1/+12
This fixes a bug, where dh would replay a command added to the "build", "build-arch" or "build-indep" sequences (via --with $ADD_ON) in the binary sequences. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-01-12dh: Show when running the create-stamp "command"Niels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-22Make the build-stamp optional via a build-stamp sequenceNiels Thykier1-3/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-22dh: Factor argument unpackingNiels Thykier1-28/+19
Gpb-Dch: Ignore Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02dh: Remove logs before and not after the override targetNiels Thykier1-1/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-09Enable systemd sequence in compat 10Niels Thykier1-3/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-09Enable systemd addon by default in compat level 11Michael Biebl1-0/+4
2016-05-31dh: Update the documentation a bitNiels Thykier1-18/+17
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-16Move remark to the right --list optionNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-05dh: Invoke inhibit_log() earlier for --help/--listNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02dh: Stricter handling of unknown NOOP promisesNiels Thykier1-4/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02dh: Fix off-by-one in compat conditionNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02RUn dh-autoreconf seq. by default in compat 10Niels Thykier1-0/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02dh,d/rules: Use override targets to avoid B-DsNiels Thykier1-15/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-21dh: filter duplicate entries in stamp fileNiels Thykier1-3/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-22dh: No stamp file with --no-actNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-14Add changes missing in the prev. commitNiels Thykier1-1/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-13dh_compile_manifest: New helper toolNiels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-10dh_update_autotools_config: New helper to update config.{guess,sub}Niels Thykier1-0/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-09dh+compat 10: Drop sequence ctrl and logsNiels Thykier1-6/+52
In compat 10, drop the manual sequence ctrl arguments and the debhelper sequence logs. Instead do a simple stamp file to skip the build part if already done. The primary advantage is that now the binary target can trivially be re-run, which makes debugging easier/faster. Closes: #510855 Signed-off-by: Niels Thykier <niels@thykier.net>
2015-09-06Default to --parallel in compat 10Niels Thykier1-7/+21
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-22dh: Fix bug with calling optional commandsNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-20dh: Allow dh_strip_nondeterminism to be absentNiels Thykier1-3/+17
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-20Run dh_strip_nondeterminism before dh_compressAndrew Ayer1-0/+1
dh_strip_nondeterminism is a helper which will normalize files that captures aspect of the build environment (e.g. timestamps or file order) and make the build process non-deterministic. It needs to be run after all files are built, but before they get compressed, so just before `dh_compress` looks like a good place. See https://wiki.debian.org/ReproducibleBuilds for more information on reproducible builds in Debian. Closes: #759895
2015-07-01dh: Optimise out --parallel when it is unnecessaryNiels Thykier1-0/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-04-05dh_installwm: call after dh_link in dh call sequence, error out in compat 10 ↵Bernhard R. Link1-1/+1
if there is no man page Move dh_installwm after dh_link, so that a manpage created by dh_link can be found. Also error out in compat 10 if no manpage is found.
2015-01-07add DH_QUIET environment variableBernhard R. Link1-1/+3
Add a DH_QUIET environment variable to make debhelper more silent if set (unless DH_VERBOSE is set). Add new helper functions print_and_doit, print_and_doint_noerror, and nonquiet_print. If DH_QUIET is set, disable printing of dh subcommands to be run. Describe effects DH_QUIET should have in doc/PROGRAMMING.
2015-01-01Add editor hints to the end of all perl modules and scriptsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-02-04dh: Reject unknown parameters that are not dashed command-line parameters ↵Joey Hess1-0/+3
intended to be passed on to debhelper commands. Closes: #737635 Note that dh build -n foo bar will pass -nfoobar to the debhelper command. I did not try to change that, as it would add significant complication.
2013-08-29dh: Call dh_installxfonts after dh_link, so that it will notice fonts ↵Joey Hess1-1/+1
installed via symlinks. Closes: #721264
2013-05-09dh: As a workaround for anything not in debhelper that may rely on debhelper ↵Joey Hess1-1/+14
command that is now skipped creating the package build directory, the directory is created when a command is skipped. This workaround is disabled in compat level 10. Closes: #707336
2013-05-05bugfixJoey Hess1-1/+1
2013-05-05whitelist a few user-specified optionsJoey Hess1-1/+2
2013-05-05DH_OPTIONS also disables skippingJoey Hess1-1/+2
2013-05-057.0.50 is even in oldstable, no need for a depJoey Hess1-2/+0
2013-05-05dh: Skips running commands that it can tell do nothing.Joey Hess1-0/+53
This is determined by the presence of special PROMISE directives within commands that provide a high-level description of the command. Note that when dh is passed additional debhelper options, it cannot tell if these change the behavior of commands, and so it stops skipping any commands.
2012-06-07dh: When there's an -indep override target without -arch, or vice versa, ↵Joey Hess1-0/+10
avoid acting on packages covered by the override target when running the command for packages not covered by it. Closes: #676462 Hmm, this is technically a behavior change, but hopefully not one anything could sanely depend on working like it used to.
2012-05-19debhelper: Fix minor source comment typos.Simon Ruderich1-2/+2
2012-01-15--without foo,bar now supportedJoey Hess1-2/+5
2012-01-15spelingJoey Hess1-1/+1