Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] dbus: generated dbus-1.pc incorrectly has Requires: xorg #22133

Closed
tsondergaard opened this issue Jan 3, 2024 · 1 comment · Fixed by #23384
Closed

[bug] dbus: generated dbus-1.pc incorrectly has Requires: xorg #22133

tsondergaard opened this issue Jan 3, 2024 · 1 comment · Fixed by #23384
Assignees

Comments

@tsondergaard
Copy link
Contributor

Environment details

When building qt with with_dbus=True and dbus option with_x11=True I see a dbus-1.pc like this being generated:

$ cat ./p/b/qt1f8e4c91c1b89/b/dbus-1.pc
prefix=/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p
libdir=${prefix}/lib
includedir=${prefix}/include
includedir1=${prefix}/include/dbus-1.0
includedir2=${prefix}/lib/dbus-1.0/include
bindir=${prefix}/bin

Name: dbus-1
Description: Conan package: dbus-1
Version: 1.15.8
Libs: -L"${libdir}" -ldbus-1 -lrt -lpthread
Cflags: -I"${includedir}" -I"${includedir1}" -I"${includedir2}"
Requires: expat xorg

It incorrectly lists xorg as dependency, which is incorrect. When dbus is built with with_x11 the libdbus-1 library is not affected - the only impact is that a binary dbus-launch is built that depends on x11.

  • Operating System+version: AlmaLinux 9.3
  • Compiler+version: gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
  • Conan version: 2.0.16
  • Python version: 3.9.18

Steps to reproduce

No response

Logs

No response

@memsharded memsharded self-assigned this Jan 3, 2024
@memsharded
Copy link
Member

Hi @tsondergaard

Thanks for your report.

I am not sure this is a Conan client issue. I see the ConanCenter recipe contains in

self.requires("xorg/system")

self.requires("xorg/system")

There are no components definition or anything similar, so the recipe depends on xorg and that results in the definition of that requires in .pc files, so looks correct. If we would like something different that would be implemented adding components to the dbus recipe, though I am not sure it is really worth.

I am moving this ticket to ConanCenter github repo, but please note that at the moment there is a huge queue of open PRs to ConanCenter, so this might take a while to be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants