Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 99148 invoked from network); 19 Apr 2006 08:05:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 08:05:54 -0000 Received: (qmail 20148 invoked by uid 500); 19 Apr 2006 08:05:53 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 20104 invoked by uid 500); 19 Apr 2006 08:05:53 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 20092 invoked by uid 99); 19 Apr 2006 08:05:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 01:05:52 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 01:05:52 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id C7E947142D9; Wed, 19 Apr 2006 08:04:51 +0000 (GMT) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 39345] New: - rpm tasks destroys PATH for determination of rpmbuild executable Message-ID: X-Bugzilla-Reason: AssignedTo Date: Wed, 19 Apr 2006 08:04:51 +0000 (GMT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39345 Summary: rpm tasks destroys PATH for determination of rpmbuild executable Product: Ant Version: 1.6.5 Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: wolfgang.brodowski@gebit.de Hi, while testing my build process including building a rpm archive, I wondered, why the build of the rpm fails, if run by cron, but not when run manually. The assistance of an linux guru shows, that building a rpm in our case must use the rpmbuild executable, while using the rpm executable does not fit. A look into the source of the rpm task shows, that the determination of the rpmbuild executable is done by splitting the environment's PATH variable and trying to open the file on each part. Before splitting the path parts, the start of the environment variable PATH= gets cut off (planned!) but there is the mistake, which destroys the first path element. If rpmbuild is inside this path it is not found and the rpm task tries to to use its fallback (rpm). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org