pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39081:



The following reply was made to PR pkg/39081; it has been noted by GNATS.

From: Mark Davies <mark%mcs.vuw.ac.nz@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/39081:
Date: Sat, 5 Jul 2008 14:57:48 +1200

 --Boundary-00=_sMubIbUtIC4aSpz
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 On Wednesday 02 July 2008 23:55:01 kimmo%global-wire.fi@localhost wrote:
 > Package databases/pear-DB will not install, because the pear command
 > does not find its dependencies.
 >
 > It looks like pear is looking for /usr/pkg/lib/php5/pear/PEAR, even
 > though the installed files are in /usr/pkg/lib/php5/PEAR.  The latter
 > is the path I'd expect PEAR to use (and what it used to use before,
 > e.g. with php-5.1.6, when there was no separate php5-pear package).
 
 I struck this a while ago and made the attached change to fix it but I 
 don't now remember the reasoning behind the change.
 
 cheers
 mark
 
 --Boundary-00=_sMubIbUtIC4aSpz
 Content-Type: text/x-diff;
   charset="iso-8859-1";
   name="diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
        filename="diff"
 
 Index: pear.mk
 ===================================================================
 RCS file: /src/cvs/netbsd/pkgsrc/lang/php/pear.mk,v
 retrieving revision 1.11
 diff -u -r1.11 pear.mk
 --- pear.mk    12 Jun 2008 00:20:10 -0000      1.11
 +++ pear.mk    24 Jun 2008 01:23:48 -0000
 @@ -46,6 +46,7 @@
        ${ECHO} "@comment The following lines are automatically generated"; \
        PEAR_LIB="${PEAR_LIB}" WRKSRC="${WRKSRC}" \
        PEAR_DIRRM_BASEDIR="${PEAR_DIRRM_BASEDIR}" \
 +      PHP_PEAR_SYSCONF_DIR="${PKG_SYSCONFBASE}" \
        ${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \
                -C -n ${PKGDIR}/../../lang/php/pear_plist.php;
  GENERATE_PLIST+=      ${PEAR_GENERATE_PLIST}
 @@ -56,7 +57,7 @@
        @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml
  
  do-install:
 -      cd ${WRKSRC} && ${PEAR_CMD} "install" ${PEAR_DESTDIR} package.xml || 
exit 1
 +      cd ${WRKSRC} && PHP_PEAR_SYSCONF_DIR="${PKG_SYSCONFBASE}" ${PEAR_CMD} 
"install" ${PEAR_DESTDIR} package.xml || exit 1
  
  .if ${_USE_DESTDIR} != "no"
  CHECK_FILES_SKIP+=    ${PREFIX}/lib/php/.channels/.alias/pear.txt
 
 --Boundary-00=_sMubIbUtIC4aSpz--
 


Home | Main Index | Thread Index | Old Index