From 95bc6aceb7bc73609942036a76dade2eb51fa03d36cd47e9fd705c1ac8d59e97 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Sat, 17 Feb 2024 14:42:11 +0000 Subject: [PATCH] Accepting request 1147034 from home:mlin7442:rebuild_fails_156 fix build in Leap 15.6 OBS-URL: https://build.opensuse.org/request/show/1147034 OBS-URL: https://build.opensuse.org/package/show/science/pocl?expand=0&rev=75 --- pocl.changes | 7 +++++++ pocl.spec | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/pocl.changes b/pocl.changes index a51bd69..0553490 100644 --- a/pocl.changes +++ b/pocl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Feb 16 08:20:55 UTC 2024 - Max Lin + +- BuildRequires clang15-devel on Leap 15.6 + * the default clang-devel is clang17 and Leap15 doesn't + have clang16 + ------------------------------------------------------------------- Wed Nov 8 16:12:20 UTC 2023 - Dominique Leuenberger diff --git a/pocl.spec b/pocl.spec index 38005d0..12af541 100644 --- a/pocl.spec +++ b/pocl.spec @@ -40,7 +40,11 @@ BuildRequires: ninja BuildRequires: ocl-icd-devel BuildRequires: opencl-headers BuildRequires: pkgconfig +%if 0%{?suse_version} <= 1500 && 0%{?sle_version} > 150500 +BuildRequires: ((clang-devel >= 6.0.0 with clang-devel < 17) or clang15-devel) +%else BuildRequires: ((clang-devel >= 6.0.0 with clang-devel < 17) or clang16-devel) +%endif BuildRequires: pkgconfig(hwloc) # PPC has limited support/testing from upstream # s390(x) is also not supported, so use ExclusiveArch