From owner-svn-ports-all@freebsd.org Wed May 31 16:38:23 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 35FB3B7E0FF; Wed, 31 May 2017 16:38:23 +0000 (UTC) (envelope-from cpm@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 0738A8292E; Wed, 31 May 2017 16:38:22 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4VGcM3H027498; Wed, 31 May 2017 16:38:22 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4VGcLB7027495; Wed, 31 May 2017 16:38:21 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201705311638.v4VGcLB7027495@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Wed, 31 May 2017 16:38:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442222 - in head/devel/bazel: . files X-SVN-Group: ports-head 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: Wed, 31 May 2017 16:38:23 -0000 Author: cpm Date: Wed May 31 16:38:21 2017 New Revision: 442222 URL: https://svnweb.freebsd.org/changeset/ports/442222 Log: devel/bazel: update to 0.5.0 Changes: https://github.com/bazelbuild/bazel/releases/tag/0.5.0 While there, also set SOURCE_DATE_EPOCH for the build, unless set already, to the timestamp in distinfo, to obtain a reproducible binary with a meaningful timestamp. PR: 219575 Submitted by: Klaus Aehlig (maintainer) Added: head/devel/bazel/files/patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_stub__template.txt (contents, props changed) Modified: head/devel/bazel/Makefile head/devel/bazel/distinfo Modified: head/devel/bazel/Makefile ============================================================================== --- head/devel/bazel/Makefile Wed May 31 15:30:02 2017 (r442221) +++ head/devel/bazel/Makefile Wed May 31 16:38:21 2017 (r442222) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= bazel -PORTVERSION= 0.4.5 +PORTVERSION= 0.5.0 CATEGORIES= devel java MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist @@ -11,7 +11,7 @@ MAINTAINER= aehlig@linta.de COMMENT= Fast and correct build system LICENSE= APACHE20 -LICENSE_FILE= ${WRKSRC}/LICENSE.txt +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip @@ -21,7 +21,7 @@ BROKEN_armv6= fails to package: cp: bazel: No such fi # 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= 7 +FINALRC= 9 NO_WRKSUBDIR= YES USES= shebangfix zip @@ -43,10 +43,15 @@ post-patch: do-build: @${MKDIR} ${WRKDIR}/bazel_tmp - (cd ${WRKSRC} && \ + (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}' \ + SOURCE_DATE_EPOCH=$${SOURCE_DATE_EPOCH} \ ${LOCALBASE}/bin/bash ./compile.sh) do-install: Modified: head/devel/bazel/distinfo ============================================================================== --- head/devel/bazel/distinfo Wed May 31 15:30:02 2017 (r442221) +++ head/devel/bazel/distinfo Wed May 31 16:38:21 2017 (r442222) @@ -1,3 +1,3 @@ -TIMESTAMP = 1489492711 -SHA256 (bazel-0.4.5rc7-dist.zip) = 493ac443013be7355a99ff226344b30723fbf53ef90ff1f34ea5c86f544b8658 -SIZE (bazel-0.4.5rc7-dist.zip) = 101503270 +TIMESTAMP = 1495581096 +SHA256 (bazel-0.5.0rc9-dist.zip) = b2b2f2e399cd341d91d27f3df0f9862ef0c4c51cc256fd2bda6ca93c0f00e27f +SIZE (bazel-0.5.0rc9-dist.zip) = 98166774 Added: head/devel/bazel/files/patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_stub__template.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_stub__template.txt Wed May 31 16:38:21 2017 (r442222) @@ -0,0 +1,11 @@ +--- src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt.orig 2017-03-31 21:28:24 UTC ++++ src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt +@@ -32,7 +32,7 @@ if IsWindows() and not PYTHON_BINARY.end + + # Find a file in a given search path. + def SearchPath(name): +- search_path = os.getenv('PATH', os.defpath).split(os.pathsep) ++ search_path = os.getenv('PATH', os.defpath + ":/usr/local/bin").split(os.pathsep) + for directory in search_path: + if directory == '': continue + path = os.path.join(directory, name)