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

vulkan-validationlayers: add 1.3.239.0 + modernize more for conan v2 #16131

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Feb 18, 2023

closes #16480


@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit c7ec66e
vulkan-validationlayers/1.3.236.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 37e8cb7
vulkan-validationlayers/1.3.236.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib
vulkan-validationlayers/1.3.239.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 333fb51
vulkan-validationlayers/1.3.236.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib
vulkan-validationlayers/1.3.239.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib

@conan-center-bot

This comment has been minimized.

it's a direct dependency, so don't rely anymore on spirv-tools to expose spirv-headers to vulkan-validationlayers since it's a private dependency of spirv-tools (it would break in conan v2)
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@SpaceIm SpaceIm closed this Mar 12, 2023
@SpaceIm SpaceIm reopened this Mar 12, 2023
@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit d42fea2
vulkan-validationlayers/1.3.236.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib
vulkan-validationlayers/1.3.239.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib

@AbrilRBS
Copy link
Member

AbrilRBS commented Apr 1, 2023

I still don't know enough about MacOS to know if this hook warning is real or a false positive, happy to get some info on it :)

self.requires(self._require("vulkan-headers"))
self.requires(self._require("spirv-headers"))
if Version(conan_version).major < "2":
# TODO: set private=True, once the issue is resolved https://github.com/conan-io/conan/issues/9390
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 there very little reason things should be exposed like this... its an old PR but could you elaborate? 🙏

Copy link
Contributor Author

@SpaceIm SpaceIm Apr 2, 2023

Choose a reason for hiding this comment

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

I don't remember, and I'm not even sure to have written this specific block. It's v1 specific and I don't want to remove this since it's out of scope of this PR & I don't know the consequences.

It's worth noting that vulkan-validationlayers mostly provides a module file and all dependencies must be static (or header-only), so everything is fully private.

Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

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

Just 1 questions :)

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Apr 2, 2023

I still don't know enough about MacOS to know if this hook warning is real or a false positive, happy to get some info on it :)

There is a detailed explanation here: conan-io/hooks#376

For the specific case of vulkan-validationlayers, it doesn't matter because this module file is not intended to be linked but loaded dynamically at runtime by vulkan-loader. Hook could be improved to not check dylib files not listed in cpp_info.libdirs

Choose a reason for hiding this comment

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

FWIW I've updated the CMake to no longer need this patch as of KhronosGroup/Vulkan-ValidationLayers@0d83a6e

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Minor request, other than that it looks good. Thanks for your patience :)

recipes/vulkan-validationlayers/all/conanfile.py Outdated Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 16 (c6443446c7e522983cae9477d7302c092304a987):

  • vulkan-validationlayers/1.3.224.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.231.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.236.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.239.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.204.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.216.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.182@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.211.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.189.2@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.198.0@:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds may be required once they are on the v2 ready list

All green in build 16 (c6443446c7e522983cae9477d7302c092304a987):

  • vulkan-validationlayers/1.3.236.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.239.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.231.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.204.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.198.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.211.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.224.1@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.182@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.3.216.0@:
    All packages built successfully! (All logs)

  • vulkan-validationlayers/1.2.189.2@:
    All packages built successfully! (All logs)

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit c644344
vulkan-validationlayers/1.3.236.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib
vulkan-validationlayers/1.3.239.0
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libVkLayer_khronos_validation.dylib

@conan-center-bot conan-center-bot merged commit 6198be9 into conan-io:master May 5, 2023
@SpaceIm SpaceIm deleted the bump/vulkan-validationlayers/1.3.239.0 branch May 5, 2023 08:51
@SpaceIm
Copy link
Contributor Author

SpaceIm commented May 7, 2023

I have to fix something, the value of layer.library_path in res/vulkan/explicit_layer.d/VkLayer_khronos_validation.json of 1.3.239.0 is incorrect (at least on macOS). It's libVkLayer_khronos_validation.dylib, while it should be ../../../lib/libVkLayer_khronos_validation.dylib.

pezy pushed a commit to pezy/conan-center-index that referenced this pull request Jun 1, 2023
…ore for conan v2

* add vulkan-validationlayers/1.3.239.0

* modernize more

* Vulkan-ValidationLayers requires CMake >=3.17.2 since 1.3.239

see KhronosGroup/Vulkan-ValidationLayers#5032

* relocatable shared lib on macOS

* fix _cmake_new_enough() for conan v2

* add spirv-headers to requirements

it's a direct dependency, so don't rely anymore on spirv-tools to expose spirv-headers to vulkan-validationlayers since it's a private dependency of spirv-tools (it would break in conan v2)

* bump cmake

* vulkan headers is public

* use version range for cmake

* upper bound

---------

Co-authored-by: Rubén Rincón Blanco <rubenrb@jfrog.com>
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.

[bug] TypeError: __init__() got an unexpected keyword argument 'private'
6 participants