From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 16 14:50:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 484D44C8 for ; Fri, 16 Nov 2012 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 061838FC1A for ; Fri, 16 Nov 2012 14:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAGEo0aI095050 for ; Fri, 16 Nov 2012 14:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAGEo00h095049; Fri, 16 Nov 2012 14:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 16 Nov 2012 14:50:00 GMT Resent-Message-Id: <201211161450.qAGEo00h095049@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Victor Balada Diaz Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70EFAD43; Fri, 16 Nov 2012 14:40:14 +0000 (UTC) (envelope-from victor@equilibrium.bsdes.net) Received: from equilibrium.bsdes.net (244.Red-217-126-240.staticIP.rima-tde.net [217.126.240.244]) by mx1.freebsd.org (Postfix) with ESMTP id 159798FC12; Fri, 16 Nov 2012 14:40:13 +0000 (UTC) Received: by equilibrium.bsdes.net (Postfix, from userid 1001) id C7B2B39832; Fri, 16 Nov 2012 15:40:05 +0100 (CET) Message-Id: <20121116144005.C7B2B39832@equilibrium.bsdes.net> Date: Fri, 16 Nov 2012 15:40:05 +0100 (CET) From: Victor Balada Diaz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/173660: [Ports: www/tomcat7]: error on init script when using custom classpath Cc: ale@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Victor Balada Diaz List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 14:50:01 -0000 >Number: 173660 >Category: ports >Synopsis: [Ports: www/tomcat7]: error on init script when using custom classpath >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 16 14:50:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Victor Balada Diaz >Release: FreeBSD 7.4-RELEASE-p3 i386 >Organization: >Environment: >Description: If you configure a custom classpath on /etc/rc.conf like: tomcat7_classpath="/classes/foo.jar:/classes/bar.jar" It will fail because the assignment have a missing ':'. For it to work you should specify ':' like: tomcat7_classpath=":/classes/foo.jar:/classes/bar.jar" Which is non-obvious. >How-To-Repeat: >Fix: The following patch fixes it. --- tomcat7.patch begins here --- Index: files/tomcat7.in =================================================================== --- files/tomcat7.in (revision 307487) +++ files/tomcat7.in (working copy) @@ -110,7 +110,7 @@ -wait ${_tomcat_wait} \ -outfile '${_tomcat_stdout}' \ -errfile '${_tomcat_stderr}' \ - -classpath '%%TOMCAT_HOME%%/bin/bootstrap.jar:%%LOCALBASE%%/share/java/classes/commons-daemon.jar:%%TOMCAT_HOME%%/bin/tomcat-juli.jar${_tomcat_classpath}' \ + -classpath '%%TOMCAT_HOME%%/bin/bootstrap.jar:%%LOCALBASE%%/share/java/classes/commons-daemon.jar:%%TOMCAT_HOME%%/bin/tomcat-juli.jar:${_tomcat_classpath}' \ -Djava.util.logging.manager=${_tomcat_logging_manager} \ -Djava.util.logging.config.file='${_tomcat_logging_config}' \ ${_tomcat_java_opts} \ --- tomcat7.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: