From owner-svn-ports-head@freebsd.org Thu Aug 10 18:35:48 2017 Return-Path: Delivered-To: svn-ports-head@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 1ADC6DD9EA9; Thu, 10 Aug 2017 18:35:48 +0000 (UTC) (envelope-from ultima@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 E2CB76CE78; Thu, 10 Aug 2017 18:35:47 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7AIZlbQ036158; Thu, 10 Aug 2017 18:35:47 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7AIZl1W036156; Thu, 10 Aug 2017 18:35:47 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201708101835.v7AIZl1W036156@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Thu, 10 Aug 2017 18:35:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447714 - in head/devel/bazel: . files X-SVN-Group: ports-head X-SVN-Commit-Author: ultima X-SVN-Commit-Paths: in head/devel/bazel: . files X-SVN-Commit-Revision: 447714 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 18:35:48 -0000 Author: ultima Date: Thu Aug 10 18:35:46 2017 New Revision: 447714 URL: https://svnweb.freebsd.org/changeset/ports/447714 Log: * Fix build on i386 * Cleanup Makefile PR: 221114 Submitted by: Klaus Aehlig (maintainer) Reviewed by: matthew (mentor) Approved by: matthew (mentor) MFH: 2017Q3 Differential Revision: https://reviews.freebsd.org/D11937 Added: head/devel/bazel/files/extra-i386_src_BUILD (contents, props changed) Modified: head/devel/bazel/Makefile Modified: head/devel/bazel/Makefile ============================================================================== --- head/devel/bazel/Makefile Thu Aug 10 18:31:34 2017 (r447713) +++ head/devel/bazel/Makefile Thu Aug 10 18:35:46 2017 (r447714) @@ -13,17 +13,16 @@ COMMENT= Fast and correct build system LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE +BROKEN_armv6= fails to package: cp: bazel: No such file or directory + BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip -BROKEN_armv6= fails to package: cp: bazel: No such file or directory - # 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 -NO_WRKSUBDIR= YES USES= shebangfix zip SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so) USE_JAVA= yes @@ -32,6 +31,8 @@ JAVA_VERSION= 1.8 JAVA_BUILD= yes JAVA_RUN= yes +NO_WRKSUBDIR= YES + CONFLICTS_INSTALL?= bazel-clang38 OPTIONS_DEFINE= CLANG38 @@ -39,6 +40,12 @@ CLANG38_DESC= Use clang38 as default crosstool CLANG38_BUILD_DEPENDS= clang38:devel/llvm38 CLANG38_RUN_DEPENDS= clang38:devel/llvm38 +.include + +.if ${ARCH} == "i386" +EXTRA_PATCHES= ${FILESDIR}/extra-i386_src_BUILD +.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. @@ -71,4 +78,4 @@ do-install: @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/scripts/packages/debian/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample -.include +.include Added: head/devel/bazel/files/extra-i386_src_BUILD ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/extra-i386_src_BUILD Thu Aug 10 18:35:46 2017 (r447714) @@ -0,0 +1,32 @@ +--- src/BUILD.orig 2017-07-31 10:06:21.426927000 +0200 ++++ src/BUILD 2017-07-31 10:06:44.279345000 +0200 +@@ -179,7 +179,7 @@ + "//src/java_tools/singlejar:SingleJar_deploy.jar", + ], + "//conditions:default": [ +- "//src/tools/singlejar:singlejar", ++ "//src/java_tools/singlejar:SingleJar_deploy.jar", + ], + }) + 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); + }