-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add manifold port #42347
base: master
Are you sure you want to change the base?
Add manifold port #42347
Conversation
@microsoft-github-policy-service agree |
I was able to build locally. manifold builds files into Initial error due to warnings: https://dev.azure.com/vcpkg/public/_build/results?buildId=109648&view=logs&j=878666d5-db33-5b27-9e7d-b0c7ee352005&t=69176ca8-c93b-5311-0f74-6cb12a2b3f92&l=8209 After adding the ignore fixes: https://dev.azure.com/vcpkg/public/_build/results?buildId=109649&view=logs&j=878666d5-db33-5b27-9e7d-b0c7ee352005&t=69176ca8-c93b-5311-0f74-6cb12a2b3f92&l=8184 This is my first commit to vcpkg. It'd be great if I can get advice on how to handle these kinds of warnings for it to be merged. |
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 is my first commit to vcpkg. It'd be great if I can get advice on how to handle these kinds of warnings for it to be merged.
Usually these kinds of problems require patching upstream's build system, or moving around bits in portfile.cmake.
Do you have specific questions about the warnings? They seem pretty explicit in what the problem is to me, but then again, I wrote most of the messages 😅
Repeating the errors here so that the logs aren't lost when the build gets purged in a few days:
D:\a_work\1\s\ports\manifold\portfile.cmake: warning: ${CURRENT_PACKAGES_DIR}/debug/include should not exist. To suppress this message, add set(VCPKG_POLICY_ALLOW_DEBUG_INCLUDE enabled)
note: If this directory was created by a build system that does not allow installing headers in debug to be disabled, delete the duplicate directory with file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
D:\a_work\1\s\ports\manifold\portfile.cmake: warning: This port installs the following CMake files in places CMake files are not expected. CMake files should be installed in ${CURRENT_PACKAGES_DIR}/share/${PORT}. To suppress this message, add set(VCPKG_POLICY_SKIP_MISPLACED_CMAKE_FILES_CHECK enabled)
D:\p\manifold_x86-windows: note: the files are relative to ${CURRENT_PACKAGES_DIR} here
note: lib/cmake/manifold/manifoldConfig.cmake
note: lib/cmake/manifold/manifoldConfigVersion.cmake
note: lib/cmake/manifold/manifoldTargets-release.cmake
note: lib/cmake/manifold/manifoldTargets.cmake
note: debug/lib/cmake/manifold/manifoldConfig.cmake
note: debug/lib/cmake/manifold/manifoldConfigVersion.cmake
note: debug/lib/cmake/manifold/manifoldTargets-debug.cmake
note: debug/lib/cmake/manifold/manifoldTargets.cmake
D:\a_work\1\s\ports\manifold\portfile.cmake: warning: This port creates ${CURRENT_PACKAGES_DIR}/lib/cmake and/or ${CURRENT_PACKAGES_DIR}/debug/lib/cmake, which should be merged and moved to ${CURRENT_PACKAGES_DIR}/share/${PORT}/cmake. Please use the helper function vcpkg_cmake_config_fixup() from the port vcpkg-cmake-config. To suppress this message, add set(VCPKG_POLICY_SKIP_LIB_CMAKE_MERGE_CHECK enabled)
D:\a_work\1\s\ports\manifold\portfile.cmake: warning: Found 3 post-build check problem(s). These are usually caused by bugs in portfile.cmake or the upstream build system. Please correct these before submitting this port to the curated registry.
error: building manifold:x86-windows failed with: POST_BUILD_CHECKS_FAILED
ports/manifold/portfile.cmake
Outdated
add set(VCPKG_POLICY_ALLOW_DEBUG_INCLUDE enabled) | ||
set(VCPKG_POLICY_SKIP_MISPLACED_CMAKE_FILES_CHECK enabled) | ||
add set(VCPKG_POLICY_SKIP_LIB_CMAKE_MERGE_CHECK enabled) |
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.
We can't merge ports which fail these kinds of post-build checks into the curated registry. You will need to fix these problems in the build system.
The warnings are very clear to me! I'll fix the issues in the next day or two |
Waiting for CI/CD pipeline to complete but I expect that I need to add:
|
So, it supports: It does not support How can I represent this? What do I extend onto |
The failures for android and x64-windows-static are due to |
Thanks so much for your review and help so far @dg0yt and @BillyONeal. I've added the requested changes and removed the (unneeded) dynamic lib check. All CI/CD pipelines pass if built in release mode but there is an error when compiling for I've reverted enabling debug builds with the idea that the initial port gets pushed with v3.0.0 and a ticket is created for enabling debug builds that's dependent on the next patch. Please let me know if an alternative is preferred. |
Thanks so much for your review and help so far @dg0yt and @BillyONeal. I've added the requested changes and removed the (unneeded) dynamic lib check. All CI/CD pipelines pass if built in release mode but there is an error when compiling for I've reverted enabling debug builds with the idea that the initial port gets pushed with v3.0.0 and a ticket is created for enabling debug builds that's dependent on the next patch. Please let me know if an alternative is preferred. |
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.