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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/bear | 4.2.2_1 |
| OpenBSD | devel/bear | 4.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 4.2.2 | 4.2.2_1 | 3.0.21 | 3.1.5_14 | 4.2.2_1 |
| FreeBSD:14:quarterly | 4.2.2 | 4.2.2 | n/a | 3.1.5_14 | 4.2.2 |
| FreeBSD:15:latest | 4.2.2_1 | 4.2.2_1 | n/a | 3.1.5_14 | 3.1.5_14 |
| FreeBSD:15:quarterly | 4.2.2 | 4.2.2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.2.2 | 4.2.2_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| rust/crates/aho-corasick-1.1.5.crate | 184315 | c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba |
| rust/crates/annotate-snippets-0.12.16.crate | 56108 | f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1 |
| rust/crates/anstyle-1.0.14.crate | 17787 | 940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000 |
| rust/crates/anyhow-1.0.104.crate | 48819 | 330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470 |
| rust/crates/arraydeque-0.5.1.crate | 17671 | 7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236 |
| rust/crates/assert_cmd-2.2.2.crate | 27683 | 2aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6 |
| rust/crates/assert_fs-1.1.4.crate | 18946 | 6ecf5c70ca07b7f80220bce936f0556a960ca6fb00fc2bd4125b5e581b218137 |
| rust/crates/autocfg-1.5.1.crate | 18911 | f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53 |
| rust/crates/base64-0.23.1.crate | 93605 | ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5 |
| rust/crates/bit-set-0.8.0.crate | 16289 | 08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3 |
| rust/crates/bit-vec-0.8.0.crate | 24132 | 5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7 |
| rust/crates/bitflags-2.13.1.crate | 51395 | b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da |
| rust/crates/bstr-1.13.1.crate | 356631 | 6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f |
| rust/crates/cc-1.4.5.crate | 101464 | 005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80 |
| rust/crates/cfg-if-1.0.4.crate | 9360 | 9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801 |
| rust/crates/clap-4.6.6.crate | 64815 | 473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca |
| rust/crates/clap_builder-4.6.6.crate | 171756 | 7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889 |
| rust/crates/clap_complete-4.6.9.crate | 51920 | 3be2ad0423bdbbb0e25bc89add796f3559706d4a95e1bc98e4d9662a957b6a19 |
| rust/crates/clap_derive-4.6.4.crate | 33533 | d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061 |
| rust/crates/clap_lex-1.1.0.crate | 13470 | c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9 |
Commit history 6
The latest 5 of 6 in the history this site was built from.