From nobody@FreeBSD.org  Mon Nov  8 08:51:16 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9C56A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Nov 2010 08:51:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6FAB68FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Nov 2010 08:51:16 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oA88pGxS085312
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 8 Nov 2010 08:51:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id oA88pFxs085311;
	Mon, 8 Nov 2010 08:51:15 GMT
	(envelope-from nobody)
Message-Id: <201011080851.oA88pFxs085311@www.freebsd.org>
Date: Mon, 8 Nov 2010 08:51:15 GMT
From: YAMASHIRO Jun <yamajun@ofug.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] security/pear-Auth: Wrong installation path
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152039
>Category:       ports
>Synopsis:       [PATCH] security/pear-Auth: Wrong installation path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 08 09:00:18 UTC 2010
>Closed-Date:    Thu Dec 09 08:17:51 UTC 2010
>Last-Modified:  Thu Dec  9 08:20:08 UTC 2010
>Originator:     YAMASHIRO Jun
>Release:        FreeBSD/amd64 8.1-RELEASE
>Organization:
Okinawa FreeBSD Users Group
>Environment:
FreeBSD localhost 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
pear::Auth's some files(Container.php Container/* Frontend/*) must install
at /usr/local/share/pear/Auth. But, current version of security/pear-Auth
installed these files into wrong path: /usr/local/share/pear.

>How-To-Repeat:
# cd /usr/ports/security/pear-Auth
# make install clean
# cat > test.php
<?php
require_once 'Auth.php';
$auth = new Auth('Array');
$auth->start();
^D
# php test.php | & grep include_once
PHP Warning:  include_once(Auth/Container/Array.php): failed to open stream: No such file or directory in /usr/local/share/pear/Auth.php on line 468
..

>Fix:
Apply attached patch and reinstall.

Patch attached with submission follows:

--- pear-Auth/Makefile.orig	2010-11-08 14:53:44.000000000 +0900
+++ pear-Auth/Makefile	2010-11-08 17:34:42.000000000 +0900
@@ -29,14 +29,14 @@
 		PEAR_NET_VPOPMAILD "PEAR::Net_Vpopmaild support" off
 
 FILES=		Auth.php Auth.php.bak Auth/Anonymous.php Auth/Auth.php \
-		Auth/Controller.php Container.php Container/Array.php \
-		Container/DB.php Container/DBLite.php Container/File.php \
-		Container/IMAP.php Container/KADM5.php Container/LDAP.php \
-		Container/MDB.php Container/MDB2.php Container/Multiple.php \
-		Container/PEAR.php Container/POP3.php Container/RADIUS.php \
-		Container/SAP.php Container/SMBPasswd.php Container/SOAP.php \
-		Container/SOAP5.php Container/vpopmail.php Frontend/Html.php \
-		Frontend/md5.js
+		Auth/Controller.php Auth/Container.php Auth/Container/Array.php \
+		Auth/Container/DB.php Auth/Container/DBLite.php Auth/Container/File.php \
+		Auth/Container/IMAP.php Auth/Container/KADM5.php Auth/Container/LDAP.php \
+		Auth/Container/MDB.php Auth/Container/MDB2.php Auth/Container/Multiple.php \
+		Auth/Container/PEAR.php Auth/Container/POP3.php Auth/Container/RADIUS.php \
+		Auth/Container/SAP.php Auth/Container/SMBPasswd.php Auth/Container/SOAP.php \
+		Auth/Container/SOAP5.php Auth/Container/vpopmail.php Auth/Frontend/Html.php \
+		Auth/Frontend/md5.js
 TESTS=		DBContainer.php FileContainer.php MDB2Container.php MDBContainer.php \
 		POP3Container.php POP3aContainer.php TestAuthContainer.php \
 		auth_container_db_options.php auth_container_file_options.php \
@@ -49,6 +49,9 @@
 
 post-extract:
 	@${REINPLACE_CMD} -e "s|@version@|${PORTVERSION}|" ${WRKSRC}/Auth.php
+	mv ${WRKSRC}/Container ${WRKSRC}/Auth
+	mv ${WRKSRC}/Container.php ${WRKSRC}/Auth
+	mv ${WRKSRC}/Frontend ${WRKSRC}/Auth
 
 .include <bsd.port.pre.mk>
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Nov 8 09:00:26 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Erwin Lansing <erwin@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152039: [PATCH] security/pear-Auth: Wrong installation path
Date: Mon, 6 Dec 2010 18:00:28 +0100

 This seems to be caused by revision 1.18, which might need to be backed out.
State-Changed-From-To: open->closed 
State-Changed-By: erwin 
State-Changed-When: Thu Dec 9 08:17:21 UTC 2010 
State-Changed-Why:  
Committed a different solution, but solves this problem. 
Thanks for the patch! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152039: commit references a PR
Date: Thu,  9 Dec 2010 08:15:57 +0000 (UTC)

 erwin       2010-12-09 08:15:52 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/pear-Auth   Makefile 
   Log:
   Revert rev 1.18 to fix installation location
   
   PR:             152039 (different solution than in the PR)
   Submitted by:   YAMASHIRO Jun <yamajun@ofug.net>
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.20      +2 -0      ports/security/pear-Auth/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
