Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 00:48:45 +0900 (JST)
From:      NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/118151: [www/zope29] post-install breaks zope instances
Message-ID:  <200711201548.lAKFmj4w004477@ra333.heimat.gr.jp>
Resent-Message-ID: <200711201550.lAKFo1in029577@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118151
>Category:       ports
>Synopsis:       [www/zope29] post-install breaks zope instances
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 20 15:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 8.0-CURRENT pc98
>Organization:
>Environment:
System: FreeBSD ra333.heimat.gr.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #75: Thu Oct 25 16:18:01 JST 2007 root@ra333.heimat.gr.jp:/usr/obj/usr/src/sys/RA333 pc98



>Description:
	At post-install stage, "chmod a-w" is executed for all files
	below /usr/local/www/Zope29. And it affects on the zope
	instance placed at /usr/local/www/Zope29/instance, that is,
	var/Data.fs, logs/event.log and so on of the zope instance are
	not writeable. It occurs easily by portupgrade.

>How-To-Repeat:

# cd /usr/ports/www/zope29
# make install
# make instance INSTANCENAME=instance
  use zope29 ...
# portupgrade zope29

  And then, all files under /usr/local/www/Zope29/instance are 0444.

>Fix:

	Only zope29 files are to be chmod-ed at post-install stage.

--- Makefile	28 Mar 2007 16:57:16 +0900	1.92
+++ Makefile	21 Nov 2007 00:37:49 +0900	
@@ -81,7 +81,9 @@
 	${CP} ${FILESDIR}/Products_00readme-freebsd.txt \
 		${ZOPEBASEDIR}/Products/00readme-freebsd.txt
 
-	${FIND} ${ZOPEBASEDIR} -type f -print0 | ${XARGS} -0 -- ${CHMOD} a-w+r
+.for d in lib bin doc skel Products
+	${FIND} ${ZOPEBASEDIR}/$d -type f -print0 | ${XARGS} -0 -- ${CHMOD} a-w+r
+.endfor
 
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO_MSG}



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711201548.lAKFmj4w004477>