From owner-svn-ports-all@freebsd.org Mon Oct 23 12:26:08 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF6DFE4A819; Mon, 23 Oct 2017 12:26:08 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2BAA6EB9A; Mon, 23 Oct 2017 12:26:08 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9NCQ7aW040550; Mon, 23 Oct 2017 12:26:07 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9NCQ7pK040546; Mon, 23 Oct 2017 12:26:07 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201710231226.v9NCQ7pK040546@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Mon, 23 Oct 2017 12:26:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r452704 - in head/devel/bazel: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/devel/bazel: . files X-SVN-Commit-Revision: 452704 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 12:26:09 -0000 Author: pizzamig Date: Mon Oct 23 12:26:07 2017 New Revision: 452704 URL: https://svnweb.freebsd.org/changeset/ports/452704 Log: devel/bazel: Update to 0.7.0 PR: 2221794 Submitted by: aehlig@linta.de (maintainer) Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D12729 Modified: head/devel/bazel/Makefile head/devel/bazel/distinfo head/devel/bazel/files/extra-i386_src_BUILD head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh Modified: head/devel/bazel/Makefile ============================================================================== --- head/devel/bazel/Makefile Mon Oct 23 12:24:14 2017 (r452703) +++ head/devel/bazel/Makefile Mon Oct 23 12:26:07 2017 (r452704) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= bazel -PORTVERSION= 0.5.3 +PORTVERSION= 0.7.0 CATEGORIES= devel java MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist @@ -21,9 +21,9 @@ BUILD_DEPENDS= bash:shells/bash \ # In bazel, a release is always code-wise identical to the final release candidate. # Hence we can also download that one and so have a simple way to also test earlier release # candidates. -FINALRC= 4 +FINALRC= 2 -USES= shebangfix zip +USES= shebangfix zip:infozip python SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so) USE_JAVA= yes JAVA_VENDOR= openjdk @@ -55,7 +55,14 @@ post-patch: @${REINPLACE_CMD} \ -e "s|\"/etc/bazel.bazelrc\"|\"${ETCDIR}/bazel.bazelrc\"|" \ ${WRKSRC}/src/main/cpp/blaze_util_posix.cc - @${ECHO_CMD} build --strategy=Javac=standalone >> ${WRKSRC}/scripts/packages/debian/bazel.bazelrc + @${ECHO_CMD} build --strategy=Javac=standalone >> ${WRKSRC}/scripts/packages/bazel.bazelrc + @${ECHO_CMD} build --python_path=${PYTHON_CMD} >> ${WRKSRC}/scripts/packages/bazel.bazelrc + @${REINPLACE_CMD} \ + -e 's|\$$command|$$command --python_path=${PYTHON_CMD}|' \ + ${WRKSRC}/scripts/bootstrap/bootstrap.sh + @${REINPLACE_CMD} \ + -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ + ${WRKSRC}/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java post-patch-CLANG38-on: @${REINPLACE_CMD} -e 's=/usr/lib/clang=${LOCALBASE}/llvm38/lib/clang=' \ @@ -71,12 +78,13 @@ do-build: ${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ TMPDIR=${WRKDIR}/bazel_tmp \ EMBED_LABEL='${PORTVERSION}' \ + PATH=${LOCALBASE}/bin:$$PATH \ SOURCE_DATE_EPOCH=$${SOURCE_DATE_EPOCH} \ ${LOCALBASE}/bin/bash ./compile.sh) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${ETCDIR} - ${INSTALL_DATA} ${WRKSRC}/scripts/packages/debian/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample + ${INSTALL_DATA} ${WRKSRC}/scripts/packages/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample .include Modified: head/devel/bazel/distinfo ============================================================================== --- head/devel/bazel/distinfo Mon Oct 23 12:24:14 2017 (r452703) +++ head/devel/bazel/distinfo Mon Oct 23 12:26:07 2017 (r452704) @@ -1,3 +1,3 @@ -TIMESTAMP = 1501141783 -SHA256 (bazel-0.5.3rc4-dist.zip) = 41d70a98366256a20ddf0b0f2aab826913cd332d90c4f245b2c2e83a66f3d846 -SIZE (bazel-0.5.3rc4-dist.zip) = 100445883 +TIMESTAMP = 1507581916 +SHA256 (bazel-0.7.0rc2-dist.zip) = 5302847e0988ae7839d5efd7cbdff64caa8880af5d9860bc88a665aacc4aa380 +SIZE (bazel-0.7.0rc2-dist.zip) = 84668691 Modified: head/devel/bazel/files/extra-i386_src_BUILD ============================================================================== --- head/devel/bazel/files/extra-i386_src_BUILD Mon Oct 23 12:24:14 2017 (r452703) +++ head/devel/bazel/files/extra-i386_src_BUILD Mon Oct 23 12:26:07 2017 (r452704) @@ -9,24 +9,3 @@ ], }) + select({ "//tools/jdk:jdk7": [], ---- src/main/cpp/blaze_util_posix.cc.orig -+++ src/main/cpp/blaze_util_posix.cc -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - - #include - #include -@@ -648,8 +649,8 @@ - } - - void TrySleep(unsigned int milliseconds) { -- unsigned int seconds_part = milliseconds / 1000; -- unsigned int nanoseconds_part = (milliseconds % 1000) * 1000 * 1000; -+ time_t seconds_part = (time_t) (milliseconds / 1000); -+ long nanoseconds_part = ((long)(milliseconds % 1000)) * 1000 * 1000; - struct timespec sleeptime = {seconds_part, nanoseconds_part}; - nanosleep(&sleeptime, NULL); - } Modified: head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh ============================================================================== --- head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh Mon Oct 23 12:24:14 2017 (r452703) +++ head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh Mon Oct 23 12:26:07 2017 (r452704) @@ -9,12 +9,3 @@ --compilation_mode=opt \ ${EXTRA_BAZEL_ARGS:-}" fi -@@ -96,7 +96,7 @@ function bootstrap_test() { - local BAZEL_BIN=$1 - local BAZEL_SUM=$2 - local BAZEL_TARGET=${3:-src:bazel} -- local STRATEGY="--strategy=Javac=worker --worker_quit_after_build" -+ local STRATEGY="--strategy=Javac=standalone" - if [ "${JAVA_VERSION}" = "1.7" ]; then - STRATEGY= - fi