You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/04/19 10:04:51 UTC

DO NOT REPLY [Bug 39345] New: - rpm tasks destroys PATH for determination of rpmbuild executable

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


DO NOT REPLY [Bug 39345] - rpm tasks destroys PATH for determination of rpmbuild executable

Posted by bu...@apache.org.
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


jkf@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.7




------- Additional Comments From jkf@apache.org  2006-04-26 21:20 -------
Thanks, fixed on HEAD, please verify

-- 
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