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

Finding system swig [Build] #5276

Closed
zwillikon opened this issue Oct 22, 2024 · 2 comments
Closed

Finding system swig [Build] #5276

zwillikon opened this issue Oct 22, 2024 · 2 comments

Comments

@zwillikon
Copy link

zwillikon commented Oct 22, 2024

I'm trying to replace the AUR binary PKGBUILD with a new built-from-source recipe. Linking to system libraries is an ArchLinux goal. Running cmake on git master results in:

  Could not find a package configuration file provided by "SWIG" with any of
  the following names:

    SWIGConfig.cmake
    swig-config.cmake

ArchLinux's swig package has never contained any CMake config files for several versions.

Is Conan-SWIG nonstandard?

@zwillikon zwillikon added the Triage Issue needs to be assessed and labeled, further information on reported might be needed label Oct 22, 2024
@jmarrec
Copy link
Collaborator

jmarrec commented Oct 30, 2024

This is because of this line, which contains the CONFIG directive:

find_package(SWIG 4.1.1 EXACT REQUIRED CONFIG)

I am not in the least familiar with AUR binaries or whatever, so I can't really help more than that.
Is patching an option for these builds? If so, try to remove the CONFIG bit? Probably tweak the version too. I'm not 100% clear on why exactly we had to do that for swig, but I definitely remember it was needed because it kept picking the system SWIG instead of the conan provided one like we wanted.

Conan, when you run conan install is creating config files in your build directory to tweak a few things.

Out of convenience, I'm providing a zip that contains the conan generated files for the machine I'm on, so you can have a look.

SWIGConfigConan.zip

https://github.com/conan-io/conan-center-index/blob/e4ffd89e9daeefe010f6729044a72328be048ede/recipes/swig/all/conanfile.py#L184-L189

@jmarrec
Copy link
Collaborator

jmarrec commented Oct 30, 2024

I'm closing this issue as this is something out of our scope, but I'm happy to keep chatting here if I can help.

@jmarrec jmarrec closed this as completed Oct 30, 2024
@jmarrec jmarrec added resolution - Unsupported and removed Triage Issue needs to be assessed and labeled, further information on reported might be needed labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants