Index: head/devel/bazel/Makefile =================================================================== --- head/devel/bazel/Makefile (revision 483574) +++ head/devel/bazel/Makefile (revision 483575) @@ -1,82 +1,82 @@ # Created by: Klaus Aehlig # $FreeBSD$ PORTNAME= bazel -DISTVERSION= 0.18.0 +DISTVERSION= 0.19.0 CATEGORIES= devel java MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist MAINTAINER?= aehlig@linta.de COMMENT= Fast and correct build system LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to build: java.lang.OutOfMemoryError: Java heap space BROKEN_armv6= fails to package: cp: bazel: No such file or directory BROKEN_armv7= fails to package: cp: bazel: No such file or directory BROKEN_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip # 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= 9 USES= shebangfix zip:infozip python SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so) USE_JAVA= yes JAVA_VENDOR= openjdk JAVA_VERSION= 1.8 JAVA_BUILD= yes JAVA_RUN= yes NO_WRKSUBDIR= YES STRIP= # The bazel binary is also a zip archive (extracted by the elf part), it must not be stripped .include .if ${ARCH} == "i386" EXTRA_PATCHES= ${FILESDIR}/extra-i386_src_BUILD ${FILESDIR}/extra-i386_tools_cpp_BUILD.static.freebsd .endif # Have the location of the system-wide rc file reside ${ETCDIR}. # Also adapt the sample file to disable persistent java workers as they # do not work reliably on FreeBSD. 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/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 do-build: @${MKDIR} ${WRKDIR}/bazel_tmp (if [ -z "$${SOURCE_DATE_EPOCH}" ] ; \ then SOURCE_DATE_EPOCH=`grep TIMESTAMP ${DISTINFO_FILE} \ | ${SED} -e 's/[^0-9]//g'`; \ fi ; \ cd ${WRKSRC} && \ ${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/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample .include Index: head/devel/bazel/distinfo =================================================================== --- head/devel/bazel/distinfo (revision 483574) +++ head/devel/bazel/distinfo (revision 483575) @@ -1,3 +1,3 @@ -TIMESTAMP = 1538849840 -SHA256 (bazel-0.18.0rc9-dist.zip) = ba019d36c19c95c031bd6df3f2d49b63d38227c8c61d32b739239a9850ba6d65 -SIZE (bazel-0.18.0rc9-dist.zip) = 86885181 +TIMESTAMP = 1540850893 +SHA256 (bazel-0.19.0rc9-dist.zip) = 312af013a796510bf68644b69b460dde593cfaa1be4de81640f79f977ca80b69 +SIZE (bazel-0.19.0rc9-dist.zip) = 87331141 Index: head/devel/bazel/files/patch-tools__jdk__default_java_toolchain.bzl =================================================================== --- head/devel/bazel/files/patch-tools__jdk__default_java_toolchain.bzl (nonexistent) +++ head/devel/bazel/files/patch-tools__jdk__default_java_toolchain.bzl (revision 483575) @@ -0,0 +1,42 @@ +--- tools/jdk/default_java_toolchain.bzl.orig 1980-01-01 00:00:00.000000000 +0100 ++++ tools/jdk/default_java_toolchain.bzl 2018-10-30 00:09:06.904725000 +0100 +@@ -19,29 +19,7 @@ + ] + + JDK9_JVM_OPTS = [ +- # In JDK9 we have seen a ~30% slow down in JavaBuilder performance when using +- # G1 collector and having compact strings enabled. +- "-XX:+UseParallelOldGC", +- "-XX:-CompactStrings", +- # Allow JavaBuilder to access internal javac APIs. +- "--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", +- "--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", +- "--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", +- +- # override the javac in the JDK. +- "--patch-module=java.compiler=$(location @bazel_tools//third_party/java/jdk/langtools:java_compiler_jar)", +- "--patch-module=jdk.compiler=$(location @bazel_tools//third_party/java/jdk/langtools:jdk_compiler_jar)", +- +- # quiet warnings from com.google.protobuf.UnsafeUtil, +- # see: https://github.com/google/protobuf/issues/3781 +- # and: https://github.com/bazelbuild/bazel/issues/5599 +- "--add-opens=java.base/java.nio=ALL-UNNAMED", +- "--add-opens=java.base/java.lang=ALL-UNNAMED", ++ "-Xbootclasspath/p:$(location @bazel_tools//third_party/java/jdk/langtools:javac_jar)", + ] + + DEFAULT_JAVACOPTS = [ +@@ -74,7 +52,7 @@ + "@bazel_tools//third_party/java/jdk/langtools:jdk_compiler_jar", + ], + "javac_supports_workers": 1, +- "jvm_opts": JDK9_JVM_OPTS, ++ "jvm_opts": JDK8_JVM_OPTS, + "misc": DEFAULT_JAVACOPTS, + "compatible_javacopts": COMPATIBLE_JAVACOPTS, + "singlejar": ["@bazel_tools//tools/jdk:singlejar"], Property changes on: head/devel/bazel/files/patch-tools__jdk__default_java_toolchain.bzl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property