Package: dh-make-php
Version: 0.2.5
Severity: normal
Tags: patch

Currently, the cdbs pear class (usr/share/cdbs/1/class/pear.mk) use the
-R option to install a package, ie:
        /usr/bin/pear ... install --nodeps -R ...

It should use the -P option instead, according to pear help:

        -R DIR, --installroot=DIR
                root directory used when installing files (ala PHP's
INSTALL_ROOT), use packagingroot for RPM
        -P DIR, --packagingroot=DIR
                root directory used when packaging files, like RPM
packaging

Using -R option can cause a php pear module to use the original builder
path instead of the real one.
For example, it will looks for its data
in /home/username/packages/module_name-version/usr/share/php/data
instead of
/usr/share/php/data.

I had this problem with php-html-quickform-advmultiselect (not yet in
debian).

Yann


--- /usr/share/cdbs/1/class/pear.mk.orig        2007-08-26
08:42:02.000000000 +0900
+++ /usr/share/cdbs/1/class/pear.mk     2007-08-26 08:42:20.000000000
+0900
@@ -60,7 +60,7 @@
                -d data_dir=/usr/share/php/data \
                -d doc_dir=/usr/share/php/docs \
                -d test_dir=/usr/share/php/tests \
-               install --nodeps -R $(DEB_DESTDIR)
$(PEAR_SOURCE_DIR)/package.xml
+               install --nodeps -P $(DEB_DESTDIR)
$(PEAR_SOURCE_DIR)/package.xml
 
        # move documentation to correct location
        mkdir -p $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dh-make-php depends on:
ii  cdbs                          0.4.49     common build system for
Debian pac
ii  php-pear                      5.2.3-1    PEAR - PHP Extension and
Applicati
ii  php5-cli                      5.2.3-1+b1 command-line interpreter
for the p

dh-make-php recommends no packages.

-- no debconf information




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to