Skip to content

Commit

Permalink
deps src: Automatic update
Browse files Browse the repository at this point in the history
  • Loading branch information
marvim committed Jul 11, 2024
1 parent c4a6839 commit 4d1a1cd
Show file tree
Hide file tree
Showing 48 changed files with 352 additions and 336 deletions.
25 changes: 13 additions & 12 deletions src/libuv-stamp/download-libuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ function(check_file_hash has_hash hash_is_good)

set("${has_hash}" TRUE PARENT_SCOPE)

message(STATUS "verifying file...
message(VERBOSE "verifying file...
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz'")

file("SHA256" "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz" actual_value)

if(NOT "${actual_value}" STREQUAL "8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33")
set("${hash_is_good}" FALSE PARENT_SCOPE)
message(STATUS "SHA256 hash of
message(VERBOSE "SHA256 hash of
/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz
does not match expected value
expected: '8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33'
Expand All @@ -44,7 +44,7 @@ function(sleep_before_download attempt)
endif()

if(attempt EQUAL 1)
message(STATUS "Retrying...")
message(VERBOSE "Retrying...")
return()
endif()

Expand All @@ -66,7 +66,7 @@ function(sleep_before_download attempt)
set(sleep_seconds 1200)
endif()

message(STATUS "Retry after ${sleep_seconds} seconds (attempt #${attempt}) ...")
message(VERBOSE "Retry after ${sleep_seconds} seconds (attempt #${attempt}) ...")

execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
endfunction()
Expand All @@ -75,17 +75,17 @@ if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0
check_file_hash(has_hash hash_is_good)
if(has_hash)
if(hash_is_good)
message(STATUS "File already exists and hash match (skip download):
message(VERBOSE "File already exists and hash match (skip download):
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz'
SHA256='8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33'"
)
return()
else()
message(STATUS "File already exists but hash mismatch. Removing...")
message(VERBOSE "File already exists but hash mismatch. Removing...")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz")
endif()
else()
message(STATUS "File already exists but no hash specified (use URL_HASH):
message(VERBOSE "File already exists but no hash specified (use URL_HASH):
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz'
Old file will be removed and new file downloaded from URL."
)
Expand All @@ -95,12 +95,12 @@ endif()

set(retry_number 5)

message(STATUS "Downloading...
message(VERBOSE "Downloading...
dst='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz'
timeout='none'
inactivity timeout='none'"
)
set(download_retry_codes 7 6 8 15 28)
set(download_retry_codes 7 6 8 15 28 35)
set(skip_url_list)
set(status_code)
foreach(i RANGE ${retry_number})
Expand All @@ -109,12 +109,13 @@ foreach(i RANGE ${retry_number})
endif()
foreach(url IN ITEMS [====[https://github.com/libuv/libuv/archive/v1.48.0.tar.gz]====])
if(NOT url IN_LIST skip_url_list)
message(STATUS "Using src='${url}'")
message(VERBOSE "Using src='${url}'")







file(
DOWNLOAD
Expand All @@ -134,10 +135,10 @@ foreach(i RANGE ${retry_number})
if(status_code EQUAL 0)
check_file_hash(has_hash hash_is_good)
if(has_hash AND NOT hash_is_good)
message(STATUS "Hash mismatch, removing...")
message(VERBOSE "Hash mismatch, removing...")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz")
else()
message(STATUS "Downloading... done")
message(VERBOSE "Downloading... done")
return()
endif()
else()
Expand Down
14 changes: 7 additions & 7 deletions src/libuv-stamp/extract-libuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.5)
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz" ABSOLUTE)
get_filename_component(directory "/home/runner/work/deps/deps/neovim/deps/build/src/libuv" ABSOLUTE)

message(STATUS "extracting...
message(VERBOSE "extracting...
src='${filename}'
dst='${directory}'"
)
Expand All @@ -28,21 +28,21 @@ file(MAKE_DIRECTORY "${ut_dir}")

# Extract it:
#
message(STATUS "extracting... [tar xfz]")
message(VERBOSE "extracting... [tar xfz]")
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${filename} --touch
WORKING_DIRECTORY ${ut_dir}
RESULT_VARIABLE rv
)

if(NOT rv EQUAL 0)
message(STATUS "extracting... [error clean up]")
message(VERBOSE "extracting... [error clean up]")
file(REMOVE_RECURSE "${ut_dir}")
message(FATAL_ERROR "Extract of '${filename}' failed")
endif()

# Analyze what came out of the tar file:
#
message(STATUS "extracting... [analysis]")
message(VERBOSE "extracting... [analysis]")
file(GLOB contents "${ut_dir}/*")
list(REMOVE_ITEM contents "${ut_dir}/.DS_Store")
list(LENGTH contents n)
Expand All @@ -52,14 +52,14 @@ endif()

# Move "the one" directory to the final directory:
#
message(STATUS "extracting... [rename]")
message(VERBOSE "extracting... [rename]")
file(REMOVE_RECURSE ${directory})
get_filename_component(contents ${contents} ABSOLUTE)
file(RENAME ${contents} ${directory})

# Clean up:
#
message(STATUS "extracting... [clean up]")
message(VERBOSE "extracting... [clean up]")
file(REMOVE_RECURSE "${ut_dir}")

message(STATUS "extracting... done")
message(VERBOSE "extracting... done")
4 changes: 2 additions & 2 deletions src/libuv-stamp/libuv-urlinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# No other meaning or use of this file is supported.

method=url
command=/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/download-libuv.cmake;COMMAND;/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/verify-libuv.cmake;COMMAND;/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/extract-libuv.cmake
command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/download-libuv.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/verify-libuv.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libuv-stamp/extract-libuv.cmake
source_dir=/home/runner/work/deps/deps/neovim/deps/build/src/libuv
work_dir=/home/runner/work/deps/deps/neovim/deps/build/src
url(s)=https://github.com/libuv/libuv/archive/v1.48.0.tar.gz
hash=SHA256=8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33
no_extract=
no_extract=

25 changes: 13 additions & 12 deletions src/libvterm-stamp/download-libvterm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ function(check_file_hash has_hash hash_is_good)

set("${has_hash}" TRUE PARENT_SCOPE)

message(STATUS "verifying file...
message(VERBOSE "verifying file...
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz'")

file("SHA256" "/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz" actual_value)

if(NOT "${actual_value}" STREQUAL "c4683e7a2d71c04781fd0ab7719a94202800e97a9e091514c16983bb732b0fa7")
set("${hash_is_good}" FALSE PARENT_SCOPE)
message(STATUS "SHA256 hash of
message(VERBOSE "SHA256 hash of
/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz
does not match expected value
expected: 'c4683e7a2d71c04781fd0ab7719a94202800e97a9e091514c16983bb732b0fa7'
Expand All @@ -44,7 +44,7 @@ function(sleep_before_download attempt)
endif()

if(attempt EQUAL 1)
message(STATUS "Retrying...")
message(VERBOSE "Retrying...")
return()
endif()

Expand All @@ -66,7 +66,7 @@ function(sleep_before_download attempt)
set(sleep_seconds 1200)
endif()

message(STATUS "Retry after ${sleep_seconds} seconds (attempt #${attempt}) ...")
message(VERBOSE "Retry after ${sleep_seconds} seconds (attempt #${attempt}) ...")

execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
endfunction()
Expand All @@ -75,17 +75,17 @@ if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15
check_file_hash(has_hash hash_is_good)
if(has_hash)
if(hash_is_good)
message(STATUS "File already exists and hash match (skip download):
message(VERBOSE "File already exists and hash match (skip download):
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz'
SHA256='c4683e7a2d71c04781fd0ab7719a94202800e97a9e091514c16983bb732b0fa7'"
)
return()
else()
message(STATUS "File already exists but hash mismatch. Removing...")
message(VERBOSE "File already exists but hash mismatch. Removing...")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz")
endif()
else()
message(STATUS "File already exists but no hash specified (use URL_HASH):
message(VERBOSE "File already exists but no hash specified (use URL_HASH):
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz'
Old file will be removed and new file downloaded from URL."
)
Expand All @@ -95,12 +95,12 @@ endif()

set(retry_number 5)

message(STATUS "Downloading...
message(VERBOSE "Downloading...
dst='/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz'
timeout='none'
inactivity timeout='none'"
)
set(download_retry_codes 7 6 8 15 28)
set(download_retry_codes 7 6 8 15 28 35)
set(skip_url_list)
set(status_code)
foreach(i RANGE ${retry_number})
Expand All @@ -109,12 +109,13 @@ foreach(i RANGE ${retry_number})
endif()
foreach(url IN ITEMS [====[https://github.com/neovim/libvterm/archive/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz]====])
if(NOT url IN_LIST skip_url_list)
message(STATUS "Using src='${url}'")
message(VERBOSE "Using src='${url}'")







file(
DOWNLOAD
Expand All @@ -134,10 +135,10 @@ foreach(i RANGE ${retry_number})
if(status_code EQUAL 0)
check_file_hash(has_hash hash_is_good)
if(has_hash AND NOT hash_is_good)
message(STATUS "Hash mismatch, removing...")
message(VERBOSE "Hash mismatch, removing...")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz")
else()
message(STATUS "Downloading... done")
message(VERBOSE "Downloading... done")
return()
endif()
else()
Expand Down
14 changes: 7 additions & 7 deletions src/libvterm-stamp/extract-libvterm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.5)
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/libvterm/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz" ABSOLUTE)
get_filename_component(directory "/home/runner/work/deps/deps/neovim/deps/build/src/libvterm" ABSOLUTE)

message(STATUS "extracting...
message(VERBOSE "extracting...
src='${filename}'
dst='${directory}'"
)
Expand All @@ -28,21 +28,21 @@ file(MAKE_DIRECTORY "${ut_dir}")

# Extract it:
#
message(STATUS "extracting... [tar xfz]")
message(VERBOSE "extracting... [tar xfz]")
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${filename} --touch
WORKING_DIRECTORY ${ut_dir}
RESULT_VARIABLE rv
)

if(NOT rv EQUAL 0)
message(STATUS "extracting... [error clean up]")
message(VERBOSE "extracting... [error clean up]")
file(REMOVE_RECURSE "${ut_dir}")
message(FATAL_ERROR "Extract of '${filename}' failed")
endif()

# Analyze what came out of the tar file:
#
message(STATUS "extracting... [analysis]")
message(VERBOSE "extracting... [analysis]")
file(GLOB contents "${ut_dir}/*")
list(REMOVE_ITEM contents "${ut_dir}/.DS_Store")
list(LENGTH contents n)
Expand All @@ -52,14 +52,14 @@ endif()

# Move "the one" directory to the final directory:
#
message(STATUS "extracting... [rename]")
message(VERBOSE "extracting... [rename]")
file(REMOVE_RECURSE ${directory})
get_filename_component(contents ${contents} ABSOLUTE)
file(RENAME ${contents} ${directory})

# Clean up:
#
message(STATUS "extracting... [clean up]")
message(VERBOSE "extracting... [clean up]")
file(REMOVE_RECURSE "${ut_dir}")

message(STATUS "extracting... done")
message(VERBOSE "extracting... done")
4 changes: 2 additions & 2 deletions src/libvterm-stamp/libvterm-urlinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# No other meaning or use of this file is supported.

method=url
command=/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/download-libvterm.cmake;COMMAND;/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/verify-libvterm.cmake;COMMAND;/usr/local/bin/cmake;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/extract-libvterm.cmake
command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/download-libvterm.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/verify-libvterm.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/libvterm-stamp/extract-libvterm.cmake
source_dir=/home/runner/work/deps/deps/neovim/deps/build/src/libvterm
work_dir=/home/runner/work/deps/deps/neovim/deps/build/src
url(s)=https://github.com/neovim/libvterm/archive/0a15c6e983b0db7ef8276e0792414a805d01bdaf.tar.gz
hash=SHA256=c4683e7a2d71c04781fd0ab7719a94202800e97a9e091514c16983bb732b0fa7
no_extract=
no_extract=

Loading

0 comments on commit 4d1a1cd

Please sign in to comment.