You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Salikh Zakirov (JIRA)" <ji...@apache.org> on 2007/08/23 09:48:30 UTC

[jira] Created: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

[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
         Attachments: 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.


[jira] Closed: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-4674.
--------------------------------------


No response, assuming ok.

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


[jira] Updated: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

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

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


[jira] Updated: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
     [ 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

> [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
>         Attachments: 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.


[jira] Updated: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-4674:
---------------------------------------

    Assignee: Gregory Shimansky

Two comments:

1. Which command may be absent, it is better to use "type" instead as it is build into bash
2. The --noconfig switch is required for distributions e.g. SLES10 that install /etc/ant.conf which configures ant to use ANT_HOME in location other than specified in environment. So using user's own installation of ant that us often required because ECJ and JUNIT have to be added to lib/ is not possible.

Do you agree that "which" may be changed to "type -p" and --noconfig switch to be kept as is?

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


[jira] Resolved: (HARMONY-4674) [drlvm][build] build.sh does not work with ant provided by Gentoo distribution

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-4674.
----------------------------------------

    Resolution: Fixed

I applied your patch at 569363. I checked on my gentoo box and successfully built VM without ANT_HOME pointing to my local ant installation.

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