Commit Graph

564 Commits

Author SHA1 Message Date
Tulio Magno Quites Machado Filho
1846c73b59 Fix rhbz #2248872
Ensure the versioned llvm-config alternative gets removed during major
upgrades of the non-compat package.

Also add code that removes the versioned llvm-config alternatives of
the previous 3 LLVM versions. These versions didn't remove their own
versioned llvm-config alternative, leading to broken output, e.g.
llvm-config-16 points to llvm-config-64 from LLVM 17.
2024-09-02 15:45:30 +02:00
Konrad Kleine
bada609c4b Inline %post and %postun code for llvm-devel 2024-09-02 15:45:30 +02:00
Konrad Kleine
ab194f104b merge llvm, clang, compiler-rt and libomp repos
* %check: export LD_LIBRARY_PATH because runtimes use external cmake projects that wouldn't find libclang++.so
* %check: use LLVM's LIT_XFAIL to mark tests that are expected to fail and don't just delete them
* clang: bring over *.patch files
* clang: remove build requires tags from clang package that are already defined by main llvm package
* clang: remove duplicates found in llvm globals and use %{pkg_datadir} instead of %{install_datadir}
* clang: rename and use pkg_name -> pkg_name_clang
* clang: use %{pkg_name_clang} instead of %{name}
* compiler-rt and libomp: wrap in %if %{without compat_build}
* libomp: also build libomp for s390x (See https://github.com/llvm/llvm-project/pull/66081)
* libomp: exclude libomp-devel on s390x just like libomp itself
* libomp: introduce pkg_name_libomp and cleanup the globals
* libomp: remove gdb-plugin (NEED TO CONFIRM IF THIS IS REALLY TRUE)
* libomp: filter out flaky libomp test: ompt/teams/distribute_dispatch.c
* llvm: add BuildRequires: graphviz to llvm-doc
* llvm: use %{pkg_name_llvm} instead of %{name}
* make: added temporary Makefile so I can more easily run srpm or rpm builds locally
* make: Added local-tmt-vm target (not really useful yet)
* rpm: for non-RHEL add prefix like "Jan 05 16:17:06" to every log line This should help in finding out how long things take to build/install/...
* rpm: fully specify %files for top-level packages
* rpm: make all packages fully qualified
* rpm: obsolete llvm-snapshot-builder
* rpm: remove BuildRequires: python3-lit because we have it in-tree
* rpm: remove BuildRequires: tags for clang and llvm specifics as we're building in-tree
* rpm: rename %llvm_srcdir -> %srcdir_llvm
* rpm: rename %pkg_name -> %pkg_name_llvm
* rpm: use full qualified name in %description
* rpm: use region comments in spec file to group by package. This allows editors to fold text to get a better overview
* rpmlint: update rc file to reflect clang and compiler-rt (libomp has no rpmlint rc file)
* use python-lit from within tree
2024-09-02 15:45:17 +02:00
Tom Stellard
c322494fa6 Sync with rawhide 2024-09-02 15:45:17 +02:00
Tom Stellard
6635237142 Revert "Fix a test failure on s390x"
This reverts commit 9a451905d0b9bba85a6f737e27a901c01c4528c0.

A fix has been merged upstream.
2024-09-02 15:45:17 +02:00
Tom Stellard
8ad022d253 Fix a test failure on s390x 2024-09-02 15:45:17 +02:00
Tom Stellard
4da55b8bb6 Revert "Add JITLink patch to fix clang failures on aarch64 with libgcc-13"
This reverts commit 34236f71a58b01dde121dd94d0d8ec7d69e8d158.

This patch has been committed upstream.
2024-09-02 15:45:17 +02:00
Tom Stellard
693269178f Add JITLink patch to fix clang failures on aarch64 with libgcc-13 2024-09-02 15:45:17 +02:00
Tom Stellard
de1386c84e Remove another upstreamed patch 2024-09-02 15:45:17 +02:00
Tom Stellard
e41f905818 Remove patch applied upstream 2024-09-02 15:45:17 +02:00
Konrad Kleine
ab79dddfdb Manually add https://reviews.llvm.org/D137890 2024-09-02 15:45:17 +02:00
Konrad Kleine
f60f1961ea Adapt to standalone third-party dir 2024-09-02 15:45:17 +02:00
Konrad Kleine
630ee401af Compiles and installs again 2024-09-02 15:45:16 +02:00
Konrad Kleine
132731e88c Move globals down for them to be expanded correctly 2024-09-02 15:44:26 +02:00
Konrad Kleine
aa18d7c370 Fix /usr/bin/ld: cannot find /usr/lib64/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a: No such file or directory 2024-09-02 15:43:59 +02:00
Konrad Kleine
a183e0b7c9 Only package cmake-devel when building a snapshot package and when NOT building in compat mode 2024-09-02 15:43:36 +02:00
Konrad Kleine
40998353e9 Use llvm_snapshot_version_suffix 2024-09-02 15:43:36 +02:00
Konrad Kleine
1f02e1af7d Prepare for snapshot build
Increase verbosity for %autosetup
Modified patch so it cleanly applies
Renaming man pages is no longer needed

Fix this error:

 mv /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/clang-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/lldb-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/mlir-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1
mv: target '/builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1' is not a directory

Add entry for changelog when building a snapshot
Reset 0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch because it is not applicable to LLVM 12
Moved BuildRequires: python3-psutil out in PR
See https://src.fedoraproject.org/rpms/llvm/pull-request/91
Make download path for snapshot sources-easily adjustable
Added cmake subpackage with shared cmake files
Install cmake files into /usr/lib64/cmake/llvm with the llvm-devel pkg
2024-09-02 15:41:54 +02:00
Kefu Chai
3a3e3ad673 change the date of a previous changelog entry
to address following error:

```
error: %changelog not in descending chronological order
```
when preparing the rpm, rpm warns at seeing the changelog entry not
in descending chronological order. so "fix" it.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2024-08-31 10:40:02 +08:00
Fedora Release Engineering
986ef8c346 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 15:51:55 +00:00
Jesus Checa Hidalgo
4120a277ba Update to LLVM 18.1.8 2024-07-11 12:57:01 +02:00
Yaakov Selkowitz
ebe30abc30 Add subpackage llvm-toolset
Based on c10s:
7e18b11df1
2024-07-04 16:29:05 -04:00
Tom Stellard
46407036e6 18.1.7 Release 2024-06-07 09:38:06 +00:00
Nikita Popov
e2dbcdbe9f Fix use after free on ppc64le (rhbz#2283525) 2024-05-28 08:54:50 +02:00
Tom Stellard
60da536490 18.1.6 Release 2024-05-19 04:32:36 +00:00
Tom Stellard
ece9c09ef1 Backport fix for rhbz#2275090 2024-05-14 19:42:39 +00:00
Tom Stellard
5a86502fba 18.1.4 Release 2024-04-25 14:00:30 +00:00
Tom Stellard
8a52e6cd00 18.1.3 Release 2024-04-13 04:06:14 +00:00
Yaakov Selkowitz
8bad2506c6 Fix dependency paths
Installation path macros cannot be used to reference the location of
dependencies.  In the case of flatpak builds, this breaks because
alternatives is part of the runtime and python3-sphinx is from the
buildroot and both therefore remains in /usr, even as llvmNN is built
in /app.
2024-03-25 14:31:26 -04:00
Zhengyu He
8182dd36c6 Add support for riscv64 2024-03-22 17:47:12 -03:00
Tom Stellard
cbbbf750ff 18.1.2 Release 2024-03-21 17:47:06 +00:00
Tom Stellard
987674b0c0 18.1.1 Release 2024-03-11 15:43:18 +00:00
Tulio Magno Quites Machado Filho
1858d41527 Force ldconfig execution in compat packages
Fixes rhbz#2001328.
2024-03-04 10:29:16 -03:00
Tom Stellard
60c239e0f5 18.1.0-rc4 Release 2024-02-28 01:18:27 +00:00
Tom Stellard
02a885b6b8 LLVM 18.1.0-rc3
This also includes a squash merge of the upstream-snapshot branch with
HEAD 19db1ff8da3613e93a5ef60da7a397db99bef082.
2024-02-21 22:13:58 +00:00
Tom Stellard
d5ddbea65f Include the same content in the compat packages as we do in the main package
https://fedoraproject.org/wiki/Changes/LLVM-18
2024-02-21 06:20:00 +00:00
Nikita Popov
39a5a55967 Fix crash with -fzero-call-used-regs (rhbz#2262260) 2024-02-01 14:42:14 +01:00
Nikita Popov
2e67d99866 Only use cet-report=error on x86_64
i386 CET support has been removed from glibc. Only check it for
x86_64.
2024-01-29 09:41:21 +01:00
Fedora Release Engineering
a68f9de029 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 04:30:11 +00:00
Fedora Release Engineering
689cb83fb1 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 06:05:17 +00:00
Tulio Magno Quites Machado Filho
43a62dabf0 Fix rhbz #2248872
Ensure the versioned llvm-config alternative gets removed during major
upgrades of the non-compat package.

Also add code that removes the versioned llvm-config alternatives of
the previous 3 LLVM versions. These versions didn't remove their own
versioned llvm-config alternative, leading to broken output, e.g.
llvm-config-16 points to llvm-config-64 from LLVM 17.
2023-11-30 13:43:29 -03:00
Tulio Magno Quites Machado Filho
dae42895a5 Update to LLVM 17.0.6 2023-11-28 16:01:06 -03:00
Tulio Magno Quites Machado Filho
ceb6b17869 Revert "[packit] 17.0.5 upstream release"
This reverts commit fe235bbf25.
It was pushed by mistake.
2023-11-24 14:14:14 -03:00
Tulio Magno Quites Machado Filho
fe235bbf25 [packit] 17.0.5 upstream release
Upstream tag: llvmorg-17.0.5
Upstream commit: 98bfdac5
2023-11-24 14:10:14 -03:00
Nikita Popov
4be4b92cb1 Remove 32-bit arm handling 2023-11-24 09:12:29 +00:00
Nikita Popov
ec966be7c4 Remove redundant _lto_cflags define
ThinLTO is the default nowadays.
2023-11-24 09:12:29 +00:00
Tulio Magno Quites Machado Filho
5e17ea6380 Update to LLVM 17.0.5 2023-11-14 15:49:46 -03:00
Tulio Magno Quites Machado Filho
4689129188 Update to LLVM 17.0.4 2023-10-31 18:00:16 -03:00
Yaakov Selkowitz
1b6d3f3740 Fix ld.so.conf.d path
This location is hard-coded by glibc and is not prefix-variable.  This
fixes flatpak app RPM builds of clang15 and packages dependent thereon
(e.g. openshadinglanguage).  Flatpaks using these packages will still
need to define LD_LIBRARY_PATH.
2023-10-19 09:13:26 -03:00
Tulio Magno Quites Machado Filho
5197c0ae27 Update to LLVM 17.0.3 2023-10-17 14:42:39 -03:00