Author: omalley
Date: Tue Oct 2 11:45:08 2007
New Revision: 581345
URL: http://svn.apache.org/viewvc?rev=581345&view=rev
Log:
HADOOP-1934. Replace spaces with underscores in the platform name so that
the c++ build works on Mac OS. (omalley)
Modified:
lucene/hadoop/trunk/CHANGES.txt
lucene/hadoop/trunk/build.xml
Modified: lucene/hadoop/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=581345&r1=581344&r2=581345&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Oct 2 11:45:08 2007
@@ -218,6 +218,9 @@
HADOOP-1930. Fix the blame for failed fetchs on the right host. (Arun C.
Murthy via omalley)
+ HADOOP-1934. Fix the platform name on Mac to use underscores rather than
+ spaces. (omalley)
+
IMPROVEMENTS
HADOOP-1908. Restructure data node code so that block sending and
Modified: lucene/hadoop/trunk/build.xml
URL:
http://svn.apache.org/viewvc/lucene/hadoop/trunk/build.xml?rev=581345&r1=581344&r2=581345&view=diff
==============================================================================
--- lucene/hadoop/trunk/build.xml (original)
+++ lucene/hadoop/trunk/build.xml Tue Oct 2 11:45:08 2007
@@ -36,8 +36,13 @@
<property name="build.examples" value="${build.dir}/examples"/>
<property name="build.anttasks" value="${build.dir}/ant"/>
<property name="build.libhdfs" value="${build.dir}/libhdfs"/>
+ <!-- convert spaces to _ so that mac os doesn't break things -->
+ <exec executable="sed" inputstring="${os.name}"
+ outputproperty="nonspace.os">
+ <arg value="s/ /_/g"/>
+ </exec>
<property name="build.platform"
- value="${os.name}-${os.arch}-${sun.arch.data.model}"/>
+ value="${nonspace.os}-${os.arch}-${sun.arch.data.model}"/>
<property name="build.native" value="${build.dir}/native/${build.platform}"/>
<property name="build.c++" value="${build.dir}/c++-build/${build.platform}"/>
<property name="build.c++.utils" value="${build.c++}/utils"/>