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

[gdk-pixbuf] remove clang exception #11436

Merged
merged 5 commits into from
Jul 13, 2022

Conversation

planetmarshall
Copy link
Contributor

@planetmarshall planetmarshall commented Jun 29, 2022

Specify library name and version: gdk-pixbuf/*

Remove the clang exception for updated glib dependency

Workaround #10154 by adding the -rtlib=compiler-rt flag for Clang. Should also fix #11412


  • 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.

@ghost
Copy link

ghost commented Jun 29, 2022

I detected other pull requests that are modifying gdk-pixbuf/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@theartful
Copy link
Contributor

I tried to do this before submitting #11357, it worked on my main arch linux, but it failed on ubuntu 20.04 with the same error as discussed here #10154 (comment)

@planetmarshall planetmarshall marked this pull request as ready for review June 29, 2022 19:58
args.append("--wrap-mode=nofallback")
meson.configure(defs=defs, build_folder=self._build_subfolder, source_folder=self._source_subfolder, pkg_config_paths=".", args=args)
return meson

def build(self):
if self._requires_compiler_rt:
self._test_for_compiler_rt()

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add this in validate function

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 did try that but unfortunately compiler information is not available to conan at that point.

I'm not sure what the best fix for this is - it has come up before. I might propose an upstream fix to glib to define __muloti4 itself if it isn't available but I'm not that familiar with the meson build system.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 8 (dca09569e287b64671a9882df605fd43bc2fe26e):

  • gdk-pixbuf/2.42.8@:
    All packages built successfully! (All logs)

    Result of export using Conan v2 (informative)

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this export step will work.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, CMake, Meson, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdk-pixbuf/2.42.6@:
    All packages built successfully! (All logs)

    Result of export using Conan v2 (informative)

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this export step will work.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, CMake, Meson, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdk-pixbuf/2.42.2@:
    All packages built successfully! (All logs)

    Result of export using Conan v2 (informative)

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this export step will work.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, CMake, Meson, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdk-pixbuf/2.42.0@:
    All packages built successfully! (All logs)

    Result of export using Conan v2 (informative)

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this export step will work.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, CMake, Meson, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdk-pixbuf/2.42.4@:
    All packages built successfully! (All logs)

    Result of export using Conan v2 (informative)

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this export step will work.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11436/recipes/gdk-pixbuf/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, CMake, Meson, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

@conan-center-bot conan-center-bot requested a review from SSE4 July 1, 2022 12:02
@planetmarshall
Copy link
Contributor Author

FYI CCI - would be good to get this reviewed and merged. Thanks.

@conan-center-bot conan-center-bot merged commit b6b9448 into conan-io:master Jul 13, 2022
@planetmarshall planetmarshall deleted the gdk-pixbuf-clang branch July 13, 2022 20:00
AndreyMlashkin pushed a commit to AndreyMlashkin/conan-center-index that referenced this pull request Jul 29, 2022
* [gdk-pixbuf] remove clang exception

* [gdk-pixelbuf] export compiler-rt flags

* [gdk-pixbuf] test for presence of compiler-rt

* [gdk-pixbuf] remove extraneous file

* [gdk-pixbuf] apply linter suggestions
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.

[package] gtk/4.7.0 CCI package build fails due to missing gdk-pixbuf binary
5 participants