Bug 244571 - devel/bazel update to 2.2.0
Summary: devel/bazel update to 2.2.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-03 13:08 UTC by Klaus Aehlig
Modified: 2020-04-07 17:45 UTC (History)
1 user (show)

See Also:


Attachments
Patch for devel/bazel to update to 2.2.0 (2.59 KB, patch)
2020-03-03 13:08 UTC, Klaus Aehlig
aehlig: maintainer-approval+
Details | Diff
Updated patch for devel/bazel to update to 2.2.0 (3.03 KB, patch)
2020-03-03 14:08 UTC, Klaus Aehlig
no flags Details | Diff
Patch for devel/bazel to update to 2.2.0 (4.67 KB, patch)
2020-03-03 17:32 UTC, Klaus Aehlig
aehlig: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Aehlig 2020-03-03 13:08:06 UTC
Created attachment 212116 [details]
Patch for devel/bazel to update to 2.2.0

Update devel/bazel to Version 2.2.0

Release notes: https://blog.bazel.build/2020/03/03/bazel-2-2.html
Comment 1 Steve Wills freebsd_committer 2020-03-03 13:21:55 UTC
Doesn't seem to fetch:

http://52.177.10.161//data/head-amd64-swills-freebsd-ports/122851219/logs/errors/bazel-2.2.0.log

=======================<phase: fetch          >============================
===>  License APACHE20 accepted by the user
===>   bazel-2.2.0 depends on file: /usr/local/sbin/pkg - found
=> bazel-2.2.0rc1-dist.zip doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://storage.googleapis.com/bazel/2.2.0/rc1/bazel-2.2.0rc1-dist.zip
bazel-2.2.0rc1-dist.zip                                 40 MB 1642 kBps 02m04s
fetch: bazel-2.2.0rc1-dist.zip appears to be truncated: 41943040/260142631 bytes
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/bazel-2.2.0rc1-dist.zip
fetch: http://distcache.FreeBSD.org/ports-distfiles/bazel-2.2.0rc1-dist.zip: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/ and try again.
*** Error code 1
Comment 2 Steve Wills freebsd_committer 2020-03-03 13:28:25 UTC
Hmm, the fetch errors seem intermittent, but there's another issue:

http://23.96.63.40//data/113-amd64-swills-freebsd-ports/122851219/logs/errors/bazel-2.2.0.log

...
env: python: No such file or directory
...

patching it to call ${PYTHON_CMD} will probably take care of it.
Comment 3 Klaus Aehlig 2020-03-03 14:08:38 UTC
Created attachment 212119 [details]
Updated patch for devel/bazel to update to 2.2.0

Indeed, the file BazelSemantics.java has changed, so my old way
of patching in ${PYTHON_CMD} did not work any more (and, having
only tested locally (rather than in poudriere), I didn't notice,
as I had a python binary on PATH). The modified patch hopefully
fixes this.
Comment 4 Steve Wills freebsd_committer 2020-03-03 16:39:29 UTC
(In reply to Klaus Aehlig from comment #3)
Ah, ok. BTW, using a patch to replace the code with %%PYTHON_CMD%% and then using REINPLACE_CMD to replace that with ${PYTHON_CMD} would help this be more visible in the future.
Comment 5 Klaus Aehlig 2020-03-03 17:32:19 UTC
Created attachment 212123 [details]
Patch for devel/bazel to update to 2.2.0

That is a good idea. Thanks. I rewrote my change to first patch and then use REINPLACE_CMD only to replace %%PYTHON_CMD%% by ${PYTHON_CMD}. This will hopefully avoid such mistakes in the future.
Comment 6 Klaus Aehlig 2020-04-07 17:45:21 UTC
Obsoleted by bug #245427