summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2018-08-04autoconf,meson: Use usr/libexec dir by default [c12]Niels Thykier2-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-04cmake: Explicitly set CMAKE_INSTALL_LIBDIRNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-30Dh_Lib.pm: Fix comment handling at EOF in d/controlNiels Thykier1-1/+8
A trivial work around for this bug is to add an empty line at the end of the file. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-30Restore glob error handling for documentation dh_* toolsNiels Thykier1-1/+15
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-24Dh_Lib: Correct assignment of $build_profilesNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Ensure (X-)Package-Type appear at most once per binaryNiels Thykier1-0/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Align binary package stanza parser with deb822 rulesNiels Thykier1-42/+74
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Align source stanza parser with deb822 rulesNiels Thykier1-22/+52
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Ensure package names are validNiels Thykier1-0/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Avoid forking a shell for executable dh config filesNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23debhelper.pod: Make a dedicated subsection to exec config filesNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Provide a more helpful error message for exec-config filesNiels Thykier1-1/+23
Apparently the exec-bit is set by default in WSL, so provide a more helpful error message when debhelper encounters a config file with the exec-bit that does not have a #!-line (and is not an ELF binary). Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-23Dh_Lib: Allow empty warning messages (for formatting purposes)Niels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-10cmake.pm: Place path-to-source at end of command line invocation.Roberto C. Sánchez1-1/+1
This allows params in debian/rules of the form "-D FOO=BAR" instead of only "-DFOO=BAR" (without quotes). cmake permits both forms, but mishandles the directory if any of the params contain a space between the -D and the var/value. If the directory is last, it always works.
2018-05-20Dh_Lib: Remove warning for using B-D on debhelper-compatNiels Thykier1-3/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-20Dh_Lib: Fix typo in a warning messageNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-20python_distutils.pm: Deprecate with removal in compat 12Niels Thykier1-2/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-20Dh_Lib: Permit 0 or more leading space in the Section fieldNiels Thykier1-9/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-19makefile.pm: Revert use of -O for nowNiels Thykier1-3/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-19Make Buildsystem.pm independent of Dh_Buildsystems.pmNiels Thykier2-21/+24
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-19Dh_Buildsystems: Move the _insert_cmd_opts callNiels Thykier1-5/+5
... to the callers of create_buildsystem_instance. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-19Dh_Buildsystems.pm: Split create_buildsystem_instance into twoNiels Thykier1-1/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-19Use a new sequence to toggle dh_installinitramfs in c11 and olderNiels Thykier1-0/+14
Then we can make dh_installinitramfs do the same in all compat levels and people can simply opt-in with a "--with installinitramfs" in older compat levels. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-18Dh_Lib.pm: Add "is_empty_dir"Niels Thykier1-0/+18
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-18Dh_Lib.pm: Remove unused functionNiels Thykier2-22/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-18Dh_Lib: Reorganise importsNiels Thykier1-30/+133
Handling merge conflicts in @EXPORT has gotten old. With this patch, future rebases/merges are less likely to see merge conflicts because another branch/commit introduced a new exported symbol. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-10Enable dwz in c12 by defaultNiels Thykier1-2/+4
Closes: nthykier/debhelper#3 Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-10Allow whitespace around the debhelper-compat B-D.Peter Pentchev1-1/+2
This allows a newline before or after the debhelper-compat dependency, e.g. when all the dependencies are listed on separate rows. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-10Lay the groundwork for testing debhelper-compat.Peter Pentchev1-1/+14
Simulate gen-provides's enumeration of the supported compat levels in the Test::DH module's non_deprecated_compat_levels() function. Add the resetcompat() and resetpackages() testing aids to Dh_Lib. Silence the "debhelper-compat is experimental" warning during testing. Add the debhelper-compat/syntax.t test. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-03rename_path: Fall back to mv when errno is EXDEVNiels Thykier1-3/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-28cmake: honour CC/CXX during native buildsHelmut Grohne1-6/+8
2018-04-09qmake.pm: Let qmake cross wrapper set most of cross-build optionsDmitry Shachnev1-52/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-08Buildsystem.pm: Set target buildsystem earlierNiels Thykier1-12/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-08Buildsystem.pm: Fix typo in commentNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-08Buildsystem.pm: Fix use of undefined variableNiels Thykier1-2/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-08Buildsystems: Avoid picking a redundant build system during cleanNiels Thykier4-5/+15
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-08Buildsystem: Pass more methods to target buildsystemsNiels Thykier1-0/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-07Buildsystem.pm: Improve error messageNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-07Buildsystem.pm: Add a getter for targetbuildsystemNiels Thykier4-12/+19
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-06cmake: Support ninja backendNiels Thykier2-1/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-06Rewrite build system to support a "target build system"Niels Thykier5-40/+209
Several of the build systems consists of a configure step that generates a buildscript for another build tool. Notable examples being "cmake" and "meson", which even supports multiple backend tools. This change makes it natively possible for debhelper to support such build systems with multiple backends. Note that only build systems with multiple backends have been rewritten. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-05Dh_Lib.pm: Properly handle packages with version "0"Niels Thykier1-5/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-04-04makefile: Use -Oline instead of -ONiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-29Dh_Lib: Avoid load-time dependency on d/controlNiels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-29make_symlink: Fix corner cases for link namesNiels Thykier1-5/+13
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-07SequencerUtil: Always inline when asked to always inlineNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-03-07Move sub from dh to D::DH::SequencerUtilNiels Thykier1-0/+21
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-26Dh_Lib: Fix invalid parameter for package_cross_typeNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-25Dh_Lib: add warning for d-compat B-Ds being experimentalNiels Thykier1-0/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-24Dh_Lib: Ensure that debhelper-compat is in Build-DependsNiels Thykier1-36/+47
Signed-off-by: Niels Thykier <niels@thykier.net>