harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Salikh Zakirov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution
Date Thu, 23 Aug 2007 12:12:31 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Salikh Zakirov updated HARMONY-4674:
------------------------------------

    Attachment: 0001-Make-ant-check-friendlier-to-Gentoo-provided-ant.patch

Changing 'which' to 'type -p' will replace dependency on 'which' with dependency on bash,
which may not be good, because some distributions have Ash or Dash installed as /bin/sh,
and 'type -p' does not work with Dash (just checked).
It will also require changing all documentation, which now says run 'sh build.sh'.
So, I am mildly negative on using 'type -p', but you can override and change it to 'type -p'
if you feel like it.

Concerning --no-config, the change keeps it if it found the stand-alone Ant installation,
which is the current requirement.
--noconfig is not passed to ant in the new (alternative) case of distribution-provided Ant,
which is consistent with the choice.
(you should not ignore system config if you use system ant)
However, as my build works both with and without --noconfig, I will not mind if you commit
a --noconfig version. 

(I will be satisfied as soon as pure SVN build will work on my Gentoo machine).

However, the first version of the patch had a blunt bug concerning --noconfig, as it
cannot be passed using ANT_ARGS, and must be passed directly on the command line.
The updated attachment fixes this issue.


> [drlvm][build] build.sh does not work with ant provided by Gentoo distribution
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-4674
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4674
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Gentoo Linux/x86
>            Reporter: Salikh Zakirov
>            Assignee: Gregory Shimansky
>         Attachments: 0001-Make-ant-check-friendlier-to-Gentoo-provided-ant.patch, 0001-Make-ant-check-friendlier-to-Gentoo-provided-ant.patch
>
>
> The DRLVM workspace cannot be built out-of-the-box on the Gentoo Linux,
> with the following error message:
> * File /usr/share/ant/bin/ant not found.
> * Make sure you have Ant 1.6.5 or above installed from
> * http://ant.apache.org/bindownload.cgi and that ANT_HOME environment
> * variable points out to the Ant installation dir, e.g. 
> * export ANT_HOME=/usr/local/ant_1.6.5
> *
> * Please, refer to README.txt for details.
> The problem is that build.sh expects standalone installation of Ant, while the /usr/share/ant
is the distribution provided
> installation. Applying the attached patch solves the problem and allows to use the installed
ant.
> Note that the standalone ant takes the precedence if it is found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message