Commit graph

39 commits

Author SHA1 Message Date
Nikita Popov
7ea5877109 Move manpage logic to the right place
This was not supposed to be inside a compat build conditional.
2024-08-02 11:39:18 +00:00
Nikita Popov
b1a3301b3d Remove static lldb library removal
It doesn't seem like this is necessary. The static libraries do
not get installed.
2024-08-02 10:32:38 +00:00
Nikita Popov
1d1565d4bd Remove six removal
This is already gone upstream since:
5ed6d99a83
2024-08-02 10:30:58 +00:00
Nikita Popov
12e29a89d4 Move post/postun out of install.spec
These start new sections and the following code is no longer
executed as part of %install.
2024-08-02 10:26:55 +00:00
Nikita Popov
18a2915295 More manpage fixes 2024-08-01 15:17:00 +00:00
Nikita Popov
cb2a64838a Fix some removals 2024-08-01 15:17:00 +00:00
Nikita Popov
653d3f17d2 Move llvm-config handling 2024-08-01 15:17:00 +00:00
Nikita Popov
d4a2346d82 Fix binary symlinks 2024-08-01 15:17:00 +00:00
Nikita Popov
323c072a4c Fix name of macros file 2024-08-01 15:17:00 +00:00
Nikita Popov
da4426fa79 Fix manpages 2024-08-01 15:17:00 +00:00
Nikita Popov
ad4939ffd0 Fix some paths 2024-08-01 15:17:00 +00:00
Nikita Popov
b9b6a9b62c Don't try to create versioned symlinks multiple times 2024-08-01 15:17:00 +00:00
Nikita Popov
38a1e8a0dd Fix build_libddir 2024-08-01 15:17:00 +00:00
Nikita Popov
06529b4e5c Misc fixes and cleanup 2024-08-01 15:17:00 +00:00
Nikita Popov
2d1a77d42a Add versioned macros
From: 1382930328
2024-08-01 15:17:00 +00:00
Nikita Popov
56b99b7123 Port clang changes
From: bec3936967
2024-08-01 15:17:00 +00:00
Nikita Popov
c0169e2abf Port llvm changes
From: d5ddbea65f
2024-08-01 15:17:00 +00:00
Nikita Popov
72591dcbcb Disable python-lit and lldb for compat builds 2024-07-30 16:14:11 +00:00
Nikita Popov
62d7c09c1c llvm-omp-device-info -> llvm-offload-device-info
Was renamed in https://github.com/llvm/llvm-project/pull/100309.
2024-07-25 07:56:15 +00:00
Nikita Popov
22b081016d Add python3-lit to big-merge 2024-07-24 07:17:50 +00:00
Nikita Popov
a0cb14e0da Fix py_byte_compile invocation 2024-07-18 13:32:25 +00:00
Nikita Popov
78289e831d Remove compact_unwind_encoding.h patch
This is no longer necessary now that we're building from the monorepo.
2024-07-09 17:37:28 +02:00
Nikita Popov
1c8a88c870 Fix python3-clang
Drop confusing `cd ..` so we stay in the root of the LLVM sources
and the install command succeeds.
2024-07-08 14:15:52 +02:00
Konrad Kleine
459476a447 Remove %ldconfig_scriptlets and remove liblldb*.a files 2024-07-02 21:29:41 +00:00
Konrad Kleine
f7fcef719f Add lldb to big-merge
See https://github.com/fedora-llvm-team/llvm-snapshots/issues/573
2024-07-02 16:45:48 +02:00
Konrad Kleine
d8e9deb6da 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-06-26 09:43:38 +02:00
Nikita Popov
4f3c9f6743 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-05-28 15:57:25 +02:00
Nikita Popov
21909abc79 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-05-28 09:41:56 +00:00
Nikita Popov
076286ee98 Remove fedora 38 related workarounds
This chroot is no longer supported on copr.
2024-05-28 08:36:49 +02:00
Nikita Popov
bdef5bb591 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-05-27 09:05:05 +02:00
Nikita Popov
9c52ec74ce Fix i386 build
These binaries are not created on i386, so don't try to remove
them. Alternatively could use rm -f.
2024-05-23 16:07:15 +02:00
Konrad Kleine
169d5a1490 Add triple prefix to clang config files
See https://src.fedoraproject.org/rpms/clang/pull-request/240
2024-05-15 13:02:24 +00:00
Konrad Kleine
12f6088822 Leave note on removal of all binaries when installing clang compat 2024-05-13 13:13:03 +00:00
Konrad Kleine
384964f66e Remove package libomp-tools
We don't want to package it for RHEL, so we remove it here as well.
2024-05-13 13:05:51 +00:00
Konrad Kleine
dab3420c0b Remove LLD's HTML documentation files 2024-05-08 08:34:18 +00:00
Konrad Kleine
e38f6773f7 Fix path 2024-05-06 14:41:14 +00:00
Konrad Kleine
6456b314bc Integrate lld.spec into spec files 2024-05-06 08:20:29 +00:00
Tom Stellard
806115c5ca Install clang config file on f38 2024-05-02 14:55:23 +00:00
Konrad Kleine
eb12c13273 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-05-02 14:53:58 +00:00