Source: cmake Version: 2.8.12.1-1.1 Severity: wishlist Tags: patch
As the subject says: the attached patch allows for bootstrapping cmake without the Qt cmake-gui, as cmake is needed in the Debian bootstrap process significantly earlier than Qt would be available. Also, Debian curl is somewhat nontrivial to bootstrap at the point cmake is needed (due to the Build-Depends on libkrb5-dev and libldap2-dev), so I've also made the bootstrap compile using the included version. -- Daniel Schepler
diff -urN cmake-2.8.12.1.old/debian/rules cmake-2.8.12.1/debian/rules --- cmake-2.8.12.1.old/debian/rules 2013-12-15 02:32:14.000000000 -0800 +++ cmake-2.8.12.1/debian/rules 2014-02-08 00:09:59.953049340 -0800 @@ -25,19 +25,29 @@ $(call $(flag_action),CMAKE_CXX_FLAGS,"$(CFLAGS)","C++ flags") $(call $(flag_action),CMAKE_SKIP_BOOTSTRAP_TEST,ON,"Skip BootstrapTest") $(call $(flag_action),BUILD_CursesDialog,ON,"Build curses GUI") +ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) $(call $(flag_action),BUILD_QtDialog,ON,"Build Qt4 GUI") +endif # $(call $(flag_action),BUILD_DOCUMENTATION,ON) +ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) $(call $(flag_action),CMAKE_USE_SYSTEM_LIBARCHIVE,ON) +endif $(call $(flag_action),CMAKE_USE_SYSTEM_BZIP2,ON) $(BUILD_FLAGS_FILE): flag_action := set_build_flag verify-build-flags: flag_action := verify_build_flag .PHONY: verify-build-flags +ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) +system_libs := --system-libs +else +system_libs := --system-libs --no-system-curl +endif + override_dh_auto_configure: $(BUILD_FLAGS_FILE) rm -rf Build && mkdir -p Build cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \ - --init=../$(BUILD_FLAGS_FILE) --system-libs $(CONFIGURE_PARALLEL) \ + --init=../$(BUILD_FLAGS_FILE) $(system_libs) $(CONFIGURE_PARALLEL) \ $(BOOTSTRAP_PARALLEL) --verbose override_dh_auto_test: @@ -51,6 +61,10 @@ dh_installdocs --link-doc=cmake-data %: +ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) dh $@ --with=bash-completion --parallel --builddirectory=Build --dbg-package=cmake-dbg +else + dh $@ --with=bash-completion --parallel --builddirectory=Build --dbg-package=cmake-dbg -Ncmake-qt-gui +endif .PHONY: override_dh_auto_configure override_dh_auto_clean