Package: qdbm Version: 1.8.78-1 Severity: wishlist Tags: patch Hi,
could it be possible to support nocheck in DEB_BUILD_OPTIONS, as also recommended in ยง4.9.1 of Policy? Attached there is a patch for it (can be improved/changed/etc at will, of course). Thanks, -- Pino
--- a/debian/rules +++ b/debian/rules @@ -33,6 +33,12 @@ CFLAGS += -O2 endif +ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + WITH_TESTS = +else + WITH_TESTS = y +endif + CONFIGURE_VARS = CFLAGS="$(CFLAGS)" CPPFLAGS="" CONFIGURE_SWITCHES = --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ @@ -64,23 +70,38 @@ autoconf mkdir with-gdbm && cp qdbm.* *ake* config* *.c *.h with-gdbm/ $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) --disable-gdbm - $(MAKE) && $(MAKE) check + $(MAKE) +ifneq "$(WITH_TESTS)" "" + $(MAKE) check +endif #cd with-gdbm && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) #cd with-gdbm && $(MAKE) && $(MAKE) check cd cgi && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) cd cgi && $(MAKE) cd plus && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) - cd plus && $(MAKE) && $(MAKE) check + cd plus && $(MAKE) +ifneq "$(WITH_TESTS)" "" + cd plus && $(MAKE) check +endif cd perl && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) - cd perl && $(MAKE) && $(MAKE) check + cd perl && $(MAKE) +ifneq "$(WITH_TESTS)" "" + cd perl && $(MAKE) check +endif touch build-stamp build-ruby-stamp: build-stamp cp -pR ruby ruby19 && \ cd ruby && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) - export RUBY=/usr/bin/ruby1.8 && cd ruby && $(MAKE) && $(MAKE) check + export RUBY=/usr/bin/ruby1.8 && cd ruby && $(MAKE) +ifneq "$(WITH_TESTS)" "" + export RUBY=/usr/bin/ruby1.8 && cd ruby && $(MAKE) check +endif cd ruby19 && $(CONFIGURE_VARS) ./configure $(CONFIGURE_SWITCHES) - export RUBY=/usr/bin/ruby1.9.1 && cd ruby19 && $(MAKE) && $(MAKE) check + export RUBY=/usr/bin/ruby1.9.1 && cd ruby19 && $(MAKE) +ifneq "$(WITH_TESTS)" "" + export RUBY=/usr/bin/ruby1.9.1 && cd ruby19 && $(MAKE) check +endif touch build-ruby-stamp build-java-stamp: build-stamp

