From ed4cb8570d3eb0e1ccc60c94c1432ea3f594e71c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 20 Oct 2020 06:14:43 +0000 Subject: [PATCH] import clang-11.0.0-0.2.rc2.module+el8.4.0+8195+484edabc --- .clang.metadata | 4 +- .gitignore | 4 +- ...clang-Don-t-install-static-libraries.patch | 22 ++--- ...0001-clang-Fix-spurious-test-failure.patch | 25 ++++++ SOURCES/clang-10.0.1.src.tar.xz.sig | Bin 566 -> 0 bytes SOURCES/clang-11.0.0rc2.src.tar.xz.sig | Bin 0 -> 566 bytes .../clang-tools-extra-10.0.1.src.tar.xz.sig | Bin 566 -> 0 bytes ...clang-tools-extra-11.0.0rc2.src.tar.xz.sig | Bin 0 -> 566 bytes SPECS/clang.spec | 76 +++++++++++------- 9 files changed, 85 insertions(+), 46 deletions(-) create mode 100644 SOURCES/0001-clang-Fix-spurious-test-failure.patch delete mode 100644 SOURCES/clang-10.0.1.src.tar.xz.sig create mode 100644 SOURCES/clang-11.0.0rc2.src.tar.xz.sig delete mode 100644 SOURCES/clang-tools-extra-10.0.1.src.tar.xz.sig create mode 100644 SOURCES/clang-tools-extra-11.0.0rc2.src.tar.xz.sig diff --git a/.clang.metadata b/.clang.metadata index ea84b60..664bea5 100644 --- a/.clang.metadata +++ b/.clang.metadata @@ -1,3 +1,3 @@ -0e61e92b22a620fe7f833fa8b2a56f2db96f7335 SOURCES/clang-10.0.1.src.tar.xz -26c996da082677aca1016bcf2141dbff01dc7300 SOURCES/clang-tools-extra-10.0.1.src.tar.xz +79ccca001aa5727d954a2b5970b9c11ef750411e SOURCES/clang-11.0.0rc2.src.tar.xz +3f7c23287becbfd781b1657e04654ce38b496e32 SOURCES/clang-tools-extra-11.0.0rc2.src.tar.xz 32fa4b0193960f05064f2ab31b5a89c7cf48a0b9 SOURCES/hans-gpg-key.asc diff --git a/.gitignore b/.gitignore index a673a19..c302376 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -SOURCES/clang-10.0.1.src.tar.xz -SOURCES/clang-tools-extra-10.0.1.src.tar.xz +SOURCES/clang-11.0.0rc2.src.tar.xz +SOURCES/clang-tools-extra-11.0.0rc2.src.tar.xz SOURCES/hans-gpg-key.asc diff --git a/SOURCES/0001-clang-Don-t-install-static-libraries.patch b/SOURCES/0001-clang-Don-t-install-static-libraries.patch index 4bf7d35..8c80dd3 100644 --- a/SOURCES/0001-clang-Don-t-install-static-libraries.patch +++ b/SOURCES/0001-clang-Don-t-install-static-libraries.patch @@ -1,4 +1,4 @@ -From 856b789b9de0895786ba23681c4337172676e01e Mon Sep 17 00:00:00 2001 +From 8097a9d4295dbc39cbd541ccace7bc5884852366 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 31 Jan 2020 11:04:57 -0800 Subject: [PATCH] clang: Don't install static libraries @@ -8,18 +8,18 @@ Subject: [PATCH] clang: Don't install static libraries 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake -index cbd618e..9cf076a 100644 +index 704278a0e93..1737b24a2bc 100644 --- a/clang/cmake/modules/AddClang.cmake +++ b/clang/cmake/modules/AddClang.cmake -@@ -97,7 +97,7 @@ macro(add_clang_library name) - if(TARGET ${name}) - target_link_libraries(${name} INTERFACE ${LLVM_COMMON_LIBS}) +@@ -111,7 +111,7 @@ macro(add_clang_library name) + if(TARGET ${lib}) + target_link_libraries(${lib} INTERFACE ${LLVM_COMMON_LIBS}) -- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN) -+ if (ARG_SHARED AND (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)) - set(export_to_clangtargets) - if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR - "clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR +- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN) ++ if (ARG_SHARED AND (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)) + set(export_to_clangtargets) + if(${lib} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR + "clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR -- -1.8.3.1 +2.18.1 diff --git a/SOURCES/0001-clang-Fix-spurious-test-failure.patch b/SOURCES/0001-clang-Fix-spurious-test-failure.patch new file mode 100644 index 0000000..07c45b6 --- /dev/null +++ b/SOURCES/0001-clang-Fix-spurious-test-failure.patch @@ -0,0 +1,25 @@ +From 5bfce60443b1c3f4066f506e47cbdc7c4263bb10 Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Tue, 11 Aug 2020 18:32:08 -0700 +Subject: [PATCH] clang: Fix spurious test failure + +--- + clang/test/Driver/crash-report-modules.m | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/clang/test/Driver/crash-report-modules.m b/clang/test/Driver/crash-report-modules.m +index e6d03353379..9519adf6f4b 100644 +--- a/clang/test/Driver/crash-report-modules.m ++++ b/clang/test/Driver/crash-report-modules.m +@@ -19,7 +19,7 @@ + @import simple; + const int x = MODULE_MACRO; + +-// CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace, preprocessed source, and associated run script. ++// CHECK: PLEASE submit a bug report to {{.*}}and include the crash backtrace, preprocessed source, and associated run script. + // CHECK: Preprocessed source(s) and associated run script(s) are located at: + // CHECK-NEXT: note: diagnostic msg: {{.*}}.m + // CHECK-NEXT: note: diagnostic msg: {{.*}}.cache +-- +2.18.1 + diff --git a/SOURCES/clang-10.0.1.src.tar.xz.sig b/SOURCES/clang-10.0.1.src.tar.xz.sig deleted file mode 100644 index 26c50da8a26481b02d7c1ea3bf1f4bbd6d32bd68..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 566 zcmV-60?GY}0y6{v0SEvc79j*jP9iaCzek0rjBbvi$CRmtL7j>P0$&%0iU0};5TeJF zsfIzFifI)O{vmr@jiWzlL%v?<5{E*xURo3vOwws*phlA*9A4Apf8rw1rRQc3v8ga$ ziFjl{iAe%v1Uf!?WK%8BMN-fX5U;EgHyZb#wVd}Y_o^;*@F!2(D#gw)D)rtq@shoZ zV?edhLIFz3mvm?aC4u2SJX6(1;se@qd1TvV$?*QegFEJabI#W#3=VBE20*rwjEijh z9MY?{LFcFAlSWLGlpvGCv*Zox9-ZIr;U**ZF5UFa)%MUZe>X0M{-gF^ai7LM`{J zN)~P_q*CVxD{&7M7;f`}3(GKd<|K&Gz%$ODtN8(ZB|U5SslpU@NL%P2pyf|dYz6TVEj;W{P+Pb4{704}OCvmm91vKgJ;*N{rU Et=7v4{{R30 diff --git a/SOURCES/clang-11.0.0rc2.src.tar.xz.sig b/SOURCES/clang-11.0.0rc2.src.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000..71526a83386af645840dac2e93635aa6ba96b7b6 GIT binary patch literal 566 zcmV-60?GY}0y6{v0SW*e79j+-$oYbTxkTfz)xuK`!vrogTF_ku0$)DMlK=_{5D&uy zE;L%uUARaO{T+BAF{`?KOH6X%wa*su^%?o1Lep?}-mChfg!S$(DN#(AQlOT*Sxz&S zD|M^xwT60z$(OUG316LJdjyrKeg?I~@v11> zW5DNto^#l9ni*nbvZQhH#+Sjj2^?E+b*uP_P~9~SFrVmMv|YgE7Zy&JIeUPO0G``* zXS#7cKZ9^hv~F{}$x8r{`E#C9@8(_NoMxB*Tv6C&*-1F2zHD-=E(T-K~7u2-S(07dKIt% zMqAWuC;#$Sxk&LWkR0BFR=*-~=yZ#gHqv*Kf4r~WeM)~L^eyiCAd>pEs4ka=+LucQP%h={3B9p=!F8P+2t$^jv^g$ z)5d>z6i?X)Gx`c62*2clpAj_YkWXuQ0AyYChq!HXzJvrW6F2X*@@^g*GHck(QRIZb zvyJnfrJf3Us#cZpIAeJIVIv;|nh+~qljXE8l-W-nq1a4Egy^|`G#CVe&4E$ehE$)b ETy209rT_o{ literal 0 HcmV?d00001 diff --git a/SOURCES/clang-tools-extra-10.0.1.src.tar.xz.sig b/SOURCES/clang-tools-extra-10.0.1.src.tar.xz.sig deleted file mode 100644 index dc5cf4b48aec9fbcf32090eeeffd6a1767c73612..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 566 zcmV-60?GY}0y6{v0SEvc79j*jP9iaCzek0rjBbvi$CRmtL7j>P0$&%0kpKz_5TeJF zsfIzFiZgEy`U4n1rJ5^K_6H^)sv6%I>Bh}b9XR7we|-yE&xqP#P;i7?S%8d#G#_e3 ziBAIvwiiFUfKzxVD??X>g^`^*dfNv+-kXrHTIdUj*hx`m ziiF@zL9|SbU{nolR;s6iW!NLX4YeoXSQ9K{aK|`Yq`khtQ)cUj;27{R;L-}g3NgoFO(4J- zs-oEUlpEloFK7$vMyVDv$|bqDY2{`8r~H}3ut}3m%SW*G%8J6ksFA_3$qhO9Y%|40 z2jAejgVk~@HO0lY4Xz3!aTnuj1BHn0v3E%(sVGC7p;)i8U^eMZ#wZoXa2?&1b=rE$ zi-w)GmyB_6Pr6OmNa71Y(l^7h-{*rTcr|yiRUyi~5Zksx_a_yW6Q9k|cNR`f%g{dR z;7Gm4tbr`yyU?>ZK#kb5cP0}C?2I7fK%O|)B@t+2GF16{K2dZdxvYGKUiKkJJ5e|r zbL!6%7-An$UF>A9MBPRx+d#WY-c!FI;*(BnL>>|C$chVBQ*{oyAjg$TZSzuNR^|FX E!f$2@t^fc4 diff --git a/SOURCES/clang-tools-extra-11.0.0rc2.src.tar.xz.sig b/SOURCES/clang-tools-extra-11.0.0rc2.src.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000..19cc2e1325ade5a1a2bd34a7af9c5b5cae238e6b GIT binary patch literal 566 zcmV-60?GY}0y6{v0SW*e79j+-$oYbTxkTfz)xuK`!vrogTF_ku0$)DMm;ee15D&uy zE;L%uT_PS2{xBhQ(KFdHayduF5^CD#rvX(sxS>Jr8PckFJ_NGyCQ`1#gaA*0bX zz+|~LZ%5DbBoHRTRIn-K>+p+@?!-MnB%l~Dw|+zQ$kZ5=$Ku8Y1Y7DIhAYGgP!8Dp zFk5RkBH4Lvl7!k-#>z2cC?$}ACdDAb2QzrI5Ejne+e@|RNlB*B8}gde9r58^Zm@Lr z>}uLOthXxDTIf8b>z`Fu+R@kap9GR)vg<9PDIS2%aed~%+%=|-AuRc#@l5A^R76y4 zlcguv3NBMAq9WgQ(iQ~TGX=fHH+S7%s)hx?T&9F3R6ofk0nqQeT_b!OB-&m?>3$WxUQ^rxrkrH(4+i-A%8@eZ97mhq0Rs#YtYfdv_0OE+*?4xhpI_j^ z9}f8^E0YY_)&9$u?fT=^s+DX4!bN9C?MinDyEECFtkH~W<d>i#6Z8EKi ETi((T+yDRo literal 0 HcmV?d00001 diff --git a/SPECS/clang.spec b/SPECS/clang.spec index c1e2b66..94bb55b 100644 --- a/SPECS/clang.spec +++ b/SPECS/clang.spec @@ -1,10 +1,10 @@ %global compat_build 0 -%global maj_ver 10 +%global maj_ver 11 %global min_ver 0 -%global patch_ver 1 -#%%global rc_ver 6 -%global baserelease 1 +%global patch_ver 0 +%global rc_ver 2 +%global baserelease 0.2 %global clang_tools_binaries \ %{_bindir}/clang-apply-replacements \ @@ -13,7 +13,6 @@ %{_bindir}/clang-doc \ %{_bindir}/clang-extdef-mapping \ %{_bindir}/clang-format \ - %{_bindir}/clang-import-test \ %{_bindir}/clang-include-fixer \ %{_bindir}/clang-move \ %{_bindir}/clang-offload-bundler \ @@ -62,10 +61,8 @@ %global build_install_prefix %{buildroot}%{install_prefix} -%ifarch ppc64le -# Too many threads on ppc64 systems causes OOM errors. +# Too many threads causes OOM errors. %global _smp_mflags -j8 -%endif %global clang_srcdir clang-%{version}%{?rc_ver:rc%{rc_ver}}.src %global clang_tools_srcdir clang-tools-extra-%{version}%{?rc_ver:rc%{rc_ver}}.src @@ -77,21 +74,11 @@ Summary: A C language family front-end for LLVM License: NCSA URL: http://llvm.org -%if 0%{?rc_ver:1} -Source0: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{clang_srcdir}.tar.xz -Source3: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{clang_srcdir}.tar.xz.sig -%else -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clang_srcdir}.tar.xz -Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clang_srcdir}.tar.xz.sig -%endif +Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz +Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig %if !0%{?compat_build} -%if 0%{?rc_ver:1} -Source1: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{clang_tools_srcdir}.tar.xz -Source2: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{clang_tools_srcdir}.tar.xz.sig -%else -Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clang_tools_srcdir}.tar.xz -Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clang_tools_srcdir}.tar.xz.sig -%endif +Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz +Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig %endif Source4: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc @@ -99,11 +86,9 @@ Patch4: 0002-gtest-reorg.patch Patch11: 0001-ToolChain-Add-lgcc_s-to-the-linker-flags-when-using-.patch Patch13: 0001-Make-funwind-tables-the-default-for-all-archs.patch -### Fix crash with kernel bpf self-tests -##Patch14: 0001-BPF-annotate-DIType-metadata-for-builtin-preseve_arr.patch - # Not Upstream Patch15: 0001-clang-Don-t-install-static-libraries.patch +Patch16: 0001-clang-Fix-spurious-test-failure.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -144,7 +129,23 @@ BuildRequires: python3-devel # Needed for %%multilib_fix_c_header BuildRequires: multilib-rpm-config -BuildRequires: chrpath + +# For origin certification +BuildRequires: gnupg2 + +# scan-build uses these perl modules so they need to be installed in order +# to run the tests. +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Temp) +BuildRequires: perl(FindBin) +BuildRequires: perl(Hash::Util) +BuildRequires: perl(lib) +BuildRequires: perl(Term::ANSIColor) +BuildRequires: perl(Text::ParseWords) +BuildRequires: perl(Sys::Hostname) Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -154,8 +155,6 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: libstdc++-devel Requires: gcc-c++ -Requires: emacs-filesystem - Provides: clang(major) = %{maj_ver} Conflicts: compiler-rt < %{version} @@ -256,9 +255,7 @@ pathfix.py -i %{__python3} -pn \ %patch11 -p1 -b .libcxx-fix %patch13 -p2 -b .unwind-all %patch15 -p2 -b .no-install-static - - -#%patch14 -p2 -b .bpf-fix +%patch16 -p2 -b .test-fix2 mv ../%{clang_tools_srcdir} tools/extra @@ -392,8 +389,20 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver} # Fix permission chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1* +# create a link to clang's resource directory that is "constant" across minor +# version bumps +# this is required for packages like ccls that hardcode the link to clang's +# resource directory to not require rebuilds on minor version bumps +# Fix for bugs like rhbz#1807574 +pushd %{buildroot}%{_libdir}/clang/ +ln -s %{version} %{maj_ver} +popd + %endif +# Remove clang-tidy headers. We don't ship the libraries for these. +rm -Rvf %{buildroot}%{_includedir}/clang-tidy/ + %check %if !0%{?compat_build} # requires lit.py from LLVM utilities @@ -413,6 +422,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %if !0%{?compat_build} %files +%license LICENSE.TXT %{clang_binaries} %{_mandir}/man1/clang.1.gz %{_mandir}/man1/clang++.1.gz @@ -476,8 +486,12 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %files -n python3-clang %{python3_sitelib}/clang/ + %endif %changelog +* Thu Sep 17 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +- 11.0.0-rc2 Release + * Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1 - 10.0.1 release