summaryrefslogtreecommitdiffstats
path: root/vulkan
diff options
context:
space:
mode:
authorPavel Vinogradov2022-10-01 22:14:50 -0400
committerPavel Vinogradov2022-10-01 22:16:14 -0400
commitc709e66e938c52217bd54f9ce9d43fc70378f91a (patch)
tree41774de6a12750614d011320745170433ab557df /vulkan
parentdfc0a26ba7f18b2da61d3fc3662a299862d46f62 (diff)
vulkan/vulkan-loader: replaced sed with patch
Diffstat (limited to 'vulkan')
-rw-r--r--vulkan/vulkan-loader/HISTORY3
-rwxr-xr-xvulkan/vulkan-loader/PRE_BUILD2
-rw-r--r--vulkan/vulkan-loader/patches/no-git.patch12
3 files changed, 16 insertions, 1 deletions
diff --git a/vulkan/vulkan-loader/HISTORY b/vulkan/vulkan-loader/HISTORY
index fa08c221d1..e9c1dc3d66 100644
--- a/vulkan/vulkan-loader/HISTORY
+++ b/vulkan/vulkan-loader/HISTORY
@@ -1,3 +1,6 @@
+2022-10-01 Pavel Vinogradov <public@sourcemage.org>
+ * PRE_BUILD, patches/no-git.patch: replaced sed with patch
+
2022-10-01 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 1.3.230
diff --git a/vulkan/vulkan-loader/PRE_BUILD b/vulkan/vulkan-loader/PRE_BUILD
index 1fb6c64d79..4604ffcd89 100755
--- a/vulkan/vulkan-loader/PRE_BUILD
+++ b/vulkan/vulkan-loader/PRE_BUILD
@@ -1,3 +1,3 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-sed -i '/(Git)/D' CMakeLists.txt
+apply_patch_dir patches
diff --git a/vulkan/vulkan-loader/patches/no-git.patch b/vulkan/vulkan-loader/patches/no-git.patch
new file mode 100644
index 0000000000..34f79257b5
--- /dev/null
+++ b/vulkan/vulkan-loader/patches/no-git.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 645afe7241..337093c719 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -150,7 +150,6 @@ endif()
+
+ set(GIT_BRANCH_NAME "--unknown--")
+ set(GIT_TAG_INFO "--unknown--")
+-find_package (Git)
+ if (GIT_FOUND AND EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git/HEAD")
+ execute_process(
+ COMMAND ${GIT_EXECUTABLE} describe --tags --always