Repository: conan-io/conan-center-index

Issue:
[bug] xorg/system: generated xorg.pc contains invalid paths which prevents qt with qtwebengine from being built
### Environment details

### Short explanation

conan generates the following xorg.pc that points to directories - `libdir`, `includedir`, and `bindir` which do not exists. Qt's configure scripts check this and when building with option qtwebengine=True this causes dbus detection to fail.

```
prefix=/home/ts/.conan2/p/b/xorg3c0e87eff0129/p
libdir=${prefix}/lib
includedir=${prefix}/include
bindir=${prefix}/bin

Name: xorg
Description: Conan package: xorg
Version: system
Libs: -L"${libdir}"
Cflags: -I"${includedir}"
Requires: x11 x11-xcb fontenc ice xau xaw7 xcomposite xcursor xdamage xdmcp xext xfixes xi xinerama xkbfile xmu xmuu xpm xrandr xrender xres xscrnsaver xt xtst xv xxf86vm xcb-xkb xcb-icccm xcb-image xcb-keysyms xcb-randr xcb-render xcb-renderutil xcb-shape xcb-shm xcb-sync xcb-xfixes xcb-xinerama xcb xcb-atom xcb-aux xcb-event xcb-util xcb-dri3 xcb-cursor uuid sm
```

### Complete explanation

When building qt/5.15.11 with option qtwebengine=True Qt still doesn't build qtwebengine on Linux because it fails to detect dbus in the qtwebengine module.

Here is a copy of the qt configure summary (with some irrelevant stuff replaced with [snip]). You can see that qt detects dbus independently for qt "main" and for qtwebengine and detection works for qt "main", but fails for qtwebengine causing qtwebengine not to be built:

```
Configure summary:

Build type: linux-g++ (x86_64, CPU features: cx16 mmx popcnt sse sse2 sse3 ssse3 sse4.1 sse4.2 sse4)
Compiler: gcc 11.4.1
Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c force_debug_info largefile precompile_header rdrnd rdseed shani silent x86SimdAlways shared shared rpath release c++11 c++14 c++17 c++1z concurrent dbus reduce_exports reduce_relocations stl
Build options:
  Mode ................................... release (with debug info)
  Optimize release build for size ........ no
  Building shared libraries .............. yes
  Using C standard ....................... C11
  Using C++ standard ..................... C++17
  Using ccache ........................... no
  Using new DTAGS ........................ yes
  Generating GDB index ................... no
  Relocatable ............................ yes
  Using precompiled headers .............. yes
  Using LTCG ............................. no
  Target compiler supports:
    SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
    AVX .................................. AVX AVX2
    AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
    Other x86 ............................ AES F16C RDRAND SHA
    Intrinsics without -mXXX option ...... yes
  Build parts ............................ libs tools
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... yes
  Qt D-Bus directly linked to libdbus .... yes
  Qt Gui ................................. yes
[snip]
Qt Tools:
  Qt Assistant ........................... yes
  Qt Designer ............................ yes
  Qt Distance Field Generator ............ yes
  kmap2qmap .............................. yes
  Qt Linguist ............................ yes
  Mac Deployment Tool .................... no
  makeqpf ................................ yes
  pixeltool .............................. yes
  qdbus .................................. yes
  qev .................................... yes
  Qt Attributions Scanner ................ yes
  qtdiag ................................. yes
  qtpaths ................................ yes
  qtplugininfo ........................... yes
  Windows deployment tool ................ no
  WinRT Runner Tool ...................... no
Qt Tools:
  QDoc ................................... yes
Qt WebEngine Build Tools:
  Use System Ninja ....................... yes
  Jumbo Build Merge Limit ................ no
  Developer build ........................ no
  Sanitizer .............................. no
  QtWebEngine required system libraries:
    fontconfig ........................... yes
    dbus ................................. no
    nss .................................. yes
    khr .................................. yes
    glibc ................................ yes
  QtWebEngine required system libraries for qpa-xcb:
    x11 .................................. yes
    libdrm ............................... yes
    xcomposite ........................... yes
    xcursor .............................. yes
    xi ................................... yes
    xproto (glproto) ..................... yes
    xtst ................................. yes
    xkbfile .............................. yes
  Optional system libraries used:
    re2 .................................. no
    icu .................................. no
    libwebp, libwebpmux and libwebpdemux . no
    opus ................................. yes
    ffmpeg ............................... no
    libvpx ............................... no
    snappy ............................... no
    glib ................................. yes
    zlib ................................. yes
    minizip .............................. no
    libevent ............................. no
    libxml2 and libxslt .................. no
    lcms2 ................................ no
    png .................................. yes
    JPEG ................................. yes
    harfbuzz ............................. no
    freetype ............................. yes
[snip]
Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

Note: The following modules are not being compiled in this configuration:
    webenginecore
    webengine
    webenginewidgets

WARNING: A suitable version of dbus required to build QtWebEngine could not be found.

WARNING: QtWebEngine will not be built.
```

