vcpkg/scripts
Billy O'Neal ae76307e4b
Audit use of TO_NATIVE_PATH. (#26201)
* Audit use of TO_NATIVE_PATH.

TO_NATIVE_PATH should only be used when (1) pasting a path into a command line, or (2) displaying a path to a user. It must not be used before calling other CMake operations like file(WRITE.

Fixes https://github.com/microsoft/vcpkg/issues/26178

ports/ffmpeg/portfile.cmake:
Both uses are being embedded into a command line ✅

ports/gdal/dependency_win.cmake
117: This used TO_NATIVE_PATH but didn't actually connect the result. It's going on a command line so TO_NATIVE_PATH is appropriate.
Drive by: Added quotes around other uses (all of which seem to be going to command lines).
202: ${EXPAT_LIBRARY_REL} ${ZLIB_LIBRARY_REL} don't seem to be set even though they are used; I think this is wrong but I don't know for sure that it is so I'm leaving it alone for now.

ports/msmpi/portfile.cmake
All 3 uses are being embedded into a command line ✅

ports/jemalloc/fix-utilities.patch
ports/libproxy/fix-dependency-libmodman.patch
ports/qtbase/env.patch
These are in upstream content / context so it is not edited.

ports/opengl/portfile.cmake
Broken! Drive by fixes:
* Modernized checking VCPKG_BUILD_TYPE
* Ordered things consistently to be release then debug.
* Removed funny newlines.

ports/openni2/portfile.cmake
Borderline OK; it goes into an MSBuild / vcxproj. I'm leaving it alone. Drive by fixes:
* Guarded debug-only copies for VCPKG_BUILD_TYPE
* Fixed supports expression

ports/openssl/unix/CMakeLists.txt:
Unused!

ports/pthreads/portfile.cmake:
Both uses are being embedded into a command line ✅

ports/qt5-base/cmake/qt_fix_makefile_install.cmake
I'm not sure if this one is OK but it's being embedded into a file so it's probably fine.

ports/qtapplicationmanager/portfile.cmake:
I'm pretty sure this one is wrong, but it's guarded by VCPKG_TARGET_IS_WINDOWS so the ability to create damage is limited.

ports/readosm/portfile.cmake:
The use is being embedded into a command line ✅

ports/spatialite-tools/portfile.cmake:
The use is being embedded into a command line ✅

ports/sqlcipher/portfile.cmake:
Both uses are being embedded into a command line ✅

scripts/ports.cmake:
Some uses were unused, others are immediately used and printed to the console. ✅

scripts/buildsystems/vcpkg.cmake:
Fixed :)

scripts/cmake/vcpkg_build_qmake:
Looks unused.

scripts/cmake/vcpkg_build_process.cmake:
Added to console message only. ✅

scripts/cmake/vcpkg_execute_required_process_repeat.cmake:
Added to console message only. ✅
Drive by: Fixed typo in variable name in the message.

scripts/cmake/vcpkg_execute_required_process.cmake:
Added to console message only. ✅

* Fix missing license.
2022-08-12 15:21:20 -07:00
..
azure-pipelines Update VMs for July 2022 Patch Tuesday, and to Ubuntu 22.04. (#25785) 2022-07-15 21:11:16 -07:00
boost [boost] update to 1.79.0 (#24210) 2022-04-21 10:01:54 -07:00
buildsystems Audit use of TO_NATIVE_PATH. (#26201) 2022-08-12 15:21:20 -07:00
cmake Audit use of TO_NATIVE_PATH. (#26201) 2022-08-12 15:21:20 -07:00
detect_compiler [OpenCV] upgrade to v4.5.5 (#22801) 2022-02-23 11:57:13 -08:00
get_cmake_vars [Fix uwp toolchain|world rebuild] make ninja work for uwp (#22831) 2022-04-27 18:12:48 -07:00
ifw [vcpkg-export-ifw] Maintenance Tool 2017-10-05 21:24:32 +03:00
posh-vcpkg/0.0.1 [vcpkg-tool] update to 2022-03-30 (#23886) 2022-03-31 19:08:09 -07:00
templates [gklib,metis,parmetis] Update sources for metis et al. to GitHub (#26020) 2022-08-03 18:59:36 -07:00
test_ports [openimageio] Update to v2.3.17.0, revise dependencies and export (#23918) 2022-07-28 22:19:42 -07:00
toolchains [vcpkg] Fix cross compiling macOS (#26240) 2022-08-10 11:22:01 -07:00
Get-Changelog.ps1 [docs] Add catalog release process. (#24647) 2022-05-11 12:18:31 -07:00
addPoshVcpkgToPowershellProfile.ps1 [vcpkg-tool] update to 2022-03-30 (#23886) 2022-03-31 19:08:09 -07:00
bootstrap.ps1 Update vcpkg-tool to 2022-07-21 (#25920) 2022-07-22 10:48:15 -07:00
bootstrap.sh Update vcpkg-tool to 2022-07-21 (#25920) 2022-07-22 10:48:15 -07:00
build_info.cmake [vcpkg-tool-ninja] Add only the ninja port (#23911) 2022-05-09 14:00:29 -07:00
ci.baseline.txt Audit use of TO_NATIVE_PATH. (#26201) 2022-08-12 15:21:20 -07:00
file_script.py [vcpkg] Revise the file lists script (#20864) 2021-11-29 16:12:27 -08:00
generateBaseline.py [vcpkg] Rename `port_versions` to `versions` (#15784) 2021-01-21 09:53:22 -08:00
generatePortVersionsDb.py [vcpkg] Rename `port_versions` to `versions` (#15784) 2021-01-21 09:53:22 -08:00
ports.cmake Audit use of TO_NATIVE_PATH. (#26201) 2022-08-12 15:21:20 -07:00
tls12-download.exe [vcpkg-tool] Update to 2021-08-03 (#19347) 2021-08-04 14:20:23 -07:00
vcpkg.schema.json fix regex in json schema (#20386) 2021-09-27 11:47:43 -07:00
vcpkgTools.xml [cmake] update to 3.24 (#25365) 2022-08-09 14:27:23 -07:00
vcpkg_completion.bash [autocomplete] Add tab-completion support for bash 2018-12-13 14:02:02 -08:00
vcpkg_completion.fish [vcpkg] Add tab completion for Fish (#14206) 2020-11-02 17:25:43 -08:00
vcpkg_completion.zsh [scripts] Add vcpkg_completions.zsh (#18274) 2021-06-30 13:16:51 -07:00
vcpkg_get_dep_info.cmake [vcpkg] Add Supports: field. Use contents of triplets instead of names for dependency resolution. (#8601) 2020-02-03 14:22:52 -08:00
vcpkg_get_tags.cmake [vcpkg] Add triplet option VCPKG_NO_COMPILER_TRACKING (#17526) 2021-08-25 20:36:28 -07:00