Notification time stamped 2022-04-01 02:48:00 UTC
From 13b939a44a406d924fe8fc44ff09ea057f6810cd Mon Sep 17 00:00:00 2001
From: Jeremy Newton <alexjnewt(a)hotmail.com>
Date: Apr 01 2022 02:47:40 +0000
Subject: Fix llvm/clang major requires
If an application or library compiles with rocm-device-libs, the major
version of clang used must match the version used to compile
rocm-devices-libs.
To enforce this, this package needs to explicitly require the correct clang
package. Furthermore, while this package doesn't strictly require clang, the
bitcode isn't really useful without it.
---
diff --git a/rocm-device-libs.spec b/rocm-device-libs.spec
index dcb9411..a331857 100644
--- a/rocm-device-libs.spec
+++ b/rocm-device-libs.spec
@@ -1,11 +1,12 @@
# bitcode has no debuginfo
%global debug_package %{nil}
+%global llvm_maj_ver 14
%global upstreamname ROCm-Device-Libs
Name: rocm-device-libs
Version: 5.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: AMD ROCm LLVM bit code libraries
Url:
https://github.com/RadeonOpenCompute/ROCm-Device-Libs
@@ -15,9 +16,11 @@ Source0:
https://github.com/RadeonOpenCompute/%{upstreamname}/archive/ref
Patch0: 0001-Use-FHS-compliant-install.patch
BuildRequires: cmake
-BuildRequires: clang-devel >= 14.0.0
-BuildRequires: llvm-devel >= 14.0.0
+BuildRequires: clang-devel
+BuildRequires: clang(major) = %{llvm_maj_ver}
+BuildRequires: llvm-devel(major) = %{llvm_maj_ver}
BuildRequires: zlib-devel
+Requires: clang(major) = %{llvm_maj_ver}
#Only the following architectures are supported:
ExclusiveArch: x86_64 aarch64
@@ -51,6 +54,10 @@ libraries in the form of bit code. Specifically:
%{_libdir}/amdgcn
%changelog
+* Thu Mar 31 2022 Jeremy Newton <alexjnewt at hotmail dot com> - 5.1.0-2
+- Add clang specific major version requires
+- BR a specific clang/llvm major version combination
+
* Thu Mar 31 2022 Jeremy Newton <alexjnewt at hotmail dot com> - 5.1.0-1
- Update to 5.1.0
- Add llvm version requirement to make sure the right version is used
https://src.fedoraproject.org/rpms/rocm-device-libs/c/13b939a44a406d924fe...