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

[package] xkgcommon: Cannot install because of #13592 #13625

Closed
Psy-Kai opened this issue Oct 20, 2022 · 3 comments
Closed

[package] xkgcommon: Cannot install because of #13592 #13625

Psy-Kai opened this issue Oct 20, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Psy-Kai
Copy link
Contributor

Psy-Kai commented Oct 20, 2022

Description

xorg::xkeyboard-config was removed without scanning other packages if the component is used.

Package and Environment Details

Linux

Conan profile

profile independent

Steps to reproduce

conan install -r conancenter xkbcommon/1.4.1@/ -pr:b=default -pr:h=default -g PkgConfigDeps

Logs

Click to expand log
Generator 'PkgConfigDeps' calling 'generate()'
ERROR: Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/conans/client/generators/__init__.py", line 181, in write_generators
    generator.generate()
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 415, in generate
    generator_files = self.content
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 402, in content
    pc_files.update(pc_generator.pc_files)
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 332, in pc_files
    for component_info in self.components_info:
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 264, in components_info
    comp_requires_names = self._get_cpp_info_requires_names(cpp_info)
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 243, in _get_cpp_info_requires_names
    comp_name = _get_component_name(req_conanfile, comp_ref_name, self._build_context_suffix)
  File "/usr/local/lib/python3.10/dist-packages/conan/tools/gnu/pkgconfigdeps.py", line 50, in _get_component_name
    raise ConanException("Component '{name}::{cname}' not found in '{name}' "
conans.errors.ConanException: Component 'xorg::xkeyboard-config' not found in 'xorg' package requirement

ERROR: Error in generator 'PkgConfigDeps': Component 'xorg::xkeyboard-config' not found in 'xorg' package requirement
@Psy-Kai Psy-Kai added the bug Something isn't working label Oct 20, 2022
@ericLemanissier
Copy link
Contributor

this will be fixed by #13604

@EstebanDugueperoux2
Copy link
Contributor

EstebanDugueperoux2 commented Oct 20, 2022

Hello,

I get also this issue when consuming qt.
But If I apply this PR change in the conanfile.py of xkbcommon in my cache, I get following error:

ERROR: qt5Example/0.0.1: Error in generate() method, line 71
        cmake.generate()
        ConanException: error generating context for 'xkbcommon/1.4.1': {'ref': xkeyboard-config/unknown@unknown/unknown, 'build': False, 'direct': True, 'test': False, 'visible': True}

with https://github.com/EstebanDugueperoux2/qt5Example example.

Regards.

@ericLemanissier
Copy link
Contributor

you probably want to rebuild xkbcommon with -b xkbcommon command line argument

@Psy-Kai Psy-Kai closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants