Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 53623 invoked from network); 7 Oct 2009 21:28:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Oct 2009 21:28:41 -0000 Received: (qmail 89229 invoked by uid 500); 7 Oct 2009 21:28:41 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 89198 invoked by uid 500); 7 Oct 2009 21:28:41 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 89188 invoked by uid 99); 7 Oct 2009 21:28:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 21:28:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 21:28:31 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 90EBB1DE011E for ; Wed, 7 Oct 2009 16:28:10 -0500 (CDT) Message-ID: <1267872.341254950890573.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Wed, 7 Oct 2009 16:28:10 -0500 (CDT) From: "George Snyder (JIRA)" To: issues@continuum.apache.org Subject: [jira] Created: (CONTINUUM-2383) Continuum-buildagent Start/Stop Script Cannot Find Binaries on Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org Continuum-buildagent Start/Stop Script Cannot Find Binaries on Solaris ---------------------------------------------------------------------- Key: CONTINUUM-2383 URL: http://jira.codehaus.org/browse/CONTINUUM-2383 Project: Continuum Issue Type: Bug Components: Distributed Builds Affects Versions: 1.3.4 Environment: Solaris 9 and 10 Reporter: George Snyder Priority: Minor On Solaris 9 and 10, if the user's PATH has /usr/ucb ahead of /bin, then the continuum-buildagent script fails: > continuum-buildagent start Unable to locate any of the following binaries: /opt/continuum/apache-continuum-buildagent-1.3.4/bin/./wrapper-SOS-swrc-32 /opt/continuum/apache-continuum-buildagent-1.3.4/bin/./wrapper-SOS-swrc-64 /opt/continuum/apache-continuum-buildagent-1.3.4/bin/./wrapper The problem is in lines such as: DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]` DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]` /usr/ucb/tr does not understand the pattern keywords, and mangles the OS and architecture names. Recommendation: Use /bin/tr explicitly. (There is already code to decide which 'ps' to use; perhaps it could be adapted.) Workaround: The user can invoke the script with a modified path, e.g.: > env PATH="/bin:$PATH" continuum-buildagent start -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira