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

[pkgconf] Test requires package in both contexts #7645

Merged
merged 3 commits into from
Oct 18, 2021

Conversation

jgsogo
Copy link
Contributor

@jgsogo jgsogo commented Oct 11, 2021

Specify library name and version: ** pkgconf**

It works in Macos for:

conan create all/conanfile.py pkgconf/1.7.4@
conan create all/conanfile.py pkgconf/1.7.4@ "--options=*:shared=True"
conan create all/conanfile.py pkgconf/1.7.4@ --profile:host=default --profile:build=default
conan create all/conanfile.py pkgconf/1.7.4@ --profile:host=default --profile:build=default "--options:host=*:shared=True" "--options:build=*:shared=True"

@conan-center-bot

This comment has been minimized.

@@ -42,8 +43,12 @@ def configure(self):
del self.settings.compiler.libcxx
del self.settings.compiler.cppstd

def validate(self):
if hasattr(self, "settings_build") and tools.cross_building(self):
raise ConanInvalidConfiguration("Cross-building is not implemented in the recipe")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably because of some missing feature on Meson side. It looks like it is not handling cross-building properly, the log output was:

----Running------
> meson "/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/source_subfolder" "/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder" --backend=ninja -Dprefix="/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/package/30acef53c04f36d5f9412c84a1b3a7434a1f10fb" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="shared" -Dtests="False" -Dsharedstatedir="/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/package/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/bin/share" --buildtype=release
-----------------
The Meson build system
Version: 0.59.2
Source dir: /Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/source_subfolder
Build dir: /Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder
Build type: native build
Project name: pkgconf
Project version: 1.7.4

source_subfolder/meson.build:1:0: ERROR: Could not invoke sanity test executable: [Errno 86] Bad CPU type in executable: '/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder/meson-private/sanitycheckc.exe'.


Copy link
Contributor

Choose a reason for hiding this comment

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

yes, meson build helper does not handle cross compilation at all. conan.tools.meson need to be used, but it currently does not work either, it'll be fixed/improved with conan-io/conan#9710

@conan-center-bot
Copy link
Collaborator

All green in build 5 (a041ce8cdc98d09bb05d29a89aeded482bbf9b23):

  • pkgconf/1.7.4@:
    All packages built successfully! (All logs)

  • pkgconf/1.7.3@:
    All packages built successfully! (All logs)

@jgsogo jgsogo marked this pull request as ready for review October 11, 2021 14:21
@conan-center-bot conan-center-bot merged commit 7c49763 into conan-io:master Oct 18, 2021
@jgsogo jgsogo deleted the fix/pkg_config branch October 18, 2021 09:49
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.

5 participants