Date: Sun, 10 Apr 2016 13:39:47 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412931 - head/devel/spark Message-ID: <201604101339.u3ADdlfV014597@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Sun Apr 10 13:39:47 2016 New Revision: 412931 URL: https://svnweb.freebsd.org/changeset/ports/412931 Log: devel/spark: Avoid building in /root ($HOME) Following other maven ports, set user.home to $WRKDIR to prevent writing in /root or $HOME during the build, which is a file system violation. While here, change the do-install target to respect 80 columns. PR: 208666 Approved by: maintainer (demon@) (notice the 666 suffix?) Modified: head/devel/spark/Makefile Modified: head/devel/spark/Makefile ============================================================================== --- head/devel/spark/Makefile Sun Apr 10 13:16:07 2016 (r412930) +++ head/devel/spark/Makefile Sun Apr 10 13:39:47 2016 (r412931) @@ -45,9 +45,15 @@ JAVA_ARCH = ${ARCH} do-build: ${MKDIR} ${WRKDIR}/snappy/org/xerial/snappy/native/${OPSYS}/${JAVA_ARCH} - ${CP} ${LOCALBASE}/lib/libsnappyjava.so ${WRKDIR}/snappy/org/xerial/snappy/native/${OPSYS}/${JAVA_ARCH} - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/share/java/maven33/bin/mvn --offline -Dmaven.repo.local=${WRKDIR}/m2 clean package -Dhadoop.version=2.7.2 -Pyarn -Phadoop-2.6 -DskipTests - ${JAR} uvf ${WRKSRC}/assembly/target/scala*/*assembly*hadoop*.jar -C ${WRKDIR}/snappy org + ${CP} ${LOCALBASE}/lib/libsnappyjava.so \ + ${WRKDIR}/snappy/org/xerial/snappy/native/${OPSYS}/${JAVA_ARCH} + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${LOCALBASE}/share/java/maven33/bin/mvn --offline \ + -Dmaven.repo.local=${WRKDIR}/m2 clean package \ + -Dhadoop.version=2.7.2 -Pyarn -Phadoop-2.6 -DskipTests \ + -Duser.home=${WRKDIR} + ${JAR} uvf ${WRKSRC}/assembly/target/scala*/*assembly*hadoop*.jar \ + -C ${WRKDIR}/snappy org post-build: ${RM} ${WRKSRC}/bin/*.cmd ${WRKSRC}/sbin/spark-daemon.sh.orig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604101339.u3ADdlfV014597>