Bug 293396 - devel/brpc: new port for Apache bRPC 1.16.0
Summary: devel/brpc: new port for Apache bRPC 1.16.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-23 22:27 UTC by Daniel Morante
Modified: 2026-05-01 14:24 UTC (History)
1 user (show)

See Also:


Attachments
Git diff patch (52.54 KB, patch)
2026-02-23 22:27 UTC, Daniel Morante
no flags Details | Diff
Git diff patch (52.48 KB, patch)
2026-02-23 22:36 UTC, Daniel Morante
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Morante 2026-02-23 22:27:30 UTC
Created attachment 268310 [details]
Git diff patch

Apache bRPC is an industrial-grade RPC framework written in C++, widely used in high-performance systems such as search, storage, machine learning, and recommendation engines. It is a top-level Apache project.

devel/brpc is a dependency to the db/doris (Apache Doris) port I am working on.

There are 23 patch files for FreeBSD platform support and they have been submitted upstream to apache/brpc as three separate PRs:

- https://github.com/apache/brpc/pull/3223 — Remove dead tracked_objects.h references
- https://github.com/apache/brpc/pull/3224 — FreeBSD platform support
- https://github.com/apache/brpc/pull/3225 — FreeBSD CI workflow + glog 0.7.x compatibility

The time frame for getting these patches merged and shipped in the next brpc release is unknown and probably not guaranteed.  I didn't want delay the port due to that, which is why I am submitting it now.

Test results:

- Builds cleanly with poudriere on FreeBSD 15.0, 14.3, and 13.5
- portclippy exits 0
- portlint: 0 fatal errors
Comment 1 Daniel Morante 2026-02-23 22:36:25 UTC
Created attachment 268311 [details]
Git diff patch

Uploaded incorrect version of the diff
Comment 2 Vanilla I. Shu freebsd_committer freebsd_triage 2026-05-01 14:23:40 UTC
Committed, thanks.
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-05-01 14:24:22 UTC
A commit in branch main references this bug:

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

commit a4a400be07ce2161f12997a32a11c3cf46a9dde5
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2026-05-01 14:22:23 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2026-05-01 14:23:23 +0000

    devel/brpc: add new ports.

    PR:             293396

 devel/Makefile                                     |   1 +
 devel/brpc/Makefile (new)                          |  41 ++
 devel/brpc/distinfo (new)                          |   3 +
 devel/brpc/files/patch-CMakeLists.txt (new)        |  49 ++
 .../brpc/files/patch-src_brpc_controller.cpp (new) |  11 +
 .../patch-src_brpc_event__dispatcher.cpp (new)     |  11 +
 ...c_brpc_policy_domain__naming__service.cpp (new) |  11 +
 devel/brpc/files/patch-src_brpc_socket.cpp (new)   | 124 +++++
 devel/brpc/files/patch-src_bthread_context.h (new) |  18 +
 devel/brpc/files/patch-src_bthread_errno.cpp (new) |  11 +
 devel/brpc/files/patch-src_bthread_fd.cpp (new)    |  92 ++++
 devel/brpc/files/patch-src_bthread_mutex.cpp (new) |  15 +
 .../files/patch-src_bthread_sys__futex.cpp (new)   |  11 +
 .../files/patch-src_bthread_sys__futex.h (new)     |  11 +
 .../patch-src_bthread_task__control.cpp (new)      |  17 +
 .../files/patch-src_bthread_task__group.cpp (new)  |  20 +
 devel/brpc/files/patch-src_butil_compat.h (new)    |  22 +
 ...-src_butil_details_extended__endpoint.hpp (new) |  20 +
 .../brpc/files/patch-src_butil_endpoint.cpp (new)  |  38 ++
 devel/brpc/files/patch-src_butil_errno.cpp (new)   |  20 +
 .../files/patch-src_butil_fd__utility.cpp (new)    |  29 ++
 devel/brpc/files/patch-src_butil_logging.cc (new)  |  44 ++
 devel/brpc/files/patch-src_butil_popen.cpp (new)   |  12 +
 .../files/patch-src_butil_process__util.cc (new)   |  38 ++
 ...il_threading_platform__thread__freebsd.cc (new) |  18 +
 .../patch-src_bvar_default__variables.cpp (new)    |  12 +
 devel/brpc/pkg-descr (new)                         |   9 +
 devel/brpc/pkg-plist (new)                         | 541 +++++++++++++++++++++
 28 files changed, 1249 insertions(+)