Bear is a tool that generates a compilation database for clang
tooling. The JSON compilation database is used in the clang project
to provide information on how a single compilation unit is processed.
With this, it is easy to re-run the compilation with alternate
programs. One way to get a compilation database is to use cmake as
the build tool. Passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake
generates the compile_commands.json file into the current directory.
For non-cmake projects, Bear generates the JSON file during the
build process.
The concept behind Bear is: to execute the original build command
and intercept the exec calls issued by the build tool. To achieve
that, Bear uses the LD_PRELOAD or DYLD_INSERT_LIBRARIES mechanisms
provided by the dynamic linker.
===> The following configuration options are available for bear-4.2.2_1:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
devel/spdlog: Update to 1.17.0
- Use complete arguments/options
- Bump PORTREVISION of dependent ports for shlib change
Changes: https://github.com/gabime/spdlog/releases
devel/bear: Upgrade to 4.0.1
The bear project has been re-written in Rust from 4.0.0. We upgrade this
to 4.0.1 and use builtin USE_CARGO.
A good new is that the new version does not need the per-compiler wrapper now.
Also, let aokblast@ take the maintainership.
Approved by: lwhsu (mentor)
Differential Revision: https://reviews.freebsd.org/D54755
devel/bear: Add clang version 21 to wrapper links
PR: 291641
Reported by: Derek Schrock <dereks@lifeofadishwasher.com>
Sponsored by: The FreeBSD Foundation
devel/libfmt: Bump PORTREVISION of dependent ports for shlib change after
786cb608216ce14e8ced27108c96a1f2c8492fca
The following ports are skipped because they have been updated after
786cb608216ce14e8ced27108c96a1f2c8492fca.
- chinese/fcitx5-chinese-addons
- chinese/fcitx5-mcbopomofo
- devel/fatal
- devel/fbthrift
- devel/folly
- devel/spdlog
- mail/mu
- net/fb303
- net/mvfst
- net/wangle
- science/seacas
- security/fizz
- www/proxygen
devel/bear: Remove pkg-message
The issue preventing bear from intercepting compile commands using the
dynamic linker preload method was resolved in src commit d8e841a9aa1f.
Sponsored by: The FreeBSD Foundation
Bump PORTREVISIONs after grpc shlib change in 2715f16944541b6b
PR: 282624
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47513
devel/bear: Update to 3.1.4; install links for wrapper interception
After src commit 8ccd0b876e, bear can no longer intercept compile
commands using the dynamic linker preload method. See
https://github.com/rizsotto/Bear/issues/557 for details.
An alternative method for bear to intercept compile commands is via
wrappers. To simplify using this method, install links for common build
tools under lib/bear/wrapper.d/.
PR: 280844
Sponsored by: The FreeBSD Foundation
devel/bear: Remove USE_LDCONFIG
Nothing else wants to link against lib/bear/*.so, so remove
USE_LDCONFIG.
Reported by: bapt
Sponsored by: The FreeBSD Foundation
devel/grpc: Update to 1.54.0 (should be part of
8f17596cf5a75f2dca4b4c9f65ba02a53e1b2cd9)
- Bump PORTREVISION of dependent ports for shlib change
Changes: https://github.com/grpc/grpc/releases
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
devel/bear: Update to 3.0.16
Remove the local patch for the $LIB dynamic library token that was only
supported on GNU/Linux. Upstream has switched the multilib conditional
to be for GNU/Linux only.
https://github.com/rizsotto/Bear/releases/tag/3.0.16
devel/bear: Update to 3.0.15
Unlike the dynamic linker included with GNU/Linux distributions, $LIB is
not a token strings that our dynamic linker defines. This update
includes a local patch to fix a runtime problem by hardcoding bear's
$LIB dynamic token with the value 'lib'.
Upstream PR: https://github.com/rizsotto/Bear/issues/409
Release notes: https://github.com/rizsotto/Bear/releases/tag/3.0.15
devel/bear: Fix build on 11.4
To use dprintf from cstdio on FreeBSD versions prior to 12, #define
_WITH_DPRINTF is required.
Credit to ashish for discovering this.