BSD Ports

devel/bear 4.2.2_1 FreeBSD

Tool that generates a compilation database for clang tooling

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
9c878207a1
License
GPLv3+
Categories
devel
Package size
1256.0 KiB, 3613.7 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/bear4.2.2_1
OpenBSDdevel/bear4.2.2

Install

Binary package:

pkg install bear

From the ports tree:

cd /usr/ports/devel/bear/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	bear>0:devel/bear

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.2.24.2.2_13.0.213.1.5_144.2.2_1
FreeBSD:14:quarterly4.2.24.2.2n/a3.1.5_144.2.2
FreeBSD:15:latest4.2.2_14.2.2_1n/a3.1.5_143.1.5_14
FreeBSD:15:quarterly4.2.24.2.2n/an/an/a
FreeBSD:16:latest4.2.24.2.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 11

No port depends on this one.

Configuration

Options name: devel_bear

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
cargo
Service scripts
none

Files

Manual pages 1
  • bear(1)
pkg-plist 15
  • bin/bear
  • libexec/bear/bin/bear-driver
  • libexec/bear/bin/bear-wrapper
  • libexec/bear/lib/libexec.so
  • share/bash-completion/completions/bear
  • share/doc/bear/CLAUDE.md
  • share/doc/bear/CODE_OF_CONDUCT.md
  • share/doc/bear/CONTRIBUTING.md
  • share/doc/bear/COPYING
  • share/doc/bear/INSTALL.md
  • share/doc/bear/README.md
  • share/elvish/lib/bear.elv
  • share/fish/vendor_completions.d/bear.fish
  • share/man/man1/bear.1.gz
  • share/zsh/site-functions/_bear
distinfo 116
FileSizeSHA256
rust/crates/aho-corasick-1.1.5.crate184315c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba
rust/crates/annotate-snippets-0.12.16.crate56108f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1
rust/crates/anstyle-1.0.14.crate17787940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000
rust/crates/anyhow-1.0.104.crate48819330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470
rust/crates/arraydeque-0.5.1.crate176717d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236
rust/crates/assert_cmd-2.2.2.crate276832aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6
rust/crates/assert_fs-1.1.4.crate189466ecf5c70ca07b7f80220bce936f0556a960ca6fb00fc2bd4125b5e581b218137
rust/crates/autocfg-1.5.1.crate18911f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53
rust/crates/base64-0.23.1.crate93605ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5
rust/crates/bit-set-0.8.0.crate1628908807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3
rust/crates/bit-vec-0.8.0.crate241325e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7
rust/crates/bitflags-2.13.1.crate51395b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da
rust/crates/bstr-1.13.1.crate3566316bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f
rust/crates/cc-1.4.5.crate101464005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80
rust/crates/cfg-if-1.0.4.crate93609330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801
rust/crates/clap-4.6.6.crate64815473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca
rust/crates/clap_builder-4.6.6.crate1717567b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889
rust/crates/clap_complete-4.6.9.crate519203be2ad0423bdbbb0e25bc89add796f3559706d4a95e1bc98e4d9662a957b6a19
rust/crates/clap_derive-4.6.4.crate33533d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061
rust/crates/clap_lex-1.1.0.crate13470c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9

Commit history 6

DateCommitCreditsLog message
9c878207a1 Mikael Urankar lang/rust: Bump revisions after 1.99.0
PR: 299016
5ad44c7348 ShengYi Hung devel/bear: Update to 4.2.2
7316461925 Mikael Urankar lang/rust: Bump revisions after 1.98.1
PR: 298139
847ae41d07 ShengYi Hung devel/bear: Update to 4.2.1
9c892d2601 Mikael Urankar lang/rust: Bump revisions after 1.97.1
PR: 296645

The latest 5 of 6 in the history this site was built from.