[php-maint] Bug#457437: php-db: Bashism in debian/rules

Michael Bienia michael at vorlon.ping.de
Sat Dec 22 12:17:29 UTC 2007


Package: php-db
Version: 1.7.6-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch hardy

Hello,

your package fails to build in Ubuntu hardy because of a bashism in
debian/rules (/bin/sh is dash in Ubuntu):

,----[ from the Ubuntu build log ]-
| # Custom package actions
| cp DB.php debian/php-db/usr/share/php/
| cp DB/* debian/php-db/usr/share/php/DB/
| cp -r tests/* debian/php-db/usr/share/php/tests/
| chmod 755 debian/php-db/usr/share/php/tests/{driver/,}run.cvs
| chmod: cannot access `debian/php-db/usr/share/php/tests/{driver/,}run.cvs': No such file or directory
| make: *** [binary-indep] Error 1
| ******************************************************************************
| Build finished at 20071104-1909
| FAILED [dpkg-buildpackage died]
`----

Attached is the patch I used to fix it.

Regards,
Michael

diff -u php-db-1.7.6/debian/rules php-db-1.7.6/debian/rules
--- php-db-1.7.6/debian/rules
+++ php-db-1.7.6/debian/rules
@@ -24,7 +24,7 @@
 	cp DB.php debian/$(source)/usr/share/php/
 	cp DB/* debian/$(source)/usr/share/php/DB/
 	cp -r tests/* debian/$(source)/usr/share/php/tests/
-	chmod 755 debian/$(source)/usr/share/php/tests/{driver/,}run.cvs
+	chmod 755 debian/$(source)/usr/share/php/tests/run.cvs debian/$(source)/usr/share/php/tests/driver/run.cvs
 
 	# Rest of the debhelper scripts
 	dh_testroot





More information about the pkg-php-maint mailing list