-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Petr Shumilov <[email protected]>
- Loading branch information
1 parent
21f9118
commit db4de3b
Showing
6 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
function(apply_patches_from_series build_dir series_file patch_dir) | ||
# Check for the presence of the patch utility | ||
find_program(PATCH_EXECUTABLE patch) | ||
if(NOT PATCH_EXECUTABLE) | ||
message(FATAL_ERROR "The 'patch' utility is not found on this system.") | ||
endif() | ||
|
||
# Read the series file and apply each patch listed | ||
file(READ "${series_file}" series_content) | ||
string(REPLACE "\n" ";" series_list "${series_content}") | ||
|
||
foreach(patch IN LISTS series_list) | ||
if(NOT patch STREQUAL "") | ||
# Construct the full path to the patch file | ||
set(patch_file "${patch_dir}${patch}") | ||
|
||
# Apply the patch using GNU patch | ||
execute_process( | ||
COMMAND ${PATCH_EXECUTABLE} -p1 -i "${patch_file}" | ||
WORKING_DIRECTORY "${build_dir}" | ||
RESULT_VARIABLE result | ||
OUTPUT_VARIABLE output | ||
ERROR_VARIABLE error | ||
) | ||
|
||
if(NOT result EQUAL 0) | ||
message(FATAL_ERROR "Failed to apply patch: ${patch}\nOutput: ${output}\nError: ${error}") | ||
else() | ||
message(STATUS "Applied patch: ${patch}") | ||
endif() | ||
endif() | ||
endforeach() | ||
endfunction() | ||
|
||
apply_patches_from_series(${BUILD_DIR} ${PATCH_SERIES} ${PATCH_DIR}) |
Submodule openssl
updated
from b372b1 to ddafec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters