Page MenuHomeFreeBSD

devel/bazel*: fix build on 14.0-ALPHA3
AbandonedPublic

Authored by dfr on Aug 27 2023, 1:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 7:59 AM
Unknown Object (File)
Feb 15 2024, 12:38 PM
Unknown Object (File)
Feb 9 2024, 7:32 AM
Unknown Object (File)
Jan 18 2024, 1:20 PM
Unknown Object (File)
Jan 5 2024, 10:31 PM
Unknown Object (File)
Dec 24 2023, 3:39 PM
Unknown Object (File)
Dec 22 2023, 1:36 PM
Unknown Object (File)
Nov 25 2023, 4:23 PM
Subscribers

Details

Reviewers
vishwin
bofh
Summary

Both bazel and bazel5 need to suppress warnings about
__builtin_offsetof. For bazel, the patch for upb needs to be applied in
the top-level distdir_deps.bzl.

This also adds a workaround for
https://github.com/bazelbuild/bazel/issues/15616 which allows 'make
clean' to remove the bazel_tmp directory. This doesn't seem to be a
problem for poudriere builds for some reason but it did affect my manual
builds.

Test Plan

Build manually and in poudriere on 13.2 and manually on 14.0.a2

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 53306
Build 50197: arc lint + arc unit

Event Timeline

dfr requested review of this revision.Aug 27 2023, 1:06 PM

Any feedback or questions for this would be welcome - I need bazel5 to build to unblock building packages for podman and related ports.

I just did what was required to do at that moment and I am not the one to review this. If there is a fix the maintainer will check and do the necessary.

Friendly ping - these ports are still broken on FreeBSD-14.0-RC4 which is a problem for me since I use bazel a lot and I want to be able to upgrade my home lab systems to FreeBSD-14.

If you don't have the bandwdith for this port, I'm happy to take over as maintainer if that would help?

Fix for devel/bazel5 is merged in D42729. I will make a new diff for fixing devel/bazel which will also update to the current release version, 6.4.0.