From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 3 06:00:29 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF1A037B405 for ; Sat, 3 May 2003 06:00:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4FE043F75 for ; Sat, 3 May 2003 06:00:28 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h43D0SUp057483 for ; Sat, 3 May 2003 06:00:28 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h43D0SQF057481; Sat, 3 May 2003 06:00:28 -0700 (PDT) Resent-Date: Sat, 3 May 2003 06:00:28 -0700 (PDT) Resent-Message-Id: <200305031300.h43D0SQF057481@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thierry Thomas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9019F37B401 for ; Sat, 3 May 2003 05:55:33 -0700 (PDT) Received: from graf.pompo.net (lns-p19-16-81-56-186-139.adsl.proxad.net [81.56.186.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id E20E643F75 for ; Sat, 3 May 2003 05:55:31 -0700 (PDT) (envelope-from thierry@pompo.net) Received: by graf.pompo.net (Postfix, from userid 1001) id 78731750D; Sat, 3 May 2003 14:55:10 +0200 (CEST) Message-Id: <20030503125510.78731750D@graf.pompo.net> Date: Sat, 3 May 2003 14:55:10 +0200 (CEST) From: Thierry Thomas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/51717: mail/pear-mailparse: fix build + fix PEAR registration. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thierry Thomas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 13:00:30 -0000 >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@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 - . >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 # 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 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/ +@dirrm %%PKGREGDIR%% --- pear-mailparse.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: