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 Sep 6, 2024
1 parent 0ed21b5 commit 49d04ec
Show file tree
Hide file tree
Showing 89 changed files with 2,961 additions and 1,174 deletions.
30 changes: 15 additions & 15 deletions src/libuv-stamp/download-libuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ function(check_file_hash has_hash hash_is_good)
set("${has_hash}" TRUE PARENT_SCOPE)

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

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

if(NOT "${actual_value}" STREQUAL "8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33")
if(NOT "${actual_value}" STREQUAL "8d240ad56f779ebca94a249b2a2c71725d89182e732cf53c1f6d85098cc9bcb3")
set("${hash_is_good}" FALSE PARENT_SCOPE)
message(VERBOSE "SHA256 hash of
/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz
/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz
does not match expected value
expected: '8c253adb0f800926a6cbd1c6576abae0bc8eb86a4f891049b72f9e5b7dc58f33'
expected: '8d240ad56f779ebca94a249b2a2c71725d89182e732cf53c1f6d85098cc9bcb3'
actual: '${actual_value}'")
else()
set("${hash_is_good}" TRUE PARENT_SCOPE)
Expand Down Expand Up @@ -71,32 +71,32 @@ function(sleep_before_download attempt)
execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
endfunction()

if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz")
if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz")
check_file_hash(has_hash hash_is_good)
if(has_hash)
if(hash_is_good)
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'"
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz'
SHA256='8d240ad56f779ebca94a249b2a2c71725d89182e732cf53c1f6d85098cc9bcb3'"
)
return()
else()
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")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz")
endif()
else()
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'
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz'
Old file will be removed and new file downloaded from URL."
)
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz")
endif()
endif()

set(retry_number 5)

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

Expand All @@ -119,7 +119,7 @@ foreach(i RANGE ${retry_number})

file(
DOWNLOAD
"${url}" "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz"
"${url}" "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz"

# no TIMEOUT
# no INACTIVITY_TIMEOUT
Expand All @@ -136,7 +136,7 @@ foreach(i RANGE ${retry_number})
check_file_hash(has_hash hash_is_good)
if(has_hash AND NOT hash_is_good)
message(VERBOSE "Hash mismatch, removing...")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz")
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz")
else()
message(VERBOSE "Downloading... done")
return()
Expand Down
2 changes: 1 addition & 1 deletion src/libuv-stamp/extract-libuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.5)

# Make file names absolute:
#
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/v1.48.0.tar.gz" ABSOLUTE)
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/libuv/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz" ABSOLUTE)
get_filename_component(directory "/home/runner/work/deps/deps/neovim/deps/build/src/libuv" ABSOLUTE)

message(VERBOSE "extracting...
Expand Down
4 changes: 2 additions & 2 deletions src/libuv-stamp/libuv-urlinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ method=url
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
url(s)=https://github.com/libuv/libuv/archive/0a00e80c3686b93eccb9a801954e86bd7d7fe6ab.tar.gz
hash=SHA256=8d240ad56f779ebca94a249b2a2c71725d89182e732cf53c1f6d85098cc9bcb3
no_extract=

7 changes: 7 additions & 0 deletions src/libuv/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions src/libuv/.github/workflows/CI-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
docs-src:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
Expand Down
3 changes: 2 additions & 1 deletion src/libuv/.github/workflows/CI-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '**'
- '!docs/**'
- '!.**'
- 'docs/code/**'
- '.github/workflows/CI-sample.yml'
push:
branches:
Expand All @@ -20,7 +21,7 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup
run: cmake -E make_directory ${{runner.workspace}}/libuv/docs/code/build
- name: configure
Expand Down
19 changes: 12 additions & 7 deletions src/libuv/.github/workflows/CI-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: configure
run: |
./autogen.sh
Expand All @@ -30,8 +30,13 @@ jobs:
build-android:
runs-on: ubuntu-latest
container: reactnativecommunity/react-native-android:2020-5-20
# Work around an issue where the node from actions/checkout is too new
# to run inside the long-in-the-tooth react-nactive-android container
# image.
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Envinfo
run: npx envinfo
- name: Configure android arm64
Expand All @@ -46,9 +51,9 @@ jobs:
ls -lh build
build-macos:
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Envinfo
run: npx envinfo
- name: Setup
Expand Down Expand Up @@ -81,9 +86,9 @@ jobs:
make -C build-auto -j4
build-ios:
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure
run: |
mkdir build-ios
Expand Down Expand Up @@ -120,7 +125,7 @@ jobs:
- {target: ppc64 (u64 slots), toolchain: gcc-powerpc64-linux-gnu, cc: powerpc64-linux-gnu-gcc, qemu: qemu-ppc64-static}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install QEMU
# this ensure install latest qemu on ubuntu, apt get version is old
env:
Expand Down
11 changes: 5 additions & 6 deletions src/libuv/.github/workflows/CI-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, config: UBSAN}
- {toolchain: Visual Studio 17 2022, arch: arm64, server: 2022}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build
run:
cmake -S . -B build -DBUILD_TESTING=ON
-G "${{ matrix.config.toolchain }}" -A ${{ matrix.config.arch }}
${{ matrix.config.config == 'ASAN' && '-DASAN=on -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded' ||
matrix.config.config == 'UBSAN' && '-DUBSAN=on' || '' }}
${{ matrix.config.config == 'ASAN' && '-DASAN=on -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded' || '' }}

cmake --build build --config RelWithDebInfo

Expand Down Expand Up @@ -81,7 +80,7 @@ jobs:
- {arch: i686, server: 2022, libgcc: dw2 }
- {arch: x86_64, server: 2022, libgcc: seh }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install mingw32 environment
run: |
sudo apt update
Expand All @@ -99,7 +98,7 @@ jobs:
`${{ matrix.config.arch }}-w64-mingw32-gcc -print-file-name=libatomic-1.dll` \
build/usr/bin
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mingw-${{ matrix.config.arch }}
path: build/usr/**/*
Expand All @@ -117,7 +116,7 @@ jobs:
- {arch: x86_64, server: 2022}
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: mingw-${{ matrix.config.arch }}
- name: Test
Expand Down
15 changes: 10 additions & 5 deletions src/libuv/.github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ jobs:
sanitizers-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup
run: |
sudo apt-get install ninja-build
- name: Envinfo
run: npx envinfo

# [AM]SAN fail on newer kernels due to a bigger PIE slide
- name: Disable ASLR
run: |
sudo sysctl -w kernel.randomize_va_space=0
- name: ASAN Build
run: |
mkdir build-asan
Expand Down Expand Up @@ -62,9 +67,9 @@ jobs:
./build-ubsan/uv_run_tests_a
sanitizers-macos:
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Envinfo
run: npx envinfo
Expand Down Expand Up @@ -99,14 +104,14 @@ jobs:
sanitizers-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup
run: |
choco install ninja
# Note: clang shipped with VS2022 has an issue where the UBSAN runtime doesn't link.
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
uses: KyleMayes/install-llvm-action@v2
with:
version: "17"

Expand Down
4 changes: 2 additions & 2 deletions src/libuv/.mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Sakthipriyan Vairamani <[email protected]>
Sam Roberts <[email protected]> <[email protected]>
San-Tai Hsu <[email protected]>
Santiago Gimeno <[email protected]> <[email protected]>
Saúl Ibarra Corretgé <[email protected]>
Saúl Ibarra Corretgé <[email protected]> <s@saghul.net>
Saúl Ibarra Corretgé <[email protected]>
Saúl Ibarra Corretgé <[email protected]> <saghul@gmail.com>
Shigeki Ohtsu <[email protected]> <[email protected]>
Shuowang (Wayne) Zhang <[email protected]>
TK-one <[email protected]>
Expand Down
29 changes: 23 additions & 6 deletions src/libuv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,20 @@ if(TSAN)
endif()

if(UBSAN)
cmake_minimum_required(VERSION 3.13)
list(APPEND uv_defines __UBSAN__=1)
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|GNU|Clang")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fsanitize=undefined")
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=undefined")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=undefined")
elseif(MSVC)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fsanitize=undefined")
add_compile_options("-fsanitize=undefined" "-fno-sanitize-recover=undefined")
if (NOT WIN32)
add_link_options("-fsanitize=undefined")
endif()
if(MSVC)
add_compile_options("/Oy-")
else()
add_compile_options("-fno-omit-frame-pointer")
endif()
else()
message(SEND_ERROR "UndefinedBehaviorSanitizer support requires clang, gcc, or msvc. Try again with -DCMAKE_C_COMPILER.")
message(SEND_ERROR "UndefinedBehaviorSanitizer support requires clang or gcc. Try again with -DCMAKE_C_COMPILER.")
endif()
endif()

Expand Down Expand Up @@ -307,6 +312,7 @@ if(APPLE)
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "GNU")
list(APPEND uv_defines _GNU_SOURCE _POSIX_C_SOURCE=200112 _XOPEN_SOURCE=500)
list(APPEND uv_libraries dl)
list(APPEND uv_sources
src/unix/bsd-ifaddrs.c
Expand Down Expand Up @@ -566,6 +572,7 @@ if(LIBUV_BUILD_TESTS)
test/test-hrtime.c
test/test-idle.c
test/test-idna.c
test/test-iouring-pollhup.c
test/test-ip4-addr.c
test/test-ip6-addr.c
test/test-ip-name.c
Expand Down Expand Up @@ -643,6 +650,7 @@ if(LIBUV_BUILD_TESTS)
test/test-tcp-oob.c
test/test-tcp-open.c
test/test-tcp-read-stop.c
test/test-tcp-reuseport.c
test/test-tcp-read-stop-start.c
test/test-tcp-rst.c
test/test-tcp-shutdown-after-write.c
Expand Down Expand Up @@ -691,6 +699,7 @@ if(LIBUV_BUILD_TESTS)
test/test-udp-send-unreachable.c
test/test-udp-try-send.c
test/test-udp-recv-in-a-row.c
test/test-udp-reuseport.c
test/test-uname.c
test/test-walk-handles.c
test/test-watcher-cross-stop.c)
Expand Down Expand Up @@ -787,6 +796,14 @@ if(MSVC)
endif()
endif()

if(BUILD_SHARED_LIBS)
set(LIB_SELECTED uv)
else()
set(LIB_SELECTED uv_a)
endif()

add_library(libuv::libuv ALIAS ${LIB_SELECTED})

message(STATUS "summary of build options:
Install prefix: ${CMAKE_INSTALL_PREFIX}
Target system: ${CMAKE_SYSTEM_NAME}
Expand Down
Loading

0 comments on commit 49d04ec

Please sign in to comment.