From 50a43a92798396fc93afc6362eb196b886f49ad6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 16 Oct 2017 10:15:51 +0100 Subject: [PATCH] Disable gtk-doc if we are not going to build libostree-doc In particular this affects architecture-specific builds. Note that it remains in Build-Depends (not Build-Depends-Indep) because it is also needed for gtkdocize during dh_autoreconf. --- debian/changelog | 9 +++++++++ debian/rules | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2957ad97..1aafe200 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +ostree (2017.12-2) UNRELEASED; urgency=medium + + * Disable gtk-doc if we are not going to build libostree-doc, + in particular for architecture-specific builds. Note that it remains + in Build-Depends (not Build-Depends-Indep) because it is also needed + for gtkdocize during dh_autoreconf. + + -- Simon McVittie Mon, 16 Oct 2017 10:13:54 +0100 + ostree (2017.12-1) unstable; urgency=medium * New upstream release diff --git a/debian/rules b/debian/rules index 7c76a019..9e7236f3 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # Some tests assert that we will see English strings export LC_ALL=C.UTF-8 +binaries := $(shell dh_listpackages) + %: dh $@ --with=gir @@ -21,11 +23,15 @@ configure_options = \ --with-systemdsystemunitdir=/lib/systemd/system \ $(NULL) -ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) +ifneq ($(filter libostree-doc,$(binaries)),) configure_options += --enable-gtk-doc -configure_options += --enable-man else configure_options += --disable-gtk-doc +endif + +ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) +configure_options += --enable-man +else configure_options += --disable-man endif