ports/51717: mail/pear-mailparse: fix build + fix PEAR registration.
Thierry Thomas
thierry at pompo.net
Sat May 3 13:00:30 UTC 2003
>Number: 51717
>Category: ports
>Synopsis: mail/pear-mailparse: fix build + fix PEAR registration.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat May 03 06:00:28 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Thierry Thomas
>Release: FreeBSD 4.8-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Apr 29 18:16:35 CEST 2003 thierry at graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386
>Description:
1) Noticed by Bento: mail/pear-mailparse is broken (problem with
autoconf).
Note: to build this port, we should use newer auto* & libtools.
This is a workaround, with two autoconf and not USE_AUTOCONF /
USE_AUTOMAKE.
2) When you have fixed problem 1), if you install pear-mailparse
via a package, it is not registered in the PEAR's registration-db.
(see PR ports/50737 - <http://www.freebsd.org/cgi/query-pr.cgi?pr=50737>.
>How-To-Repeat:
1) cd /usr/ports/mail/pear-mailparse && make configure
(or just look Bento's logs).
2) See PR ports/50737.
>Fix:
Pre-requisite: PR ports/50737 must be committed.
Then, please apply this patch:
--- pear-mailparse.diff begins here ---
diff -urN mail/pear-mailparse.orig/Makefile mail/pear-mailparse/Makefile
--- mail/pear-mailparse.orig/Makefile Sat Apr 12 08:47:43 2003
+++ mail/pear-mailparse/Makefile Fri May 2 23:41:33 2003
@@ -17,18 +17,18 @@
COMMENT= PEAR classes to create and decode MIME messages
BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \
+ autoconf:${PORTSDIR}/devel/autoconf \
+ autoconf213:${PORTSDIR}/devel/autoconf213 \
+ automake:${PORTSDIR}/devel/automake \
+ automake14:${PORTSDIR}/devel/automake14 \
${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
-USE_AUTOMAKE= yes
-USE_AUTOCONF= yes
-
.include <bsd.port.pre.mk>
# Don't call autoconf directly, ./buildconf does this
GNU_CONFIGURE= yes
USE_AUTOCONF= no
-USE_LIBTOOL= no
USE_REINPLACE= yes
REINPLACE_ARGS= -i.before_mailparse
@@ -45,7 +45,9 @@
PHP_DIR?= ${LOCALBASE}/etc
PHP_INI= ${PHP_DIR}/php.ini
PEARDIR= ${PHP_BASE}/${LPHP_LIB}
-PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB}
+PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB} PKGREGDIR=${LPKGREGDIR}
+LPKGREGDIR= .PEAR.pkg/${PKGNAME}
+PKGREGDIR= ${PREFIX}/${LPKGREGDIR}
DOCSDIR= ${PEARDIR}/docs/${PORTNAME}
DOCS= CREDITS README try.php
@@ -86,6 +88,9 @@
@${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
.endif
# Register a new package
- @${PEAR} install -r -f ${WRKDIR}/package.xml
+ @${MKDIR} ${PKGREGDIR}
+ @${INSTALL_DATA} ${WRKDIR}/package.xml ${PKGREGDIR}
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
diff -urN mail/pear-mailparse.orig/pkg-install mail/pear-mailparse/pkg-install
--- mail/pear-mailparse.orig/pkg-install Thu Jan 1 01:00:00 1970
+++ mail/pear-mailparse/pkg-install Fri May 2 23:42:08 2003
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Register the package $1 in the port registry
+
+PREFIX=${PKG_PREFIX:-/usr/local}
+PEAR=${PREFIX}/bin/pear
+PKGREGDIR=${PREFIX}/.PEAR.pkg/$1
+
+[ "x$1" = "x" ] && exit 1
+if [ "x$2" = "xPOST-INSTALL" ]; then
+ ${PEAR} install -r -f ${PKGREGDIR}/package.xml
+fi
diff -urN mail/pear-mailparse.orig/pkg-plist mail/pear-mailparse/pkg-plist
--- mail/pear-mailparse.orig/pkg-plist Sun Feb 9 23:12:30 2003
+++ mail/pear-mailparse/pkg-plist Fri May 2 23:47:51 2003
@@ -1,4 +1,5 @@
%%EXTDIR%%/mailparse.so
+%%PKGREGDIR%%/package.xml
%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS
%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README
%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php
@@ -22,3 +23,4 @@
%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse
%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata
%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/
+ at dirrm %%PKGREGDIR%%
--- pear-mailparse.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list