summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2016-01-03 15:10:05 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-03 15:10:05 +0100
commit084faf6a41eaf7f0fb52c0210b0cc7fbf22a7ac6 (patch)
tree2b067fbc1ac66fd24bc39e2bb8a84f15bd113b57 /debian/rules
parent59f1f42b7507137a10e1dae0636cd3a020a06a0e (diff)
Allow building without libgtest-dev under <nocheck> build profile
I'd like to avoid pulling libgtest-dev into the bootstrap set. Fortunately, libgtest-dev is only used for testing apt and apt correctly implements DEB_BUILD_OPTIONS=nocheck now. So this bug is about getting rid of the Build-Depends. Simply removing it (by adding a build profile) is not sufficient however as configure fails hard, so an additional bit is necessary to cover for that. Closes: #809726
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index c8e7cb285..ce7d19dec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -60,6 +60,11 @@ ifeq ($(words $(BLD)),0)
override BLD := ./build
endif
+# When building without <nocheck>, the header is available and thus the test is
+# successful. When building with <nocheck>, the header is missing, but we still
+# pretend it to be available, because configure would fail otherwise.
+export ac_cv_header_gtest_gtest_h=yes
+
# APT Programs in apt-utils
APT_UTILS=ftparchive sortpkgs extracttemplates