Looking further in the log output it can be seen that the places that detects dbus correctly has multiple strategies:

First check, the one that succeeds:
```
Checking for D-Bus >= 1.2...
Trying source 0 (type pkgConfig) of library dbus ...
+ /usr/bin/pkg-config --exists --silence-errors dbus-1 '>=' 1.2
+ /usr/bin/pkg-config --modversion dbus-1 '>=' 1.2
> 1.15.8
+ /usr/bin/pkg-config --libs-only-L dbus-1 '>=' 1.2
> -L/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib -L/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib -L/home/ts/.conan2/p/b/xorg3c0e87eff0129/p/lib
+ /usr/bin/pkg-config --libs-only-l dbus-1 '>=' 1.2
> -ldbus-1 -lrt -lpthread -lexpat -lm -lX11-xcb -lfontenc -lICE -lXau -lXaw7 -lXcomposite -lXcursor -lXdamage -lXdmcp -lXext -lXfixes -lXi -lXinerama -lxkbfile -lXmu -lXmuu -lXpm -lXrandr -lXrender -lXRes -lXss -lXt -lX11 -lXtst -lXv -lXxf86vm -lxcb-xkb -lxcb-icccm -lxcb-image -lxcb-keysyms -lxcb-randr -lxcb-render-util -lxcb-render -lxcb-shape -lxcb-shm -lxcb-sync -lxcb-xfixes -lxcb-xinerama -lxcb-util -lxcb-dri3 -lxcb-cursor -lxcb -lSM -luuid
+ /usr/bin/pkg-config --cflags dbus-1 '>=' 1.2
> -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include/dbus-1.0 -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib/dbus-1.0/include -I/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/include -DXML_STATIC -I/home/ts/.conan2/p/b/xorg3c0e87eff0129/p/include -I/usr/include/uuid
Include path /home/ts/.conan2/p/b/xorg3c0e87eff0129/p/include is invalid.
  => source produced no result.
Trying source 1 (type inline) of library dbus ...
  => source failed condition 'config.win32'.
Trying source 2 (type inline) of library dbus ...
+ cd /home/ts/.conan2/p/b/qt1f8e4c91c1b89/b/build_folder/config.tests/dbus && /home/ts/.conan2/p/b/qt1f8e4c91c1b89/b/build_folder/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'DEFINES += XML_STATIC _GLIBCXX_USE_CXX11_ABI=1' 'INCLUDEPATH += /home/ts/.conan2/p/b/opensc6ba455d23599/p/include /home/ts/.conan2/p/b/doublf9792d5603c1c/p/include /home/ts/.conan2/p/b/fontc82d370f4cdf75/p/include /home/ts/.conan2/p/b/freet1932fcac8d978/p/include /home/ts/.conan2/p/b/freet1932fcac8d978/p/include/freetype2 /home/ts/.conan2/p/b/icu03594d7e70b4a/p/include /home/ts/.conan2/p/b/libjp2371ce510a138/p/include /home/ts/.conan2/p/b/libpnc465ca360dfb9/p/include /home/ts/.conan2/p/b/xkbco4994922ccb486/p/include /home/ts/.conan2/p/b/zstd151f956ef9427/p/include /home/ts/.conan2/p/b/opus3e97d71be6ddd/p/include /home/ts/.conan2/p/b/opus3e97d71be6ddd/p/include/opus /home/ts/.conan2/p/b/libxs96503321cb3a8/p/include /home/ts/.conan2/p/b/xorg-8a0e4f70c478a/p/include /home/ts/.conan2/p/b/xorg-8a0e4f70c478a/p/include/X11 /home/ts/.conan2/p/b/nss596173b3c4413/p/include /home/ts/.conan2/p/b/zlib14f1e6d005991/p/include /home/ts/.conan2/p/b/libdr922ec8785db98/p/include /home/ts/.conan2/p/b/libdr922ec8785db98/p/include/libdrm /home/ts/.conan2/p/b/libdr922ec8785db98/p/include/freedreno /home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include /home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include/dbus-1.0 /home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib/dbus-1.0/include /home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/include /usr/include/uuid /home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/include' 'QMAKE_LIBDIR+=/home/ts/.conan2/p/b/opensc6ba455d23599/p/lib /home/ts/.conan2/p/b/doublf9792d5603c1c/p/lib /home/ts/.conan2/p/b/fontc82d370f4cdf75/p/lib /home/ts/.conan2/p/b/freet1932fcac8d978/p/lib /home/ts/.conan2/p/b/util-f4a79cc8440e0/p/lib /home/ts/.conan2/p/b/icu03594d7e70b4a/p/lib /home/ts/.conan2/p/b/libjp2371ce510a138/p/lib /home/ts/.conan2/p/b/libpnc465ca360dfb9/p/lib /home/ts/.conan2/p/b/xkbco4994922ccb486/p/lib /home/ts/.conan2/p/b/libxm0275b44093c27/p/lib /home/ts/.conan2/p/b/libic69995494dd9c5/p/lib /home/ts/.conan2/p/b/zstd151f956ef9427/p/lib /home/ts/.conan2/p/b/opus3e97d71be6ddd/p/lib /home/ts/.conan2/p/b/libxs96503321cb3a8/p/lib /home/ts/.conan2/p/b/nss596173b3c4413/p/lib /home/ts/.conan2/p/b/nspr5c667cdb13011/p/lib /home/ts/.conan2/p/b/sqlit87f8ac7c4063f/p/lib /home/ts/.conan2/p/b/zlib14f1e6d005991/p/lib /home/ts/.conan2/p/b/libdr922ec8785db98/p/lib /home/ts/.conan2/p/b/libpcd21a41688c8ef/p/lib /home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib /home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib /home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/lib' QMAKE_RPATHLINKDIR+=/home/ts/.conan2/p/b/opensc6ba455d23599/p/lib:/home/ts/.conan2/p/b/doublf9792d5603c1c/p/lib:/home/ts/.conan2/p/b/fontc82d370f4cdf75/p/lib:/home/ts/.conan2/p/b/freet1932fcac8d978/p/lib:/home/ts/.conan2/p/b/util-f4a79cc8440e0/p/lib:/home/ts/.conan2/p/b/icu03594d7e70b4a/p/lib:/home/ts/.conan2/p/b/libjp2371ce510a138/p/lib:/home/ts/.conan2/p/b/libpnc465ca360dfb9/p/lib:/home/ts/.conan2/p/b/xkbco4994922ccb486/p/lib:/home/ts/.conan2/p/b/libxm0275b44093c27/p/lib:/home/ts/.conan2/p/b/libic69995494dd9c5/p/lib:/home/ts/.conan2/p/b/zstd151f956ef9427/p/lib:/home/ts/.conan2/p/b/opus3e97d71be6ddd/p/lib:/home/ts/.conan2/p/b/libxs96503321cb3a8/p/lib:/home/ts/.conan2/p/b/nss596173b3c4413/p/lib:/home/ts/.conan2/p/b/nspr5c667cdb13011/p/lib:/home/ts/.conan2/p/b/sqlit87f8ac7c4063f/p/lib:/home/ts/.conan2/p/b/zlib14f1e6d005991/p/lib:/home/ts/.conan2/p/b/libdr922ec8785db98/p/lib:/home/ts/.conan2/p/b/libpcd21a41688c8ef/p/lib:/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib:/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib:/home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/lib 'QMAKE_USE += dbus' 'QMAKE_LIBS_DBUS = -ldbus-1' /home/ts/.conan2/p/b/qt1f8e4c91c1b89/b/build_folder/config.tests/dbus
+ cd /home/ts/.conan2/p/b/qt1f8e4c91c1b89/b/build_folder/config.tests/dbus && MAKEFLAGS= /usr/bin/gmake
> g++ -c -pipe -O2 -w -fPIC -DXML_STATIC -D_GLIBCXX_USE_CXX11_ABI=1 -I. -I/home/ts/.conan2/p/b/opensc6ba455d23599/p/include -I/home/ts/.conan2/p/b/doublf9792d5603c1c/p/include -I/home/ts/.conan2/p/b/fontc82d370f4cdf75/p/include -I/home/ts/.conan2/p/b/freet1932fcac8d978/p/include -I/home/ts/.conan2/p/b/freet1932fcac8d978/p/include/freetype2 -I/home/ts/.conan2/p/b/icu03594d7e70b4a/p/include -I/home/ts/.conan2/p/b/libjp2371ce510a138/p/include -I/home/ts/.conan2/p/b/libpnc465ca360dfb9/p/include -I/home/ts/.conan2/p/b/xkbco4994922ccb486/p/include -I/home/ts/.conan2/p/b/zstd151f956ef9427/p/include -I/home/ts/.conan2/p/b/opus3e97d71be6ddd/p/include -I/home/ts/.conan2/p/b/opus3e97d71be6ddd/p/include/opus -I/home/ts/.conan2/p/b/libxs96503321cb3a8/p/include -I/home/ts/.conan2/p/b/xorg-8a0e4f70c478a/p/include -I/home/ts/.conan2/p/b/xorg-8a0e4f70c478a/p/include/X11 -I/home/ts/.conan2/p/b/nss596173b3c4413/p/include -I/home/ts/.conan2/p/b/zlib14f1e6d005991/p/include -I/home/ts/.conan2/p/b/libdr922ec8785db98/p/include -I/home/ts/.conan2/p/b/libdr922ec8785db98/p/include/libdrm -I/home/ts/.conan2/p/b/libdr922ec8785db98/p/include/freedreno -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include/dbus-1.0 -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib/dbus-1.0/include -I/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/include -I/usr/include/uuid -I/home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/include -I/home/ts/.conan2/p/qte9bd92779442b/s/qt5/qtbase/mkspecs/linux-g++ -o main.o main.cpp
> g++ -Wl,-O1 -Wl,-rpath-link,/home/ts/.conan2/p/b/opensc6ba455d23599/p/lib:/home/ts/.conan2/p/b/doublf9792d5603c1c/p/lib:/home/ts/.conan2/p/b/fontc82d370f4cdf75/p/lib:/home/ts/.conan2/p/b/freet1932fcac8d978/p/lib:/home/ts/.conan2/p/b/util-f4a79cc8440e0/p/lib:/home/ts/.conan2/p/b/icu03594d7e70b4a/p/lib:/home/ts/.conan2/p/b/libjp2371ce510a138/p/lib:/home/ts/.conan2/p/b/libpnc465ca360dfb9/p/lib:/home/ts/.conan2/p/b/xkbco4994922ccb486/p/lib:/home/ts/.conan2/p/b/libxm0275b44093c27/p/lib:/home/ts/.conan2/p/b/libic69995494dd9c5/p/lib:/home/ts/.conan2/p/b/zstd151f956ef9427/p/lib:/home/ts/.conan2/p/b/opus3e97d71be6ddd/p/lib:/home/ts/.conan2/p/b/libxs96503321cb3a8/p/lib:/home/ts/.conan2/p/b/nss596173b3c4413/p/lib:/home/ts/.conan2/p/b/nspr5c667cdb13011/p/lib:/home/ts/.conan2/p/b/sqlit87f8ac7c4063f/p/lib:/home/ts/.conan2/p/b/zlib14f1e6d005991/p/lib:/home/ts/.conan2/p/b/libdr922ec8785db98/p/lib:/home/ts/.conan2/p/b/libpcd21a41688c8ef/p/lib:/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib:/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib:/home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/lib -o dbus main.o   -L/home/ts/.conan2/p/b/opensc6ba455d23599/p/lib -L/home/ts/.conan2/p/b/doublf9792d5603c1c/p/lib -L/home/ts/.conan2/p/b/fontc82d370f4cdf75/p/lib -L/home/ts/.conan2/p/b/freet1932fcac8d978/p/lib -L/home/ts/.conan2/p/b/util-f4a79cc8440e0/p/lib -L/home/ts/.conan2/p/b/icu03594d7e70b4a/p/lib -L/home/ts/.conan2/p/b/libjp2371ce510a138/p/lib -L/home/ts/.conan2/p/b/libpnc465ca360dfb9/p/lib -L/home/ts/.conan2/p/b/xkbco4994922ccb486/p/lib -L/home/ts/.conan2/p/b/libxm0275b44093c27/p/lib -L/home/ts/.conan2/p/b/libic69995494dd9c5/p/lib -L/home/ts/.conan2/p/b/zstd151f956ef9427/p/lib -L/home/ts/.conan2/p/b/opus3e97d71be6ddd/p/lib -L/home/ts/.conan2/p/b/libxs96503321cb3a8/p/lib -L/home/ts/.conan2/p/b/nss596173b3c4413/p/lib -L/home/ts/.conan2/p/b/nspr5c667cdb13011/p/lib -L/home/ts/.conan2/p/b/sqlit87f8ac7c4063f/p/lib -L/home/ts/.conan2/p/b/zlib14f1e6d005991/p/lib -L/home/ts/.conan2/p/b/libdr922ec8785db98/p/lib -L/home/ts/.conan2/p/b/libpcd21a41688c8ef/p/lib -L/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib -L/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib -L/home/ts/.conan2/p/b/md4ce0f0afa10d6b3/p/lib -ldbus-1
 => source accepted.
test config.qtbase.libraries.dbus succeeded
``` 

check in qtwebengine for dbus, that fails:

```
Checking for d-bus...
Trying source 0 (type pkgConfig) of library webengine-dbus ...
+ /usr/bin/pkg-config --exists --silence-errors dbus-1
+ /usr/bin/pkg-config --modversion dbus-1
> 1.15.8
+ /usr/bin/pkg-config --libs-only-L dbus-1
> -L/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib -L/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/lib -L/home/ts/.conan2/p/b/xorg3c0e87eff0129/p/lib
+ /usr/bin/pkg-config --libs-only-l dbus-1
> -ldbus-1 -lrt -lpthread -lexpat -lm -lX11-xcb -lfontenc -lICE -lXau -lXaw7 -lXcomposite -lXcursor -lXdamage -lXdmcp -lXext -lXfixes -lXi -lXinerama -lxkbfile -lXmu -lXmuu -lXpm -lXrandr -lXrender -lXRes -lXss -lXt -lX11 -lXtst -lXv -lXxf86vm -lxcb-xkb -lxcb-icccm -lxcb-image -lxcb-keysyms -lxcb-randr -lxcb-render-util -lxcb-render -lxcb-shape -lxcb-shm -lxcb-sync -lxcb-xfixes -lxcb-xinerama -lxcb-util -lxcb-dri3 -lxcb-cursor -lxcb -lSM -luuid
+ /usr/bin/pkg-config --cflags dbus-1
> -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/include/dbus-1.0 -I/home/ts/.conan2/p/b/dbuse119f1e6f4a56/p/lib/dbus-1.0/include -I/home/ts/.conan2/p/b/expat8a01ed74e3dcf/p/include -DXML_STATIC -I/home/ts/.conan2/p/b/xorg3c0e87eff0129/p/include -I/usr/include/uuid
Include path /home/ts/.conan2/p/b/xorg3c0e87eff0129/p/include is invalid.
  => source produced no result.
test config.qtwebengine_buildtools.libraries.webengine-dbus FAILED
```

As can be seen both tests try with pkgconfig and fail and only the non-qtwebengine check has a fallback check that passes. The pkgconfig path fails because the generated dbus-1.pc lists xorg.pc as a dependency with the following content:

```
prefix=/home/ts/.conan2/p/b/xorg3c0e87eff0129/p
libdir=${prefix}/lib
includedir=${prefix}/include
bindir=${prefix}/bin

Name: xorg
Description: Conan package: xorg
Version: system
Libs: -L"${libdir}"
Cflags: -I"${includedir}"
Requires: x11 x11-xcb fontenc ice xau xaw7 xcomposite xcursor xdamage xdmcp xext xfixes xi xinerama xkbfile xmu xmuu xpm xrandr xrender xres xscrnsaver xt xtst xv xxf86vm xcb-xkb xcb-icccm xcb-image xcb-keysyms xcb-randr xcb-render xcb-renderutil xcb-shape xcb-shm xcb-sync xcb-xfixes xcb-xinerama xcb xcb-atom xcb-aux xcb-event xcb-util xcb-dri3 xcb-cursor uuid sm
```

The thing to note here is that the directories specified for Libs and Cflags in this file do not exist and Qt's configure checks for that and becomes upset and fails with the following message:

```
Include path /home/ts/.conan2/p/b/xorg3c0e87eff0129/p/include is invalid.
```

This message is from https://github.com/qt/qtbase/blob/v5.15.11-lts-lgpl/mkspecs/features/qt_configure.prf#L612

If I make the include and lib directories under /home/ts/.conan2/p/b/xorg3c0e87eff0129/p it fixes the problem, dbus is detected via pkgconfig and qtwebengine will be built.

* 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_


Discussion:
I think these paths come from ``PkgConfigDeps`` but because the recipe in https://github.com/conan-io/conan-center-index/blob/f4eb09ad79e8c869ccaabdc493a660cc91d24a4f/recipes/xorg/all/conanfile.py#L74C9-L74C21 is not clearing the default ``includedirs``, ``libdirs`` and ``bindirs``, probably this needs to be fixed in the recipe, not necessarily a Conan issue, but I will wait until @franramirez688 feedback
@memsharded, I reported this issues against conan and not conan-center-index by accident. There is no reason to disturb @franramirez688 any further, just transfer the issue. I apologize for the inconvenience.

Resolving patch:
diff --git a/recipes/xorg/all/conanfile.py b/recipes/xorg/all/conanfile.py
--- a/recipes/xorg/all/conanfile.py
+++ b/recipes/xorg/all/conanfile.py
@@ -1,4 +1,4 @@
-from conan import ConanFile
+from conan import ConanFile, conan_version
 from conan.tools.gnu import PkgConfig
 from conan.tools.system import package_manager
 from conan.errors import ConanInvalidConfiguration
@@ -72,6 +72,11 @@ def system_requirements(self):
                            "libxxf86vm", "libxv", "xkeyboard-config", "xcb-util", "xcb-util-cursor"], update=True, check=True)
 
     def package_info(self):
+        if conan_version.major >= 2:
+            self.cpp_info.bindirs = []
+            self.cpp_info.includedirs = []
+            self.cpp_info.libdirs = []
+
         for name in ["x11", "x11-xcb", "fontenc", "ice", "sm", "xau", "xaw7",
                      "xcomposite", "xcursor", "xdamage", "xdmcp", "xext", "xfixes", "xi",
                      "xinerama", "xkbfile", "xmu", "xmuu", "xpm", "xrandr", "xrender", "xres",
@@ -88,6 +93,9 @@ def package_info(self):
                 "pkg_config_name", name)
             self.cpp_info.components[name].set_property(
                 "component_version", pkg_config.version)
+            self.cpp_info.components[name].bindirs = []
+            self.cpp_info.components[name].includedirs = []
+            self.cpp_info.components[name].libdirs = []
             self.cpp_info.components[name].set_property("pkg_config_custom_content",
                                                         "\n".join(f"{key}={value}" for key, value in pkg_config.variables.items() if key not in ["pcfiledir","prefix", "includedir"]))
 


Test patch: