hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8921) ant build.xml in branch-1 ignores -Dcompile.native
Date Wed, 23 Jan 2013 17:59:12 GMT

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

Chris Nauroth updated HADOOP-8921:
----------------------------------

    Attachment: HADOOP-8921.5.patch

Thanks for providing this patch, [~gopalv].  I've found that in the current branch-1 codebase,
I also get a failure on Mac due to the native compile of task controller.  I'm uploading HADOOP-8921.5.patch.
 The only difference from the version 4 patch is that I have added the if native check to
the task-controller target:

{code}
-  <target name="task-controller" depends="init">
+  <target name="task-controller" depends="init" if="${compile.native}">
{code}

                
> ant build.xml in branch-1 ignores -Dcompile.native
> --------------------------------------------------
>
>                 Key: HADOOP-8921
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8921
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.2.0
>         Environment: Mac OS X 10.7.4
>            Reporter: Gopal V
>            Priority: Trivial
>              Labels: ant, autoconf, patch
>         Attachments: HADOOP-8921.4.patch, HADOOP-8921.5.patch
>
>
> ant -Dcompile.native=false still runs autoconf and libtoolize
> According to ant 1.8 manual, any <target if> conditions are checked only after
the dependencies are run through. The current if condition in code fails to prevent the autoconf/libtool
components from running.
> Fixing it by moving the if condition up into the "compile-native" target and changing
it to a param substitution instead of being evaluated as a condition.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message