From 96ef1befe0b638ba18f09a56abf9633f6eae960f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 10 Sep 2022 10:40:32 +0300 Subject: [PATCH] aedi: patch flac to avoid usage of git commit hash and date of this repo instead of flac one were put into the binary --- aedi/target/library_tier1.py | 3 ++- patch/flac-no-git.diff | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 patch/flac-no-git.diff diff --git a/aedi/target/library_tier1.py b/aedi/target/library_tier1.py index 65b075eb..da6f689a 100644 --- a/aedi/target/library_tier1.py +++ b/aedi/target/library_tier1.py @@ -77,7 +77,8 @@ class FlacTarget(CMakeStaticDependencyTarget): def prepare_source(self, state: BuildState): state.download_source( 'https://github.com/xiph/flac/releases/download/1.4.0/flac-1.4.0.tar.xz', - 'af41c0733c93c237c3e52f64dd87e3b0d9af38259f1c7d11e8cbf583c48c2506') + 'af41c0733c93c237c3e52f64dd87e3b0d9af38259f1c7d11e8cbf583c48c2506', + patches='flac-no-git') def configure(self, state: BuildState): opts = state.options diff --git a/patch/flac-no-git.diff b/patch/flac-no-git.diff new file mode 100644 index 00000000..1e1b36ba --- /dev/null +++ b/patch/flac-no-git.diff @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -53,7 +53,7 @@ + + find_program (HAVE_GIT git) + +-if(HAVE_GIT) ++if(0) + execute_process( + COMMAND git describe --tags --exact-match + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}