Package: dh-make-php
Version: 0.3.0
Severity: important
Tags: patch
Dear Maintainer,
I was packging php5-amqp from trunk version. This version is shipped with a
package2.xml only, not a package.xml.
I used "pecl pickle" to build a PECL archive, then I attempted to use "dh-make-
pecl" in order to create debian files.
It seems that package2.xml could not be used by phppkginfo since it's not in
the correct directory. When reading source code of dh-make-pecl, I observed
that a mv package.xml $SRCPACKAGEDIR is done. Doing the same with package2.xml
permits to package normally.
Please find attach my patch to dh-make-pecl.
Regards,
--
rémi
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (990, 'stable'), (50, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dh-make-php depends on:
ii cdbs 0.4.115
ii php-pear 5.3.3-7+squeeze8
ii php5-cli 5.3.3-7+squeeze13
dh-make-php recommends no packages.
dh-make-php suggests no packages.
-- no debconf information
--- dh-make-pecl.orig 2012-07-11 12:59:21.735317207 +0200
+++ dh-make-pecl 2012-07-11 13:00:05.736077780 +0200
@@ -173,7 +173,8 @@
ln -s ${PECLPACKAGENAME} ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz
mkdir ${SRCPACKAGEDIR}
mv ${PHP_PKG_NAME}-${VERSION} ${SRCPACKAGEDIR}
-mv package.xml ${SRCPACKAGEDIR}
+[ -f package.xml ] && mv package.xml ${SRCPACKAGEDIR}
+[ -f package2.xml ] && mv package2.xml ${SRCPACKAGEDIR}
mkdir -p ${SRCPACKAGEDIR}/debian
cp ${DEBTEMPDIR}/compat ${SRCPACKAGEDIR}/debian