Skip to content

xkbcommon: Revert using a separate directory for the build context #13668

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

Merged

Conversation

jwillikers
Copy link
Contributor

@jwillikers jwillikers commented Oct 21, 2022

I made an oops in my previous change #13612.
This actually does end up breaking cross-compilation. The requirements of wayland-scanner aren't available in the build context. This causes pkg-config to fail to "find" wayland-scanner. The expat and libxml2 files would need to be in this same directory. Omitting the separate build context directory for pkg-config files works around this issue for now. Work will need to be done upstream to ensure dependencies are also made available in the build context for PkgConfigDeps. See conan-io/conan#12342 for progress on the issue upstream.

It's important to note that pointing Meson to the generators directory for "native" pkg-config files isn't the safest thing to do. It's possible for Meson to mistakenly think dependencies in the generators directory are meant for the build context when they are of course meant for the host context whenever they lack the _BUILD suffix.

I've also placed wayland-protocols in the build context. While it provides XML files only, really, this maps to how it is used.

Specify library name and version: xkbcommon/*


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

I made an oops in my previous change.
This actually does end up breaking cross-compilation.
The requirements of `wayland-scanner` aren't available in the build context.
This causes pkg-config to fail to "find" `wayland-scanner`.
The `expat` and `libxml2` files would need to be in this same directory.
Omitting the separate build context directory for pkg-config files works around this issue for now.
Work will need to be done upstream to ensure dependencies are also made available in the build context for PkgConfigDeps.
See conan-io/conan#12342 for progress on the issue upstream.

It's important to note that pointing Meson to the generators directory for "native" pkg-config files isn't the safest thing to do.
It's possible for Meson to mistakenly think dependencies in the generators directory are meant for the build context when they are of course meant for the host context whenever they lack the `_BUILD` suffix.

I've also placed `wayland-protocols` in the build context.
While it provides XML files only, really, this maps to how it is used.
@conan-center-bot
Copy link
Collaborator

All green in build 3 (6c831280795fef8a1c0767e4b6f82c8214922dd0):

  • xkbcommon/1.4.1@:
    All packages built successfully! (All logs)

  • xkbcommon/1.3.1@:
    All packages built successfully! (All logs)

  • xkbcommon/1.3.0@:
    All packages built successfully! (All logs)

  • xkbcommon/1.0.3@:
    All packages built successfully! (All logs)

  • xkbcommon/0.10.0@:
    All packages built successfully! (All logs)

  • xkbcommon/1.2.1@:
    All packages built successfully! (All logs)

  • xkbcommon/1.4.0@:
    All packages built successfully! (All logs)

  • xkbcommon/1.1.0@:
    All packages built successfully! (All logs)

  • xkbcommon/1.0.1@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit ac2e523 into conan-io:master Oct 24, 2022
@jwillikers jwillikers deleted the fix-xkbcommon-build-context branch October 25, 2022 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants