Bug 118151 - [www/zope29] post-install breaks zope instances
Summary: [www/zope29] post-install breaks zope instances
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 15:50 UTC by NAKAJI Hiroyuki
Modified: 2007-12-14 21:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NAKAJI Hiroyuki 2007-11-20 15:50:01 UTC
	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.

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}
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-20 15:50:06 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2007-12-14 21:12:14 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-12-14 21:19:34 UTC
pav         2007-12-14 21:19:30 UTC

  FreeBSD ports repository

  Modified files:
    www/zope29           Makefile 
  Log:
  - 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.
  
  PR:             ports/118151
  Submitted by:   NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
  Approved by:    maintainer timeout (3 weeks)
  
  Revision  Changes    Path
  1.93      +3 -1      ports/www/zope29/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"