Attached is a patch that will correct the problem of using backticks
within a Makefile that is processed by make. This patch was against the
current version in unstable (0.0.11-1), but should apply to the version
that this bugs was filed against (0.0.10-1).
--- /usr/share/dh-make-php/pear.template/rules.old	2005-10-04 07:49:17.000000000 -0500
+++ /usr/share/dh-make-php/pear.template/rules	2005-11-14 15:14:15.139043378 -0600
@@ -7,10 +7,10 @@
 
 PEAR_PKG_NAME=##pearpkgname##
 PACKAGE_NAME=##packagename##
-PEAR=PHP_PEAR_PHP_BIN=/usr/bin/php /usr/bin/pear
-PEAR_PHP_DIR=`$(PEAR) config-get php_dir|sed -e 's/php_dir=//'`
-PEAR_DOC_DIR=`$(PEAR) config-get doc_dir|sed -e 's/doc_dir=//'`
-SOURCE_DIR=`ls -d $(PEAR_PKG_NAME)-*`
+PEAR="PHP_PEAR_PHP_BIN=/usr/bin/php /usr/bin/pear"
+PEAR_PHP_DIR=$(shell $(PEAR) config-get php_dir)
+PEAR_DOC_DIR=$(shell $(PEAR) config-get doc_dir)
+SOURCE_DIR=$(shell ls -d $(PEAR_NAME)-*)
 
 configure: configure-stamp
 configure-stamp:
@@ -48,7 +48,7 @@
 	dh_clean -k
 	dh_installdirs
 
-	# Add here commands to install the package into debian/$PACKAGE_NAME.
+	# Add here commands to install the package into debian/$(PACKAGE_NAME).
 	$(PEAR) install --nodeps -R debian/$(PACKAGE_NAME) $(SOURCE_DIR)/package.xml
 	rm -f debian/pearrc
 	rm -f debian/$(PACKAGE_NAME)$(PEAR_PHP_DIR)/.lock
--- /usr/share/dh-make-php/pecl.template/rules.old	2005-10-04 07:49:17.000000000 -0500
+++ /usr/share/dh-make-php/pecl.template/rules	2005-11-14 15:14:24.574264266 -0600
@@ -25,7 +25,8 @@
 BIN_PACKAGE_NAME=##packageprefix##$*-##peclpackagename##
 PHPIZE=/usr/bin/phpize
 PHPCONFIG=/usr/bin/php-config
-SOURCE_DIR=`ls -d $(PECL_PKG_REALNAME)-*`
+EXT_DIR=$(shell $(PHPCONFIG)$* --extension-dir)
+SOURCE_DIR=$(shell ls -d $(PECL_PKG_REALNAME)-*)
 BINARYTARGETS=##binarytargets##
 
 phpapiver4=$(shell /usr/bin/php-config4 --phpapi)
@@ -83,7 +84,8 @@
 #		/usr/include/php4/Zend/zend_modules.h \
 #		| sed "s/#define ZEND_MODULE_API_NO //"`; \
 #		chmod 644 debian/$(PACKAGE_NAME)/usr/lib/php4/$$VERSION/*.so'
-	(ext=`$(PHPCONFIG)$* --extension-dir`;mkdir -p debian/$(BIN_PACKAGE_NAME)/$${ext};install -m 644 -o root -g root  $(SOURCE_DIR)/modules/$(PECL_PKG_NAME).so debian/$(BIN_PACKAGE_NAME)/$${ext}/$(PECL_PKG_NAME).so;)
+	mkdir -p debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)
+	install -m 644 -o root -g root $(SOURCE_DIR)/modules/$(PECL_PKG_NAME).so debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)/$(PECL_PKG_NAME).so
 
 # Build architecture-independent files here.
 binary-indep:

Reply via email to