r56203 - /trunk/libdbi-perl/debian/rules

ntyni at users.alioth.debian.org ntyni at users.alioth.debian.org
Fri Apr 16 19:24:00 UTC 2010


Author: ntyni
Date: Fri Apr 16 19:23:43 2010
New Revision: 56203

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=56203
Log:
Require manual updates of the DBD ABI version and abort the build if
there's a mismatch.

Modified:
    trunk/libdbi-perl/debian/rules

Modified: trunk/libdbi-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbi-perl/debian/rules?rev=56203&op=diff
==============================================================================
--- trunk/libdbi-perl/debian/rules (original)
+++ trunk/libdbi-perl/debian/rules Fri Apr 16 19:23:43 2010
@@ -1,9 +1,23 @@
 #!/usr/bin/make -f
 
-DBDABI_VERSION = $(shell cpp `perl -MExtUtils::Embed -e ccopts` debian/get-dbdabi-version.cpp | sh)
+# this number comes from DBISTATE_VERSION in DBIXS.h 
+# it is used for the Provides: perl-dbdabi-XX relationship
+# it needs to be updated manually because of the implications on the archive
+#  (rebuilds of all libdbd-*-perl packages), see #577209
+
+DBDABI_VERSION = 94
+DBDABI_DETECTED_VERSION = $(shell cpp `perl -MExtUtils::Embed -e ccopts` debian/get-dbdabi-version.cpp | sh)
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+ifeq ($(DBDABI_VERSION),$(DBDABI_DETECTED_VERSION))
+	dh_auto_configure
+else
+	echo Aborting due to DBD ABI version mismatch - configured $(DBDABI_VERSION), detected $(DBDABI_DETECTED_VERSION)
+	exit 1
+endif
 
 override_dh_auto_build:
 	dh_auto_build




More information about the Pkg-perl-cvs-commits mailing list