ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39345] New: - rpm tasks destroys PATH for determination of rpmbuild executable
Date Wed, 19 Apr 2006 08:04:51 GMT
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: 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


Mime
View raw message