[sail] Disable self copying dependencies. - #51853
Merged
Merged
Conversation
I'm getting errors like this as part of the Visual Studio 2026 19.6.0 / MSVC 19.51 update:
```
-- Performing post-build validation
D:\vcpkg\ports\sail\portfile.cmake: warning: DLLs should not be present in a static build, but the following DLLs were found. To suppress this message, add set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
D:\vcpkg\packages\sail_x64-windows: note: the DLLs are relative to ${CURRENT_PACKAGES_DIR} here
note: debug/bin/gif.dll
note: debug/bin/jpeg62.dll
note: debug/bin/libpng16d.dll
note: debug/bin/libsharpyuv.dll
note: debug/bin/libwebp.dll
note: debug/bin/libwebpdecoder.dll
note: debug/bin/libwebpdemux.dll
note: debug/bin/libwebpmux.dll
note: debug/bin/turbojpeg.dll
note: debug/bin/zd.dll
note: bin/gif.dll
note: bin/jpeg62.dll
note: bin/libpng16.dll
note: bin/libsharpyuv.dll
note: bin/libwebp.dll
note: bin/libwebpdecoder.dll
note: bin/libwebpdemux.dll
note: bin/libwebpmux.dll
note: bin/turbojpeg.dll
note: bin/z.dll
D:\vcpkg\ports\sail\portfile.cmake: warning: ${CURRENT_PACKAGES_DIR}/debug/bin exists but should not in a static build. To suppress this message, add set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
D:\vcpkg\ports\sail\portfile.cmake: warning: ${CURRENT_PACKAGES_DIR}/bin exists but should not in a static build. To suppress this message, add set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
note: if creation of these directories cannot be disabled, you can add the following in portfile.cmake to remove them
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
endif()
D:\vcpkg\ports\sail\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: The following files are already installed in D:/vcpkg/installed/x64-windows and are in conflict with sail:x64-windows
Installed by giflib:x64-windows:
bin/gif.dll
bin/gif.pdb
debug/bin/gif.dll
debug/bin/gif.pdb
Installed by libjpeg-turbo:x64-windows:
bin/jpeg62.dll
bin/jpeg62.pdb
bin/turbojpeg.dll
bin/turbojpeg.pdb
debug/bin/jpeg62.dll
debug/bin/jpeg62.pdb
debug/bin/turbojpeg.dll
debug/bin/turbojpeg.pdb
Installed by libpng:x64-windows:
bin/libpng16.dll
bin/libpng16.pdb
debug/bin/libpng16d.dll
debug/bin/libpng16d.pdb
Installed by libwebp:x64-windows:
bin/libsharpyuv.dll
bin/libsharpyuv.pdb
bin/libwebp.dll
bin/libwebp.pdb
bin/libwebpdecoder.dll
bin/libwebpdecoder.pdb
bin/libwebpdemux.dll
bin/libwebpdemux.pdb
bin/libwebpmux.dll
bin/libwebpmux.pdb
debug/bin/libsharpyuv.dll
debug/bin/libsharpyuv.pdb
debug/bin/libwebp.dll
debug/bin/libwebp.pdb
debug/bin/libwebpdecoder.dll
debug/bin/libwebpdecoder.pdb
debug/bin/libwebpdemux.dll
debug/bin/libwebpdemux.pdb
debug/bin/libwebpmux.dll
debug/bin/libwebpmux.pdb
Installed by zlib:x64-windows:
bin/z.dll
bin/z.pdb
debug/bin/zd.dll
debug/bin/zd.pdb
Starting submission of sail[core,gif,highest-priority-codecs,jpeg,png,svg,webp]:x64-windows@0.9.10 to 1 binary cache(s) in the background
```
Looking at what upstream is doing I have no idea how this is working today.
Member
Author
Victor Romero (vicroms)
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm getting errors like this as part of the Visual Studio 2026 19.6.0 / MSVC 19.51 update:
Looking at what upstream is doing I have no idea how this is working today.