Bug 261363 - devel/bazel: update to 5.0.0
Summary: devel/bazel: update to 5.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL: https://blog.bazel.build/2022/01/19/b...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-20 18:29 UTC by Klaus Aehlig
Modified: 2022-02-28 00:38 UTC (History)
2 users (show)

See Also:


Attachments
Patch for devel/bazel to update to 5.0.0 (12.44 KB, patch)
2022-01-20 18:29 UTC, Klaus Aehlig
aehlig: maintainer-approval+
Details | Diff
Refreshed patch for devel/bazel to update to 5.0.0 (12.33 KB, patch)
2022-01-21 08:00 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 2022-01-20 18:29:05 UTC
Created attachment 231187 [details]
Patch for devel/bazel to update to 5.0.0

Update devel/bazel to 5.0.0

Release notes: https://blog.bazel.build/2022/01/19/bazel-5.0.html
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-21 06:51:05 UTC
^Triage: If there is a changelog or release notes URL available for this version, please add it to the URL field.

Q/A:  Makefile: possible use of absolute pathname "/usr/bin/clang".
 /data/fernape_data/FreeBSD-repos/ports/devel/bazel/files/patch-distdir_deps.bzl: patch was not generated using ``make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
 /data/fernape_data/FreeBSD-repos/ports/devel/bazel/files/patch-scripts_bootstrap_BUILD.bootstrap: patch was not generated using ``make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
 /data/fernape_data/FreeBSD-repos/ports/devel/bazel/files/patch-src_main_cpp_blaze_util_bsd.cc: patch was not generated using ``make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.

Thanks!
Comment 2 Klaus Aehlig 2022-01-21 08:00:48 UTC
Created attachment 231204 [details]
Refreshed patch for devel/bazel to update to 5.0.0

Refreshed patches to look as if generated by `make makepatch`. (Due to the programmatic `post-patch`, directly calling `make makepatch` does not work.)

The only remaining warning is the mention of `/usr/bin/clang` in line 17, which is a false positive warning (a `BROKEN` variables quotes an error message).
Comment 3 Klaus Aehlig 2022-01-21 08:02:27 UTC
Refreshed that patch and also copied the release URL to the URL field.

Please take another look.
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-21 08:21:08 UTC
Excellent,

Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-01-24 11:19:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1a6fab9f7b2135d4f045da293eb73e5dfc511843

commit 1a6fab9f7b2135d4f045da293eb73e5dfc511843
Author:     Klaus Aehlig <aehlig@linta.de>
AuthorDate: 2022-01-21 08:18:59 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-01-24 11:17:06 +0000

    devel/bazel: update to 5.0.0

    ChangeLog: https://blog.bazel.build/2022/01/19/bazel-5.0.html

    PR:     261363
    Reported by:    aehlig@linta.de (maintainer)

 devel/bazel/Makefile                               | 17 +++++++---
 devel/bazel/distinfo                               |  6 ++--
 .../files/extra-patch-bazel_build_defs.bzl (new)   | 10 ++++++
 devel/bazel/files/extra-patch-bazel_grpc__deps.bzl | 20 +++++++----
 devel/bazel/files/patch-WORKSPACE (gone)           | 14 --------
 devel/bazel/files/patch-distdir_deps.bzl (new)     | 10 ++++++
 .../patch-scripts_bootstrap_BUILD.bootstrap (new)  | 13 ++++++++
 .../patch-src_main_cpp_blaze_util_bsd.cc (new)     | 11 ++++++
 ...ib_bazel_rules_python_BazelPythonSemantics.java | 12 +++----
 ...h-tools__jdk__default_java_toolchain.bzl (gone) | 39 ----------------------
 10 files changed, 79 insertions(+), 73 deletions(-)
Comment 6 Fernando Apesteguía freebsd_committer freebsd_triage 2022-01-24 11:23:46 UTC
Committed,

Thanks!
Comment 7 Ulas SAYGIN 2022-02-28 00:38:44 UTC
hi, i have difficulty in freebsd 13 to run bazel build.
could you test this version on freebsd 13 release please?

i documented my problem. i couldnt be able compile anything including examples of bazel c++ source codes.

can you check that?
and give me your configs if your system is working?
what are your DEFAULT Versions like which python version you are using , openssl or libressl etc?

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262216