Commit graph

44 commits

Author SHA1 Message Date
Nikita Popov
97dfdc4990 Remove clang-rename
Removed in https://github.com/llvm/llvm-project/pull/108988.
2024-11-21 14:55:34 +01:00
Nikita Popov
8ab3d3d63a Make rawhide compatible with snapshot builds 2024-11-21 14:55:34 +01:00
Nikita Popov
a4d77d580f Fix libscanbuild/libear location
https://github.com/llvm/llvm-project/pull/106612 moved these
from lib64 to lib, so look for them there.
2024-09-04 11:56:20 +02:00
Nikita Popov
ad9f519879 Add support for bundle_compat_lib 2024-09-03 08:20:41 +02:00
Nikita Popov
7b14d8acaa Move manpage logic to the right place
This was not supposed to be inside a compat build conditional.
2024-09-03 08:16:40 +02:00
Nikita Popov
bf12d461f1 Remove static lldb library removal
It doesn't seem like this is necessary. The static libraries do
not get installed.
2024-09-03 08:16:35 +02:00
Nikita Popov
468da93677 Remove six removal
This is already gone upstream since:
5ed6d99a83
2024-09-03 08:16:25 +02:00
Nikita Popov
ee476f9583 Move post/postun out of install.spec
These start new sections and the following code is no longer
executed as part of %install.
2024-09-03 08:16:16 +02:00
Nikita Popov
4abb11c7c7 More manpage fixes 2024-09-03 08:15:28 +02:00
Nikita Popov
640fcf8070 Fix some removals 2024-09-03 08:15:20 +02:00
Nikita Popov
fb09e28335 Move llvm-config handling 2024-09-03 08:15:00 +02:00
Nikita Popov
b99883cb6f Fix binary symlinks 2024-09-03 08:14:54 +02:00
Nikita Popov
e481d54052 Fix name of macros file 2024-09-03 08:14:48 +02:00
Nikita Popov
f18108da40 Fix manpages 2024-09-03 08:14:29 +02:00
Nikita Popov
1434c4a0c2 Fix some paths 2024-09-03 08:14:12 +02:00
Nikita Popov
1ad15a1548 Don't try to create versioned symlinks multiple times 2024-09-03 08:14:05 +02:00
Nikita Popov
593bda8820 Fix build_libddir 2024-09-03 08:13:55 +02:00
Nikita Popov
8e0f66c2d2 Misc fixes and cleanup 2024-09-03 08:13:44 +02:00
Nikita Popov
52ddcd59f5 Add versioned macros
From: 1382930328
2024-09-03 08:13:23 +02:00
Nikita Popov
ba868932ac Port clang changes
From: bec3936967
2024-09-03 08:13:15 +02:00
Nikita Popov
c3ed99b303 Port llvm changes
From: d5ddbea65f
2024-09-03 08:13:08 +02:00
Nikita Popov
1e0387cf85 Disable python-lit and lldb for compat builds 2024-09-03 08:12:54 +02:00
Timm Bäder
ac897c6595 Revert "llvm-omp-device-info -> llvm-offload-device-info"
This reverts commit 62d7c09c1c.
2024-09-02 15:45:30 +02:00
Nikita Popov
6ce190142d llvm-omp-device-info -> llvm-offload-device-info
Was renamed in https://github.com/llvm/llvm-project/pull/100309.
2024-09-02 15:45:30 +02:00
Nikita Popov
2e22c397b6 Add python3-lit to big-merge 2024-09-02 15:45:30 +02:00
Nikita Popov
7d226f4859 Fix py_byte_compile invocation 2024-09-02 15:45:30 +02:00
Nikita Popov
c59ccd7302 Remove compact_unwind_encoding.h patch
This is no longer necessary now that we're building from the monorepo.
2024-09-02 15:45:30 +02:00
Nikita Popov
9a3a566d6c Fix python3-clang
Drop confusing `cd ..` so we stay in the root of the LLVM sources
and the install command succeeds.
2024-09-02 15:45:30 +02:00
Konrad Kleine
2fdbeecccd Remove %ldconfig_scriptlets and remove liblldb*.a files 2024-09-02 15:45:30 +02:00
Konrad Kleine
572039ea86 Add lldb to big-merge
See https://github.com/fedora-llvm-team/llvm-snapshots/issues/573
2024-09-02 15:45:30 +02:00
Konrad Kleine
5d65390bed Remove HTML asset files from /usr/share/clang-doc
In https://github.com/fedora-llvm-team/llvm-snapshots/issues/564#issuecomment-2191023635
we noticed that `clang-doc-default-stylesheet.css` and `index.js` are no
longer installed to `/usr/share/clang` but `/usr/share/clang-doc`
instead. This addresses the [change in upstream](https://github.com/llvm/llvm-project/pull/96555).
2024-09-02 15:45:30 +02:00
Nikita Popov
9e875aeb6a Add i686 -> i386 compiler-rt symlink
This ports the change from https://src.fedoraproject.org/rpms/compiler-rt/pull-request/67
to big-merge, which is a bit more complicated here due to the
explicit file lists.

By default compiler_rt_triple is the same as llvm_triple. For x86
it is i386-redhat-linux-gnu instead, with a symlink to the
llvm_triple i686-redhat-linux-gnu.

And then the file list also needs to ship that symlink.
2024-09-02 15:45:30 +02:00
Nikita Popov
c14e5cf088 Fix clang resource directory path
The clang resource directory is always in lib/, while this was
creating the directories in lib64 (for 64-bit symbols).

This should fix the following error on ppc64le:

> error: Directory not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240528.g1de1ee9cbabd64-1.fc39.ppc64le/usr/lib/clang/19/bin
2024-09-02 15:45:30 +02:00
Nikita Popov
99dd05a90b Remove fedora 38 related workarounds
This chroot is no longer supported on copr.
2024-09-02 15:45:30 +02:00
Nikita Popov
c422c5daf7 More fixes for file lists
Fix these errors on s390x by excluding the files on that arch:

    File not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240526.gc87a7b3bdb6737-1.fc41.s390x/usr/lib/clang/19/lib/s390x-redhat-linux-gnu/clang_rt.crtbegin.o
    File not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240526.gc87a7b3bdb6737-1.fc41.s390x/usr/lib/clang/19/lib/s390x-redhat-linux-gnu/clang_rt.crtend.o
    File not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240526.gc87a7b3bdb6737-1.fc41.s390x/usr/lib/clang/19/lib/s390x-redhat-linux-gnu/liborc_rt.a

Fix this error on i686 by explicitly creating the directory.
This matches what the implementation did pre-big-merge. I think
we do want to keep this directory structure consistent across all
arches.

    Directory not found: /builddir/build/BUILDROOT/llvm-19.0.0~pre20240526.gc87a7b3bdb6737-1.fc41.i386/usr/lib/clang/19/bin
2024-09-02 15:45:30 +02:00
Nikita Popov
06767d80d8 Fix i386 build
These binaries are not created on i386, so don't try to remove
them. Alternatively could use rm -f.
2024-09-02 15:45:30 +02:00
Konrad Kleine
59e5d63363 Add triple prefix to clang config files
See https://src.fedoraproject.org/rpms/clang/pull-request/240
2024-09-02 15:45:30 +02:00
Konrad Kleine
5bc37fd0a9 Leave note on removal of all binaries when installing clang compat 2024-09-02 15:45:30 +02:00
Konrad Kleine
a5fb671bd5 Remove package libomp-tools
We don't want to package it for RHEL, so we remove it here as well.
2024-09-02 15:45:30 +02:00
Konrad Kleine
3fa5104b03 Remove LLD's HTML documentation files 2024-09-02 15:45:30 +02:00
Konrad Kleine
aa3612f180 Fix path 2024-09-02 15:45:30 +02:00
Konrad Kleine
316c5488a7 Integrate lld.spec into spec files 2024-09-02 15:45:30 +02:00
Tom Stellard
3ab7b31fc7 Install clang config file on f38 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