.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "debhelper 7" .TH debhelper 7 "2022-11-26" "13.11.1~bpo11+1" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" debhelper\-compat\-upgrade\-checklist \- Upgrade checklist for supported debhelper compat levels .SH "SYNOPSIS" .IX Header "SYNOPSIS" This document is an upgrade checklist of all the supported debhelper compat levels. It also lists all the support debhelper compat levels. .PP Information about how to declare the compat level is in \*(L"\s-1COMPATIBILITY LEVELS\*(R"\s0 in \fBdebhelper\fR\|(7). .PP If you are upgrading from a (now) obsolete compat level, then please refer to \&\fBdebhelper\-obsolete\-compat\fR\|(7). .SH "DESCRIPTION" .IX Header "DESCRIPTION" .SS "Upgrade checklist for supported compatibility levels" .IX Subsection "Upgrade checklist for supported compatibility levels" These are the available compatibility levels: .IP "v15" 4 .IX Item "v15" This compatibility level is still open for development; use with caution. .Sp Changes from v14 are: .RS 4 .IP "\-" 8 The \fBdh_auto_install\fR tool no longer defaults to \fB\-\-destdir=debian/\f(BIpackage\fB\fR for source packages only producing a single binary. If this behaviour is wanted, the package should explicitly activate the \fBsingle-binary\fR dh addon (e.g., by adding \&\fBdh-sequence-single-binary\fR to \fBBuild-Depends\fR) or pass \fB\-\-destdir\fR to \&\fBdh_auto_install\fR. .Sp The rationale for this change to avoid \*(L"surprises\*(R" when adding a second binary package later. Previously, debhelper would silently change behaviour often resulting in empty binary packages being uploaded to the archive by mistake. With the new behaviour, the \fBsingle-binary\fR addon will detect the mismatch and warn the maintainer of what is about to happen. .RE .RS 4 .RE .IP "v14" 4 .IX Item "v14" This compatibility level is still open for development; use with caution. .Sp Changes from v13 are: .RS 4 .IP "\-" 8 The \fBcmake\fR buildsystem now passes \&\fB\-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON\fR to \fBcmake\fR\|(1) to avoid some reproducibility issues. .IP "\-" 8 The tool \fBdh_installsysusers\fR is now included in the default sequence. This helper tool will process systemd sysusers files. .IP "\-" 8 Use of the \fBdh_gconf\fR command in override and hook targets now causes an error. The \fBdh_gconf\fR command has been a no-op for years and was removed in debhelper 13.4. .IP "\-" 8 The \fBdh\fR sequencer will warn if the \fBsingle-binary\fR addon is implicitly activated to warn maintainers of the pending compat 15 change in \fBdh_auto_install\fR. .Sp Maintainers are urged to either explicitly activate the \fBsingle-binary\fR addon to preserve the existing behaviour (e.g., by adding \fBdh-sequence-single-binary\fR to Build-Depends), or explicitly passing \fB\-\-destdir\fR to \fBdh_auto_install\fR if used and then passing \fB\-\-without single-binary\fR to \fBdh\fR (the latter to silence the warning). .Sp The rationale for this change to avoid \*(L"surprises\*(R" when adding a second binary package later. Previously, debhelper would silently change behaviour often resulting in empty binary packages being uploaded to the archive by mistake. With the new behaviour, the \fBsingle-binary\fR addon will detect the mismatch and warn the maintainer of what is about to happen. .IP "\-" 8 The \fBdh_installalternatives\fR tool will now be run after \fBdh_link\fR rather than after \&\fBdh_installinitramfs\fR in the default \fBdh\fR sequence. .IP "\-" 8 The \fBdh_installpam\fR tool will now install \s-1PAM\s0 configuration files under \&\fI/usr/lib/pam.d/\fIpackage\fI\fR instead of \fI/etc/pam.d/\fIpackage\fI\fR. .Sp Please consider using the \*(L"rm_conffile\*(R" feature from \&\fBdh_installdeb\fR\|(1) to ensure the proper removal of previous \s-1PAM\s0 files. .IP "\-" 8 The \fBmeson+ninja\fR and \fBcmake\fR build systems now use \fBmeson install\fR and \&\fBcmake \-\-install\fR, respectively, instead of \fBninja install\fR and \fBmake install\fR in the \fBdh_auto_install\fR\|(1) call. Any override of \fBdh_auto_install\fR that passes extra parameters to the upstream build system should be reviewed. .RE .RS 4 .RE .IP "v13" 4 .IX Item "v13" This is the recommended mode of operation. .Sp Changes from v12 are: .RS 4 .IP "\-" 8 The \fBmeson+ninja\fR build system now uses \fBmeson test\fR instead of \&\fBninja test\fR when running the test suite. Any override of \&\fBdh_auto_test\fR that passes extra parameters to upstream test runner should be reviewed as \fBmeson test\fR is not command line compatible with \fBninja test\fR. .IP "\-" 8 All debhelper like tools based on the official debhelper library (including \fBdh\fR and the official \fBdh_*\fR tools) no longer accepts abbreviated command parameters. At the same time, \fBdh\fR now optimizes out calls to redundant \fBdh_*\fR helpers even when passed long command line options. .IP "\-" 8 The \s-1ELF\s0 related debhelper tools (\fBdh_dwz\fR, \fBdh_strip\fR, \&\fBdh_makeshlibs\fR, \fBdh_shlibdeps\fR) are now only run for arch dependent packages by default (i.e. they are excluded from \fB*\-indep\fR targets and are passed \fB\-a\fR by default). If you need them for \fB*\-indep\fR targets, you can add an explicit Build-Depends on \&\fBdh-sequence-elf-tools\fR. .IP "\-" 8 The third-party \fBgradle\fR build system (from \fBgradle-debian-helper\fR package) now runs the upstream-provided test suite automatically. To suppress such behavior, override \fBdh_auto_test\fR. .IP "\-" 8 The \fBdh_installman\fR tool now aborts if it sees conflicting definitions of a manpage. This typically happens if the upstream build system is installing a compressed version and the package lists an uncompressed version of the manpage in \fIdebian/\fIpackage\fI.manpages\fR. Often the easiest fix is to remove the manpage from \fIdebian/\fIpackage\fI.manpages\fR (assuming both versions are identical). .IP "\-" 8 The \fBdh_auto_*\fR helpers now reset the environment variables \fB\s-1HOME\s0\fR and common \fBXDG_*\fR variable. Please see description of the environment variables in \*(L"\s-1ENVIRONMENT\*(R"\s0 for how this is handled. .Sp \&\fIThis feature changed between debhelper 13 and debhelper 13.2.\fR .IP "\-" 8 The \fBdh\fR command will now error if an override or hook target for an obsolete command are present in \fIdebian/rules\fR (e.g. \fBoverride_dh_systemd_enable:\fR). .IP "\-" 8 The \fBdh_missing\fR command will now default to \fB\-\-fail\-missing\fR. This can be reverted to a non-fatal warning by explicitly passing \&\fB\-\-list\-missing\fR like it was in compat 12. .Sp If you do not want the warning either, please omit the call to \&\fBdh_missing\fR. If you use the \fBdh\fR command sequencer, then you can do this by inserting an empty override target in the \&\fIdebian/rules\fR file of the relevant package. As an example: .Sp .Vb 2 \& # Disable dh_missing \& override_dh_missing: .Ve .IP "\-" 8 The \fBdh\fR command sequencer now runs \fBdh_installtmpfiles\fR in the default sequence. The \fBdh_installtmpfiles\fR takes over handling of tmpfiles.d configuration files. Related functionality in \&\fBdh_installsystemd\fR is now disabled. .Sp Note that \fBdh_installtmpfiles\fR responds to \&\fIdebian/\fIpackage\fI.tmpfiles\fR where \fBdh_installsystemd\fR used a name without the trailing \*(L"s\*(R". .IP "\-" 8 Many \fBdh_*\fR tools now support limited variable expansion via the \&\fB${foo}\fR syntax. In many cases, this can be used to reference paths that contain either spaces or \fBdpkg\-architecture\fR\|(1) values. While this can reduce the need for \fBdh\-exec\fR\|(1) in some cases, it is \fBnot\fR a replacement \fBdh\-exec\fR\|(1) in general. If you need filtering, renaming, etc., the package will still need \fBdh\-exec\fR\|(1). .Sp Please see \*(L"Substitutions in debhelper config files\*(R" for syntax and available substitution variables. To \fBdh_*\fR tool writers, substitution expansion occurs as a part of the \fBfilearray\fR and \fBfiledoublearray\fR functions. .IP "\-" 8 The \fBdh\fR command sequencer will now skip all hook and override targets for \fBdh_auto_test\fR, \fBdh_dwz\fR and \fBdh_strip\fR when \fB\s-1DEB_BUILD_OPTIONS\s0\fR lists the relevant \fBnocheck\fR / \fBnostrip\fR options. .Sp Any package relying on these targets to always be run should instead move relevant logic out of those targets. E.g. non-test related packaging code from \fBoverride_dh_auto_test\fR would have to be moved to \&\fBexecute_after_dh_auto_build\fR or \fBexecute_before_dh_auto_install\fR. .IP "\-" 8 The \fBcmake\fR buildsystem now passes \fB\-DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON\fR to \fBcmake\fR\|(1) to speed up automatic installation process. If for some reason you need previous behavior, override the flag: .Sp .Vb 1 \& dh_auto_configure \-\- \-DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=OFF ... .Ve .RE .RS 4 .RE .IP "v12" 4 .IX Item "v12" Changes from v11 are: .RS 4 .IP "\-" 8 The \fBdh_makeshlibs\fR tool now generates shlibs files with versioned dependency by default. This means that \fB\-VUpstream\-Version\fR (a.k.a. \fB\-V\fR) is now the default. .Sp If an unversioned dependency in the shlibs file is wanted, this can be obtained by passing \fB\-VNone\fR instead. However, please see \&\fBdh_makeshlibs\fR\|(1) for the caveat of unversioned dependencies. .IP "\-" 8 The \fB\-s\fR (\fB\-\-same\-arch\fR) option is removed. Please use \fB\-a\fR (\fB\-\-arch\fR) instead. .IP "\-" 8 Invoking \fBdh_clean \-k\fR now causes an error instead of a deprecation warning. .IP "\-" 8 The \fB\-\-no\-restart\-on\-upgrade\fR option in \fBdh_installinit\fR has been removed. Please use the new name \fB\-\-no\-stop\-on\-upgrade\fR .IP "\-" 8 There was a bug in the \fBdoit\fR (and similar) functions from Debian::Debhelper::Dh_Lib that made them spawn a shell in one particular circumstance. This bug is now removed and will cause helpers that rely on the bug to fail with a \*(L"command not found\*(R"\-error. .IP "\-" 8 The \fB\-\-list\-missing\fR and \fB\-\-fail\-missing\fR in \fBdh_install\fR has been removed. Please use \fBdh_missing\fR and its corresponding options, which can also see the files installed by other helpers. .IP "\-" 8 The \fBdh_installinit\fR helper no longer installs configuration for the upstart init system. Instead, it will abort the build if it finds an old upstart configuration file. The error is there to remind the package maintainer to ensure the proper removal of the conffiles shipped in previous versions of the package (if any). .IP "\-" 8 The \fBdh_installdeb\fR tool will do basic validation of some \&\fBdpkg\-maintscript\-helper\fR\|(1) commands and will error out if the commands appear to be invalid. .IP "\-" 8 The \fBdh_missing\fR tool will now default to \fB\-\-list\-missing\fR. .IP "\-" 8 The \fBdh_makeshlibs\fR tool will now only pass libraries to \fBdpkg\-gensymbols\fR\|(1) if the \s-1ELF\s0 binary has a \s-1SONAME\s0 (containing \*(L".so\*(R"). .IP "\-" 8 The \fBdh_compress\fR tool no longer compresses examples (i.e. anything installed in \fI.) .IP "\-" 8 The standard sequence in \fBdh\fR now includes \fBdh_dwz\fR and \&\fBdh_installinitramfs\fR by default. This makes the \fBdwz\fR and \&\fBinstallinitramfs\fR sequences obsolete and they will now fail with an error. If you want to skip these commands, then please insert an empty override target for them in \fIdebian/rules\fR (e.g. \fIoverride_dh_dwz:\fR) .IP "\-" 8 The build systems \fBmeson\fR and \fBautoconf\fR no longer explicitly set the \fB\-\-libexecdir\fR variable and thus relies on the build system default \- which should be \fB/usr/libexec\fR (per \s-1FHS 3.0,\s0 adopted in Debian Policy 4.1.5). .Sp If a particular upstream package does not use the correct default, the parameter can often be passed manually via \fBdh_auto_configure\fR\|(1). E.g. via the following example: .Sp .Vb 2 \& override_dh_auto_configure: \& dh_auto_configure \-\- \-\-libexecdir=/usr/libexec .Ve .Sp Note the \fB\-\-\fR before the \fB\-\-libexecdir\fR parameter. .IP "\-" 8 \&\fBRetroactively removed in debhelper/13.5\fR: .Sp The \fBdh_installdeb\fR tool would no longer installs the maintainer provided \&\fIconffiles\fR file as it was deemed unnecessary. However, the \&\fBremove-on-upgrade\fR from dpkg/1.20 made the file relevant again and \&\fBdh_installdeb\fR now installs it again in compat levels 12+. .IP "\-" 8 The \fBdh_installsystemd\fR tool no longer relies on \fBdh_installinit\fR for handling systemd services that have a sysvinit alternative. Both tools must now be used in such a case to ensure the service is properly started under both sysvinit and systemd. .Sp If you have an override for \fBdh_installinit\fR (e.g. to call it with \&\fB\-\-no\-start\fR) then you will probably need one for \&\fBdh_installsystemd\fR as well now. .Sp This change makes \fBdh_installinit\fR inject a \fImisc:Pre\-Depends\fR for \&\fBinit-system-helpers (>= 1.54~)\fR. Please ensure that the package lists \fB${misc:Pre\-Depends}\fR in its \fBPre-Depends\fR field before upgrading to compat 12. .IP "\-" 8 The third-party \fBdh_golang\fR tool (from \fBdh-golang\fR package) now defaults on honoring \fB\s-1DH_GOLANG_EXCLUDES\s0\fR variable for source installation in \-dev packages and not only during the building process. Please set \&\fB\s-1DH_GOLANG_EXCLUDES_ALL\s0\fR to false to revert to the previous behaviour. See \&\fB\fBDebian::Debhelper::Buildsystem::golang\fB\|(3pm)\fR for details and examples. .IP "\-" 8 \&\fBdh_installsystemduser\fR is now included in the \fBdh\fR standard sequence by default. .IP "\-" 8 The \fBpython-distutils\fR buildsystem is now removed. Please use the third-party build system \fBpybuild\fR instead. .RE .RS 4 .RE .IP "v11" 4 .IX Item "v11" This mode is discouraged. .Sp The compat 11 is discouraged for new packages as it suffers from feature interaction between dh_installinit and dh_installsystemd causing services to not run correctly in some cases. Please consider using compatibility mode 10 or 12 instead. More details about the issue are available in Debian#887904 and . .Sp Changes from v10 are: .RS 4 .IP "\-" 8 \&\fBdh_installinit\fR no longer installs \fIservice\fR or \fItmpfile\fR files, nor generates maintainer scripts for those files. Please use the new \&\fBdh_installsystemd\fR helper. .IP "\-" 8 The \fBdh_systemd_enable\fR and \fBdh_systemd_start\fR helpers have been replaced by the new \fBdh_installsystemd\fR helper. For the same reason, the \fBsystemd\fR sequence for \fBdh\fR has also been removed. If you need to disable the \fBdh_installsystemd\fR helper tool, please use an empty override target. .Sp Please note that the \fBdh_installsystemd\fR tool has a slightly different behaviour in some cases (e.g. when using the \fB\-\-name\fR parameter). .IP "\-" 8 \&\fBdh_installdirs\fR no longer creates debian/\fIpackage\fR directories unless explicitly requested (or it has to create a subdirectory in it). .Sp The vast majority of all packages will be unaffected by this change. .IP "\-" 8 The \fBmakefile\fR buildsystem now passes \fBINSTALL=\*(L"install \&\-\-strip\-program=true\*(R"\fR to \fBmake\fR\|(1). Derivative buildsystems (e.g. \fBconfigure\fR or \fBcmake\fR) are unaffected by this change. .IP "\-" 8 The \fBautoconf\fR buildsystem now passes \fB\-\-runstatedir=/run\fR to \&\fI./configure\fR. .IP "\-" 8 The \fBcmake\fR buildsystem now passes \&\fB\-DCMAKE_INSTALL_RUNSTATEDIR=/run\fR to \fBcmake\fR\|(1). .IP "\-" 8 \&\fBdh_installman\fR will now prefer detecting the language from the path name rather than the extension. .IP "\-" 8 \&\fBdh_auto_install\fR will now only create the destination directory it needs. Previously, it would create the package build directory for all packages. This will not affect packages that only build with debhelper commands, but it may expose bugs in commands not included in debhelper. .IP "\-" 8 The helpers \fBdh_installdocs\fR, \fBdh_installexamples\fR, \fBdh_installinfo\fR, and \fBdh_installman\fR now error out if their config has a pattern that does not match anything or reference a path that does not exist. .Sp Known exceptions include building with the \fBnodoc\fR profile, where the above tools will silently permit failed matches where the patterns are used to specify documentation. .IP "\-" 8 The helpers \fBdh_installdocs\fR, \fBdh_installexamples\fR, \fBdh_installinfo\fR, and \fBdh_installman\fR now accept the parameter \fB\-\-sourcedir\fR with same meaning as \fBdh_install\fR. Furthermore, they now also fall back to \&\fIdebian/tmp\fR like \fBdh_install\fR. .Sp Migration note: A bug in debhelper 11 up to 11.1.5 made \&\fBdh_installinfo\fR incorrectly ignore \fB\-\-sourcedir\fR. .IP "\-" 8 The \fBperl-makemaker\fR and \fBperl-build\fR build systems no longer pass \&\fB\-I.\fR to perl. Packages that still need this behaviour can emulate it by using the \fB\s-1PERL5LIB\s0\fR environment variable. E.g. by adding \&\fBexport PERL5LIB=.\fR in their debian/rules file (or similar). .IP "\-" 8 The \fB\s-1PERL_USE_UNSAFE_INC\s0\fR environment variable is no longer set by \&\fBdh\fR or any of the \fBdh_auto_*\fR tools. It was added as a temporary work around to avoid a lot of packages failing to build at the same time. .Sp Note this item will eventually become obsolete as upstream intends to drop support for the \fB\s-1PERL_USE_UNSAFE_INC\s0\fR environment variable. When perl drops support for it, then this variable will be removed retroactively from existing compat levels as well. .IP "\-" 8 The \fBdh_makeshlibs\fR helper will now exit with an error if objdump returns a non-zero exit from analysing a given file. .IP "\-" 8 The \fBdh_installdocs\fR and \fBdh_installexamples\fR tools may now install \&\fImost\fR of the documentation in a different path to comply with the recommendation from Debian policy ยง12.3 (since version 3.9.7). .Sp Note that if a given source package only contains a single binary package in \fIdebian/control\fR or none of the packages are \fI\-doc\fR packages, then this change is not relevant for that source package and you can skip to the next change. .Sp By default, these tools will now attempt to determine a \*(L"main package for the documentation\*(R" (called a \fIdoc-main-package\fR from here on) for every \fI\-doc\fR package. If they find such a \fIdoc-main-package\fR, they will now install the documentation into the path \fI/usr/share/doc/\fIdoc-main-package\fI\fR in the given doc package. I.e. the path can change but the documentation is still shipped in the \&\fI\-doc\fR package. .Sp The \fB\-\-doc\-main\-package\fR option can be used when the auto-detection is insufficient or to reset the path to its previous value if there is a reason to diverge from Debian policy recommendation. .Sp Some documentation will not be affected by this change. These exceptions include the copyright file, changelog files, \s-1README\s0.Debian, etc. These files will still be installed in the path \fI/usr/share/doc/\fIpackage\fI\fR. .IP "\-" 8 The \fBdh_strip\fR and \fBdh_shlibdeps\fR tools no longer uses filename patterns to determine which files to process. Instead, they open the file and look for an \s-1ELF\s0 header to determine if a given file is an shared object or an \s-1ELF\s0 executable. .Sp This change may cause the tools to process more files than previously. .RE .RS 4 .RE .IP "v10" 4 .IX Item "v10" Changes from v9 are: .RS 4 .IP "\-" 8 \&\fBdh_installinit\fR will no longer install a file named debian/\fIpackage\fR as an init script. .IP "\-" 8 \&\fBdh_installdocs\fR will error out if it detects links created with \&\-\-link\-doc between packages of architecture \*(L"all\*(R" and non\-\*(L"all\*(R" as it breaks binNMUs. .IP "\-" 8 \&\fBdh_installdeb\fR no longer installs a maintainer-provided debian/\fIpackage\fR.shlibs file. This is now done by \fBdh_makeshlibs\fR instead. .IP "\-" 8 \&\fBdh_installwm\fR refuses to create a broken package if no man page can be found (required to register for the x\-window-manager alternative). .IP "\-" 8 Debhelper will default to \fB\-\-parallel\fR for all buildsystems that support parallel building. This can be disabled by using either \&\fB\-\-no\-parallel\fR or passing \fB\-\-max\-parallel\fR with a value of 1. .IP "\-" 8 The \fBdh\fR command will not accept any of the deprecated \*(L"manual sequence control\*(R" parameters (\fB\-\-before\fR, \fB\-\-after\fR, etc.). Please use override targets instead. .Sp \&\fBRetroactively applied to earlier compat levels\fR: \fBdh\fR no longer accepts any of these since debhelper/12.4. .IP "\-" 8 The \fBdh\fR command will no longer use log files to track which commands have been run. The \fBdh\fR command \fIstill\fR keeps track of whether it already ran the \*(L"build\*(R" sequence and skip it if it did. .Sp The main effects of this are: .RS 8 .IP "\-" 4 With this, it is now easier to debug the \fIinstall\fR or/and \fIbinary\fR sequences because they can now trivially be re-run (without having to do a full \*(L"clean and rebuild\*(R" cycle) .IP "\-" 4 The main caveat is that \fBdh_*\fR now only keeps track of what happened in a single override target. When all the calls to a given \fBdh_cmd\fR command happens in the same override target everything will work as before. .Sp Example of where it can go wrong: .Sp .Vb 2 \& override_dh_foo: \& dh_foo \-pmy\-pkg \& \& override_dh_bar: \& dh_bar \& dh_foo \-\-remaining .Ve .Sp In this case, the call to \fBdh_foo \-\-remaining\fR will \fIalso\fR include \&\fImy-pkg\fR, since \fBdh_foo \-pmy\-pkg\fR was run in a separate override target. This issue is not limited to \fB\-\-remaining\fR, but also includes \&\fB\-a\fR, \fB\-i\fR, etc. .RE .RS 8 .RE .IP "\-" 8 The \fBdh_installdeb\fR command now shell-escapes the lines in the \&\fImaintscript\fR config file. This was the original intent but it did not work properly and packages have begun to rely on the incomplete shell escaping (e.g. quoting file names). .IP "\-" 8 The \fBdh_installinit\fR command now defaults to \&\fB\-\-restart\-after\-upgrade\fR. For packages needing the previous behaviour, please use \fB\-\-no\-restart\-after\-upgrade\fR. .IP "\-" 8 The \fBautoreconf\fR sequence is now enabled by default. Please pass \&\fB\-\-without autoreconf\fR to \fBdh\fR if this is not desirable for a given package .IP "\-" 8 The \fBsystemd\fR sequence is now enabled by default. Please pass \&\fB\-\-without systemd\fR to \fBdh\fR if this is not desirable for a given package. .IP "\-" 8 \&\fBRetroactively removed\fR: \fBdh\fR no longer creates the package build directory when skipping running debhelper commands. This will not affect packages that only build with debhelper commands, but it may expose bugs in commands not included in debhelper. .Sp This compatibility feature had a bug since its inception in debhelper/9.20130516 that made it fail to apply in compat 9 and earlier. As there has been no reports of issues caused by this bug in those ~5 years, this item have been removed rather than fixed. .RE .RS 4 .RE .IP "v9" 4 .IX Item "v9" Changes from v8 are: .RS 4 .IP "\-" 8 Multiarch support. In particular, \fBdh_auto_configure\fR passes multiarch directories to autoconf in \-\-libdir and \-\-libexecdir. .IP "\-" 8 dh is aware of the usual dependencies between targets in debian/rules. So, \*(L"dh binary\*(R" will run any build, build-arch, build-indep, install, etc targets that exist in the rules file. There's no need to define an explicit binary target with explicit dependencies on the other targets. .IP "\-" 8 \&\fBdh_strip\fR compresses debugging symbol files to reduce the installed size of \-dbg packages. .IP "\-" 8 \&\fBdh_auto_configure\fR does not include the source package name in \-\-libexecdir when using autoconf. .IP "\-" 8 \&\fBdh\fR does not default to enabling \-\-with=python\-support .Sp (Obsolete: As the \fBdh_pysupport\fR tool was removed from Debian stretch. Since debhelper/10.3, \fBdh\fR no longer enables this sequence add-on regardless of compat level) .IP "\-" 8 All of the \fBdh_auto_\fR\fI*\fR debhelper programs and \fBdh\fR set environment variables listed by \fBdpkg-buildflags\fR, unless they are already set. .IP "\-" 8 \&\fBdh_auto_configure\fR passes \fBdpkg-buildflags\fR \s-1CFLAGS, CPPFLAGS,\s0 and \&\s-1LDFLAGS\s0 to perl \fIMakefile.PL\fR and \fIBuild.PL\fR .IP "\-" 8 \&\fBdh_strip\fR puts separated debug symbols in a location based on their build-id. .IP "\-" 8 Executable debhelper config files are run and their output used as the configuration. .RE .RS 4 .Sp This mode is deprecated. .RE .IP "v8" 4 .IX Item "v8" Changes from v7 are: .RS 4 .IP "\-" 8 Commands will fail rather than warning when they are passed unknown options. .IP "\-" 8 \&\fBdh_makeshlibs\fR will run \fBdpkg-gensymbols\fR on all shared libraries that it generates shlibs files for. So \fB\-X\fR can be used to exclude libraries. Also, libraries in unusual locations that \fBdpkg-gensymbols\fR would not have processed before will be passed to it, a behavior change that can cause some packages to fail to build. .IP "\-" 8 \&\fBdh\fR requires the sequence to run be specified as the first parameter, and any switches come after it. Ie, use "\fBdh $@ \-\-foo\fR\*(L", not \*(R"\fBdh \-\-foo $@\fR". .IP "\-" 8 \&\fBdh_auto_\fR\fI*\fR prefer to use Perl's \fBModule::Build\fR in preference to \fIMakefile.PL\fR. .RE .RS 4 .Sp This mode is deprecated. .RE .IP "v7" 4 .IX Item "v7" This mode is deprecated. .Sp This is the lowest supported compatibility level. .Sp If you are upgrading from an earlier compatibility level, please review \fBdebhelper\-obsolete\-compat\fR\|(7). .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\fBdebhelper\-obsolete\-compat\fR\|(7)" 4 .IX Item "debhelper-obsolete-compat" Upgrading from a (now) obsolete compatibility level? This document covers the upgrade checklist up to the earliest supported level. .IP "\fBdebhelper\fR\|(7)" 4 .IX Item "debhelper" General information about the debhelper framework. This document also covers how to declare your chosen debhelper compat level. .SH "AUTHORS" .IX Header "AUTHORS" Niels Thykier .PP Joey Hess