Hi Sean,

On Monday 21 May 2007 23:38, sean finney wrote:
> if you like, i'm all for shipping a debian/rules that has some kind of
> test for "keep abi compatibility" mode, which would disable such
> patches... as long as someone else is willing to do the footwork and
> supply an initial patch.

the following patch adds a switch to debian/rules, to disbale incompatible 
extentions (atm only LFS). Was this your intention?

With kind regards, Jan.
-- 
Never write mail to <[EMAIL PROTECTED]>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
diff -Nur php5-5.2.2.orig/debian/rules php5-5.2.2/debian/rules
--- php5-5.2.2.orig/debian/rules	2007-05-22 13:48:22.000000000 +0200
+++ php5-5.2.2/debian/rules	2007-05-22 14:08:02.000000000 +0200
@@ -15,6 +15,10 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
+# Set this flag to 'yes' if you want to disable all modifications breaking abi 
+# compatibility to upstream
+PHP5_COMPAT=no
+
 DEB_HOST_GNU_TYPE    ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH   ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
@@ -30,7 +34,9 @@
 PROG_SENDMAIL = /usr/sbin/sendmail
 CFLAGS = -O2 -Wall -fsigned-char -fno-strict-aliasing 
 # LFS support
-CFLAGS += $(shell getconf LFS_CFLAGS)
+ifneq (yes,$(PHP5_COMPAT))
+  CFLAGS += $(shell getconf LFS_CFLAGS)
+endif
 
 # Enable IEEE-conformant floating point math on alphas (not the default)
 ifeq (alpha-linux,$(PHP5_HOST_GNU_TYPE))

Attachment: pgpLNZzg28C40.pgp
Description: PGP signature

Reply via email to