[scripts-audit] vcpkg_find_acquire_program#21173
[scripts-audit] vcpkg_find_acquire_program#21173BillyONeal merged 19 commits intomicrosoft:masterfrom
Conversation
9fa1ce7 to
4f2c899
Compare
make some changes to names too
|
qca regressions were fixed by #21250 |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
dg0yt
left a comment
There was a problem hiding this comment.
I guess this broke building fontconfig.
#21026 (comment)
| if(NOT ${VAR}) | ||
| find_program(${VAR} ${PROGNAME}) | ||
| if(${VAR} AND NOT ${VAR}_VERSION_CHECKED) | ||
| do_version_check() |
There was a problem hiding this comment.
Here, there was a version check when the program was found from ENV{PATH}...
| z_vcpkg_find_acquire_program_find_internal("${program}" | ||
| INTERPRETER "${interpreter}" | ||
| PATHS ${paths_to_search} | ||
| NAMES ${search_names} |
There was a problem hiding this comment.
... but here, programs from apt or brew are no longer checked for version.
|
Quoth @cenit : #21026 (comment)
RE: @dg0yt:
Any ideas why we got a passing run here then? |
|
my bad, my bisect was wrong |
missing dep on tool-meson and the tool was probably downloaded and thus cached
|
Not exactly. But at least before this PR, vfap was not idempotent. (IIRC you never got the system version if a downloaded version was present.) I tested fontconfig:x64-linux on a older state, before and after removing meson from Will repeat with |
|
Well, I even didn't have meson installed until now. Now the results are even more interesting... On first run: On second run, it just builds without meson messages and without error! (And I only noticed that because I canceled the first run when I noticed the missing system meson...) |
|
Ah it is probably not unsetting the variable after the first search. |
|
My old tree was not old enough. @Neumann-A is right in #21173 (comment) |
More specific, I guess it is related to |
| do_version_check() | ||
| set(${VAR}_VERSION_CHECKED ON) | ||
| if(NOT ${VAR}) | ||
| unset(SCRIPT_${VAR} CACHE) |
There was a problem hiding this comment.
notice: here the script var was unset in the cache not locally due to find_file output being a cache var
CI disagrees (the current main run just before these changes were merged). while now: |
|
Fix here #21341 |
This is a PR for the actual changes to vcpkg_find_acquire_program, rather than trying to completely change how it works