ports/129727: www/tomcat6 port fails to reinstall in some cases

vassily ragosin vr at vrgraphics.ru
Thu Dec 18 02:50:05 UTC 2008


>Number:         129727
>Category:       ports
>Synopsis:       www/tomcat6 port fails to reinstall in some cases
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 18 02:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     vassily ragosin
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
vr graphics
>Environment:
System: FreeBSD 7.0-STABLE 
>Description:
Reinstall of www/tomcat6 port may fail when the already installed
web applications use directories, which have whitespaces
in their names. This happens when make tries to "Fix permissions"
for these directories and find doesn't handle unescaped symbols
in directory names properly. As a result, everything blows up
and reinstall fails miserably.

>How-To-Repeat:
1) Create a directory called "Will tomcat-native ever be fixed?"
   somewhere in ${APP_HOME}
2) Try reinstalling www/tomcat6 and fail while 
   ">> Fixing permissions..."
>Fix:

--- /usr/ports/www/tomcat6/Makefile.orig       2008-12-18 05:06:15.000000000 +0300
+++ /usr/ports/www/tomcat6/Makefile    2008-12-18 05:09:56.000000000 +0300
@@ -124,7 +124,7 @@
        @${ECHO_MSG} " [ DONE ]"

        @${ECHO_MSG} -n ">> Fixing permissions..."
-       @${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
+       @${FIND} ${APP_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
        @${ECHO_MSG} " [ DONE ]"

 post-install:

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



More information about the freebsd-ports-bugs mailing list