Skip to content

[sail] Disable self copying dependencies. - #51853

Merged
Victor Romero (vicroms) merged 2 commits into
microsoft:masterfrom
BillyONeal:debug-sail
May 19, 2026
Merged

[sail] Disable self copying dependencies.#51853
Victor Romero (vicroms) merged 2 commits into
microsoft:masterfrom
BillyONeal:debug-sail

Conversation

@BillyONeal

Copy link
Copy Markdown
Member

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.

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.
@BillyONeal

Copy link
Copy Markdown
Member Author

Comment thread ports/sail/fix-heif.patch Outdated
@vicroms
Victor Romero (vicroms) merged commit 600e119 into microsoft:master May 19, 2026
16 checks passed
@BillyONeal
Billy O'Neal (BillyONeal) deleted the debug-sail branch May 20, 2026 22:41
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.

3 participants