From 857598fc78ce8a840a32140104634af73ef4831e Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Sat, 8 Aug 2009 11:02:57 +0300 Subject: [PATCH] Use quilt.make rather than custom quilt patch implementation. --- debian/changelog | 3 ++- debian/rules | 17 +++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/debian/changelog b/debian/changelog index 20accd80a..950c077c6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,9 @@ cmake (2.6.4-2) UNRELEASED; urgency=low (Closes: #538864). * Fix bashisms in CMake scripts (Closes: #530056). * Merge in 2.6.0-6 debian/changelog. + * Use quilt.make rather than custom quilt patch implementation. - -- Modestas Vainius Sat, 08 Aug 2009 10:58:18 +0300 + -- Modestas Vainius Sat, 08 Aug 2009 11:02:22 +0300 cmake (2.6.4-1) unstable; urgency=low diff --git a/debian/rules b/debian/rules index 2531efa58..208fba347 100755 --- a/debian/rules +++ b/debian/rules @@ -1,12 +1,13 @@ #!/usr/bin/make -f +include /usr/share/quilt/quilt.make + # The next line will cause Dart to be used if it is installed... #USE_DARTP:=$(shell if [ -d /usr/share/Dart ]; then echo true; fi ) USE_DARTP:= DARCH := $(shell dpkg --print-installation-architecture) CFLAGS := -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2) -QUILT_CALL := QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null BUILD_FLAGS_FILE := build-flags.cmake # Hack for parisc64 to close bug #133696 @@ -14,14 +15,6 @@ ifeq ($(shell arch),parisc64) CFLAGS += -ffunction-sections endif -patch: patch-stamp -patch-stamp: - $(QUILT_CALL) push -a || test $$? = 2 - touch $@ - -unpatch: - $(QUILT_CALL) pop -a -R || test $$? = 2 - $(BUILD_FLAGS_FILE): touch $@ echo 'set(CMAKE_SKIP_RPATH YES CACHE BOOL "Skip rpath" FORCE)' >> $@ @@ -49,7 +42,7 @@ configure-stamp: $(BUILD_FLAGS_FILE) chmod -x Modules/*.cmake Modules/*.cmake.in Modules/*.cxx Modules/Platform/* touch $@ -build: patch-stamp configure-stamp build-stamp +build: $(QUILT_STAMPFN) configure-stamp build-stamp build-stamp: dh_testdir cd Build && $(MAKE) $(if $(USE_DARTP),Experimental && $(MAKE) ExperimentalSubmit) @@ -58,7 +51,7 @@ build-stamp: clean: unpatch dh_testdir dh_testroot - rm -rf .pc build-stamp configure-stamp patch-stamp $(BUILD_FLAGS_FILE) + rm -rf build-stamp configure-stamp $(BUILD_FLAGS_FILE) rm -rf Build dh_clean @@ -98,4 +91,4 @@ binary-arch binary-indep: build install dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch +.PHONY: build clean binary-indep binary-arch binary install configure