conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
918 stars 1.65k forks source link

[package] dbus/1.15.8: system_socket default values not working correctly #24403

Open TillAlex opened 1 week ago

TillAlex commented 1 week ago

Description

When not setting the system_socket option at all the system bus address is set to "unix:path=None". For me it seems that the value 'None' of the option is used as a path. With this value the avahi client from the avahi package can not find the daemon.

If I am using "" as a value for the system_socket option the system bus address is set to "unix:path=/res/var/run/dbus/system_bus_socket" during compilation. The leading "/res" is wrong and the avahi client does not work either in this case.

Only if I am using "/var/run/dbus/system_bus_socket" as a value for the option the system bus address is set to "unix:path=/var/run/dbus/system_bus_socket" correctly. In this case avahi client works correctly.

The conan dbus package should work without explicitly setting the system_socket option and use the default system bus address defined by the dbus code.

Package and Environment Details

Conan profile

Host profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux

Build profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux

Steps to reproduce

I am using the dbus package as a requirement of the avahi package.

Logs

Click to expand log ``` The Meson build system Version: 1.4.0 Source dir: /home/alex/.conan2/p/b/dbus82571e76da500/b/src Build dir: /home/alex/.conan2/p/b/dbus82571e76da500/b/build-debug Build type: native build Project name: dbus Project version: 1.15.8 C compiler for the host machine: gcc (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") C linker for the host machine: gcc ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python3 found: YES (/usr/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 skipped: feature xml_docs disabled 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 Checking for function "XML_SetHashSalt" with dependency : NO Dependency libselinux skipped: feature selinux disabled Found pkg-config: YES (/home/alex/.conan2/p/pkgco03f8fb03aa80a/p/bin/pkgconf) 2.1.0 Found CMake: /usr/bin/cmake (3.22.1) Run-time dependency libapparmor found: NO (tried pkgconfig and cmake) Has header "sys/inotify.h" : YES Has header "sys/epoll.h" : YES Checking for function "epoll_create1" : YES Has header "sys/event.h" : NO Program launchctl found: NO Has header "launch.h" : NO Dependency libsystemd skipped: feature systemd disabled ../src/meson.build:524: WARNING: Traditional activation and systemd activation are both disabled, so service activation (automatically starting services that receive messages) will not work Library audit found: NO Checking for function "audit_log_user_avc_message" with dependency -laudit: NO Library cap-ng found: NO Checking for function "capng_clear" with dependency -lcap-ng: NO Dependency valgrind skipped: feature valgrind disabled Header "time.h" has symbol "__GLIBC__" : YES Header "time.h" has symbol "_TIME_BITS" : NO Checking for size of "void *" : 8 (cached) Checking for function "accept4" : YES Checking for function "clearenv" : YES Checking for function "closefrom" : YES Checking for function "close_range" : YES Checking for function "fpathconf" : YES Checking for function "getgrouplist" : YES Checking for function "getpeereid" : NO Checking for function "getpeerucred" : NO Checking for function "getpwnam_r" : YES Checking for function "getrandom" : YES Checking for function "getresuid" : YES Checking for function "getrlimit" : YES Checking for function "inotify_init1" : YES Checking for function "issetugid" : NO Checking for function "localeconv" : YES Checking for function "nanosleep" : YES Checking for function "pipe2" : YES Checking for function "poll" : YES Checking for function "prctl" : YES Checking for function "prlimit" : YES Checking for function "raise" : YES Checking for function "setenv" : YES Checking for function "setlocale" : YES Checking for function "setresuid" : YES Checking for function "setrlimit" : YES Checking for function "socketpair" : YES Checking for function "unsetenv" : YES Checking for function "usleep" : YES Check usable header "afunix.h" : NO Check usable header "alloca.h" : YES Check usable header "byteswap.h" : YES Check usable header "crt_externs.h" : NO Check usable header "dirent.h" : YES Check usable header "errno.h" : YES Check usable header "inttypes.h" : YES Check usable header "io.h" : NO Check usable header "locale.h" : YES Check usable header "linux/close_range.h" : YES Check usable header "linux/magic.h" : YES Check usable header "locale.h" : YES (cached) Check usable header "signal.h" : YES Check usable header "stdatomic.h" : YES Check usable header "syslog.h" : YES Check usable header "sys/prctl.h" : YES Check usable header "sys/random.h" : YES Check usable header "sys/resource.h" : YES Check usable header "sys/syscall.h" : YES Check usable header "sys/time.h" : YES Check usable header "sys/vfs.h" : YES Check usable header "unistd.h" : YES Check usable header "ws2tcpip.h" : NO Library execinfo found: NO Has header "execinfo.h" : YES Checking for function "backtrace" with dependency -lexecinfo: YES Header "unistd.h" has symbol "environ" : YES Header "syslog.h" has symbol "LOG_PERROR" : YES Header "sys/socket.h" has symbol "MSG_NOSIGNAL" : YES Checking for type "socklen_t" : YES Checking for type "struct cmsgcred" : NO Header "sys/uio.h" has symbol "writev" : YES Checking whether type "struct unpcbid" has member "unp_pid" : NO Checking for function "fstatfs" : YES Header "sys/syscall.h" has symbol "SYS_pidfd_open" : YES Program tools/check-runstatedir.sh found: YES (/home/alex/.conan2/p/b/dbus82571e76da500/b/src/tools/check-runstatedir.sh) ../src/meson.build:934: WARNING: NOTE: system bus listens on None | This build of dbus will not interoperate with the well-known | system bus socket, /var/run/dbus/system_bus_socket. Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Warray-bounds: YES Compiler for C supports arguments -Wcast-align: YES Compiler for C supports arguments -Wchar-subscripts: YES Compiler for C supports arguments -Wdouble-promotion: YES Compiler for C supports arguments -Wduplicated-branches: YES Compiler for C supports arguments -Wduplicated-cond: YES Compiler for C supports arguments -Wfloat-equal: YES Compiler for C supports arguments -Wformat-nonliteral: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Wformat=2: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Winline: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wmissing-include-dirs: YES Compiler for C supports arguments -Wmissing-noreturn: YES Compiler for C supports arguments -Wnull-dereference: YES Compiler for C supports arguments -Wpacked: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wredundant-decls: YES Compiler for C supports arguments -Wrestrict: YES Compiler for C supports arguments -Wreturn-type: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wsign-compare: YES Compiler for C supports arguments -Wstrict-aliasing: YES Compiler for C supports arguments -Wswitch-default: YES Compiler for C supports arguments -Wswitch-enum: YES Compiler for C supports arguments -Wundef: YES Compiler for C supports arguments -Wunused-but-set-variable: YES Compiler for C supports arguments -Wwrite-strings: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wimplicit-function-declaration: YES Compiler for C supports arguments -Wjump-misses-init: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wpointer-sign: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports link arguments -export-dynamic: YES Configuring config.h using configuration Configuring version_script using configuration Compiler for C supports link arguments -Wl,--version-script,/home/alex/.conan2/p/b/dbus82571e76da500/b/src/dbus/test-version-script: YES ../src/dbus/meson.build:186: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.. Configuring dbus-arch-deps.h using configuration Configuring dbus-cleanup-sockets.1.xml using configuration Configuring dbus-daemon.1.xml using configuration Configuring dbus-launch.1.xml using configuration Configuring dbus-monitor.1.xml using configuration Configuring dbus-run-session.1.xml using configuration Configuring dbus-send.1.xml using configuration Configuring dbus-test-tool.1.xml using configuration Configuring dbus-update-activation-environment.1.xml using configuration Configuring dbus-uuidgen.1.xml using configuration Configuring index.html using configuration Configuring catalog.xml using configuration Configuring DBus1Config.cmake using configuration Configuring DBus1ConfigVersion.cmake using configuration ../src/meson.build:1376: WARNING: building with assertions increases library size and decreases performance. ../src/meson.build:1380: WARNING: building without checks for arguments passed to public API makes it harder to debug apps using D-Bus, but will slightly decrease D-Bus library size and _very_ slightly improve performance. Build targets in project: 9 NOTICE: Future-deprecated features used: * 0.62.0: {'pkgconfig.generate variable for builtin directories'} * 1.1.0: {'"boolean option" keyword argument "value" of type str'} WARNING: Broken features used: * 1.3.0: {'str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.'} dbus 1.15.8 prefix : / exec_prefix : / libdir : /lib libexecdir : /bin bindir : /bin sysconfdir : /res/etc localstatedir : /res/var runstatedir : /res/var/run datadir : /res/share source code location : /home/alex/.conan2/p/b/dbus82571e76da500/b/src compiler : gcc cflags : -D_GNU_SOURCE -fno-strict-aliasing -DDBUS_STATIC_BUILD -D__USE_MINGW_ANSI_STDIO=0 -fno-common -Wno-missing-field-initializers -Wno-unused-parameter -Warray-bounds -Wcast-align -Wchar-subscripts -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self -Winline -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnull-dereference -Wpacked -Wpointer-arith -Wredundant-decls -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch-default -Wswitch-enum -Wundef -Wunused-but-set-variable -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wjump-misses-init -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-sign -Wstrict-prototypes ldflags : -export-dynamic 64-bit int : long 32-bit int : int 16-bit int : short pointer size : 8 xsltproc : Doxygen : ducktype : yelp-build : gcc coverage : NO gcc profiling : off Building embedded tests : NO Building modular tests : NO - with GLib : NO Installing tests : NO Building verbose mode : NO Building assertions : YES Building checks : NO Building bus stats API : YES Building container API : NO Building SELinux support : NO Building AppArmor support : NO Building inotify support : YES Building kqueue support : NO Building systemd support : NO Traditional activation : NO Building X11 code : NO Building Doxygen docs : NO Building Qt help file : NO Building Ducktype docs : NO Building XML docs : NO Building launchd support : NO Building dbus-daemon : NO Building tools : YES System bus socket : None System bus address : "unix:path=None" System bus PID file : None Session bus listens on : unix:tmpdir=/tmp Session clients connect to: "autolaunch:" System bus user : messagebus Session bus services dir : /res/share/dbus-1/services Tests socket dir : /tmp ```