Skip to content

Commit a6bd5a3

Browse files
committed
[depends] Update OpenSSL to 3.0.18
1 parent 3a3003e commit a6bd5a3

12 files changed

Lines changed: 39 additions & 54 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.15)
2+
23
project(audiodecoder.sacd)
34

45
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})

audiodecoder.sacd/addon.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="audiodecoder.sacd"
4-
version="22.0.1"
4+
version="22.0.2"
55
name="SACD ISO support"
66
provider-name="Team Kodi, AlwinEsch">
77
<requires>@ADDON_DEPENDS@</requires>

audiodecoder.sacd/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v22.0.2
2+
- Update openssl to 3.0.18
3+
14
v20.3.0:
25
- Update openssl to 1.1.1n
36
- Fix build for macOS arm64

depends/common/openssl/001-android-getauxvalrevert.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/crypto/armcap.c
22
+++ b/crypto/armcap.c
3-
@@ -68,12 +68,6 @@
3+
@@ -71,12 +71,6 @@
44
# include <sys/auxv.h>
55
# define OSSL_IMPLEMENT_GETAUXVAL
66
# endif
@@ -11,27 +11,27 @@
1111
-# define OSSL_IMPLEMENT_GETAUXVAL
1212
-# endif
1313
# endif
14-
# if defined(__FreeBSD__)
14+
# if defined(__FreeBSD__) || defined(__OpenBSD__)
1515
# include <sys/param.h>
16-
@@ -94,15 +88,6 @@
16+
@@ -97,15 +91,6 @@
17+
# endif
1718
# endif
1819

19-
/*
20+
-/*
2021
- * Android: according to https://developer.android.com/ndk/guides/cpu-features,
2122
- * getauxval is supported starting with API level 18
2223
- */
23-
-# if defined(__ANDROID__) && defined(__ANDROID_API__) && __ANDROID_API__ >= 18
24-
-# include <sys/auxv.h>
25-
-# define OSSL_IMPLEMENT_GETAUXVAL
26-
-# endif
24+
-# if defined(__ANDROID__) && defined(__ANDROID_API__) && __ANDROID_API__ >= 18
25+
-# include <sys/auxv.h>
26+
-# define OSSL_IMPLEMENT_GETAUXVAL
27+
-# endif
2728
-
28-
-/*
29+
/*
2930
* ARM puts the feature bits for Crypto Extensions in AT_HWCAP2, whereas
3031
* AArch64 used AT_HWCAP.
31-
*/
3232
--- a/crypto/ppccap.c
3333
+++ b/crypto/ppccap.c
34-
@@ -211,12 +211,6 @@
34+
@@ -90,12 +90,6 @@
3535
# if __GLIBC_PREREQ(2, 16)
3636
# include <sys/auxv.h>
3737
# define OSSL_IMPLEMENT_GETAUXVAL

depends/common/openssl/CMakeLists.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.10)
22
project(openssl)
33

44
if(NOT CPU AND CMAKE_SYSTEM_PROCESSOR)
@@ -13,7 +13,7 @@ if(CORE_SYSTEM_NAME MATCHES "android")
1313
elseif(CPU MATCHES i686)
1414
set(OPENSSL_TARGET android-x86)
1515
endif()
16-
elseif(CORE_SYSTEM_NAME MATCHES "linux" OR CORE_SYSTEM_NAME MATCHES "rbpi")
16+
elseif(CORE_SYSTEM_NAME MATCHES "linux")
1717
if(CPU MATCHES aarch64 OR CPU MATCHES arm64 OR CPU STREQUAL x86_64 OR ARCH MATCHES aarch64 OR ARCH STREQUAL x86_64)
1818
set(OPENSSL_TARGET linux-generic64)
1919
elseif(CPU MATCHES arm OR CPU MATCHES "i.86" OR ARCH MATCHES arm OR CPU MATCHES cortex-a7 OR CPU MATCHES arm1176jzf-s)
@@ -22,7 +22,7 @@ elseif(CORE_SYSTEM_NAME MATCHES "linux" OR CORE_SYSTEM_NAME MATCHES "rbpi")
2222
message(WARNING "Could not detect bitness for CPU ${CPU} - assuming 32bit")
2323
set(OPENSSL_TARGET linux-generic32)
2424
endif()
25-
elseif(CORE_SYSTEM_NAME MATCHES "ios" OR CORE_SYSTEM_NAME MATCHES "darwin_embedded")
25+
elseif(CORE_SYSTEM_NAME MATCHES "darwin_embedded")
2626
set(OPENSSL_TARGET iphoneos-cross)
2727
elseif(CORE_SYSTEM_NAME MATCHES "osx")
2828
if(CPU STREQUAL x86_64)
@@ -34,7 +34,7 @@ endif()
3434

3535
list(APPEND configure_command ${CMAKE_COMMAND} -E env)
3636
if(CORE_SYSTEM_NAME MATCHES "android")
37-
list(APPEND configure_command ANDROID_NDK_HOME=${NDKROOT})
37+
list(APPEND configure_command ANDROID_NDK_ROOT=${NDKROOT})
3838
list(APPEND configure_command PATH=${TOOLCHAIN}/bin:$ENV{PATH})
3939
endif()
4040
list(APPEND configure_command AR=${CMAKE_AR})
@@ -48,23 +48,22 @@ list(APPEND configure_command LDFLAGS=${CMAKE_LD_FLAGS})
4848
list(APPEND configure_command RANLIB=${CMAKE_RANLIB})
4949
list(APPEND configure_command <SOURCE_DIR>/Configure)
5050
list(APPEND configure_command ${OPENSSL_TARGET})
51-
list(APPEND configure_command no-shared zlib)
52-
if(PLATFORM MATCHES appletvos)
53-
list(APPEND configure_command no-async)
54-
endif()
51+
list(APPEND configure_command no-shared no-apps no-tests no-ui-console zlib)
5552
list(APPEND configure_command --prefix=${OUTPUT_DIR})
5653
list(APPEND configure_command --with-zlib-include=${OUTPUT_DIR}/include)
5754
list(APPEND configure_command --with-zlib-lib=${OUTPUT_DIR}/lib)
5855
if(CORE_SYSTEM_NAME MATCHES "android")
59-
list(APPEND configure_command -D__ANDROID_API__=21)
56+
list(APPEND configure_command -U__ANDROID_API__)
57+
list(APPEND configure_command -D__ANDROID_API__=24)
6058
list(APPEND configure_command -isystem ${NDKROOT}/sysroot/usr/include)
6159
list(APPEND configure_command -isystem ${NDKROOT}/sysroot/usr/include/${HOST})
6260
endif()
63-
list(APPEND configure_command COMMAND sed -ie "s|PROGRAMS=|PROGRAMS=#|" ${PROJECT_SOURCE_DIR}/Makefile)
6461

6562
list(APPEND build_command ${CMAKE_COMMAND} -E env)
66-
list(APPEND build_command PATH=${TOOLCHAIN}/bin:$ENV{PATH})
67-
list(APPEND build_command make)
63+
if(TOOLCHAIN)
64+
list(APPEND build_command PATH=${TOOLCHAIN}/bin:$ENV{PATH})
65+
endif()
66+
list(APPEND build_command $(MAKE) build_sw)
6867

6968
include(ExternalProject)
7069

@@ -76,4 +75,4 @@ externalproject_add(openssl
7675
INSTALL_COMMAND ""
7776
BUILD_IN_SOURCE 1)
7877

79-
install(CODE "execute_process(COMMAND make install_sw WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})")
78+
install(CODE "execute_process(COMMAND make install_dev WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6b2d2440ced8c802aaa61475919f0870ec556694c466ebea460e35ea2b14839e
1+
c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec

depends/common/openssl/openssl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
openssl https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz
1+
openssl https://github.com/openssl/openssl/releases/download/openssl-3.5.2/openssl-3.5.2.tar.gz

depends/windows/openssl/01-quote-cc.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.

depends/windows/openssl/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.15)
22

3-
project(openssl VERSION 1.1.1 LANGUAGES C)
3+
project(openssl VERSION 3.0.18 LANGUAGES C)
44

55
find_package(StrawberryPerl REQUIRED)
66

@@ -17,7 +17,7 @@ elseif(_AMD64_)
1717
set(OPENSSL_PLATFORM VC-WIN64A)
1818
elseif(_ARM64_)
1919
message(STATUS "arm64")
20-
set(OPENSSL_PLATFORM VC-WIN64-ARM)
20+
set(OPENSSL_PLATFORM VC-WIN64-ARM)
2121
else()
2222
message(FATAL_ERROR "Unsupported target architecture")
2323
endif()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0686897afd3a08223760db73d8034550401b53ffc545798d7ca476564f80315e
1+
8037cdcb2a932d2db4f2fad79eda7e379c10bf17c5b3c8cb4ce9d084ad269a67

0 commit comments

Comments
 (0)