87.2. abseil-cpp-20260817.0
Google's C++ common libraries (strings, containers, synchronization, time)
20260817.0-1 · Apache-2.0 · 3.4 SBU · 7.5 MiB, 817 files · 41_system, 141 of 1047 · ports/core/devlibs/abseil-cpp
Homepage: https://abseil.io/
Abseil is Google’s collection of C++ libraries that sit beside the standard library: strings and formatting (absl::StrCat, absl::StrFormat), hash containers (flat_hash_map), synchronisation, time, status codes and logging. protobuf and re2 are built on it, and through them much more, and webrtc-audio-processing, pipewire, blender, kicad, ceres-solver and others link it directly. The port installs each Abseil component as its own shared library, libabsl_*.so, each with a pkg-config file, and one CMake package for them all.
Depends on: cmake.
Required by (13): android-tools, blender, ceres-solver, curaengine, kicad, libarcus, libphonenumber, marble, pipewire, protobuf, python3-pyarcus, re2, webrtc-audio-processing.
Sources: abseil-cpp-20260817.0.tar.gz (2.3 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install abseil-cpp'
build.sh:
mkdir build
cd build
cmake .. \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DABSL_BUILD_TESTING=OFF \
-DABSL_BUILD_TEST_HELPERS=OFF \
-DABSL_PROPAGATE_CXX_STD=ON \
-DABSL_ENABLE_INSTALL=ON
make
make DESTDIR=$PKG install
-DCMAKE_CXX_STANDARD=17,-DCMAKE_CXX_STANDARD_REQUIRED=ON— Build as C++17, Abseil’s minimum. The install rewritesabsl/base/options.hfor the standard the build used: under C++17 it pins Abseil’s own source-location and ordering types rather than C++20’s, so a consumer compiled as C++17 or as any later standard sees the same types the library was built with.-DABSL_PROPAGATE_CXX_STD=ON— Have every Abseil target require C++17 of what links it, through CMake’scxx_std_17compile feature, so a consumer cannot build against the headers with an older standard; upstream’s default, written out.-DCMAKE_SKIP_INSTALL_RPATH=ON— Install the libraries without a run path. Abseil’sCMakeLists.txtsetsCMAKE_INSTALL_RPATHto$ORIGIN, which every installed library would otherwise carry.-DBUILD_SHARED_LIBS=ON— Shared libraries, one per component.-DABSL_BUILD_TESTING=OFF,-DABSL_BUILD_TEST_HELPERS=OFF— Neither Abseil’s tests nor the test-helper libraries, which need GoogleTest.-DABSL_ENABLE_INSTALL=ON— Install the libraries, headers and package files; upstream’s default when Abseil is the top-level project, written out.
Libraries: libabsl_base.so, libabsl_base_cpu_detect.so, libabsl_city.so, libabsl_civil_time.so, libabsl_clock_interface.so, libabsl_cord.so, libabsl_cord_internal.so, libabsl_cordz_functions.so, libabsl_cordz_handle.so, libabsl_cordz_info.so, libabsl_cordz_sample_token.so, libabsl_crc32c.so, libabsl_crc_cord_state.so, libabsl_crc_internal.so, libabsl_debugging_internal.so, libabsl_decode_rust_punycode.so, libabsl_demangle_internal.so, libabsl_demangle_rust.so, libabsl_die_if_null.so, libabsl_examine_stack.so, libabsl_exponential_biased.so, libabsl_failure_signal_handler.so, libabsl_flags_commandlineflag.so, libabsl_flags_commandlineflag_internal.so, libabsl_flags_config.so, libabsl_flags_internal.so, libabsl_flags_marshalling.so, libabsl_flags_parse.so, libabsl_flags_private_handle_accessor.so, libabsl_flags_program_name.so, libabsl_flags_reflection.so, libabsl_flags_usage.so, libabsl_flags_usage_internal.so, libabsl_generic_printer_internal.so, libabsl_graphcycles_internal.so, libabsl_hardening.so, libabsl_hash.so, libabsl_hashtable_profiler.so, libabsl_hashtablez_sampler.so, libabsl_int128.so, libabsl_kernel_timeout_internal.so, libabsl_leak_check.so, libabsl_log_entry.so, libabsl_log_flags.so, libabsl_log_globals.so, libabsl_log_initialize.so, libabsl_log_internal_check_op.so, libabsl_log_internal_conditions.so, libabsl_log_internal_fnmatch.so, libabsl_log_internal_format.so, libabsl_log_internal_globals.so, libabsl_log_internal_log_sink_set.so, libabsl_log_internal_message.so, libabsl_log_internal_nullguard.so, libabsl_log_internal_proto.so, libabsl_log_internal_structured_proto.so, libabsl_log_severity.so, libabsl_log_sink.so, libabsl_malloc_internal.so, libabsl_periodic_sampler.so, libabsl_poison.so, libabsl_profile_builder.so, libabsl_random_distributions.so, libabsl_random_internal_distribution_test_util.so, libabsl_random_internal_entropy_pool.so, libabsl_random_internal_platform.so, libabsl_random_internal_randen.so, libabsl_random_internal_randen_hwaes.so, libabsl_random_internal_randen_hwaes_impl.so, libabsl_random_internal_randen_slow.so, libabsl_random_internal_seed_material.so, libabsl_random_seed_gen_exception.so, libabsl_random_seed_sequences.so, libabsl_raw_hash_set.so, libabsl_raw_logging_internal.so, libabsl_scoped_set_env.so, libabsl_source_location.so, libabsl_spinlock_wait.so, libabsl_stacktrace.so, libabsl_status.so, libabsl_status_builder.so, libabsl_statusor.so, libabsl_str_format_internal.so, libabsl_strerror.so, libabsl_strings.so, libabsl_strings_internal.so, libabsl_symbolize.so, libabsl_synchronization.so, libabsl_throw_delegate.so, libabsl_time.so, libabsl_time_zone.so, libabsl_tracing_internal.so, libabsl_utf8_for_code_point.so, libabsl_vlog_config_internal.so.
Directories: /usr/include/absl, /usr/lib/cmake/absl, /usr/share/licenses/abseil-cpp.
Each library’s soname is taken from the Abseil release, libabsl_base.so.2608.0.0 for 20260817.0, so a new release changes every soname and every port linked against Abseil has to be rebuilt with it.