DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39345>.
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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to