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

gobject-introspection: set package_type to shared-library, misc #26755

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

valgur
Copy link

@valgur valgur commented Mar 4, 2025

Summary

Changes to recipe: gobject-introspection/[*]

Motivation

The correct pattern for gobject-introspection usage with Conan should really be:

def requirements(self):
    self.requires("gobject-introspection/1.78.1")

def build_requirements(self):
    self.tool_requires("gobject-introspection/<host_version>") # for g-ir-scanner

The .gir introspection data is architecture-specific and needs to have the arch of the host context.

For self.requires(...) to work without libs=True, headers=True, it makes more sense to use shared-library instead of application as the package type.

Details

The tool_requires for g-ir-scanner also needs a Python interpreter. self.requires("cpython/[~3.12]", build=True, visible=True, run=True) ensures that it's present in consuming recipes.

Also backports a patch for newer setuptools versions that have dropped distutils.msvccompiler.


@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Martin Valgur seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants