Repository: spark
Updated Branches:
  refs/heads/master 405c0e99e -> 8fab7995d


[SPARK-22167][R][BUILD] sparkr packaging issue allow zinc

## What changes were proposed in this pull request?

When zinc is running the pwd might be in the root of the project. A quick 
solution to this is to not go a level up incase we are in the root rather than 
root/core/. If we are in the root everything works fine, if we are in core add 
a script which goes and runs the level up

## How was this patch tested?

set -x in the SparkR install scripts.

Author: Holden Karau <hol...@us.ibm.com>

Closes #19402 from holdenk/SPARK-22167-sparkr-packaging-issue-allow-zinc.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8fab7995
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8fab7995
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8fab7995

Branch: refs/heads/master
Commit: 8fab7995d36c7bc4524393b20a4e524dbf6bbf62
Parents: 405c0e9
Author: Holden Karau <hol...@us.ibm.com>
Authored: Mon Oct 2 11:46:51 2017 -0700
Committer: Holden Karau <hol...@us.ibm.com>
Committed: Mon Oct 2 11:46:51 2017 -0700

----------------------------------------------------------------------
 R/install-dev.sh | 1 +
 core/pom.xml     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8fab7995/R/install-dev.sh
----------------------------------------------------------------------
diff --git a/R/install-dev.sh b/R/install-dev.sh
index d613552..9fbc999 100755
--- a/R/install-dev.sh
+++ b/R/install-dev.sh
@@ -28,6 +28,7 @@
 
 set -o pipefail
 set -e
+set -x
 
 FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
 LIB_DIR="$FWDIR/lib"

http://git-wip-us.apache.org/repos/asf/spark/blob/8fab7995/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index 0966914..54f7a34 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -499,7 +499,7 @@
               </execution>
             </executions>
             <configuration>
-              
<executable>..${file.separator}R${file.separator}install-dev${script.extension}</executable>
+              
<executable>${project.basedir}${file.separator}..${file.separator}R${file.separator}install-dev${script.extension}</executable>
             </configuration>
           </plugin>
         </plugins>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to