Skip to content

Commit

Permalink
build: hotfix for vcpkg build error due to dead xz repository URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan authored and SlawekNowy committed Apr 9, 2024
1 parent a36da2f commit c938fb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,11 @@ def execscript(filepath):
git_clone("https://github.com/Microsoft/vcpkg.git")

os.chdir("vcpkg")
reset_to_commit("3b7578831da081ba164be30da8d9382a64841059")
reset_to_commit("ce1916404fc6f2b645f419a6d47b7ebafe686582") # See https://github.com/microsoft/vcpkg/commit/ce1916404fc6f2b645f419a6d47b7ebafe686582
# This is a hotfix for the xz repository (required by oiio, which is in turn required by cycles), which was taken down on GitHub
# and as a result causes build errors with vcpkg (State: 24-04-03)
# See https://github.com/microsoft/vcpkg/issues/37839#issuecomment-2028011285 for more information
replace_text_in_file(os.getcwd() +"/ports/liblzma/portfile.cmake","REPO tukaani-project/xz","REPO bminor/xz")
os.chdir("..")
if platform == "linux":
subprocess.run([vcpkg_root +"/bootstrap-vcpkg.sh","-disableMetrics"],check=True,shell=True)
Expand Down

0 comments on commit c938fb1

Please sign in to comment.