-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[usd] Bump to v24.08 #40225
base: master
Are you sure you want to change the base?
[usd] Bump to v24.08 #40225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some early comments, not a full review.
ports/usd/002-vcpkg_find_tbb.patch
Outdated
|
||
+include(CMakeFindDependencyMacro) | ||
+ | ||
+find_dependency(TBB CONFIG REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+find_dependency(TBB CONFIG REQUIRED) | |
+find_dependency(TBB CONFIG) |
(All use of find_dependency
depends on this patch. Hm.)
-# Use the import targets set by Imath's package config | ||
-if (Imath_FOUND) | ||
- set(__OIIO_IMATH_LIBS "Imath::Imath") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must work in vcpkg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify what you meant ?
I think instead of removing I could use a if(0) ... endif()
.
But what I am really after is to not use Imath::Imath
and use OpenImageIO::OpenImageIO
instead: here OpenUSD is micro-managing the indirect dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the early review, here is a partial review on your feedbacks @dg0yt
2b8d78e
to
dd944d0
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
-# Use the import targets set by Imath's package config | ||
-if (Imath_FOUND) | ||
- set(__OIIO_IMATH_LIBS "Imath::Imath") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify what you meant ?
I think instead of removing I could use a if(0) ... endif()
.
But what I am really after is to not use Imath::Imath
and use OpenImageIO::OpenImageIO
instead: here OpenUSD is micro-managing the indirect dependency.
@dg0yt sorry for taking this long, I think I have addressed all your suggestions and comments. |
Also OpenUSD v24.11 has just been released and I would like to work toward making |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Community feedback)
You could go straight to the latest version if it isn't too much work to update the patches.
Patch should be kept small. This might be different from what one submit upstream.
ports/usd/portfile.cmake
Outdated
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") | ||
vcpkg_copy_tools( | ||
TOOL_NAMES ${tools} | ||
SEARCH_DIR "${CURRENT_PACKAGES_DIR}/debug/bin" | ||
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}" | ||
) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there is a reason why vcpkg_copy_tools
normally omits debug tools.
If the port is really meant to install the debug tools, it might be good to add a comment.
And btw it is enough to check if(NOT VCPKG_BUILD_TYPE)
in a portfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it for now, it is useful to have it around for troubleshooting but I do not think I am ready to commit this.
There is #41864 now. How to coordinate that simple update with your changes? |
Also this PR also brings back CI coverage, so we would have more confidence when modifying the port because as of now nothing is tested without this PR. |
6996c7c
to
775abe8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ports/usd/portfile.cmake
Outdated
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") | ||
vcpkg_copy_tools( | ||
TOOL_NAMES ${tools} | ||
SEARCH_DIR "${CURRENT_PACKAGES_DIR}/debug/bin" | ||
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}" | ||
) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it for now, it is useful to have it around for troubleshooting but I do not think I am ready to commit this.
Ok I cannot remove the draft status, so the future of this PR is in your hands @Cheney-W :) |
Gentle reminder on this PR, is there anything I can do to help @Cheney-W ? |
ports/usd/portfile.cmake
Outdated
|
||
vcpkg_download_distfile(MATERIALX_1_39_PATCH | ||
URLS "https://github.com/PixarAnimationStudios/OpenUSD/pull/3159.diff?full_index=1" | ||
SHA512 f31b682d5d15c54d8bcaff4bcacc4a00b25c95b9735660f5e3908fb995bc5f29a6a71400b710a9feea4d9a5a6dcb2975131f9a249597e1efdf939ef34c795fd0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SHA512 f31b682d5d15c54d8bcaff4bcacc4a00b25c95b9735660f5e3908fb995bc5f29a6a71400b710a9feea4d9a5a6dcb2975131f9a249597e1efdf939ef34c795fd0 | |
SHA512 4e91794bd418c329019e212a93052b06f947f360e4210e757a88d5774ed3a23b03c3063f40f3120f7d1c562ef73fca9aa410f116ce536ba193d8552b85c5b73e |
I got below error with this command:
|
ports/usd/portfile.cmake
Outdated
See https://vcpkg.io/en/docs/examples/versioning.getting-started.html for instructions. | ||
]=]) | ||
vcpkg_download_distfile(FIND_DEPENDENCY_PATCH | ||
URLS "https://github.com/PixarAnimationStudios/OpenUSD/pull/3205.diff?full_index=1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR isn't merged. Its content and SHA512 may change, breaking the port.
ports/usd/portfile.cmake
Outdated
# ) | ||
|
||
vcpkg_download_distfile(MATERIALX_1_39_PATCH | ||
URLS "https://github.com/PixarAnimationStudios/OpenUSD/pull/3159.diff?full_index=1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR isn't merged. Its content and SHA512 may change, breaking the port.
You are the author. I'm sure you can. |
cdb2443
to
a832d9e
Compare
Good catch, I have made this port upgrade by backporting some of the patches we maintain internally but I need to test it against the more recent I am now testing again with
|
Sorry for the confusion, somehow the button was not available on my webpage. |
d469550
to
abffe1b
Compare
So it turns out that while I am trying to converge this PR, oneTBB 2022 was out last week and that we now have a port for it (which is great !) I'll investigate if I can easily fix this, otherwise I may simply revert my changes on |
fe6f37d
to
4fb6441
Compare
Feature |
This PR updates
usd
port to v24.08.This versions has no more dependency on
boost
(when USD Python is disabled, which is already set like this in the current port).Moreover this version is now compatible with oneTBB so we should now be able to test it on the CI.
./vcpkg x-add-version --all
and committing the result.