diff options
author | Niels Thykier <niels@thykier.net> | 2015-11-17 21:26:30 +0100 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-11-17 21:30:19 +0100 |
commit | 3c25542464e9c949917c921a67dbda32d55e904c (patch) | |
tree | 1ec96489172fb49c2b62e9e2d9b54f9e5534bc4c /dh_clean | |
parent | 2cb29922093a9532935302f6aefab5bd39edbe65 (diff) | |
download | debhelper-3c25542464e9c949917c921a67dbda32d55e904c.tar.gz |
dh_clean: Work around for cdbs d/compat auto-vivification
cdbs has a feature where it will create debian/compat and set its
contents to 5 if it does not exist (and DH_COMPAT does not exist).
The issue being builds generally call "clean" before "build" and as
such packages relying on this feature now FTBFS. As they were not
listed as packages in danger (lintian considered them to have compat 5
or greater), we now instate this work around to cater for them.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_clean')
-rwxr-xr-x | dh_clean | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -72,6 +72,17 @@ slash. Any content in these directories will be removed as well. =cut +if ( not -f 'debian/compat' and not $ENV{'DH_COMPAT'}) { + # Temporary work around - Permit a missing compat to work with + # cdbs's feature of auto-creating a d/compat file. + # - Auto-bump to compat 5 to match cdbs (Not that it matters a lot, + # since there is no compat conditions for 4 or less) + warning("Pretending DH_COMPAT was set to 5"); + warning(" - this is a temporary measure to avoid FTBFS in packages"); + warning(" relying on cdbs to set debian/compat to 5 during the build"); + $ENV{'DH_COMPAT'} = 5; +} + init(options => { "dirs-only" => \$dh{D_FLAG}, }); |