| |
@@ -1,43 +1,12 @@
|
| |
%bcond_with compat_build
|
| |
%bcond_without check
|
| |
|
| |
- %global maj_ver 13
|
| |
+ %global maj_ver 14
|
| |
%global min_ver 0
|
| |
- %global patch_ver 1
|
| |
- #global rc_ver 3
|
| |
+ %global patch_ver 0
|
| |
+ #global rc_ver 4
|
| |
%global clang_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
| |
|
| |
- %global clang_tools_binaries \
|
| |
- %{_bindir}/clang-apply-replacements \
|
| |
- %{_bindir}/clang-change-namespace \
|
| |
- %{_bindir}/clang-check \
|
| |
- %{_bindir}/clang-doc \
|
| |
- %{_bindir}/clang-extdef-mapping \
|
| |
- %{_bindir}/clang-format \
|
| |
- %{_bindir}/clang-include-fixer \
|
| |
- %{_bindir}/clang-move \
|
| |
- %{_bindir}/clang-offload-bundler \
|
| |
- %{_bindir}/clang-offload-wrapper \
|
| |
- %{_bindir}/clang-query \
|
| |
- %{_bindir}/clang-refactor \
|
| |
- %{_bindir}/clang-rename \
|
| |
- %{_bindir}/clang-reorder-fields \
|
| |
- %{_bindir}/clang-repl \
|
| |
- %{_bindir}/clang-scan-deps \
|
| |
- %{_bindir}/clang-tidy \
|
| |
- %{_bindir}/clangd \
|
| |
- %{_bindir}/diagtool \
|
| |
- %{_bindir}/hmaptool \
|
| |
- %{_bindir}/pp-trace
|
| |
-
|
| |
- %global clang_binaries \
|
| |
- %{_bindir}/clang \
|
| |
- %{_bindir}/clang++ \
|
| |
- %{_bindir}/clang-%{maj_ver} \
|
| |
- %{_bindir}/clang++-%{maj_ver} \
|
| |
- %{_bindir}/clang-cl \
|
| |
- %{_bindir}/clang-cpp \
|
| |
-
|
| |
%if %{with compat_build}
|
| |
%global pkg_name clang%{maj_ver}
|
| |
# Install clang to same prefix as llvm, so that apps that use llvm-config
|
| |
@@ -72,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: NCSA
|
| |
@@ -94,9 +63,17 @@
|
| |
Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch
|
| |
Patch3: 0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
|
| |
Patch4: 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
|
| |
- Patch5: 0001-PATCH-clang-Fix-scan-build-py-executable-lookup-path.patch
|
| |
# This patch can be dropped once gcc-12.0.1-0.5.fc36 is in the repo.
|
| |
- Patch6: 0001-Work-around-gcc-miscompile.patch
|
| |
+ Patch5: 0001-Work-around-gcc-miscompile.patch
|
| |
+ # https://github.com/llvm/llvm-project/commit/fed96f31bb5b68f77dd617ee8e698dd8171ee71b
|
| |
+ Patch6: m-branch-protection.patch
|
| |
+ Patch7: 0010-PATCH-clang-Produce-DWARF4-by-default.patch
|
| |
+
|
| |
+ # Patches for clang-tools-extra
|
| |
+ # See https://reviews.llvm.org/D120301
|
| |
+ Patch201: llvm-hello.patch
|
| |
+ # See https://github.com/llvm/llvm-project/issues/54116
|
| |
+ Patch202: remove-test.patch
|
| |
|
| |
BuildRequires: gcc
|
| |
BuildRequires: gcc-c++
|
| |
@@ -125,6 +102,7 @@
|
| |
BuildRequires: python3-lit
|
| |
|
| |
BuildRequires: python3-sphinx
|
| |
+ BuildRequires: python3-recommonmark
|
| |
BuildRequires: libatomic
|
| |
|
| |
# We need python3-devel for %%py3_shebang_fix
|
| |
@@ -275,6 +253,12 @@
|
| |
%setup -T -q -b 1 -n %{clang_tools_srcdir}
|
| |
%autopatch -m200 -p2
|
| |
|
| |
+
|
| |
+ # This test is broken upstream. It is a clang-tidy unittest
|
| |
+ # that includes a file from clang, breaking standalone builds.
|
| |
+ # https://github.com/llvm/llvm-project/issues/54116
|
| |
+ rm unittests/clang-tidy/ReadabilityModuleTest.cpp
|
| |
+
|
| |
# failing test case
|
| |
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
| |
|
| |
@@ -300,7 +284,6 @@
|
| |
%endif
|
| |
|
| |
%build
|
| |
-
|
| |
# We run the builders out of memory on armv7 and i686 when LTO is enabled
|
| |
%ifarch %{arm} i686
|
| |
%define _lto_cflags %{nil}
|
| |
@@ -324,6 +307,11 @@
|
| |
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
| |
%endif
|
| |
|
| |
+
|
| |
+ %set_build_flags
|
| |
+ CXXFLAGS="$CXXFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized"
|
| |
+ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized"
|
| |
+
|
| |
# -DLLVM_ENABLE_NEW_PASS_MANAGER=ON can be removed once this patch is committed:
|
| |
# https://reviews.llvm.org/D107628
|
| |
%cmake -G Ninja \
|
| |
@@ -432,7 +420,7 @@
|
| |
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
|
| |
|
| |
# TODO: Package html docs
|
| |
- rm -Rvf %{buildroot}%{_docdir}/clang/html
|
| |
+ rm -Rvf %{buildroot}%{_docdir}/Clang/clang/html
|
| |
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
|
| |
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
|
| |
|
| |
@@ -493,7 +481,12 @@
|
| |
%if %{without compat_build}
|
| |
%files
|
| |
%license LICENSE.TXT
|
| |
- %{clang_binaries}
|
| |
+ %{_bindir}/clang
|
| |
+ %{_bindir}/clang++
|
| |
+ %{_bindir}/clang-%{maj_ver}
|
| |
+ %{_bindir}/clang++-%{maj_ver}
|
| |
+ %{_bindir}/clang-cl
|
| |
+ %{_bindir}/clang-cpp
|
| |
%{_mandir}/man1/clang.1.gz
|
| |
%{_mandir}/man1/clang++.1.gz
|
| |
%{_mandir}/man1/clang-%{maj_ver}.1.gz
|
| |
@@ -554,7 +547,29 @@
|
| |
|
| |
|
| |
%files tools-extra
|
| |
- %{clang_tools_binaries}
|
| |
+ %{_bindir}/clang-apply-replacements
|
| |
+ %{_bindir}/clang-change-namespace
|
| |
+ %{_bindir}/clang-check
|
| |
+ %{_bindir}/clang-doc
|
| |
+ %{_bindir}/clang-extdef-mapping
|
| |
+ %{_bindir}/clang-format
|
| |
+ %{_bindir}/clang-include-fixer
|
| |
+ %{_bindir}/clang-move
|
| |
+ %{_bindir}/clang-offload-bundler
|
| |
+ %{_bindir}/clang-offload-wrapper
|
| |
+ %{_bindir}/clang-linker-wrapper
|
| |
+ %{_bindir}/clang-nvlink-wrapper
|
| |
+ %{_bindir}/clang-query
|
| |
+ %{_bindir}/clang-refactor
|
| |
+ %{_bindir}/clang-rename
|
| |
+ %{_bindir}/clang-reorder-fields
|
| |
+ %{_bindir}/clang-repl
|
| |
+ %{_bindir}/clang-scan-deps
|
| |
+ %{_bindir}/clang-tidy
|
| |
+ %{_bindir}/clangd
|
| |
+ %{_bindir}/diagtool
|
| |
+ %{_bindir}/hmaptool
|
| |
+ %{_bindir}/pp-trace
|
| |
%{_bindir}/c-index-test
|
| |
%{_bindir}/find-all-symbols
|
| |
%{_bindir}/modularize
|
| |
@@ -580,6 +595,9 @@
|
| |
|
| |
%endif
|
| |
%changelog
|
| |
+ * Wed Mar 23 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
| |
+ - Update to 14.0.0
|
| |
+
|
| |
* Wed Feb 16 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-2
|
| |
- Fix some rpmlinter errors
|
| |
|
| |