dbus: fix build by adding libcap_ng for libaudit support#484488
Merged
adamcstephens merged 1 commit intoNixOS:stagingfrom Jan 27, 2026
Merged
dbus: fix build by adding libcap_ng for libaudit support#484488adamcstephens merged 1 commit intoNixOS:stagingfrom
libcap_ng for libaudit support#484488adamcstephens merged 1 commit intoNixOS:stagingfrom
Conversation
The dbus meson.build requires both libaudit and libcap-ng when libaudit
support is enabled:
have_libaudit = libaudit_ok and cap_ng_ok
While the audit package itself depends on libcap_ng, that dependency
doesn't make libcap_ng available in dbus's build environment. Adding it
explicitly fixes the build failure:
Library cap-ng found: NO
meson.build:556:8: ERROR: Problem encountered: libaudit support
requested but not found
libcap_ng for libaudit support
jtojnar
approved these changes
Jan 27, 2026
Member
|
I don't know whether this caused the breakage, but you seem to be knowledgeable as to what might be going on. When I try to build $ env NIX_PATH=nixpkgs=channel:nixpkgs-unstable nix-build -E 'with import <nixpkgs> {}; pkgsStatic.dbus.override { x11Support = false; }'
[...]
The Meson build system
Version: 1.10.1
Source dir: /build/dbus-1.16.2
Build dir: /build/dbus-1.16.2/build
Build type: cross build
Project name: dbus
Project version: 1.16.2
C compiler for the host machine: x86_64-unknown-linux-musl-gcc (gcc 15.2.0 "x86_64-unknown-linux-musl-gcc (GCC) 15.2.0")
C linker for the host machine: x86_64-unknown-linux-musl-gcc ld.bfd 2.44
Compiler for language c for the build machine not found.
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program python3 found: YES (/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin/python3)
Message: Detected platform : Unix (linux)
Compiler for C supports arguments -D_GNU_SOURCE: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports arguments -DDBUS_STATIC_BUILD: YES
Compiler for C supports arguments -D__USE_MINGW_ANSI_STDIO=0: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Checking for size of "short" : 2
Checking for size of "int" : 4
Checking for size of "long" : 8
Checking for size of "long long" : 8
Checking for size of "__int64" : -1
Checking for size of "void *" : 8
Program xsltproc found: YES (/nix/store/5akzak6yir5qanifyrxh4fazb8vwn85y-libxslt-1.1.45-bin/bin/xsltproc)
Program doxygen skipped: feature doxygen_docs disabled
Program ducktype skipped: feature ducktype_docs disabled
Program yelp-build skipped: feature ducktype_docs disabled
Program qhelpgenerator qhelpgenerator-qt5 skipped: feature qt_help disabled
Run-time dependency threads found: YES
Header "pthread.h" has symbol "CLOCK_MONOTONIC" : YES
Header "pthread.h" has symbol "pthread_condattr_setclock" : YES
Header "time.h" has symbol "clock_getres" : YES
Found pkg-config: YES (/nix/store/8mwxcg9p30571iy6npzbyw3fc2hiyzc1-x86_64-unknown-linux-musl-pkg-config-wrapper-0.29.2/bin/x86_64-unknown-linux-musl-pkg-config) 0.29.2
Run-time dependency expat found: YES 2.7.4
Checking for function "XML_SetHashSalt" with dependency expat: YES
Dependency libselinux skipped: feature selinux disabled
Run-time dependency libapparmor found: YES 4.1.3
Has header "sys/inotify.h" : YES
Has header "sys/epoll.h" : YES
Checking for function "epoll_create1" : YES
Dependency libsystemd skipped: feature systemd disabled
Library audit found: YES
Checking for function "audit_log_user_avc_message" with dependency -laudit: NO
Library cap-ng found: YES
Checking for function "capng_clear" with dependency -lcap-ng: YES
meson.build:556:8: ERROR: Problem encountered: libaudit support requested but not found |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dbus meson.build requires both libaudit and libcap-ng when libaudit support is enabled:
While the audit package itself depends on libcap_ng, that dependency doesn't make libcap_ng available in dbus's build environment. Adding it explicitly fixes the build failure:
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.