Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 05:23:51 +0300 (MSK)
From:      vassily ragosin <vr@vrgraphics.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/129727: www/tomcat6 port fails to reinstall in some cases
Message-ID:  <20081218022351.448464AC27@gray.vrgraphics.ru>
Resent-Message-ID: <200812180250.mBI2o4W7066553@freefall.freebsd.org>

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

>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:



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