Date: Wed, 31 May 2017 16:38:21 +0000 (UTC) From: "Carlos J. Puga Medina" <cpm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442222 - in head/devel/bazel: . files Message-ID: <201705311638.v4VGcLB7027495@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <aehlig@linta.de> (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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705311638.v4VGcLB7027495>