From 6afe272e01c91928e5add086e63d1dc58caf4c9e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 17 Apr 2023 16:46:38 +0200 Subject: [PATCH 1/7] Remove cmake source in favor of patch Remove cmake source in favor of using LLVM_COMMON_CMAKE_UTILS with the installed cmake files and a patch, same as is done in some of the other subprojects. --- ...Change-LLVM_COMMON_CMAKE_UTILS-usage.patch | 30 +++++++++++++++++++ clang.spec | 22 +++++--------- sources | 2 -- 3 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch diff --git a/0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch b/0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch new file mode 100644 index 0000000..d330f87 --- /dev/null +++ b/0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch @@ -0,0 +1,30 @@ +From 2a0175c88ccd8c162901ac0ade56859d2b599f38 Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Mon, 17 Apr 2023 16:19:04 +0200 +Subject: [PATCH] Change LLVM_COMMON_CMAKE_UTILS usage + +Let LLVM_COMMON_CMAKE_UTILS store the directory where cmake modules are +available and stop assuming its directory structure. +--- + clang/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt +index 1fff005d6525..f4b3ef4bd15a 100644 +--- a/clang/CMakeLists.txt ++++ b/clang/CMakeLists.txt +@@ -1,9 +1,9 @@ + cmake_minimum_required(VERSION 3.13.4) + + if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS) +- set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) ++ set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Modules) + endif() +-include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake ++include(${LLVM_COMMON_CMAKE_UTILS}/CMakePolicy.cmake + NO_POLICY_SCOPE) + + # If we are not building as a part of LLVM, build Clang as an +-- +2.39.2 + diff --git a/clang.spec b/clang.spec index 856d2c3..aaa1289 100644 --- a/clang.spec +++ b/clang.spec @@ -37,7 +37,6 @@ %endif %global clang_srcdir clang-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src -%global cmake_srcdir cmake-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src %global clang_tools_srcdir clang-tools-extra-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src Name: %pkg_name @@ -53,11 +52,9 @@ Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_ Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig %endif -Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{cmake_srcdir}.tar.xz -Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{cmake_srcdir}.tar.xz.sig -Source6: release-keys.asc +Source4: release-keys.asc %if %{without compat_build} -Source7: macros.%{name} +Source5: macros.%{name} %endif # Patches for clang @@ -78,6 +75,8 @@ Patch8: D138472.diff Patch10: fix-ieee128-cross.diff +Patch11: 0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch + %if %{without compat_build} # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301 @@ -260,19 +259,13 @@ Requires: python3 %prep -%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3}' --data='%{SOURCE0}' -%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE5}' --data='%{SOURCE4}' +%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}' -%setup -T -q -b 4 -n %{cmake_srcdir} -# TODO: It would be more elegant to set -DLLVM_COMMON_CMAKE_UTILS=%{_builddir}/%{cmake_srcdir}, -# but this is not a CACHED variable, so we can't actually set it externally :( -cd .. -mv %{cmake_srcdir} cmake %if %{with compat_build} %autosetup -n %{clang_srcdir} -p2 %else -%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE2}' --data='%{SOURCE1}' +%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}' %setup -T -q -b 1 -n %{clang_tools_srcdir} %autopatch -m200 -p2 @@ -366,6 +359,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py %else -DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \ %endif + -DLLVM_COMMON_CMAKE_UTILS=%{_libdir}/cmake/llvm \ -DCLANG_ENABLE_ARCMT:BOOL=ON \ -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \ -DCLANG_INCLUDE_DOCS:BOOL=ON \ @@ -406,7 +400,7 @@ rm -Rf %{buildroot}%{install_prefix}/lib/{libear,libscanbuild} # File in the macros file for other packages to use. We are not doing this # in the compat package, because the version macros would # conflict with # eachother if both clang and the clang compat package were installed together. -install -p -m0644 -D %{SOURCE7} %{buildroot}%{_rpmmacrodir}/macros.%{name} +install -p -m0644 -D %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name} sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \ -e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \ -e "s|@@CLANG_PATCH_VERSION@@|%{patch_ver}|" \ diff --git a/sources b/sources index c70dde7..24761e4 100644 --- a/sources +++ b/sources @@ -2,5 +2,3 @@ SHA512 (clang-16.0.1.src.tar.xz) = c7ef4c386471850f30e194d0a8afe95fdd366c9182b1c SHA512 (clang-16.0.1.src.tar.xz.sig) = 31756b55641debde8e075819a3705c9fbf9a3e39d0f5da5a0e8421bd96eb19972ced6f22df0f66f918d48375089c06b5e499f0627dc81d22956421d9791e088e SHA512 (clang-tools-extra-16.0.1.src.tar.xz) = eb3a5656526db559fa331e4020305b6070a33e9c4e7a082f0ebe2b307ac43d542c989585e99c660fc749041774ff80dbad089678456318b40415e340654424c8 SHA512 (clang-tools-extra-16.0.1.src.tar.xz.sig) = c661a454ddc27aa12fd82aa19f49e26982147519bb108580059042302dc010b351d99fef65dc51c854a3d06a89a9200ee22dd613a1777bcf35b5236fa75ba2af -SHA512 (cmake-16.0.1.src.tar.xz) = 7a0f01a82660a953e06b1df267918542205ac46f151d284dca74255c36fe5ccd995266638a85ce502a81cdd5e76ff3311e5f8488e09d0abbf22ee07cec186f5f -SHA512 (cmake-16.0.1.src.tar.xz.sig) = 8d49050e9b04df253a5bb2fa3b27796f204d085610432826bef6bb6cab876990d67e7fd5267fc89fadf21d88da73c535c82ae6ea0e1c867f7cd5efac244b0fa2 From f6ef7a155ed5c7a98a688e0fb3192db00e264c58 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Wed, 26 Apr 2023 11:23:02 -0300 Subject: [PATCH 2/7] Update to LLVM 16.0.2 --- clang.spec | 5 ++++- sources | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/clang.spec b/clang.spec index aaa1289..54ad1c0 100644 --- a/clang.spec +++ b/clang.spec @@ -9,7 +9,7 @@ %global maj_ver 16 %global min_ver 0 -%global patch_ver 1 +%global patch_ver 2 #global rc_ver 4 %global clang_version %{maj_ver}.%{min_ver}.%{patch_ver} @@ -604,6 +604,9 @@ false %endif %changelog +* Wed Apr 26 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + * Wed Apr 12 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 - Update to LLVM 16.0.1 diff --git a/sources b/sources index 24761e4..964d562 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (clang-16.0.1.src.tar.xz) = c7ef4c386471850f30e194d0a8afe95fdd366c9182b1cdd7653342dcbf72a2b90970c0c4cc900314a26ba131163adec234eec00816207266fbe9c2259d01b61a -SHA512 (clang-16.0.1.src.tar.xz.sig) = 31756b55641debde8e075819a3705c9fbf9a3e39d0f5da5a0e8421bd96eb19972ced6f22df0f66f918d48375089c06b5e499f0627dc81d22956421d9791e088e -SHA512 (clang-tools-extra-16.0.1.src.tar.xz) = eb3a5656526db559fa331e4020305b6070a33e9c4e7a082f0ebe2b307ac43d542c989585e99c660fc749041774ff80dbad089678456318b40415e340654424c8 -SHA512 (clang-tools-extra-16.0.1.src.tar.xz.sig) = c661a454ddc27aa12fd82aa19f49e26982147519bb108580059042302dc010b351d99fef65dc51c854a3d06a89a9200ee22dd613a1777bcf35b5236fa75ba2af +SHA512 (clang-16.0.2.src.tar.xz) = 320d39303432f11f0079f0de62b8807a4b3439b2000564844765401557c77f8ab3be2f578bbe586cd2ea4c03128f06f8dbccc3df7984a3d747e2681e98b219f1 +SHA512 (clang-16.0.2.src.tar.xz.sig) = ea30a13ea4b95798c3aa1e419df19f79eef492ada680fd62a0d47089f89fdf87767656a1ea778d2e3fd7eb93af5fd58d07d78d6c03d60234665c445a73518712 +SHA512 (clang-tools-extra-16.0.2.src.tar.xz) = 8bd8d8dd81b44773a80be176de16dc7cf6958d08c75fe29b44d5c7fd630fd6483a997e00418dffde166816b6b265d5d6aff1973fb56e40dc812dca1ac326559c +SHA512 (clang-tools-extra-16.0.2.src.tar.xz.sig) = 84e1036d3cf797543358ef10bd622be8288acadf7acef462341e87da728a622125e14a884fc38951dd9040d98b0b85f5800faad35f1f30095635f7c8b8d93b1b From 90664d8d6ad97f6cd3d8ef297c90d9c7e02c0214 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Wed, 10 May 2023 07:13:20 -0300 Subject: [PATCH 3/7] Update to LLVM 16.0.3 --- clang.spec | 5 ++++- sources | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/clang.spec b/clang.spec index 54ad1c0..695476d 100644 --- a/clang.spec +++ b/clang.spec @@ -9,7 +9,7 @@ %global maj_ver 16 %global min_ver 0 -%global patch_ver 2 +%global patch_ver 3 #global rc_ver 4 %global clang_version %{maj_ver}.%{min_ver}.%{patch_ver} @@ -604,6 +604,9 @@ false %endif %changelog +* Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + * Wed Apr 26 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 - Update to LLVM 16.0.2 diff --git a/sources b/sources index 964d562..69fb95b 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (clang-16.0.2.src.tar.xz) = 320d39303432f11f0079f0de62b8807a4b3439b2000564844765401557c77f8ab3be2f578bbe586cd2ea4c03128f06f8dbccc3df7984a3d747e2681e98b219f1 -SHA512 (clang-16.0.2.src.tar.xz.sig) = ea30a13ea4b95798c3aa1e419df19f79eef492ada680fd62a0d47089f89fdf87767656a1ea778d2e3fd7eb93af5fd58d07d78d6c03d60234665c445a73518712 -SHA512 (clang-tools-extra-16.0.2.src.tar.xz) = 8bd8d8dd81b44773a80be176de16dc7cf6958d08c75fe29b44d5c7fd630fd6483a997e00418dffde166816b6b265d5d6aff1973fb56e40dc812dca1ac326559c -SHA512 (clang-tools-extra-16.0.2.src.tar.xz.sig) = 84e1036d3cf797543358ef10bd622be8288acadf7acef462341e87da728a622125e14a884fc38951dd9040d98b0b85f5800faad35f1f30095635f7c8b8d93b1b +SHA512 (clang-16.0.3.src.tar.xz) = 3db2806f1f5155c9df377f0e4b47f200814a2ca84ffd9eda7edafa3a85de76af92b3413388be48918432c5d0592d7d07f2618064ef7e7be7c97c9b29793829b8 +SHA512 (clang-16.0.3.src.tar.xz.sig) = 447245e1c0b9f94539e3f85de1bb1ea018b657cade824d9d9270c1025df272f6adf12e413be9630382c77730da4dd769ca73be9e1d20c4f2484ee626f79e15cb +SHA512 (clang-tools-extra-16.0.3.src.tar.xz) = 83d5196b88eaa9fdd1ea75353b59318c64cd002942c68653a81cd40288c5b01b9d6fadabac6a397cd06b955b8413d8940006af723d77cc4035bd9c139189f164 +SHA512 (clang-tools-extra-16.0.3.src.tar.xz.sig) = 96ee76da9f7845b4a68ae17cd7480d2e43c8fc12d1d7af71582af850f5fea04d86e234b2a30b4718892df306099811c7dfcd40d6bf7ae3736c7c6bdacad45dbb From 22846ba9157cd54a10834dc3adaf8fefcc480f56 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Wed, 3 May 2023 14:55:33 -0300 Subject: [PATCH 4/7] Remove patch for ppc64le triple Prefer the python-lit patch from https://reviews.llvm.org/D149746 --- 0001-PowerPC-clang-Fix-triple.patch | 26 -------------------------- clang.spec | 7 ++++--- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 0001-PowerPC-clang-Fix-triple.patch diff --git a/0001-PowerPC-clang-Fix-triple.patch b/0001-PowerPC-clang-Fix-triple.patch deleted file mode 100644 index f8e6912..0000000 --- a/0001-PowerPC-clang-Fix-triple.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 701750a896a08d5841a7bc0d187bcddaa6c0f616 Mon Sep 17 00:00:00 2001 -From: Tulio Magno Quites Machado Filho -Date: Thu, 16 Mar 2023 17:22:24 -0300 -Subject: [PATCH] [PowerPC][clang] Fix triple - -Some Linux distributions use ppc64le instead of powerpc. ---- - clang/test/CodeGenCoroutines/pr56329.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/clang/test/CodeGenCoroutines/pr56329.cpp b/clang/test/CodeGenCoroutines/pr56329.cpp -index 31d4849af4e7..69e0f1d337cf 100644 ---- a/clang/test/CodeGenCoroutines/pr56329.cpp -+++ b/clang/test/CodeGenCoroutines/pr56329.cpp -@@ -2,7 +2,7 @@ - // - // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %s -O3 -S -emit-llvm -o - | FileCheck %s - // This test is expected to fail on PowerPC. --// XFAIL: target=powerpc{{.*}} -+// XFAIL: target={{(ppc|powerpc).*}} - - #include "Inputs/coroutine.h" - --- -2.39.2 - diff --git a/clang.spec b/clang.spec index 695476d..fc615d2 100644 --- a/clang.spec +++ b/clang.spec @@ -41,7 +41,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A C language family front-end for LLVM License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -64,8 +64,6 @@ Patch3: 0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch # Drop the following patch after debugedit adds support to DWARF-5: # https://sourceware.org/bugzilla/show_bug.cgi?id=28728 Patch5: 0010-PATCH-clang-Produce-DWARF4-by-default.patch -# Fix a test based on the triple used on RHEL-based systems. -Patch6: 0001-PowerPC-clang-Fix-triple.patch # Make clangBasic and clangDriver depend on LLVMTargetParser # See https://reviews.llvm.org/D141581 Patch7: D141581.diff @@ -604,6 +602,9 @@ false %endif %changelog +* Mon May 15 2023 Tulio Magno Quites Machado Filho - 16.0.3-2 +- Remove patch for ppc64le triple in favor of https://reviews.llvm.org/D149746 + * Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 - Update to LLVM 16.0.3 From 92d3782fb416996d4aa1861e9ffc2ac9b661bc21 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Fri, 19 May 2023 13:43:34 -0300 Subject: [PATCH 5/7] Update to LLVM 16.0.4 --- clang.spec | 7 +++++-- sources | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/clang.spec b/clang.spec index fc615d2..77ee04a 100644 --- a/clang.spec +++ b/clang.spec @@ -9,7 +9,7 @@ %global maj_ver 16 %global min_ver 0 -%global patch_ver 3 +%global patch_ver 4 #global rc_ver 4 %global clang_version %{maj_ver}.%{min_ver}.%{patch_ver} @@ -41,7 +41,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 2%{?dist} +Release: 1%{?dist} Summary: A C language family front-end for LLVM License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -602,6 +602,9 @@ false %endif %changelog +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + * Mon May 15 2023 Tulio Magno Quites Machado Filho - 16.0.3-2 - Remove patch for ppc64le triple in favor of https://reviews.llvm.org/D149746 diff --git a/sources b/sources index 69fb95b..8e81289 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (clang-16.0.3.src.tar.xz) = 3db2806f1f5155c9df377f0e4b47f200814a2ca84ffd9eda7edafa3a85de76af92b3413388be48918432c5d0592d7d07f2618064ef7e7be7c97c9b29793829b8 -SHA512 (clang-16.0.3.src.tar.xz.sig) = 447245e1c0b9f94539e3f85de1bb1ea018b657cade824d9d9270c1025df272f6adf12e413be9630382c77730da4dd769ca73be9e1d20c4f2484ee626f79e15cb -SHA512 (clang-tools-extra-16.0.3.src.tar.xz) = 83d5196b88eaa9fdd1ea75353b59318c64cd002942c68653a81cd40288c5b01b9d6fadabac6a397cd06b955b8413d8940006af723d77cc4035bd9c139189f164 -SHA512 (clang-tools-extra-16.0.3.src.tar.xz.sig) = 96ee76da9f7845b4a68ae17cd7480d2e43c8fc12d1d7af71582af850f5fea04d86e234b2a30b4718892df306099811c7dfcd40d6bf7ae3736c7c6bdacad45dbb +SHA512 (clang-16.0.4.src.tar.xz) = d6294897022519900ed037559068ff46fff583903a3266147a7f71a47673d123690cff89730777d40e0ba9f1c086e469c6c845aea04c41890da05ea654bd8ce8 +SHA512 (clang-16.0.4.src.tar.xz.sig) = bc77d531b41a8a9c7d7e5a742baf8686ec2e79b4cd37c64e792a3a611201b82fcea8875f8dc52d953f3af1dbffb2b311c942e3b70dea937a89cd2f6653716af8 +SHA512 (clang-tools-extra-16.0.4.src.tar.xz) = f05ada67851332626d11b39b9f43284985028b5613a3d5e3f2c95f4aaacae6f24147a716472b9edf4047de0258e3db55ab11ff12452eeefc525e128f2b0c2217 +SHA512 (clang-tools-extra-16.0.4.src.tar.xz.sig) = c2c8bd09732177760b14b2b25dd41ea3859256722bc9a7a83dee6af6c39fbda027aa42f38d39f097bf07f040d8522e6e8e73875de53ad2f899d5251b0b9b43bc From b534a5d60778b13b042c2e68655d101d3f4b258a Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 12 May 2023 07:49:15 -0400 Subject: [PATCH 6/7] Avoid recommonmark dependency in RHEL builds python-recommonmark and its dependencies are unwanted in RHEL. This is based on changes already in c9s. --- 0009-disable-recommonmark.patch | 38 +++++++++++++++++++++++++++++++++ clang.spec | 8 ++++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 0009-disable-recommonmark.patch diff --git a/0009-disable-recommonmark.patch b/0009-disable-recommonmark.patch new file mode 100644 index 0000000..8a259af --- /dev/null +++ b/0009-disable-recommonmark.patch @@ -0,0 +1,38 @@ +From f4e2d711e5cfd8e357d770e2da7a114086ee8659 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timm=20B=C3=A4der?= +Date: Thu, 22 Sep 2022 10:49:43 +0200 +Subject: disable recommonmark + +--- + clang/docs/conf.py | 15 +-------------- + 1 file changed, 1 insertion(+), 14 deletions(-) + +diff --git a/clang/docs/conf.py b/clang/docs/conf.py +index b8a42018191a..912449a7f792 100644 +--- a/clang/docs/conf.py ++++ b/clang/docs/conf.py +@@ -37,20 +37,7 @@ source_suffix = { + '.rst': 'restructuredtext', + } + +-try: +- import recommonmark +-except ImportError: +- # manpages do not use any .md sources +- if not tags.has('builder-man'): +- raise +-else: +- import sphinx +- if sphinx.version_info >= (3, 0): +- # This requires 0.5 or later. +- extensions.append('recommonmark') +- else: +- source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'} +- source_suffix['.md'] = 'markdown' ++import sphinx + + # The encoding of source files. + #source_encoding = 'utf-8-sig' +-- +2.37.1 + diff --git a/clang.spec b/clang.spec index 77ee04a..dd8089a 100644 --- a/clang.spec +++ b/clang.spec @@ -75,6 +75,10 @@ Patch10: fix-ieee128-cross.diff Patch11: 0001-Change-LLVM_COMMON_CMAKE_UTILS-usage.patch +# RHEL specific patches +# Avoid unwanted dependency on python-recommonmark +Patch101: 0009-disable-recommonmark.patch + %if %{without compat_build} # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301 @@ -107,7 +111,9 @@ BuildRequires: emacs BuildRequires: python3-lit BuildRequires: python3-sphinx +%if %{undefined rhel} BuildRequires: python3-recommonmark +%endif BuildRequires: libatomic # We need python3-devel for %%py3_shebang_fix @@ -276,7 +282,7 @@ rm test/clang-tidy/checkers/altera/struct-pack-align.cpp clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py %setup -q -n %{clang_srcdir} -%autopatch -M200 -p2 +%autopatch -M%{?!rhel:100}%{?rhel:200} -p2 # failing test case rm test/CodeGen/profile-filter.c From efb4b42e9b41c0bbbd36ed475bde41787859c781 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Tue, 6 Jun 2023 03:00:43 -0300 Subject: [PATCH 7/7] Update to LLVM 16.0.5 --- clang.spec | 5 ++++- sources | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/clang.spec b/clang.spec index dd8089a..2ff15e5 100644 --- a/clang.spec +++ b/clang.spec @@ -9,7 +9,7 @@ %global maj_ver 16 %global min_ver 0 -%global patch_ver 4 +%global patch_ver 5 #global rc_ver 4 %global clang_version %{maj_ver}.%{min_ver}.%{patch_ver} @@ -608,6 +608,9 @@ false %endif %changelog +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + * Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 - Update to LLVM 16.0.4 diff --git a/sources b/sources index 8e81289..d20fad2 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (clang-16.0.4.src.tar.xz) = d6294897022519900ed037559068ff46fff583903a3266147a7f71a47673d123690cff89730777d40e0ba9f1c086e469c6c845aea04c41890da05ea654bd8ce8 -SHA512 (clang-16.0.4.src.tar.xz.sig) = bc77d531b41a8a9c7d7e5a742baf8686ec2e79b4cd37c64e792a3a611201b82fcea8875f8dc52d953f3af1dbffb2b311c942e3b70dea937a89cd2f6653716af8 -SHA512 (clang-tools-extra-16.0.4.src.tar.xz) = f05ada67851332626d11b39b9f43284985028b5613a3d5e3f2c95f4aaacae6f24147a716472b9edf4047de0258e3db55ab11ff12452eeefc525e128f2b0c2217 -SHA512 (clang-tools-extra-16.0.4.src.tar.xz.sig) = c2c8bd09732177760b14b2b25dd41ea3859256722bc9a7a83dee6af6c39fbda027aa42f38d39f097bf07f040d8522e6e8e73875de53ad2f899d5251b0b9b43bc +SHA512 (clang-16.0.5.src.tar.xz) = d7ad46ee7d564c08baf600f55d46d735eeb1e5959c7f5b61bf2766b7b2a78a5a762ececb36fd55b61113435f0c3654529e61b7f71c01d60e9d63f3128eb009ed +SHA512 (clang-tools-extra-16.0.5.src.tar.xz) = 8f5c5617dad5eb3f89e8f7d29c3ac3a8ee3286f83cc4984ba28cdd8d9a663a80f581dbb81d8f520fa31f5a7f5fdd0c34d889ed32a17895e2daebf4c9380a0aff +SHA512 (clang-tools-extra-16.0.5.src.tar.xz.sig) = 1161fd65c3d693d7463489c5e7fda9e5742cd1389553faac324f008fcd75533d54742712c36e946635123c7dc1c634865cea5b5e238db45819b2da473b4f8a34 +SHA512 (clang-16.0.5.src.tar.xz.sig) = ed0d70fe20057762c9396663d4012b117909f800dd01ddd887950d5e0a9afdfa12e70a9d031b9917170d7ceef8d1e79ea949664d6ab6b3fcad0e70b3fef08224