|
@@ -14,7 +14,7 @@
|
|
Summary: A C language family front-end for LLVM
|
|
Summary: A C language family front-end for LLVM
|
|
Summary(ja): LLVM の C 言語フロントエンド
|
|
Summary(ja): LLVM の C 言語フロントエンド
|
|
Name: clang
|
|
Name: clang
|
|
-Version: 13.0.1
|
|
|
|
|
|
+Version: 14.0.5
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: programming
|
|
Group: programming
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -34,7 +34,17 @@ Patch1: 0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
|
|
Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch
|
|
Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch
|
|
Patch3: 0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.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
|
|
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.
|
|
|
|
+Patch5: 0001-Work-around-gcc-miscompile.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
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
@@ -136,12 +146,17 @@ A set of extra tools built using Clang's tooling API.
|
|
%setup -T -q -b 1 -n clang-tools-extra-%{version}.src
|
|
%setup -T -q -b 1 -n clang-tools-extra-%{version}.src
|
|
%autopatch -m200 -p2
|
|
%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
|
|
# failing test case
|
|
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
|
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
|
|
|
|
|
pathfix%{python3_version}.py -i %{__python3} -pn \
|
|
pathfix%{python3_version}.py -i %{__python3} -pn \
|
|
- clang-tidy/tool/*.py \
|
|
|
|
- clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
|
|
|
|
|
+ clang-tidy/tool/*.py \
|
|
|
|
+ clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
|
|
|
|
|
%setup -q -n clang-%{version}.src
|
|
%setup -q -n clang-%{version}.src
|
|
%autopatch -M200 -p2
|
|
%autopatch -M200 -p2
|
|
@@ -150,10 +165,14 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
|
|
rm test/CodeGen/profile-filter.c
|
|
rm test/CodeGen/profile-filter.c
|
|
|
|
|
|
pathfix%{python3_version}.py -i %{__python3} -pn \
|
|
pathfix%{python3_version}.py -i %{__python3} -pn \
|
|
- tools/clang-format/*.py \
|
|
|
|
- tools/clang-format/git-clang-format \
|
|
|
|
- utils/hmaptool/hmaptool \
|
|
|
|
- tools/scan-view/bin/scan-view
|
|
|
|
|
|
+ tools/clang-format/*.py \
|
|
|
|
+ tools/clang-format/git-clang-format \
|
|
|
|
+ utils/hmaptool/hmaptool \
|
|
|
|
+ tools/scan-view/bin/scan-view \
|
|
|
|
+ tools/scan-view/share/Reporter.py \
|
|
|
|
+ tools/scan-view/share/startfile.py \
|
|
|
|
+ tools/scan-build-py/bin/* \
|
|
|
|
+ tools/scan-build-py/libexec/*
|
|
|
|
|
|
sed -i -e 's/"i686-linux-gnu",/"i686-linux-gnu","i686-vine-linux","i686-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
|
|
sed -i -e 's/"i686-linux-gnu",/"i686-linux-gnu","i686-vine-linux","i686-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
|
|
sed -i -e 's/"x86_64-linux-gnu",/"x86_64-linux-gnu","x86_64-vine-linux","x86_64-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
|
|
sed -i -e 's/"x86_64-linux-gnu",/"x86_64-linux-gnu","x86_64-vine-linux","x86_64-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
|
|
@@ -176,6 +195,7 @@ sed -i -e 's/"ld"/"ld.gold"/' include/clang/Driver/ToolChain.h
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
|
|
|
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
|
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
|
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../clang-tools-extra-%{version}.src \
|
|
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../clang-tools-extra-%{version}.src \
|
|
%if 0%{?__isa_bits} == 64
|
|
%if 0%{?__isa_bits} == 64
|
|
@@ -332,6 +352,12 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Jun 15 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 14.0.5-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped patch5.
|
|
|
|
+- updated Patch1.
|
|
|
|
+- imported Patch5-202 from rawhide.
|
|
|
|
+
|
|
* Thu Feb 03 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 13.0.1-1
|
|
* Thu Feb 03 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 13.0.1-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|