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

[xorg] Model uuid dependency #18570

Conversation

samuel-emrys
Copy link
Contributor

Prevent erroneous linkage against an incompatible uuid interface when libuuid exists in the dependency tree with xorg by adding a dependency on the util-linux-libuuid conan package. This will ensure an error is raised if libuuid is in the same dependency graph as xorg.

This has caused issues in #17427, #17485 and this change is based on the suggestion by @prince-chrismc in #17995 (comment). Read these linked issues for context.


* Prevent erroneous linkage against an incompatible uuid interface when
  libuuid exists in the dependency tree with xorg by adding a dependency
  on the util-linux-libuuid conan package. This will ensure an error is
  raised if libuuid is in the same dependency graph as xorg.
@github-actions
Copy link
Contributor

🤖 Beep Boop! This pull request is making changes to 'recipes/xorg//'.

👋 @Hopobcn you might be interested. 😉

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@stale stale bot removed the stale label Nov 14, 2023
@AbrilRBS AbrilRBS self-assigned this Nov 14, 2023
@samuel-emrys
Copy link
Contributor Author

@RubenRBS is this being considered at all? If not, I'll close this out - trying to minimise the number of plates I've got spinning for CCI contributions.

@ghost ghost mentioned this pull request Jan 19, 2024
3 tasks
@valgur
Copy link
Contributor

valgur commented Mar 24, 2024

I think this is relevant anymore thanks to libuuid being replaced by util-linux-libuuid everywhere by now?

@samuel-emrys
Copy link
Contributor Author

@valgur actually not entirely. This is about modelling the dependency in xorg itself so that it's enforced as part of the dependency tree, so that we get meaningful errors if any package in the tree uses a different libuuid. We've solved this problem for cci packages, but not anything outside this curated ecosystem

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 1 (578af504d315d4ecf472bd85346c4bb55ee45872):

  • xorg/system:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 1 (578af504d315d4ecf472bd85346c4bb55ee45872):

  • xorg/system:
    All packages built successfully! (All logs)

# This is necessary to prevent other packages in the dependency tree from using the "libuuid" recipe
# which conflicts with the system installation of `util-linux-libuuid` that `xorg` installs. See #17427, #17485
# This has no functional bearing on xorg, however, as it links against the system library installed in util-linux-libs
self.requires("util-linux-libuuid/2.39")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.requires("util-linux-libuuid/2.39")
self.requires("util-linux-libuuid/[*]")

Could it be set to accept any version, maybe, to avoid the need for version bumps? (the pattern works, I tested it locally)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not opposed to this provided it gets maintainer buy in. @uilianries @RubenRBS thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check: https://github.com/conan-io/conan-center-index/blob/master/docs/adding_packages/dependencies.md#version-ranges

Conan maintainers may introduce this for other dependencies over time. Outside of the cases outlined above, version ranges are not allowed in ConanCenter recipes.

@ghost ghost mentioned this pull request Apr 16, 2024
4 tasks
@perseoGI perseoGI self-requested a review June 7, 2024 10:12
Copy link
Contributor

github-actions bot commented Aug 4, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 4, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@github-actions github-actions bot closed this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants