From gasolwu@kkbox.com  Fri Aug 30 04:10:40 2013
Return-Path: <gasolwu@kkbox.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 766E7F73;
	Fri, 30 Aug 2013 04:10:40 +0000 (UTC)
	(envelope-from gasolwu@kkbox.com)
Received: from kkbox.com (ip-203-69-67-167.kkcube.com [203.69.67.167])
	by mx1.freebsd.org (Postfix) with ESMTP id 481B42177;
	Fri, 30 Aug 2013 04:10:39 +0000 (UTC)
Received: by goingmarry.kkbox.com (Postfix, from userid 1033)
	id 58B4674D026; Fri, 30 Aug 2013 12:10:39 +0800 (CST)
Message-Id: <20130830041039.58B4674D026@goingmarry.kkbox.com>
Date: Fri, 30 Aug 2013 12:10:39 +0800 (CST)
From: Gasol Wu <gasol.wu@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: miwi@FreeBSD.org
Subject: [PATCH] devel/pear: [SUMMARIZE CHANGES]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         181672
>Category:       ports
>Synopsis:       [PATCH] devel/pear: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    antoine
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 30 04:20:00 UTC 2013
>Closed-Date:    Mon Nov 11 09:25:25 UTC 2013
>Last-Modified:  Mon Nov 11 09:25:25 UTC 2013
>Originator:     Gasol Wu
>Release:        FreeBSD 9.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013
>Description:

take care about directory that contains a space

Refer to http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/181668

Port maintainer (miwi@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- pear-1.9.4_3.patch begins here ---
diff -ruN /usr/ports/devel/pear/Makefile ./Makefile
--- /usr/ports/devel/pear/Makefile	2013-07-19 00:33:02.000000000 +0800
+++ ./Makefile	2013-08-30 11:40:43.000000000 +0800
@@ -3,7 +3,7 @@
 
 PORTNAME=	pear
 PORTVERSION=	1.9.4
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://miwibox.org/distfiles/
 
diff -ruN /usr/ports/devel/pear/bsd.pear.mk ./bsd.pear.mk
--- /usr/ports/devel/pear/bsd.pear.mk	2013-08-30 11:14:36.000000000 +0800
+++ ./bsd.pear.mk	2013-08-30 11:40:43.000000000 +0800
@@ -193,9 +193,9 @@
 	@cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type f | ${SORT} \
 	| ${CUT} -c 3- >> ${PLIST}
 	@DIRS=`cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type d | ${SORT} -r | \
-	${CUT} -c 3- | ${SED} -e 's,\\$$,\\\\$$,g'`; \
+	${CUT} -c 3- | ${SED} -e 's,\\$$,\\\\$$,g'`; IFS=$$'\n'; \
 	for d in $${DIRS}; do \
-		if [ ! -d ${LOCALBASE}/$${d} ]; then \
+		if [ ! -d "${LOCALBASE}/$${d}" ]; then \
 			${ECHO_CMD} "@dirrmtry $${d}" >> ${PLIST}; \
 		fi; \
 	done
--- pear-1.9.4_3.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Aug 30 04:20:16 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181672 
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Sun Sep 22 09:11:35 CDT 2013 
Responsible-Changed-Why:  
Back to the heap due to timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181672 
Responsible-Changed-From-To: freebsd-ports-bugs->antoine 
Responsible-Changed-By: antoine 
Responsible-Changed-When: Sun Nov 10 13:59:26 UTC 2013 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181672 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/181672: commit references a PR
Date: Mon, 11 Nov 2013 09:17:58 +0000 (UTC)

 Author: antoine
 Date: Mon Nov 11 09:17:51 2013
 New Revision: 333480
 URL: http://svnweb.freebsd.org/changeset/ports/333480
 
 Log:
   Correctly handle directory names with space in PEAR_AUTOINSTALL
   This is needed for pear-Symfony_Component_Finder update
   
   PR:		ports/181672
   Reported by:	Gasol Wu
 
 Modified:
   head/devel/pear/bsd.pear.mk
 
 Modified: head/devel/pear/bsd.pear.mk
 ==============================================================================
 --- head/devel/pear/bsd.pear.mk	Mon Nov 11 09:07:15 2013	(r333479)
 +++ head/devel/pear/bsd.pear.mk	Mon Nov 11 09:17:51 2013	(r333480)
 @@ -190,24 +190,24 @@ do-autogenerate-plist: patch
  	${ECHO_CMD} "Cannot generate packing list: package files outside PREFIX"; \
  	exit 1; fi;
  	@${ECHO_CMD} "${LPKGREGDIR}/package.xml" > ${PLIST}
 -	# pkg_install needs to escape $ in directory name while pkg does not
 +# pkg_install needs to escape $ in directory name while pkg does not
  .if defined(WITH_PKGNG)
  	@cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type f | ${SORT} \
  	| ${CUT} -c 3- >> ${PLIST}
 -	@DIRS=`cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type d | ${SORT} -r | \
 -	${CUT} -c 3-`; \
 -	for d in $${DIRS}; do \
 -		if [ ! -d ${LOCALBASE}/$${d} ]; then \
 +	@cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type d | ${SORT} -r | \
 +	${CUT} -c 3- | \
 +	while read d ; do \
 +		if [ ! -d "${LOCALBASE}/$${d}" ]; then \
  			${ECHO_CMD} "@dirrmtry $${d}" >> ${PLIST}; \
  		fi; \
  	done
  .else
  	@cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type f | ${SORT} \
  	| ${CUT} -c 3- >> ${PLIST}
 -	@DIRS=`cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type d | ${SORT} -r | \
 -	${CUT} -c 3- | ${SED} -e 's,\\$$,\\\\$$,g'`; \
 -	for d in $${DIRS}; do \
 -		if [ ! -d ${LOCALBASE}/$${d} ]; then \
 +	@cd ${WRKDIR}/inst/${PREFIX} && ${FIND} . -type d | ${SORT} -r | \
 +	${CUT} -c 3- | ${SED} -e 's,\$$,\\\\$$,g' | \
 +	while read d ; do \
 +		if [ ! -d "${LOCALBASE}/$${d}" ]; then \
  			${ECHO_CMD} "@dirrmtry $${d}" >> ${PLIST}; \
  		fi; \
  	done
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: antoine 
State-Changed-When: Mon Nov 11 09:24:47 UTC 2013 
State-Changed-Why:  
Fixed, thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181672 
>Unformatted:
