Repository: conan-io/conan-center-index

Issue:
[package] xorg/system: xorg-x11-xkb-utils-devel is not available on fedora 34
`xorg-x11-xkb-utils-devel` does not exist on Fedora 34 anymore.
See https://src.fedoraproject.org/rpms/xorg-x11-xkb-utils/blob/rawhide/f/dead.package

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **xorg/system**
  * Operating System+version: **Fedora Linux 34**
  * Compiler+version: **GCC 11**
  * Conan version: **conan 1.36.0**
  * Python version: **Python 3.9.4**

### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
```

### Steps to reproduce (Include if Applicable)



### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
export CONAN_SYSREQUIRES_MODE=verify
conan install xorg/system
libxcb-devel-1.13.1-7.fc34.x86_64
Package already installed: libxcb-devel
libxcb-devel-1.13.1-7.fc34.x86_64
package libfontenc-devel is not installed
package libXaw-devel is not installed
package libXcomposite-devel is not installed
package libXcursor-devel is not installed
package libXdmcp-devel is not installed
package libXft-devel is not installed
package libXtst-devel is not installed
package libXinerama-devel is not installed
package xorg-x11-xkb-utils-devel is not installed
package libXrandr-devel is not installed
package libXres-devel is not installed
package libXScrnSaver-devel is not installed
package libXvMC-devel is not installed
package xorg-x11-xtrans-devel is not installed
package xcb-util-wm-devel is not installed
package xcb-util-image-devel is not installed
package xcb-util-keysyms-devel is not installed
package xcb-util-renderutil-devel is not installed
package libXdamage-devel is not installed
package libXxf86vm-devel is not installed
package libXv-devel is not installed
package xkeyboard-config-devel is not installed
package xcb-util-devel is not installed
Not updating system_requirements. CONAN_SYSREQUIRES_MODE=verify
Running: sudo dnf install -y libXScrnSaver-devel libXaw-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXdmcp-devel libXft-devel libXinerama-devel libXrandr-devel libXres-devel libXtst-devel libXv-devel libXvMC-devel libXxf86vm-devel libfontenc-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel xkeyboard-config-devel xorg-x11-xkb-utils-devel xorg-x11-xtrans-devel
Last metadata expiration check: 0:57:59 ago on vr 30 apr 2021 23:37:27.
No match for argument: xorg-x11-xkb-utils-devel
Error: Unable to find a match: xorg-x11-xkb-utils-devel
xorg/system: ERROR: while executing system_requirements(): Command 'sudo dnf install -y libXScrnSaver-devel libXaw-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXdmcp-devel libXft-devel libXinerama-devel libXrandr-devel libXres-devel libXtst-devel libXv-devel libXvMC-devel libXxf86vm-devel libfontenc-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel xkeyboard-config-devel xorg-x11-xkb-utils-devel xorg-x11-xtrans-devel' failed
ERROR: Error in system requirements
```

</details>



Discussion:
Installing all available packages (thus all except `xorg-x11-xkb-utils-devel`) and setting `CONAN_SYSREQUIRES_MODE=disabled` is not a workaround.

```sh
$ conan install xorg/system@
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Installing package: xorg/system
Requirements
    xorg/system from 'conan-center' - Cache
Packages
    xorg/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
xorg/system: Already installed!
ERROR: Traceback (most recent call last):
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/tools/pkg_config.py", line 47, in _parse_output
    return self._cmd_output(command)
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/tools/pkg_config.py", line 13, in _cmd_output
    return check_output_runner(command).strip()
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/util/runners.py", line 92, in check_output_runner
    raise CalledProcessErrorWithStderr(process.returncode, cmd, output=stderr)
conans.errors.CalledProcessErrorWithStderr: Command 'pkg-config --print-provides xkbfile --print-errors' returned non-zero exit status 1.
Package xkbfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `xkbfile.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xkbfile', required by 'virtual:world', not found


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/errors.py", line 34, in conanfile_exception_formatter
    yield
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/installer.py", line 631, in _call_package_info
    conanfile.package_info()
  File "/home/maarten/.conan/data/xorg/system/_/_/export/conanfile.py", line 90, in package_info
    self._fill_cppinfo_from_pkgconfig(name)
  File "/home/maarten/.conan/data/xorg/system/_/_/export/conanfile.py", line 24, in _fill_cppinfo_from_pkgconfig
    if not pkg_config.provides:
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/tools/pkg_config.py", line 86, in provides
    return self._get_option('print-provides')
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/tools/pkg_config.py", line 53, in _get_option
    self.info[option] = self._parse_output(option).split()
  File "/home/maarten/.local/lib/python3.9/site-packages/conans/client/tools/pkg_config.py", line 49, in _parse_output
    raise ConanException('pkg-config command %s failed with error: %s' % (command, e))
conans.errors.ConanException: pkg-config command ['pkg-config', '--print-provides', 'xkbfile', '--print-errors'] failed with error: Command 'pkg-config --print-provides xkbfile --print-errors' returned non-zero exit status 1.
Package xkbfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `xkbfile.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xkbfile', required by 'virtual:world', not found
```
I was able to fix the error in https://github.com/conan-io/conan-center-index/issues/5385#issuecomment-830444557 by installing `libxkbfile-devel`.
```sh
sudo dnf install libxkbfile-devel
```

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
@@ -54,7 +54,7 @@ def system_requirements(self):
             elif tools.os_info.with_yum or tools.os_info.with_dnf:
                 packages = ["libxcb-devel", "libfontenc-devel", "libXaw-devel", "libXcomposite-devel",
                             "libXcursor-devel", "libXdmcp-devel", "libXft-devel", "libXtst-devel", "libXinerama-devel",
-                            "xorg-x11-xkb-utils-devel", "libXrandr-devel", "libXres-devel", "libXScrnSaver-devel", "libXvMC-devel",
+                            "libxkbfile-devel", "libXrandr-devel", "libXres-devel", "libXScrnSaver-devel", "libXvMC-devel",
                             "xorg-x11-xtrans-devel", "xcb-util-wm-devel", "xcb-util-image-devel", "xcb-util-keysyms-devel",
                             "xcb-util-renderutil-devel", "libXdamage-devel", "libXxf86vm-devel", "libXv-devel",
                             "xkeyboard-config-devel", "xcb-util-devel"]


Test patch: