Fix patch file

Try to fix openssl build
Add expat build for win build
This commit is contained in:
2022-10-20 03:24:13 +00:00
committed by GitHub
parent 8a20aeee3d
commit 40d299dcf9
5 changed files with 37 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ jobs:
id: cache_key id: cache_key
run: | run: |
cd scripts cd scripts
python get_cache_key.py --prefix=win zlib pkgconf exiv2 openssl || exit 1 python get_cache_key.py --prefix=win zlib pkgconf expat exiv2 openssl || exit 1
- name: Cache - name: Cache
id: cache id: cache
uses: actions/cache@v2 uses: actions/cache@v2
@@ -213,6 +213,11 @@ jobs:
run: | run: |
COPY /Y scripts\build_win_pkgconf.bat || exit 1 COPY /Y scripts\build_win_pkgconf.bat || exit 1
CALL build_win_pkgconf.bat || exit 1 CALL build_win_pkgconf.bat || exit 1
- name: Build expat
if: steps.cache.outputs.cache-hit != 'true'
run: |
COPY /Y scripts\build_win_expat.bat || exit 1
CALL build_win_expat.bat || exit 1
- name: Build exiv2 - name: Build exiv2
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: | run: |

View File

@@ -1,9 +1,9 @@
--- zconf.h.orig 2022-04-26 09:20:44 +0000 --- zconf.h.orig 2022-10-20 11:06:04 +0000
+++ zconf.h 2022-04-26 09:23:39 +0000 +++ zconf.h 2022-10-20 11:06:56 +0000
@@ -474,7 +474,7 @@ @@ -487,7 +487,7 @@
#endif #endif
#ifndef Z_SOLO #ifndef Z_SOLO
# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) # if defined(Z_HAVE_UNISTD_H)
-# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ -# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
+//# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ +//# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
# ifdef VMS # ifdef VMS

View File

@@ -0,0 +1,23 @@
@ECHO OFF
SETLOCAL
SET PREFIX=%CD%\clib
SET PKG_CONFIG_DIR=%PREFIX%\lib\pkgconfig
IF NOT EXIST cbuild (
MD cbuild || EXIT /B 1
)
CD cbuild || EXIT /B 1
git clone --depth 1 "https://github.com/libexpat/libexpat" || EXIT /B %ERRORLEVEL%
CD libexpat && CD expat || EXIT /B %ERRORLEVEL%
IF NOT EXIST build (
MD build || EXIT /B 1
)
CD build || EXIT /B 1
cmake ^
-G Ninja ^
-DCMAKE_PREFIX_PATH=%PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%PREFIX% ^
-DINSTALL_PKGCONFIG_DIR=%PKG_CONFIG_DIR% ^
../ || EXIT /B %ERRORLEVEL%
ninja && ninja install || ninja && ninja install || EXIT /B %ERRORLEVEL%
ENDLOCAL

View File

@@ -14,6 +14,9 @@ CALL %DOWNLOAD_RESOURCE% -o "openssl-3.0.5.tar.gz" "https://www.openssl.org/sour
tar -xzvf "openssl-3.0.5.tar.gz" || EXIT /B %ERRORLEVEL% tar -xzvf "openssl-3.0.5.tar.gz" || EXIT /B %ERRORLEVEL%
CD openssl-3.0.5 || EXIT /B 1 CD openssl-3.0.5 || EXIT /B 1
perl Configure shared zlib-dynamic --prefix=%PREFIX% --openssldir=%OPENSSLDIR% || EXIT /B %ERRORLEVEL% perl Configure shared zlib-dynamic --prefix=%PREFIX% --openssldir=%OPENSSLDIR% || EXIT /B %ERRORLEVEL%
SET "PATH=%PREFIX%\bin;%PATH%"
SET "INCLUDE=%PREFIX%\include;%INCLUDE%"
SET "LIB=%PREFIX%\lib;%LIB%"
nmake || EXIT /B %ERRORLEVEL% nmake || EXIT /B %ERRORLEVEL%
nmake install || EXIT /B %ERRORLEVEL% nmake install || EXIT /B %ERRORLEVEL%
ENDLOCAL ENDLOCAL

View File

@@ -6,7 +6,7 @@ from time import gmtime, time, strftime
from typing import List from typing import List
ALL_FEATURES = ['exiv2', 'ffmpeg', 'libzip', 'openssl', 'pkgconf', 'x264', 'zlib'] ALL_FEATURES = ['exiv2', 'expat', 'ffmpeg', 'libzip', 'openssl', 'pkgconf', 'x264', 'zlib']
def sha256(data) -> str: def sha256(data) -> str:
if isinstance(data, str): if isinstance(data, str):