Commit Graph

325 Commits

Author SHA1 Message Date
Konrad Kleine
9a7b4ac902 Add back 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch 2023-02-16 16:24:14 -03:00
Konrad Kleine
0f9040cc95 Assist find_package(LLVMGTest by setting hint dir to LLVM_CMAKE_DIR 2023-02-16 16:24:14 -03:00
Konrad Kleine
7ac8248795 Remove third party stuff and use gtest patch 2023-02-16 16:24:14 -03:00
Konrad Kleine
0d77a0c30a adjust /lib/ to /%{_lib}/
fixes this error:

```
mv: cannot stat '/builddir/build/BUILDROOT/clang-16.0.0~pre20230122.g6aaac4c144572d-1.fc36.x86_64/usr/lib/libear': No such file or directory
mv: cannot stat '/builddir/build/BUILDROOT/clang-16.0.0~pre20230122.g6aaac4c144572d-1.fc36.x86_64/usr/lib/libscanbuild': No such file or directory
```
2023-02-16 16:24:14 -03:00
Konrad Kleine
1919c1aecc Manually apply https://reviews.llvm.org/D141581 2023-02-16 16:24:14 -03:00
Tulio Magno Quites Machado Filho
e1ea575c35 Update to LLVM 16.0.0 RC1 2023-02-16 16:24:14 -03:00
Tulio Magno Quites Machado Filho
809237e79b Adopt SPDX identifiers in license
Also make it clear that Apache 2.0 with LLVM exceptions was adopted in
2019.
2023-01-19 15:48:40 -03:00
Fedora Release Engineering
4d3ffb7f8b Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 23:56:02 +00:00
Nikita Popov
26eb3b048d Update to LLVM 15.0.7 2023-01-12 16:25:10 +01:00
Nikita Popov
d59ff31f26 Fix resource-filesystem ownership conflict
Fix rbhz#2100122.
2023-01-12 16:20:03 +01:00
Tom Stellard
c54c083a33 Omit frame pointers when building 2023-01-12 15:17:53 +00:00
Timm Bäder
3fcf35e97c Pass -vv to lit
So it prints all the executed test cases.
2023-01-11 16:05:58 +01:00
Nikita Popov
573860f707 Remove abi_revision handling
We no longer ship RCs in Fedora, so this is no longer necessary.
This was already done for the llvm package, do it for clang as well.
2023-01-04 15:30:20 +01:00
Nikita Popov
be819276e8 Add clang-devel dep to python3-clang
python3-clang requires libclang.so, which is part of clang-devel.
2022-12-21 16:37:30 +01:00
Yaakov Selkowitz
a969e612e9 Use -mabi=ieeelongdouble in ELN 2022-12-21 05:36:08 +00:00
Nikita Popov
daa332df14 Backport patches for ucrt64 toolchain detection 2022-12-19 16:46:42 +01:00
Jan200101
64ea1d4d0f
explicitly define directories for compat builds 2022-12-06 10:16:23 +01:00
Nikita Popov
e132ea80d7 Update to LLVM 15.0.6 2022-12-05 13:05:14 +01:00
Nikita Popov
71aa74debd Build test deps separately to avoid LD_LIBRARY_PATH interference
Otherwise invocations of host clang will use the newly built
libraries, which will use a non-existent resource directory, and
thus cause headers like stddef.h not to be found.
2022-11-04 16:04:45 +01:00
Nikita Popov
abec3da8de Update to LLVM 15.0.4 2022-11-03 17:13:33 +01:00
Nikita Popov
54612cbb68 Enable ieeelongdouble for ppc64le, fix rhbz#2136099 2022-10-24 11:18:12 +02:00
Nikita Popov
4e04207871 Default to non-pie, fix rhbz#2134146 2022-10-13 09:59:39 +02:00
sergesanspaille
3169a3253a Package clang-tidy headers in clang-tools-extra-devel, fix rhbz#2123479 2022-10-05 22:20:09 +02:00
Nikita Popov
14e25ec29a Add patch for inline builtins with asm label 2022-09-22 10:12:07 +02:00
sergesanspaille
df64681647 Improve integration of llvm's libunwind 2022-09-21 11:15:09 +02:00
Nikita Popov
668f77d207 Downgrade implicit int and implicit function declaration to warning only
This backports a fix for a major regression that will be part of
the 15.0.1 release.

See https://reviews.llvm.org/D133800 and
https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213.
2022-09-14 09:43:24 +02:00
Nikita Popov
3389ce3d4f Fix compat build
Backport changes from clang14 package. We need to exclude patches
for clang-format (which we don't build for compat packages).
Additionally, clang14-devel needs a dependency on clang14-libs,
otherwise this only installs dead symlinks without the shared
objects they point to.
2022-09-08 10:11:57 +02:00
Nikita Popov
c55124d032 Fix i686 build 2022-09-07 17:12:29 +02:00
Nikita Popov
71bc065af9 Update to LLVM 15.0.0 2022-09-07 09:28:12 +02:00
sergesanspaille
7808ecbcca Add a Recommends on libatomic, see rhbz#2118592 2022-08-29 11:19:34 +02:00
Nikita Popov
2b8dcb4dbf Revert powerpc -mabi=ieeelongdouble default
Revert the abi default again until
https://bugzilla.redhat.com/show_bug.cgi?id=2115752 is fixed.

This reverts commit 2efd3e3d10.
2022-08-10 10:34:59 +02:00
Tom Stellard
2efd3e3d10 Revert "Revert "Use the ieee128 format for long double on ppc64le" until rhbz#2100546 is fixed"
This reverts commit e26357988c.
2022-08-04 16:07:03 +00:00
Amit Shah
4bdb1778ec Switch to using the dist_vendor macro for distribution vendor
The new dist_vendor macro[1] in fedora-release helps simplify spec files
by removing the conditionals for populating the distro.

[1] https://src.fedoraproject.org/rpms/fedora-release/pull-request/223
2022-07-28 12:29:58 +05:30
Fedora Release Engineering
0ca250eb5b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 23:00:58 +00:00
Miro Hrončok
e26357988c Revert "Use the ieee128 format for long double on ppc64le" until rhbz#2100546 is fixed
This reverts commit 27327ff4a8.

This disables the ppc64le-long-double test.
2022-06-30 16:43:44 +02:00
Timm Bäder
a679a440e9 Update to 14.0.5
Increase version and drop ununeeded patches.
2022-06-14 10:48:48 +02:00
Timm Bäder
ec23c296ca Drop unused variable 2022-06-14 10:47:55 +02:00
Python Maint
561ebf3c43 Rebuilt for Python 3.11 2022-06-13 20:38:39 +02:00
Tom Stellard
27327ff4a8 Use the ieee128 format for long double on ppc64le
gcc switched to ieee128 as the default in Fedora >=36, so clang needs to do
this to maintain ABI compatibility.
2022-05-25 08:48:45 +00:00
Mystro256
c00fbc715c Add patch to allow packaging rocm-hip
ROCm's HIP could not be packaged in Fedora due to a bug, which was fixed in
trunk. Instead of waiting for llvm 15, cherry-pick the fix.
2022-05-03 08:58:43 +00:00
Timm Bäder
add0accd52 Update to 14.0.0 2022-03-29 09:37:56 +02:00
Timm Bäder
822eb1d32d Remove some unneeded variables
Just move them to their only place of use.
2022-03-09 15:08:13 +01:00
Tom Stellard
eaac7c9b00 Fix some rpmlinter errors 2022-02-17 19:06:56 +00:00
Serge Guelton
9e607ef75e Merge #139 compat_build fixes for clang 13 2022-02-15 16:25:08 +00:00
Nikita Popov
7dba2783b7 Work around gcc miscompile
This works around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104334,
which miscompiles clang on s390x and ppc64le. The issue is already
fixed on the gcc side and a new fedora build is in progress, but
including this as a temporary workaround to get a working build.
2022-02-03 10:46:54 +01:00
Nikita Popov
563751ce6b Update to LLVM 13.0.1 final 2022-02-03 09:53:41 +01:00
Nikita Popov
aecb4c8477 Update to LLVM 13.0.1rc3 2022-02-01 09:18:47 +01:00
Fedora Release Engineering
f0fcd739ad - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 23:17:35 +00:00
Nikita Popov
2932468044 Update to LLVM 13.0.1rc2 2022-01-14 03:15:06 -05:00
Nikita Popov
5b7b147c3b Update to LLVM 13.0.1rc1 2022-01-12 03:18:21 -05:00
Tom Rix
9625344c39 compat_build: remove scanview helpers from buildroot
scanview and other tools are not built so these libraries
are not needed, so remove them.

Resolves a build but not packaged error.

Signed-off-by: Tom Rix <trix@redhat.com>
2021-12-15 11:47:08 -08:00
Tom Rix
715c4e65ee compat_build: use llvm-config from the llvm compat build
The regular llvm build installs llvm-config-N to _bindir
The compat_build llvm build install llvm-config-N to pkg_bindir
Use the pkg_bindir one.

Fixes a build error
error: File not found: .../rpmbuild/BUILDROOT/
  clang13-13.0.0-5.fc36.x86_64/usr/lib64/llvm13/lib/*.so.*

Signed-off-by: Tom Rix <trix@redhat.com>
2021-12-15 05:38:00 -08:00
Tom Rix
993e8358ae compat_build: remove pyc BuildRequires
This error is seen on the compat_build
find: '.../rpmbuild/BUILDROOT/clang13-13.0.0-5.fc36.x86_64/
  usr/lib/python3.10/site-packages': No such file or directory

python3-clang is not part of the compat_build so ifdef out
the problem area.

Signed-off-by: Tom Rix <trix@redhat.com>
2021-12-14 10:10:54 -08:00
Konrad Kleine
90e30031a9 Fix %check when --without=check is given
Otherwise the %check section will always fail with "false".

This fixes my commit from before: 8dae109a67
2021-11-15 15:28:53 +01:00
Tom Stellard
6699b0a7c6 Make lld the default linker on arm
Making lld the default linker on arm due to rhbz#1918924.
2021-10-28 05:35:02 +00:00
Tom Stellard
a6f7984d83 Fix changelog 2021-10-28 05:34:16 +00:00
Tom Stellard
bf0177da16 Remove Conflicts: compiler-rt for newer versions of compiler-rt
The clang-resource-filesystem package will now prevent a
compiler-rt >= 11.0.0 package from being installed at the same time as a
newer clang package, so we no longer need to add a conflicts here.
2021-10-27 23:57:19 +00:00
Timm Bäder
cd6d62e280 Skip rpath using CMAKE_SKIP_RPATH
Like all other packages do it
2021-10-19 12:28:07 +00:00
Timm Bäder
e87e2f553b Use py3_shebang_fix macro
As documented in
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebang_macros
2021-10-15 13:38:11 +02:00
Timm Bäder
967d1e9cb7 Change a %bcond usage to %without 2021-10-13 10:54:26 +02:00
Tom Stellard
fde900e4dd Fix gcc detection with redhat triples 2021-10-06 23:36:55 +00:00
Tom Stellard
2fb038f9a7 Drop abi_revision from soname
This way we match the upstream soname for the final release.
2021-10-05 15:14:37 +00:00
Tom Stellard
bfd11a3fd2 13.0.0 Release 2021-10-01 20:36:30 +00:00
Tom Stellard
3752a31b44 13.0.0-rc3 Release 2021-09-18 03:38:14 +00:00
Konrad Kleine
8dae109a67 Add --without=check option
see also https://src.fedoraproject.org/rpms/llvm/pull-request/105
2021-09-14 09:14:24 +02:00
sergesanspaille
6f2884179b Apply scan-build-py integration patch 2021-09-13 11:45:27 +02:00
Tom Stellard
d99713b7d0 Add macros.clang file 2021-09-09 19:09:15 +00:00
Tom Stellard
a5df6c712b 13.0.0-rc1 Release 2021-08-09 20:47:43 +00:00
Tom Stellard
f2a6113c88 Fix compat build 2021-07-22 16:27:04 +00:00
Fedora Release Engineering
c5f66f800b - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 19:31:40 +00:00
Tom Stellard
236196a1cd 12.0.1 Release 2021-07-13 22:40:28 +00:00
Tom Stellard
3dd3a6dfd6 Fix ambiguous python shebangs 2021-07-09 02:43:33 +00:00
Tom Stellard
2bf74be714 12.0.1-rc3 Release 2021-07-01 09:02:57 +00:00
Tom Stellard
8ef0cdb22d Only enable -funwind-tables by default on Fedora arches
.eh_frame sections confuse bpf tools, so -funwind-tables  shouldn't be enabled there.
There are other non-CPU arches where this could potentially cause problems, so be
conservative and only enable this on CPU arches supported by Fedora.
2021-06-08 17:41:09 +00:00
Python Maint
696be3e7c7 Rebuilt for Python 3.10 2021-06-04 19:19:07 +02:00
Tom Stellard
1a54a323be 12.0.1-rc1 Release 2021-06-01 21:22:55 +00:00
sergesanspaille
93869e0cb0 Use the alternative-managed version of llvm-config 2021-05-21 21:18:53 +00:00
Timm Bäder
545fd2466b spec: Unconditionally use python3
The spec file was already unconditionally depend on a few python3
packages. Make that official by removing the %python3 bcond.
2021-05-06 21:18:16 +00:00
Konrad Kleine
89c3d8eb13 Replace global compat_build with bcond 2021-05-05 22:53:09 +02:00
Tom Stellard
81370f3bc6 12.0.0 Release 2021-04-16 22:21:45 +00:00
Tom Stellard
e8cbe820c4 Add symlink to clang-format-diff in /usr/bin
rhbz#1939018
2021-04-16 05:03:55 +00:00
sergesanspaille
56c57e4695 New upstream release candidate 2021-04-08 14:19:59 +02:00
sergesanspaille
3f6550f0f1 Make python3-clang bytecode reproducible across arches 2021-04-04 19:25:09 +02:00
sergesanspaille
e1a87504e4 New upstream release candidate 2021-04-02 12:44:06 +02:00
Jonathan Wakely
b4f38b0df7 Rebuilt for removed libstdc++ symbols (#1937698) 2021-03-31 17:31:26 +01:00
sergesanspaille
08bee7e51a Simplify patch management through %autopatch 2021-03-17 08:35:44 +01:00
sergesanspaille
c1e69a30ae Apply patch D97846 to fix rhbz#1934065 2021-03-16 09:56:09 +01:00
Timm Bäder
283f2301df set CLANG_DEFAULT_UNWIND_LIB instead of using custom patch
And add the clang/toolchains test so we don't regress
2021-03-15 10:01:21 +01:00
sergesanspaille
6fb3a469a9 LLVM 12.0.0 rc3 2021-03-11 14:54:30 +01:00
sergesanspaille
bfcdcf4a7d rebuilt 2021-03-09 21:01:15 +01:00
sergesanspaille
d803ebb6bc Rename, cleanup and normalize patch serie 2021-03-02 14:40:08 +01:00
sergesanspaille
333b956fb4 Reapply some wrongly removed patch 2021-03-01 16:20:42 +01:00
sergesanspaille
1ca8ec6bba Remove patch applied upstream 2021-02-24 18:16:35 +01:00
sergesanspaille
8dfbf069f3 Revert "Remove patch applied upstream"
This reverts commit 2d1a36c4ef.
2021-02-24 15:44:38 +01:00
sergesanspaille
c6d4e3d591 Revert "Remove patch applied upstream"
This reverts commit 30f111b116.
2021-02-24 15:44:18 +01:00
sergesanspaille
2d1a36c4ef Remove patch applied upstream 2021-02-24 15:43:42 +01:00
sergesanspaille
30f111b116 Remove patch applied upstream 2021-02-24 15:42:42 +01:00
sergesanspaille
52abd3940f 12.0.0-rc2 release 2021-02-24 15:36:04 +01:00
sergesanspaille
620fd8a49a Backport compat package updates 2021-02-23 17:26:11 +01:00
sergesanspaille
cef168d215 llvm 12.0.0rc2 2021-02-16 16:30:31 +01:00