Add reproducible.patch for reproducible builds #1

Closed
bmwiedemann wants to merge 1 commits from bmwiedemann/rocclr:rawhide into rawhide
2 changed files with 20 additions and 0 deletions

18
reproducible.patch Normal file
View File

@@ -0,0 +1,18 @@
Avoid adding randomness into hip_pch.o
via
/usr/lib64/rocm/llvm/lib/cmake/llvm/../../../bin/llvm-mc -o hip_pch.o /tmp/hip_pch.$PID/hip_pch.mcin --filetype=obj
diff --git a/hipamd/src/hip_embed_pch.sh b/hipamd/src/hip_embed_pch.sh
index 6c92d43..0a15078 100755
--- a/hipamd/src/hip_embed_pch.sh
+++ b/hipamd/src/hip_embed_pch.sh
@@ -100,7 +100,7 @@ EOF
}
generate_pch() {
- tmp=$tmpdir/hip_pch.$$
+ tmp=$tmpdir/hip_pch.x
mkdir -p $tmp
create_hip_macro_file $tmp/hip_macros.h

View File

@@ -91,6 +91,8 @@ Source1: https://github.com/ROCm-Developer-Tools/HIP/archive/refs/tags/ro
# a fix for building blender
Patch8: 0001-add-long-variants-for-__ffsll.patch
# Fix for reproducible builds
Patch9: reproducible.patch
#https://github.com/ROCm/clr/pull/97
patch10: %{url}/pull/97/commits/909fa3dcb644f7ca422ed1a980a54ac426d831b1.patch