From ohauer@FreeBSD.org  Tue Jan 25 22:06:02 2011
Return-Path: <ohauer@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 05D55106566B;
	Tue, 25 Jan 2011 22:06:02 +0000 (UTC)
	(envelope-from ohauer@FreeBSD.org)
Received: from u18-124.dslaccess.de (unknown [194.231.39.124])
	by mx1.freebsd.org (Postfix) with ESMTP id AB2E98FC25;
	Tue, 25 Jan 2011 22:06:01 +0000 (UTC)
Received: by u18-124.dslaccess.de (Postfix, from userid 1100)
	id 8A45A20664; Tue, 25 Jan 2011 23:05:57 +0100 (CET)
Message-Id: <20110125220557.8A45A20664@u18-124.dslaccess.de>
Date: Tue, 25 Jan 2011 23:05:57 +0100 (CET)
From: Olli Hauer <ohauer@FreeBSD.org>
To: <FreeBSD-gnats-submit@freebsd.org>
Subject: [patch] port devel/bugzilla missing directories for checksetup.pl
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         154295
>Category:       ports
>Synopsis:       [patch] port devel/bugzilla missing directories for checksetup.pl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ohauer
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 25 22:10:09 UTC 2011
>Closed-Date:    Sun May 22 22:36:36 UTC 2011
>Last-Modified:  Sun May 22 22:36:36 UTC 2011
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:


>Description:
Hi Sergey,

Thanks for the quick update!

I note during the checksetup.pl run an issue since two missing directories.

It seems the directories "lib" and "t" are needed to compile the templates.

I've made some additional adjustments in pkg-plist, dirrmtry for directories
where a .htaccess file will be placed and remove the old www/data directory.


>How-To-Repeat:
#./checksetup.pl
Creating ./lib/.htaccess...
No such file or directory at Bugzilla/Install/Filesystem.pm line 521.

# mkdir lib
#./checksetup.pl
Creating ./lib/.htaccess...
Creating ./template/.htaccess...
Creating .htaccess...
Creating contrib/.htaccess...
Creating t/.htaccess...
No such file or directory at Bugzilla/Install/Filesystem.pm line 521.

# mkdir t
#./checksetup.pl
Creating t/.htaccess...
Precompiling templates.....done.
Fixing file permissions


>Fix:
--- patch_bugzilla.txt begins here ---
Index: bugzilla/Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/bugzilla/Makefile,v
retrieving revision 1.81
diff -u -r1.81 Makefile
--- bugzilla/Makefile	25 Jan 2011 15:49:49 -0000	1.81
+++ bugzilla/Makefile	25 Jan 2011 21:39:04 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	bugzilla
 PORTVERSION=	3.6.4
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_MOZILLA}
 MASTER_SITE_SUBDIR=	webtools webtools/archived
@@ -184,6 +185,9 @@
 		${FIND} . -type d -exec ${MKDIR} "${WWWDIR}/contrib/{}" \; && \
 		${FIND} . -type f -exec ${INSTALL_DATA} "{}" "${WWWDIR}/contrib/{}" \;
 .endif
+# This are empty directories but they are needed, 
+# else ckecksetup.pl does not work as expected!
+	${MKDIR} ${WWWDIR}/lib ${WWWDIR}/t
 .if !defined(BATCH)
 	@${ECHO_MSG}
 	@${CAT} ${PKGMESSAGE}
Index: bugzilla/pkg-plist
===================================================================
RCS file: /home/pcvs/ports/devel/bugzilla/pkg-plist,v
retrieving revision 1.36
diff -u -r1.36 pkg-plist
--- bugzilla/pkg-plist	12 Dec 2010 05:56:19 -0000	1.36
+++ bugzilla/pkg-plist	25 Jan 2011 21:39:04 -0000
@@ -777,7 +777,7 @@
 @dirrmtry %%WWWDIR%%/template
 %%CONTRIB%%@dirrm %%WWWDIR%%/contrib/cmdline
 %%CONTRIB%%@dirrm %%WWWDIR%%/contrib/bugzilla-submit
-%%CONTRIB%%@dirrm %%WWWDIR%%/contrib
+%%CONTRIB%%@dirrmtry %%WWWDIR%%/contrib
 @dirrm %%WWWDIR%%/Bugzilla/Whine
 @dirrm %%WWWDIR%%/Bugzilla/WebService/Server
 @dirrm %%WWWDIR%%/Bugzilla/WebService
@@ -814,6 +814,8 @@
 @dirrm %%WWWDIR%%/skins/contrib/Dusk
 @dirrm %%WWWDIR%%/skins/contrib
 @dirrm %%WWWDIR%%/skins
+@dirrmtry %%WWWDIR%%/lib
+@dirrmtry %%WWWDIR%%/t
 @dirrmtry %%WWWDIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/lib/Pod/Simple/HTMLBatch
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/lib/Pod/Simple/HTML
@@ -846,4 +848,5 @@
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/en/html
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/en
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrmtry www/data
+@exec mkdir -p %D/%%WWWDIR%%/t
+@exec mkdir -p %D/%%WWWDIR%%/lib
--- patch_bugzilla.txt ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->skv 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jan 25 22:10:16 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/154295: commit references a PR
Date: Sun, 22 May 2011 22:16:37 +0000 (UTC)

 ohauer      2011-05-22 22:16:27 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/bugzilla       Makefile pkg-plist 
   Log:
   - bump because of mod_perl2 update
   - order pkg-plist so it match autmated tools like genplist
   - add missing empty directories (used by checksetup.pl) [1]
   
   commit with hat apache@
   
   PR:             [1] ports/154295
   Submitted by:   me
   
   Revision  Changes    Path
   1.82      +4 -0      ports/devel/bugzilla/Makefile
   1.37      +81 -78    ports/devel/bugzilla/pkg-plist
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: ohauer 
State-Changed-When: Sun May 22 22:36:02 UTC 2011 
State-Changed-Why:  
Committed, with the mod_perl2 update. 


Responsible-Changed-From-To: skv->ohauer 
Responsible-Changed-By: ohauer 
Responsible-Changed-When: Sun May 22 22:36:02 UTC 2011 
Responsible-Changed-Why:  
Committed, with the mod_perl2 update. 

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