]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
debian: Generate .gitcensus instead of .census (Closes: #999743)
authorBastian Germann <bage@debian.org>
Mon, 2 May 2022 23:22:52 +0000 (19:22 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 2 May 2022 23:22:52 +0000 (19:22 -0400)
Fix the Debian build outside a git tree (e.g., Debian archive builds) by
creating an empty .gitcensus instead of .census file on config.

Signed-off-by: Bastian Germann <bage@debian.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
debian/rules

index 615289b41a6cdf30a66534f1eb3f9c6b5585f058..6d5b82a87d9848cbe32992f51357457927f03570 100755 (executable)
@@ -43,15 +43,15 @@ built: dibuild config
        $(MAKE) $(PMAKEFLAGS) default
        touch built
 
-config: .census
-.census:
+config: .gitcensus
+.gitcensus:
        @echo "== dpkg-buildpackage: configure" 1>&2
        $(checkdir)
        AUTOHEADER=/bin/true dh_autoreconf
        dh_update_autotools_config
        $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.h
        cp -f include/install-sh .
-       touch .census
+       touch .gitcensus
 
 dibuild:
        $(checkdir)
@@ -72,7 +72,7 @@ dibuild:
 clean:
        @echo "== dpkg-buildpackage: clean" 1>&2
        $(checkdir)
-       -rm -f built .census mkfs/mkfs.xfs-$(bootpkg)
+       -rm -f built .gitcensus mkfs/mkfs.xfs-$(bootpkg)
        $(MAKE) distclean
        -rm -rf $(dirme) $(dirdev) $(dirdi)
        -rm -f debian/*substvars debian/files* debian/*.debhelper