diff --git a/modular/llvm/clang/0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch b/modular/llvm/clang/0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch deleted file mode 100644 index 6c94b4d..0000000 --- a/modular/llvm/clang/0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch +++ /dev/null @@ -1,59 +0,0 @@ -From d68a5a7817dc0d43853d8b84c9185dc24338664f Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Wed, 6 Oct 2021 05:32:44 +0000 -Subject: [PATCH] Driver: Add a gcc equivalent triple to the list of triples to - search - -There are some gcc triples, like x86_64-redhat-linux, that provide the -same behavior as a clang triple with a similar name (e.g. -x86_64-redhat-linux-gnu). When searching for a gcc install, also search -for a gcc equivalent triple if one exists. - -Differential Revision: https://reviews.llvm.org/D111207 ---- - clang/lib/Driver/ToolChains/Gnu.cpp | 22 ++++++++++++++++++++++ - 1 file changed, 22 insertions(+) - -diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp -index fe5bda5c6605..fd4a7f72be14 100644 ---- a/clang/lib/Driver/ToolChains/Gnu.cpp -+++ b/clang/lib/Driver/ToolChains/Gnu.cpp -@@ -1884,6 +1884,18 @@ static llvm::StringRef getGCCToolchainDir(const ArgList &Args, - return GCC_INSTALL_PREFIX; - } - -+/// This function takes a 'clang' triple and converts it to an equivalent gcc -+/// triple. -+static const char *ConvertToGccTriple(StringRef CandidateTriple) { -+ return llvm::StringSwitch(CandidateTriple) -+ .Case("aarch64-redhat-linux-gnu", "aarch64-redhat-linux") -+ .Case("i686-redhat-linux-gnu", "i686-redhat-linux") -+ .Case("ppc64le-redhat-linux-gnu", "ppc64le-redhat-linux") -+ .Case("s390x-redhat-linux-gnu", "s390x-redhat-linux") -+ .Case("x86_64-redhat-linux-gnu", "x86_64-redhat-linux") -+ .Default(NULL); -+} -+ - /// Initialize a GCCInstallationDetector from the driver. - /// - /// This performs all of the autodetection and sets up the various paths. -@@ -1904,6 +1916,16 @@ void Generic_GCC::GCCInstallationDetector::init( - // The compatible GCC triples for this particular architecture. - SmallVector CandidateTripleAliases; - SmallVector CandidateBiarchTripleAliases; -+ -+ // In some cases gcc uses a slightly different triple than clang for the -+ // same target. Convert the clang triple to the gcc equivalent and use that -+ // to search for the gcc install. -+ const char *ConvertedTriple = ConvertToGccTriple(TargetTriple.str()); -+ if (ConvertedTriple) { -+ CandidateTripleAliases.push_back(ConvertedTriple); -+ CandidateBiarchTripleAliases.push_back(ConvertedTriple); -+ } -+ - CollectLibDirsAndTriples(TargetTriple, BiarchVariantTriple, CandidateLibDirs, - CandidateTripleAliases, CandidateBiarchLibDirs, - CandidateBiarchTripleAliases); --- -2.26.2 - diff --git a/modular/llvm/clang/0001-Produce-DWARF4-by-default.patch b/modular/llvm/clang/0001-Produce-DWARF4-by-default.patch deleted file mode 100644 index 9b5b46b..0000000 --- a/modular/llvm/clang/0001-Produce-DWARF4-by-default.patch +++ /dev/null @@ -1,125 +0,0 @@ -From adbe188f3b1e3a0dd5ec80d9409601ba7f5b0423 Mon Sep 17 00:00:00 2001 -From: Konrad Kleine -Date: Thu, 24 Mar 2022 09:44:21 +0100 -Subject: [PATCH] Produce DWARF4 by default - -Have a look at the following commit to see when the move from DWARF 4 to 5 first happened upstream: - -https://github.com/llvm/llvm-project/commit/d3b26dea16108c427b19b5480c9edc76edf8f5b4?diff=unified ---- - clang/lib/Driver/ToolChain.cpp | 4 +--- - clang/test/CodeGen/dwarf-version.c | 4 ++-- - clang/test/Driver/as-options.s | 4 ++-- - clang/test/Driver/cl-options.c | 2 +- - clang/test/Driver/clang-g-opts.c | 2 +- - clang/test/Driver/ve-toolchain.c | 2 +- - clang/test/Driver/ve-toolchain.cpp | 2 +- - 7 files changed, 9 insertions(+), 11 deletions(-) - -diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp -index 8dafc3d481c2..92bf26dc8ec6 100644 ---- a/clang/lib/Driver/ToolChain.cpp -+++ b/clang/lib/Driver/ToolChain.cpp -@@ -428,9 +428,7 @@ ToolChain::getDefaultUnwindTableLevel(const ArgList &Args) const { - } - - unsigned ToolChain::GetDefaultDwarfVersion() const { -- // TODO: Remove the RISC-V special case when R_RISCV_SET_ULEB128 linker -- // support becomes more widely available. -- return getTriple().isRISCV() ? 4 : 5; -+ return 4; - } - - Tool *ToolChain::getClang() const { -diff --git a/clang/test/CodeGen/dwarf-version.c b/clang/test/CodeGen/dwarf-version.c -index d307eb3f101f..e7e93bf6688c 100644 ---- a/clang/test/CodeGen/dwarf-version.c -+++ b/clang/test/CodeGen/dwarf-version.c -@@ -2,8 +2,8 @@ - // RUN: %clang -target x86_64-linux-gnu -gdwarf-3 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER3 - // RUN: %clang -target x86_64-linux-gnu -gdwarf-4 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 - // RUN: %clang -target x86_64-linux-gnu -gdwarf-5 -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER5 --// RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER5 --// RUN: %clang -target x86_64-linux-gnu -gdwarf -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER5 -+// RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 -+// RUN: %clang -target x86_64-linux-gnu -gdwarf -S -emit-llvm -o - %s | FileCheck %s --check-prefix=VER4 - - // The -isysroot is used as a hack to avoid LIT messing with the SDKROOT - // environment variable which indirecty overrides the version in the target -diff --git a/clang/test/Driver/as-options.s b/clang/test/Driver/as-options.s -index 73d002c7ef7e..71d55f7fd537 100644 ---- a/clang/test/Driver/as-options.s -+++ b/clang/test/Driver/as-options.s -@@ -122,7 +122,7 @@ - // RUN: FileCheck --check-prefix=DEBUG %s - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -g0 -g %s -### 2>&1 | \ - // RUN: FileCheck --check-prefix=DEBUG %s --// DEBUG: "-g" "-gdwarf-5" -+// DEBUG: "-g" "-gdwarf-4" - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -g -g0 %s -### 2>&1 | \ - // RUN: FileCheck --check-prefix=NODEBUG %s - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -gdwarf-5 -g0 %s -### 2>&1 | \ -@@ -141,7 +141,7 @@ - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -gdwarf-2 %s -### 2>&1 | \ - // RUN: FileCheck --check-prefix=GDWARF2 %s - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -gdwarf %s -### 2>&1 | \ --// RUN: FileCheck --check-prefix=GDWARF5 %s -+// RUN: FileCheck --check-prefix=GDWARF4 %s - - // RUN: %clang --target=aarch64-linux-gnu -fno-integrated-as -gdwarf-5 %s -### 2>&1 | \ - // RUN: FileCheck --check-prefix=GDWARF5 %s -diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c -index 6d929b19e7e2..373905c2e0fc 100644 ---- a/clang/test/Driver/cl-options.c -+++ b/clang/test/Driver/cl-options.c -@@ -569,7 +569,7 @@ - // RUN: %clang_cl /Z7 -gdwarf /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7_gdwarf %s - // Z7_gdwarf: "-gcodeview" - // Z7_gdwarf: "-debug-info-kind=constructor" --// Z7_gdwarf: "-dwarf-version= -+// Z7_gdwarf: "-dwarf-version=4 - - // RUN: %clang_cl /ZH:MD5 /c -### -- %s 2>&1 | FileCheck -check-prefix=ZH_MD5 %s - // ZH_MD5: "-gsrc-hash=md5" -diff --git a/clang/test/Driver/clang-g-opts.c b/clang/test/Driver/clang-g-opts.c -index 5ee0fe64fe48..985158746137 100644 ---- a/clang/test/Driver/clang-g-opts.c -+++ b/clang/test/Driver/clang-g-opts.c -@@ -32,7 +32,7 @@ - - // CHECK-WITHOUT-G-NOT: -debug-info-kind - // CHECK-WITH-G: "-debug-info-kind=constructor" --// CHECK-WITH-G: "-dwarf-version=5" -+// CHECK-WITH-G: "-dwarf-version=4" - // CHECK-WITH-G-DWARF2: "-dwarf-version=2" - - // CHECK-WITH-G-STANDALONE: "-debug-info-kind=standalone" -diff --git a/clang/test/Driver/ve-toolchain.c b/clang/test/Driver/ve-toolchain.c -index 32e25769b6da..b8a2852daba8 100644 ---- a/clang/test/Driver/ve-toolchain.c -+++ b/clang/test/Driver/ve-toolchain.c -@@ -6,7 +6,7 @@ - /// Checking dwarf-version - - // RUN: %clang -### -g --target=ve %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s --// DWARF_VER: "-dwarf-version=5" -+// DWARF_VER: "-dwarf-version=4" - - ///----------------------------------------------------------------------------- - /// Checking include-path -diff --git a/clang/test/Driver/ve-toolchain.cpp b/clang/test/Driver/ve-toolchain.cpp -index 5a33d5eceb61..cedf895b36dc 100644 ---- a/clang/test/Driver/ve-toolchain.cpp -+++ b/clang/test/Driver/ve-toolchain.cpp -@@ -7,7 +7,7 @@ - - // RUN: %clangxx -### -g --target=ve-unknown-linux-gnu \ - // RUN: %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s --// DWARF_VER: "-dwarf-version=5" -+// DWARF_VER: "-dwarf-version=4" - - ///----------------------------------------------------------------------------- - /// Checking include-path --- -2.41.0 - diff --git a/modular/llvm/clang/0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch b/modular/llvm/clang/0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch index b69c7e7..37284a2 100644 --- a/modular/llvm/clang/0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch +++ b/modular/llvm/clang/0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch @@ -4,7 +4,6 @@ Date: Tue, 24 Jan 2023 22:46:25 +0000 Subject: [PATCH] clang-tools-extra: Make test dependency on LLVMHello optional This fixes clang + clang-tools-extra standalone build after -36892727e4f19a60778e371d78f8fb09d8122c85. --- clang-tools-extra/test/CMakeLists.txt | 10 +++++++++- clang-tools-extra/test/clang-tidy/CTTestTidyModule.cpp | 2 +- diff --git a/modular/llvm/clang/0009-disable-myst-parser.patch b/modular/llvm/clang/0009-disable-myst-parser.patch new file mode 100644 index 0000000..12a5154 --- /dev/null +++ b/modular/llvm/clang/0009-disable-myst-parser.patch @@ -0,0 +1,26 @@ +From 988dd3f3363d8ab4ee53f61e0eb5afc6646c9d4f Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Tue, 26 Sep 2023 13:06:29 +0200 +Subject: [PATCH] disable myst parser + +--- + clang/docs/conf.py | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/clang/docs/conf.py b/clang/docs/conf.py +index ca310026f53e..dfb74273b5b2 100644 +--- a/clang/docs/conf.py ++++ b/clang/docs/conf.py +@@ -35,9 +35,6 @@ templates_path = ["_templates"] + + import sphinx + +-if sphinx.version_info >= (3, 0): +- extensions.append("myst_parser") +- + # The encoding of source files. + # source_encoding = 'utf-8-sig' + +-- +2.41.0 + diff --git a/modular/llvm/clang/0009-disable-recommonmark.patch b/modular/llvm/clang/0009-disable-recommonmark.patch deleted file mode 100644 index f6db5da..0000000 --- a/modular/llvm/clang/0009-disable-recommonmark.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -Naur a/clang/docs/conf.py b/clang/docs/conf.py ---- a/clang/docs/conf.py 2020-09-15 09:12:24.318287611 +0000 -+++ b/clang/docs/conf.py 2020-09-15 15:01:00.025893199 +0000 -@@ -37,21 +37,7 @@ - ".rst": "restructuredtext", - } - --try: -- import recommonmark --except ImportError: -- # manpages do not use any .md sources -- if not tags.has("builder-man"): -- raise --else: -- import sphinx -- -- if sphinx.version_info >= (3, 0): -- # This requires 0.5 or later. -- extensions.append("recommonmark") -- else: -- source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} -- source_suffix[".md"] = "markdown" -+import sphinx - - # The encoding of source files. - # source_encoding = 'utf-8-sig' diff --git a/modular/llvm/clang/clang.cfg b/modular/llvm/clang/clang.cfg new file mode 100644 index 0000000..08bf8e0 --- /dev/null +++ b/modular/llvm/clang/clang.cfg @@ -0,0 +1,3 @@ +# Drop the following option after debugedit adds support to DWARF-5: +# https://sourceware.org/bugzilla/show_bug.cgi?id=28728 +-gdwarf-4 -g0 diff --git a/modular/llvm/clang/clang.spec b/modular/llvm/clang/clang.spec index a64d6ae..5f07550 100644 --- a/modular/llvm/clang/clang.spec +++ b/modular/llvm/clang/clang.spec @@ -1,19 +1,37 @@ +# force to use system version of python +%global python3_pkgversion 3 +%global __python3 /usr/bin/python3 + +%bcond_with bootstrap %bcond_with snapshot_build %if %{with snapshot_build} %{llvm_sb} %endif +%if %{without bootstrap} +%global toolchain clang +%endif + # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers +%undefine __cmake_in_source_build %bcond_with compat_build %bcond_without check -%global maj_ver 17 -%global min_ver 0 -%global patch_ver 2 +%ifarch aarch64 +# Use lld on aarch64, becuase ld.bfd will occasionally fail with the error: +# `Could not create temporary file: Too many open files` +%bcond_without linker_lld +%else +%bcond_with linker_lld +%endif + +%global maj_ver 18 +%global min_ver 1 +%global patch_ver 6 #global rc_ver 4 %if %{with snapshot_build} @@ -34,17 +52,23 @@ %global install_includedir %{install_prefix}/include %global install_libdir %{install_prefix}/lib %global install_datadir %{install_prefix}/share +%global install_libexecdir %{install_prefix}/libexec +%global install_docdir %{install_datadir}/doc %global pkg_includedir %{install_includedir} %else %global pkg_name clang -%global install_prefix /usr +%global install_prefix %{_prefix} +%global install_bindir %{_bindir} %global install_datadir %{_datadir} %global install_libdir %{_libdir} +%global install_includedir %{_includedir} +%global install_libexecdir %{_libexecdir} +%global install_docdir %{_docdir} %endif -%ifarch ppc64le aarch64 -# Too many threads on some systems causes OOM errors. +%ifarch ppc64le +# Too many threads on ppc64 systems causes OOM errors. %global _smp_mflags -j8 %endif @@ -56,7 +80,7 @@ Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix: Release: 1%{?dist} Summary: A C language family front-end for LLVM -License: NCSA +License: Apache-2.0 WITH LLVM-exception OR NCSA URL: http://llvm.org %if %{with snapshot_build} Source0: %{llvm_snapshot_source_prefix}clang-%{llvm_snapshot_yyyymmdd}.src.tar.xz @@ -66,39 +90,38 @@ Source1: %{llvm_snapshot_source_prefix}clang-tools-extra-%{llvm_snapshot_yyyy %else Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig -%if %{without compat_build} Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig -%endif Source4: release-keys.asc %endif %if %{without compat_build} Source5: macros.%{name} %endif +# This file is still needed because We still build on F38 in the +# upstream-snapshot branch. +Source6: clang.cfg # Patches for clang Patch1: 0001-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch -Patch3: 0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch -# Drop the following patch after debugedit adds support to DWARF-5: -# https://sourceware.org/bugzilla/show_bug.cgi?id=28728 -Patch4: 0001-Produce-DWARF4-by-default.patch # Workaround a bug in ORC on ppc64le. # More info is available here: https://reviews.llvm.org/D159115#4641826 Patch5: 0001-Workaround-a-bug-in-ORC-on-ppc64le.patch # RHEL specific patches -# Avoid unwanted dependency on python-recommonmark -Patch101: 0009-disable-recommonmark.patch +# Avoid unwanted dependency on python-myst-parser +Patch101: 0009-disable-myst-parser.patch -%if %{without compat_build} # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301 Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch -%endif -BuildRequires: gcc -BuildRequires: gcc-c++ +%if %{without bootstrap} +BuildRequires: clang +%endif +%if %{with linker_lld} +BuildRequires: lld +%endif BuildRequires: cmake BuildRequires: ninja-build @@ -106,8 +129,8 @@ BuildRequires: ninja-build %global llvm_pkg_name llvm%{maj_ver} %else %global llvm_pkg_name llvm -BuildRequires: llvm-test = %{version} -BuildRequires: llvm-googletest = %{version} +BuildRequires: %{llvm_pkg_name}-test = %{version} +BuildRequires: %{llvm_pkg_name}-googletest = %{version} %endif BuildRequires: %{llvm_pkg_name}-devel = %{version} @@ -127,16 +150,18 @@ BuildRequires: emacs BuildRequires: python3-lit BuildRequires: python3-sphinx -BuildRequires: pandoc +%if %{undefined rhel} +BuildRequires: python3-myst-parser +%endif BuildRequires: libatomic # We need python3-devel for %%py3_shebang_fix BuildRequires: python3-devel -%if ! 0%{?rhel} # For reproducible pyc file generation # See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility BuildRequires: /usr/bin/marshalparser +%if %{without compat_build} %global py_reproducible_pyc_path %{buildroot}%{python3_sitelib} %endif @@ -146,6 +171,8 @@ BuildRequires: multilib-rpm-config # For origin certification BuildRequires: gnupg2 +BuildRequires: gcc-toolset-13-gcc-c++ + # scan-build uses these perl modules so they need to be installed in order # to run the tests. BuildRequires: perl(Digest::MD5) @@ -189,9 +216,11 @@ libomp-devel to enable -fopenmp. %package libs Summary: Runtime library for clang Requires: %{name}-resource-filesystem = %{version} -# RHEL specific: Use libstdc++ from gcc12 by default. rhbz#2178804 -Requires: gcc-toolset-12-gcc-c++ +# RHEL specific: Use libstdc++ from gcc13 by default. rhbz#2178804 +Requires: gcc-toolset-13-gcc-c++ Recommends: compiler-rt%{?_isa} = %{version} +# atomic support is not part of compiler-rt +Recommends: libatomic%{?_isa} # libomp-devel is required, so clang can find the omp.h header when compiling # with -fopenmp. Recommends: libomp-devel%{_isa} = %{version} @@ -203,27 +232,25 @@ Runtime library for clang. %package devel Summary: Development header files for clang Requires: %{name}-libs = %{version}-%{release} -%if %{without compat_build} Requires: %{name}%{?_isa} = %{version}-%{release} # The clang CMake files reference tools from clang-tools-extra. Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release} -%endif +Provides: clang-devel(major) = %{maj_ver} %description devel Development header files for clang. %package resource-filesystem Summary: Filesystem package that owns the clang resource directory -Provides: %{name}-resource-filesystem(major) = %{maj_ver} +Provides: clang-resource-filesystem(major) = %{maj_ver} BuildArch: noarch %description resource-filesystem This package owns the clang resouce directory: lib/clang/$version/ -%if %{without compat_build} %package analyzer Summary: A source code analysis framework -License: NCSA and MIT +License: Apache-2.0 WITH LLVM-exception OR NCSA OR MIT BuildArch: noarch Requires: %{name} = %{version}-%{release} @@ -260,7 +287,7 @@ Requires: python3 %description -n git-clang-format clang-format integration for git. - +%if %{without compat_build} %package -n python3-clang Summary: Python3 bindings for clang Requires: %{name}-devel%{?_isa} = %{version}-%{release} @@ -274,15 +301,12 @@ Requires: python3 %prep %if %{without snapshot_build} -#{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}' +%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}' %endif -%if %{with compat_build} -%autosetup -n %{clang_srcdir} -p2 -%else %if %{without snapshot_build} -#{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}' +%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}' %endif %setup -T -q -b 1 -n %{clang_tools_srcdir} @@ -295,7 +319,6 @@ rm test/clang-tidy/checkers/altera/struct-pack-align.cpp clang-tidy/tool/ \ clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py - %setup -q -n %{clang_srcdir} %autopatch -M%{?!rhel:100}%{?rhel:200} -p2 @@ -312,18 +335,14 @@ rm test/CodeGen/profile-filter.c tools/scan-build-py/bin/* \ tools/scan-build-py/libexec/* -# Convert markdown files to rst to cope with the absence of compatible md parser in rhel. -# The sed expression takes care of a slight difference between pandoc markdown and sphinx markdown. -find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pandoc -f markdown -o ${md%.md}.rst ; done - -%endif - %build -%undefine __cmake_in_source_build +%if %{with bootstrap} +%enable_devtoolset13 +%endif -# And disable LTO on AArch64 entirely. -%ifarch aarch64 +# Disable lto on i686 due to memory constraints. +%ifarch %ix86 %define _lto_cflags %{nil} %endif @@ -337,16 +356,17 @@ find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pa %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif +%if %{with linker_lld} +# TODO: Use LLVM_USE_LLD cmake option, but this doesn't seem to work with +# standalone builds. +%global build_ldflags %(echo %{build_ldflags} -fuse-ld=lld) +%endif + # Disable dwz on aarch64, because it takes a huge amount of time to decide not to optimize things. %ifarch aarch64 %define _find_debuginfo_dwz_opts %{nil} %endif - -%set_build_flags -CXXFLAGS="$CXXFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" -CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" - # We set CLANG_DEFAULT_PIE_ON_LINUX=OFF and PPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON to match the # defaults used by Fedora's GCC. %cmake -G Ninja \ @@ -357,31 +377,28 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" -DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DPYTHON_EXECUTABLE=%{__python3} \ + -DPython3_EXECUTABLE=%{__python3} \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -%ifarch s390 s390x %ix86 ppc64le aarch64 +%ifarch s390 s390x %ix86 ppc64le -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif %if %{with compat_build} - -DCLANG_BUILD_TOOLS:BOOL=OFF \ -DCMAKE_INSTALL_PREFIX=%{install_prefix} \ - -DCLANG_INCLUDE_TESTS:BOOL=OFF \ - -DLLVM_INCLUDE_TESTS:BOOL=OFF \ -DLLVM_CMAKE_DIR=%{install_libdir}/cmake/llvm \ %else - -DCLANG_INCLUDE_TESTS:BOOL=ON \ - -DLLVM_BUILD_UTILS:BOOL=ON \ - -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../%{clang_tools_srcdir} \ - -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ - -DLLVM_LIT_ARGS="-vv" \ - -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \ %if 0%{?__isa_bits} == 64 -DLLVM_LIBDIR_SUFFIX=64 \ %else -DLLVM_LIBDIR_SUFFIX= \ %endif %endif + -DCLANG_INCLUDE_TESTS:BOOL=ON \ + -DLLVM_BUILD_UTILS:BOOL=ON \ + -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../%{clang_tools_srcdir} \ + -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ + -DLLVM_LIT_ARGS="-vv" \ + -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \ \ %if %{with snapshot_build} -DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \ @@ -407,9 +424,13 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" \ -DCLANG_BUILD_EXAMPLES:BOOL=OFF \ -DBUILD_SHARED_LIBS=OFF \ - -DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \ - -DGCC_INSTALL_PREFIX=/opt/rh/gcc-toolset-12/root/usr \ + -DCLANG_REPOSITORY_STRING="%{?dist_vendor} %{version}-%{release}" \ + -DGCC_INSTALL_PREFIX=/opt/rh/gcc-toolset-13/root/usr \ -DCLANG_RESOURCE_DIR=../lib/clang/%{maj_ver} \ + -DCLANG_CONFIG_FILE_SYSTEM_DIR=%{_sysconfdir}/%{name}/ \ +%ifarch %{arm} + -DCLANG_DEFAULT_LINKER=lld \ +%endif -DCLANG_DEFAULT_UNWINDLIB=libgcc %cmake_build @@ -418,20 +439,13 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" %cmake_install -%if %{with compat_build} - -# Remove binaries/other files -rm -Rf %{buildroot}%{install_bindir} -rm -Rf %{buildroot}%{install_prefix}/share -rm -Rf %{buildroot}%{install_prefix}/libexec -# Remove scanview-py helper libs -rm -Rf %{buildroot}%{install_prefix}/lib/{libear,libscanbuild} - -%else +# Add a symlink in /usr/bin to clang-format-diff +ln -s %{install_datadir}/clang/clang-format-diff.py %{buildroot}%{install_bindir}/clang-format-diff # File in the macros file for other packages to use. We are not doing this # in the compat package, because the version macros would # conflict with # eachother if both clang and the clang compat package were installed together. +%if %{without compat_build} install -p -m0644 -D %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name} sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \ -e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \ @@ -447,100 +461,138 @@ install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/ mv %{buildroot}%{_prefix}/%{_lib}/{libear,libscanbuild} %{buildroot}%{python3_sitelib} %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild} -# Fix permissions of scan-view scripts -chmod a+x %{buildroot}%{_datadir}/scan-view/{Reporter.py,startfile.py} - -# multilib fix -%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h - # Move emacs integration files to the correct directory mkdir -p %{buildroot}%{_emacs_sitestartdir} for f in clang-format.el clang-rename.el clang-include-fixer.el; do mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f done -# remove editor integrations (bbedit, sublime, emacs, vim) -rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript -rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py* - -# TODO: Package html docs -rm -Rvf %{buildroot}%{_docdir}/Clang/clang/html -rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css -rm -Rvf %{buildroot}%{_datadir}/clang/index.js - -# TODO: What are the Fedora guidelines for packaging bash autocomplete files? -rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh - # Create Manpage symlinks ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++.1.gz ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang-%{maj_ver}.1.gz ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++-%{maj_ver}.1.gz -# Add clang++-{version} symlink -ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver} - - # Fix permission chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1* +# Add clang++-{version} symlink +ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver} + +%else +# Not sure where to put these python modules for the compat build. +rm -Rf %{buildroot}%{install_libdir}/{libear,libscanbuild} + +# Not sure where to put the emacs integration files for the compat build. +rm -Rf %{buildroot}%{install_datadir}/clang/*.el + +# Not sure what to do with man pages for the compat builds +rm -Rf %{buildroot}%{install_prefix}/share/man/ + +# Add version suffix to binaries +mkdir -p %{buildroot}%{_bindir} +for f in %{buildroot}/%{install_bindir}/*; do + filename=`basename $f` + if echo $filename | grep -e '%{maj_ver}'; then + continue + fi + ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename-%{maj_ver} +done + +# Add clang++-{version} symlink +ln -s ../../%{install_bindir}/clang++ %{buildroot}%{install_bindir}/clang++-%{maj_ver} + %endif +%if 0%{?fedora} == 38 +# Install config file +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ +mv %{SOURCE6} %{buildroot}%{_sysconfdir}/%{name}/%{_target_platform}.cfg +%endif + +# Install config file for clang +%if %{maj_ver} >=18 +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ +echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{name}/%{_target_platform}-clang.cfg +echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{name}/%{_target_platform}-clang++.cfg +%endif + +# Fix permissions of scan-view scripts +chmod a+x %{buildroot}%{install_datadir}/scan-view/{Reporter.py,startfile.py} + +# multilib fix +%multilib_fix_c_header --file %{install_includedir}/clang/Config/config.h + +# remove editor integrations (bbedit, sublime, emacs, vim) +rm -vf %{buildroot}%{install_datadir}/clang/clang-format-bbedit.applescript +rm -vf %{buildroot}%{install_datadir}/clang/clang-format-sublime.py* + +# TODO: Package html docs +rm -Rvf %{buildroot}%{install_docdir}/Clang/clang/html +rm -Rvf %{buildroot}%{install_datadir}/clang/clang-doc-default-stylesheet.css +rm -Rvf %{buildroot}%{install_datadir}/clang/index.js + +# TODO: What are the Fedora guidelines for packaging bash autocomplete files? +rm -vf %{buildroot}%{install_datadir}/clang/bash-autocomplete.sh + + # Create sub-directories in the clang resource directory that will be # populated by other packages mkdir -p %{buildroot}%{install_prefix}/lib/clang/%{maj_ver}/{bin,include,lib,share}/ - -%if %{without compat_build} -# Add a symlink in /usr/bin to clang-format-diff -ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff -%endif +#Add versioned resource directory macro +mkdir -p %{buildroot}%{_rpmmacrodir}/ +echo "%%clang%{maj_ver}_resource_dir %%{_prefix}/lib/clang/%{maj_ver}" >> %{buildroot}%{_rpmmacrodir}/macros.%{name} %check -%if %{without compat_build} %if %{with check} # Build test dependencies separately, to prevent invocations of host clang from being affected # by LD_LIBRARY_PATH below. %cmake_build --target clang-test-depends \ ExtraToolsUnitTests ClangdUnitTests ClangIncludeCleanerUnitTests ClangPseudoUnitTests # requires lit.py from LLVM utilities -LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{__ninja} %{_smp_mflags} check-all -C %{_vpath_builddir} -%endif +LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C %{__cmake_builddir} %endif -%if %{without compat_build} %files %license LICENSE.TXT -%{_bindir}/clang -%{_bindir}/clang++ -%{_bindir}/clang-%{maj_ver} -%{_bindir}/clang++-%{maj_ver} -%{_bindir}/clang-cl -%{_bindir}/clang-cpp +%{install_bindir}/clang +%{install_bindir}/clang++ +%{install_bindir}/clang-%{maj_ver} +%{install_bindir}/clang++-%{maj_ver} +%{install_bindir}/clang-cl +%{install_bindir}/clang-cpp +%if %{without compat_build} %{_mandir}/man1/clang.1.gz %{_mandir}/man1/clang++.1.gz %{_mandir}/man1/clang-%{maj_ver}.1.gz %{_mandir}/man1/clang++-%{maj_ver}.1.gz +%else +%{_bindir}/clang-%{maj_ver} +%{_bindir}/clang++-%{maj_ver} +%{_bindir}/clang-cl-%{maj_ver} +%{_bindir}/clang-cpp-%{maj_ver} %endif %files libs %{install_prefix}/lib/clang/%{maj_ver}/include/* %{install_libdir}/*.so.* +%if 0%{?fedora} == 38 +%{_sysconfdir}/%{name}/%{_target_platform}.cfg +%endif +%{_sysconfdir}/%{name}/%{_target_platform}-clang.cfg +%{_sysconfdir}/%{name}/%{_target_platform}-clang++.cfg %files devel -%if %{without compat_build} -%{_libdir}/*.so -%{_includedir}/clang/ -%{_includedir}/clang-c/ -%{_libdir}/cmake/* -%{_bindir}/clang-tblgen -%dir %{_datadir}/clang/ -%else %{install_libdir}/*.so -%{pkg_includedir}/clang/ -%{pkg_includedir}/clang-c/ -%{install_libdir}/cmake/ +%{install_includedir}/clang/ +%{install_includedir}/clang-c/ +%{install_libdir}/cmake/* +%{install_bindir}/clang-tblgen +%if %{with compat_build} +%{_bindir}/clang-tblgen-%{maj_ver} %endif +%dir %{install_datadir}/clang/ %files resource-filesystem %dir %{install_prefix}/lib/clang/ @@ -549,281 +601,885 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{__ninja} %{_smp_mflags} check-all -C % %dir %{install_prefix}/lib/clang/%{maj_ver}/include/ %dir %{install_prefix}/lib/clang/%{maj_ver}/lib/ %dir %{install_prefix}/lib/clang/%{maj_ver}/share/ -%if %{without compat_build} %{_rpmmacrodir}/macros.%{name} %files analyzer -%{_bindir}/scan-view -%{_bindir}/scan-build -%{_bindir}/analyze-build -%{_bindir}/intercept-build -%{_bindir}/scan-build-py -%{_libexecdir}/ccc-analyzer -%{_libexecdir}/c++-analyzer -%{_libexecdir}/analyze-c++ -%{_libexecdir}/analyze-cc -%{_libexecdir}/intercept-c++ -%{_libexecdir}/intercept-cc -%{_datadir}/scan-view/ -%{_datadir}/scan-build/ +%{install_bindir}/scan-view +%{install_bindir}/scan-build +%{install_bindir}/analyze-build +%{install_bindir}/intercept-build +%{install_bindir}/scan-build-py +%if %{with compat_build} +%{_bindir}/scan-view-%{maj_ver} +%{_bindir}/scan-build-%{maj_ver} +%{_bindir}/analyze-build-%{maj_ver} +%{_bindir}/intercept-build-%{maj_ver} +%{_bindir}/scan-build-py-%{maj_ver} +%endif +%{install_libexecdir}/ccc-analyzer +%{install_libexecdir}/c++-analyzer +%{install_libexecdir}/analyze-c++ +%{install_libexecdir}/analyze-cc +%{install_libexecdir}/intercept-c++ +%{install_libexecdir}/intercept-cc +%{install_datadir}/scan-view/ +%{install_datadir}/scan-build/ +%if %{without compat_build} %{_mandir}/man1/scan-build.1.* %{python3_sitelib}/libear %{python3_sitelib}/libscanbuild +%endif %files tools-extra -%{_bindir}/amdgpu-arch -%{_bindir}/clang-apply-replacements -%{_bindir}/clang-change-namespace -%{_bindir}/clang-check -%{_bindir}/clang-doc -%{_bindir}/clang-extdef-mapping -%{_bindir}/clang-format -%{_bindir}/clang-include-cleaner -%{_bindir}/clang-include-fixer -%{_bindir}/clang-move -%{_bindir}/clang-offload-bundler -%{_bindir}/clang-offload-packager -%{_bindir}/clang-linker-wrapper -%{_bindir}/clang-pseudo -%{_bindir}/clang-query -%{_bindir}/clang-refactor -%{_bindir}/clang-rename -%{_bindir}/clang-reorder-fields -%{_bindir}/clang-repl -%{_bindir}/clang-scan-deps -%{_bindir}/clang-tidy -%{_bindir}/clangd -%{_bindir}/diagtool -%{_bindir}/hmaptool -%{_bindir}/nvptx-arch -%{_bindir}/pp-trace -%{_bindir}/c-index-test -%{_bindir}/find-all-symbols -%{_bindir}/modularize -%{_bindir}/clang-format-diff +%{install_bindir}/amdgpu-arch +%{install_bindir}/clang-apply-replacements +%{install_bindir}/clang-change-namespace +%{install_bindir}/clang-check +%{install_bindir}/clang-doc +%{install_bindir}/clang-extdef-mapping +%{install_bindir}/clang-format +%{install_bindir}/clang-include-cleaner +%{install_bindir}/clang-include-fixer +%{install_bindir}/clang-move +%{install_bindir}/clang-offload-bundler +%{install_bindir}/clang-offload-packager +%{install_bindir}/clang-linker-wrapper +%{install_bindir}/clang-pseudo +%{install_bindir}/clang-query +%{install_bindir}/clang-refactor +%{install_bindir}/clang-rename +%{install_bindir}/clang-reorder-fields +%{install_bindir}/clang-repl +%{install_bindir}/clang-scan-deps +%{install_bindir}/clang-tidy +%{install_bindir}/clangd +%{install_bindir}/diagtool +%{install_bindir}/hmaptool +%{install_bindir}/nvptx-arch +%{install_bindir}/pp-trace +%{install_bindir}/c-index-test +%{install_bindir}/find-all-symbols +%{install_bindir}/modularize +%{install_bindir}/clang-format-diff +%{install_bindir}/run-clang-tidy +%if %{with compat_build} +%{_bindir}/amdgpu-arch-%{maj_ver} +%{_bindir}/clang-apply-replacements-%{maj_ver} +%{_bindir}/clang-change-namespace-%{maj_ver} +%{_bindir}/clang-check-%{maj_ver} +%{_bindir}/clang-doc-%{maj_ver} +%{_bindir}/clang-extdef-mapping-%{maj_ver} +%{_bindir}/clang-format-%{maj_ver} +%{_bindir}/clang-include-cleaner-%{maj_ver} +%{_bindir}/clang-include-fixer-%{maj_ver} +%{_bindir}/clang-move-%{maj_ver} +%{_bindir}/clang-offload-bundler-%{maj_ver} +%{_bindir}/clang-offload-packager-%{maj_ver} +%{_bindir}/clang-linker-wrapper-%{maj_ver} +%{_bindir}/clang-pseudo-%{maj_ver} +%{_bindir}/clang-query-%{maj_ver} +%{_bindir}/clang-refactor-%{maj_ver} +%{_bindir}/clang-rename-%{maj_ver} +%{_bindir}/clang-reorder-fields-%{maj_ver} +%{_bindir}/clang-repl-%{maj_ver} +%{_bindir}/clang-scan-deps-%{maj_ver} +%{_bindir}/clang-tidy-%{maj_ver} +%{_bindir}/clangd-%{maj_ver} +%{_bindir}/diagtool-%{maj_ver} +%{_bindir}/hmaptool-%{maj_ver} +%{_bindir}/nvptx-arch-%{maj_ver} +%{_bindir}/pp-trace-%{maj_ver} +%{_bindir}/c-index-test-%{maj_ver} +%{_bindir}/find-all-symbols-%{maj_ver} +%{_bindir}/modularize-%{maj_ver} +%{_bindir}/clang-format-diff-%{maj_ver} +%{_bindir}/run-clang-tidy-%{maj_ver} +%else %{_mandir}/man1/diagtool.1.gz %{_emacs_sitestartdir}/clang-format.el %{_emacs_sitestartdir}/clang-rename.el %{_emacs_sitestartdir}/clang-include-fixer.el -%{_datadir}/clang/clang-format.py* -%{_datadir}/clang/clang-format-diff.py* -%{_datadir}/clang/clang-include-fixer.py* -%{_datadir}/clang/clang-tidy-diff.py* -%{_bindir}/run-clang-tidy -%{_datadir}/clang/run-find-all-symbols.py* -%{_datadir}/clang/clang-rename.py* +%endif +%{install_datadir}/clang/clang-format.py* +%{install_datadir}/clang/clang-format-diff.py* +%{install_datadir}/clang/clang-include-fixer.py* +%{install_datadir}/clang/clang-tidy-diff.py* +%{install_datadir}/clang/run-find-all-symbols.py* +%{install_datadir}/clang/clang-rename.py* %files tools-extra-devel -%{_includedir}/clang-tidy/ +%{install_includedir}/clang-tidy/ %files -n git-clang-format -%{_bindir}/git-clang-format +%{install_bindir}/git-clang-format +%if %{with compat_build} +%{_bindir}/git-clang-format-%{maj_ver} +%endif +%if %{without compat_build} %files -n python3-clang %{python3_sitelib}/clang/ %endif %changelog -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Tue May 14 2024 Tom Stellard - 18.1.4-3 +- Add triple prefix to clang config files + +* Thu May 2 2024 Tom Stellard - 18.1.4 +- 18.1.4 Release + +* Thu Apr 18 2024 Tulio Magno Quites Machado Filho - 18.1.3-2 +- Split config files + +* Tue Apr 16 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Thu Apr 04 2024 Tom Stellard - 18.1.2-3 +- Add a versioned clang_resource_dir macro + +* Thu Apr 04 2024 Tom Stellard - 18.1.2-2 +- Fix Provides for compat-packages + +* Thu Mar 21 2024 Tom Stellrd - 18.1.2-1 +- 18.1.2 Release + +* Mon Mar 11 2024 Tom Stellrd - 18.1.1-1 +- 18.1.1 Release + +* Fri Mar 08 2024 Tom Stellard - 18.1.0~rc4-3 +- Remove some LTO workarounds + +* Wed Feb 28 2024 Tom Stellard - 18.1.0~rc4-2 +- Fix gcc triple on i686 + +* Tue Feb 27 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.0.1-rc4 Release + +* Fri Jan 26 2024 Kefu Chai - 17.0.6-6 +- Fix the too-early instantiation of conditional "explict" by applying the patch + of https://github.com/llvm/llvm-project/commit/128b3b61fe6768c724975fd1df2be0abec848cf6 + +* Tue Jan 23 2024 Fedora Release Engineering - 17.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +%{?llvm_snapshot_changelog_entry} + +* Mon Jan 22 2024 Nikita Popov - 17.0.6-4 +- Fix build with GCC 14 on ARM. Fix rhbz#2259254. + +* Fri Jan 19 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Dec 18 2023 Jeremy Newton - 17.0.6-2 +- Add clang-devel(major) provides + +* Tue Nov 28 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Tue Nov 14 2023 Tulio Magno Quites Machado Filho - 17.0.5-1 +- Update to LLVM 17.0.5 + +* Wed Nov 01 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Tue Oct 17 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Mon Oct 09 2023 Timm Bäder - 17.0.2-2 +- Backport upstream fixes for https://issues.redhat.com/browse/RHEL-1650 + +* Wed Oct 04 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Thu Jun 29 2023 Tom Stellard - 16.0.6-2 -- Use gcc-toolset-13 by default +* Sat Sep 23 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Sat Jun 17 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Tue Sep 19 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-4 +- Re-add dwarf4 patch. Fix rhbz#2239619. -* Fri May 12 2023 Tom Stellard - 16.0.0-2 -- Fix clang_resource_dir macro +* Tue Sep 19 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-3 +- Move macros.clang to resource-filesystem -* Fri Apr 28 2023 Tom Stellard - 16.0.0-1 -- 16.0.0 Release +* Mon Sep 18 2023 Alessandro Astone - 17.0.0~rc4-2 +- Fix resource-filesystem after https://fedoraproject.org/wiki/Changes/LLVM-17 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 +* Wed Sep 06 2023 Tom Stellard - 17.0.0~rc3-2 +- Drop dwarf4 patch in favor of config files + +* Tue Sep 05 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 + +* Wed Aug 23 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Mon Aug 21 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Tue Aug 01 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Wed Jul 19 2023 Fedora Release Engineering - 16.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Tulio Magno Quites Machado Filho - 16.0.6-2 +- Fix rhbz#2221585 + +* Fri Jun 16 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Fri Jun 16 2023 Python Maint - 16.0.5-4 +- Rebuilt for Python 3.12 + +* Thu Jun 15 2023 Nikita Popov - 16.0.5-3 +- Use llvm-cmake-utils package + +* Thu Jun 15 2023 Python Maint - 16.0.5-2 +- Rebuilt for Python 3.12 + +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Mon May 15 2023 Tulio Magno Quites Machado Filho - 16.0.3-2 +- Remove patch for ppc64le triple in favor of https://reviews.llvm.org/D149746 + +* Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Wed Apr 26 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Wed Apr 12 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Wed Apr 12 2023 Timm Bäder - 16.0.0-3 +- Use correct source for clang.macros file + +* Thu Mar 23 2023 Tulio Magno Quites Machado Filho - 16.0.0-2 +- Remove unnecessary patch and macro + +* Mon Mar 20 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Thu Mar 16 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-2 +- Fix tests with the right triple + +* Tue Mar 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Tue Mar 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-2 +- Fix RPM macro clang_resource_dir + +* Thu Feb 23 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Thu Jan 19 2023 Tulio Magno Quites Machado Filho - 15.0.7-3 +- Update license to SPDX identifiers. +- Include the Apache license adopted in 2019. + +* Wed Jan 18 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jan 12 2023 Nikita Popov - 15.0.7-1 - Update to LLVM 15.0.7 +* Thu Jan 12 2023 Nikita Popov - 15.0.6-5 +- Fix resource-filesystem ownership conflict + +* Mon Jan 09 2023 Tom Stellard - 15.0.6-4 +- Omit frame pointers when building + +* Wed Dec 21 2022 Nikita Popov - 15.0.6-3 +- Add clang-devel dep to python3-clang + +* Mon Dec 12 2022 Nikita Popov - 15.0.6-2 +- Backport patches for ucrt64 toolchain detection + +* Mon Dec 05 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Thu Nov 03 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Wed Oct 19 2022 Nikita Popov - 15.0.0-6 +- Enable ieeelongdouble for ppc64le, fix rhbz#2136099 + +* Thu Oct 13 2022 Nikita Popov - 15.0.0-5 +- Default to non-pie, fix rhbz#2134146 + +* Wed Oct 05 2022 sguelton@redhat.com - 15.0.0-4 +- Package clang-tidy headers in clang-tools-extra-devel, fix rhbz#2123479 + +* Thu Sep 22 2022 Nikita Popov - 15.0.0-3 +- Add patch for inline builtins with asm label + +* Sat Sep 17 2022 sguelton@redhat.com - 15.0.0-3 +- Improve integration of llvm's libunwind + +* Wed Sep 14 2022 Nikita Popov - 15.0.0-2 +- Downgrade implicit int and implicit function declaration to warning only + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Tue Jun 28 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Mon Aug 29 2022 sguelton@redhat.com - 14.0.5-7 +- Add a Recommends on libatomic, see rhbz#2118592 -* Wed Jun 01 2022 Timm Bäder - 14.0.0-2 -- Increate gcc-toolset dependency to 12 -- Set GCC_INSTALL_PREFIX variable +* Wed Aug 10 2022 Nikita Popov - 14.0.5-6 +- Revert powerpc -mabi=ieeelongdouble default -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 +* Thu Aug 04 2022 Tom Stellard - 14.0.5-5 +- Re-enable ieee128 as the default long double format on ppc64le + +* Thu Jul 28 2022 Amit Shah - 14.0.5-4 +- Use the dist_vendor macro to identify the distribution + +* Wed Jul 20 2022 Fedora Release Engineering - 14.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jun 30 2022 Miro Hrončok - 14.0.5-2 +- Revert "Use the ieee128 format for long double on ppc64le" until rhbz#2100546 is fixed + +* Tue Jun 14 2022 Timm Bäder - 14.0.5-1 +- Update to 14.0.5 + +* Mon Jun 13 2022 Python Maint - 14.0.0-4 +- Rebuilt for Python 3.11 + +* Thu May 19 2022 Tom Stellard - 14.0.0-3 +- Use the ieee128 format for long double on ppc64le + +* Mon Apr 04 2022 Jeremy Newton - 14.0.0-2 +- Add patch for HIP (cherry-picked from llvm trunk, to be LLVM15) + +* Wed Mar 23 2022 Timm Bäder - 14.0.0-1 - Update to 14.0.0 -* Thu Feb 03 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Wed Feb 16 2022 Tom Stellard - 13.0.1-2 +- Fix some rpmlinter errors -* Fri Jan 21 2022 Serge Guelton - 13.0.0-3 -- Backport bidi patches +* Thu Feb 03 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final -* Fri Oct 22 2021 Tom Stellard - 13.0.0-2 -- Don't emit unwind tables for bpf +* Tue Feb 01 2022 Nikita Popov - 13.0.1~rc3-1 +- Update to LLVM 13.0.1rc3 -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Wed Jan 19 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jan 14 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 + +* Wed Jan 12 2022 Nikita Popov - 13.0.1~rc1-1 +- Update to LLVM 13.0.1rc1 + +* Thu Oct 28 2021 Tom Stellard - 13.0.0-5 +- Make lld the default linker on arm + +* Wed Oct 27 2021 Tom Stellard - 13.0.0-4 +- Remove Conflicts: compiler-rt for newer versions of compiler-rt + +* Wed Oct 06 2021 Tom Stellard - 13.0.0-3 +- Fix gcc detection with redhat triples + +* Tue Oct 05 2021 Tom Stellard - 13.0.0-2 +- Drop abi_revision from soname + +* Fri Oct 01 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Sat Sep 18 2021 Tom Stellard - 13.0.0~rc1-5 +- 13.0.0-rc3 Release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 release +* Tue Sep 14 2021 Konrad Kleine - 13.0.0~rc1-4 +- Add --without=check option -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.0 final release +* Fri Sep 10 2021 sguelton@redhat.com - 13.0.0~rc1-3 +- Apply scan-build-py intergation patch -* Thu Sep 17 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +* Thu Sep 09 2021 Tom Stellard - 13.0.0~rc1-2 +- Add macros.clang file + +* Fri Aug 06 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release + +* Thu Jul 22 2021 Tom Stellard - 12.0.1-3 +- Fix compat build + +* Wed Jul 21 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jul 13 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Fri Jul 09 2021 Tom Stellard - 12.0.1~rc3-2 +- Fix ambiguous python shebangs + +* Wed Jun 30 2021 Tom Stellard - clang-12.0.1~rc3-1 +- 12.0.1-rc3 Release + +* Tue Jun 08 2021 Tom Stellard - 12.0.1~rc1-3 +- Only enable -funwind-tables by default on Fedora arches + +* Fri Jun 04 2021 Python Maint - 12.0.1~rc1-2 +- Rebuilt for Python 3.10 + +* Thu May 27 2021 Tom Stellard - clang-12.0.1~rc1-1 +- 12.0.1-rc1 Release + +* Tue May 18 2021 sguelton@redhat.com - 12.0.0-2 +- Use the alternative-managed version of llvm-config + +* Fri Apr 16 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release + +* Wed Apr 14 2021 Tom Stellard - 12.0.0-0.12.rc5 +- Add symlink to clang-format-diff in /usr/bin +- rhbz#1939018 + +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.11.rc5 +- New upstream release candidate + +* Sat Apr 03 2021 sguelton@redhat.com - 12.0.0-0.10.rc4 +- Make pyc files from python3-clang reproducible + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.9.rc4 +- New upstream release candidate + +* Wed Mar 31 2021 Jonathan Wakely - 12.0.0-0.8.rc3 +- Rebuilt for removed libstdc++ symbols (#1937698) + +* Mon Mar 15 2021 sguelton@redhat.com - 12.0.0-0.7.rc3 +- Apply patch D97846 to fix rhbz#1934065 + +* Mon Mar 15 2021 Timm Bäder 12.0.0-0.6.rc3 +- Set CLANG_DEFAULT_UNWIND_LIB instead of using custom patch +- Add toolchains test to the tests.yml + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.5.rc3 +- LLVM 12.0.0 rc3 + +* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.4.rc2 +- rebuilt + +* Mon Mar 01 2021 sguelton@redhat.com - 12.0.0-0.3.rc2 +- Reapply some wrongly removed patch + +* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2 +- 12.0.0-rc2 release + +* Sun Feb 14 2021 sguelton@redhat.com - 12.0.0-0.1.rc1 +- 12.0.0-rc1 release + +* Tue Feb 09 2021 Tom Stellard - 11.1.0-0.5.rc2 +- Remove some unnecessary scan-view files + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-0.4.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.3.rc2 +- 11.1.0-rc2 release + +* Wed Jan 20 2021 Serge Guelton - 11.1.0-0.2.rc1 +- rebuilt with https://reviews.llvm.org/D94941 applied. + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Wed Jan 06 2021 Serge Guelton - 11.0.1-4 +- LLVM 11.0.1 final + +* Sun Dec 20 2020 sguelton@redhat.com - 11.0.1-3.rc2 +- llvm 11.0.1-rc2 + +* Wed Dec 16 2020 Tom Stellard - 11.0.1-2.rc1 +- Don't build with -flto + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- llvm 11.0.1-rc1 + +* Thu Oct 29 2020 Tom Stellard - 11.0.0-3 +- Remove -ffat-lto-objects compiler flag + +* Wed Oct 28 2020 Tom Stellard - 11.0.0-2 +- Add clang-resource-filesystem sub-package + +* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 +- Fix NVR + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.7 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.6.rc6 +- 11.0.0-rc6 + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.5.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.4.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Tue Sep 22 2020 sguelton@redhat.com - 11.0.0-0.3.rc2 +- Prefer gcc toolchains with libgcc_s + +* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.2.rc2 +- Normalize some doc directory locations + +* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 - 11.0.0-rc2 Release +- Use %%license macro -* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1 -- 10.0.1 release +* Tue Aug 11 2020 Tom Stellard - 11.0.0-0.2.rc1 +- Fix test failures -* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1 +* Mon Aug 10 2020 Tom Stellard - 11.0.0-0.1.rc1 +- 11.0.0-rc1 Release + +* Tue Aug 04 2020 Tom Stellard - 10.0.0-11 +- Remove Requires: emacs-filesystem + +* Sat Aug 01 2020 Fedora Release Engineering - 10.0.0-10 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Jeff Law - 10.0.0-9 +- Disable LTO on arm and i686 + +* Mon Jul 27 2020 Fedora Release Engineering - 10.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-7 +- Update cmake macro usage +- Finalize source verification + +* Fri Jun 26 2020 Tom Stellard - 10.0.0-6 +- Add cet.h header + +* Mon Jun 08 2020 Tom Stellard - 10.0.0-5 +- Accept multiple --config options + +* Wed Jun 3 2020 Dan Čermák - 10.0.0-4 +- Add symlink to %%{_libdir}/clang/%%{maj_ver} for persistent access to the resource directory accross minor version bumps + +* Mon May 25 2020 Miro Hrončok - 10.0.0-3 +- Rebuilt for Python 3.9 + +* Tue May 19 2020 sguelton@redhat.com - 10.0.0-2 +- Backport ad7211df6f257e39da2e5a11b2456b4488f32a1e, see rhbz#1825593 + +* Thu Mar 26 2020 sguelton@redhat.com - 10.0.0-1 - 10.0.0 final +* Tue Mar 24 2020 sguelton@redhat.com - 10.0.0-0.11.rc6 +- 10.0.0 rc6 + +* Sun Mar 22 2020 sguelton@redhat.com - 10.0.0-0.10.rc5 +- Update git-clang-format dependency, see rhbz#1815913 + +* Fri Mar 20 2020 Tom Stellard - 10.0.0-0.9.rc5 +- Add dependency on libomp-devel + +* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.8.rc5 +- 10.0.0 rc5 + +* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.7.rc4 +- 10.0.0 rc4 + +* Thu Mar 12 2020 sguelton@redhat.com - 10.0.0-0.6.rc3 +- Move a few files from clang to clang-tools-extra. + +* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.5.rc3 +- 10.0.0 rc3 + +* Tue Feb 25 2020 sguelton@redhat.com - 10.0.0-0.4.rc2 +- Apply -fdiscard-value-names patch. + +* Mon Feb 17 2020 sguelton@redhat.com - 10.0.0-0.3.rc2 +- Fix NVR + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2 +- 10.0.0 rc2 + +* Tue Feb 11 2020 sguelton@redhat.com - 10.0.0-0.2.rc1 +- Explicitly conflicts with any different compiler-rt version, see rhbz#1800705 + +* Fri Jan 31 2020 Tom Stellard - 10.0.0-0.1.rc1 +- Stop shipping individual component libraries +- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Tue Jan 28 2020 Fedora Release Engineering - 9.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Fri Jan 10 2020 Tom Stellard - 9.0.1-2 - Fix crash with kernel bpf self-tests * Thu Dec 19 2019 Tom Stellard - 9.0.1-1 - 9.0.1 Release -* Fri Nov 15 2019 Tom Stellard - 9.0.0-5 -- Fix typo from previous patch: move clang-libs dep to correct sub-package - -* Thu Nov 14 2019 Tom Stellard - 9.0.0-4 +* Wed Dec 11 2019 Tom Stellard - 9.0.0-3 - Add explicit requires for clang-libs to fix rpmdiff errors -* Wed Oct 02 2019 Tom Stellard - 9.0.0-3 -- Limit build to 8 threads to avoid OOM on x86_64 +* Tue Dec 10 2019 sguelton@redhat.com - 9.0.0-2 +- Activate -funwind-tables on all arches, see rhbz#1655546. -* Wed Oct 02 2019 Tom Stellard - 9.0.0-2 -- Disable CLANG_LINK_CLANG_DYLIB - -* Fri Sep 27 2019 Tom Stellard - 9.0.0-1 +* Thu Sep 19 2019 Tom Stellard - 9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 Release +* Wed Sep 11 2019 Tom Stellard - 9.0.0-0.2.rc3 +- Reduce debug info verbosity on ppc64le to avoid OOM errors in koji -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Thu Aug 22 2019 Tom Stellard - 9.0.0-0.1.rc3 +- 9.0.0 Release candidate 3 -* Thu Apr 11 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Tue Aug 20 2019 sguelton@redhat.com - 8.0.0-4 +- Rebuilt for Python 3.8 -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 -- 7.0.1-1 Release +* Mon Aug 19 2019 Miro Hrončok - 8.0.0-3.2 +- Rebuilt for Python 3.8 -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.1.rc3 -- 7.0.1-rc3 Release +* Wed Jul 24 2019 Fedora Release Engineering - 8.0.0-3.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild -* Mon Nov 05 2018 Tom Stellard - 6.0.1-12 +* Thu May 16 2019 sguelton@redhat.com - 8.0.0-3 +- Fix for rhbz#1674031 + +* Fri Apr 12 2019 sguelton@redhat.com - 8.0.0-2 +- Remove useless patch thanks to GCC upgrade + +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final + +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.6.rc4 +- 8.0.0 Release candidate 4 + +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.5.rc3 +- Cleanup specfile after llvm dependency update + +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.4.rc3 +- 8.0.0 Release candidate 3 + +* Mon Feb 25 2019 tstellar@redhat.com - 8.0.0-0.3.rc2 +- Fix compiling with -stdlib=libc++ + +* Thu Feb 21 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 + +* Sat Feb 09 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 + +* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-6 +- Update patch for Python3 port of scan-view + +* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-5 +- Working CI test suite + +* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4 +- Workaround gcc-9 bug when compiling bitfields + +* Fri Feb 01 2019 sguelton@redhat.com - 7.0.1-3 +- Fix uninitialized error detected by gcc-9 + +* Thu Jan 31 2019 Fedora Release Engineering - 7.0.1-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Dec 19 2018 Tom Stellard - 7.0.1-2 +- Fix for rhbz#1657544 + +* Tue Dec 18 2018 sguelton@redhat.com - 7.0.1-1 +- 7.0.1 + +* Tue Dec 18 2018 sguelton@redhat.com - 7.0.0-10 +- Install proper manpage symlinks for clang/clang++ versions + +* Fri Dec 14 2018 sguelton@redhat.com - 7.0.0-9 +- No longer Ignore -fstack-clash-protection option + +* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-8 +- Ensure rpmlint passes on specfile + +* Fri Nov 30 2018 Tom Stellard - 7.0.0-7 +- Drop python2 dependency from clang-tools-extra + +* Wed Nov 21 2018 sguelton@redhat.com - 7.0.0-6 +- Prune unneeded reference to llvm-test-suite sub-package + +* Mon Nov 19 2018 Tom Stellard - 7.0.0-5 +- Run 'make check-all' instead of 'make check-clang' + +* Mon Nov 19 2018 sergesanspaille - 7.0.0-4 +- Avoid Python2 + Python3 dependency for clang-analyzer + +* Mon Nov 05 2018 Tom Stellard - 7.0.0-3 - User helper macro to fixup config.h for multilib -* Sat Oct 27 2018 Tom Stellard - 6.0.1-11 -- Enable make check +* Tue Oct 02 2018 Tom Stellard - 7.0.0-2 +- Use correct shebang substitution for python scripts -* Mon Oct 15 2018 Tom Stellard - 6.0.1-10 -- Remove Provides: llvm-toolset-6.0-clang-libs +* Mon Sep 24 2018 Tom Stellard - 7.0.0-1 +- 7.0.0 Release -* Fri Oct 12 2018 Tom Stellard - 6.0.1-9 -- Add Provides: llvm-toolset-6.0-clang-libs +* Wed Sep 19 2018 Tom Stellard - 7.0.0-0.16.rc3 +- Move builtin headers into clang-libs sub-package -* Tue Oct 02 2018 Tom Stellard - 6.0.1-8 -- Don't use python2 for the build +* Wed Sep 19 2018 Tom Stellard - 7.0.0-0.15.rc3 +- Remove ambiguous python shebangs -* Mon Oct 01 2018 Tom Stellard - 6.0.1-7 -- Drop scl macros +* Thu Sep 13 2018 Tom Stellard - 7.0.0-0.14.rc3 +- Move unversioned shared objects to devel package -* Tue Sep 25 2018 Tomas Orsava - 6.0.1-6 -- Change Requires from python3 to platform-python -- The python3 package was renamed to platform-python -- Related: rhbz#1619153 +* Thu Sep 13 2018 Tom Stellard - 7.0.0-0.13.rc3 +- Rebuild with new llvm-devel that disables rpath on install -* Fri Sep 14 2018 Tom Stellard - 6.0.1-5 -- Use python3 for git-clang-format +* Thu Sep 13 2018 Tom Stellard - 7.0.0-0.12.rc3 +- Fix clang++-7 symlink -* Thu Sep 13 2018 Tom Stellard - 6.0.1-4 -- Fix python dependencies +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.11.rc3 +- 7.0.0-rc3 Release -* Tue Aug 07 2018 Tom Stellard - 6.0.1-3 -- Install ld.so.conf file in the root filesystem +* Mon Sep 10 2018 Tom Stellard - 7.0.0-0.10.rc2 +- Drop siod from llvm-test-suite -* Thu Aug 02 2018 Tom Stellard - 6.0.1-2 -- Remove annobin work-around +* Fri Sep 07 2018 Tom Stellard - 7.0.0-0.9.rc2 +- Drop python2 dependency from clang package -* Wed Jul 11 2018 Tom Stellard - 6.0.1-1 +* Thu Sep 06 2018 Tom Stellard - 7.0.0-0.8.rc2 +- Drop all uses of python2 from lit tests + +* Sat Sep 01 2018 Tom Stellard - 7.0.0-0.7.rc2 +- Add Fedora specific version string + +* Tue Aug 28 2018 Tom Stellard - 7.0.0-0.6.rc2 +- 7.0.0-rc2 Release + +* Tue Aug 28 2018 Tom Stellard - 7.0.0-0.5.rc1 +- Enable unit tests + +* Fri Aug 17 2018 Tom Stellard - 7.0.0-0.4.rc1 +- Move llvm-test-suite into a sub-package + +* Fri Aug 17 2018 Tom Stellard - 7.0.0-0.3.rc1 +- Recommend the same version of compiler-rt + +* Wed Aug 15 2018 Tom Stellard - 7.0.0-0.2.rc1 +- Rebuild for f30 + +* Mon Aug 13 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.0-rc1 Release + +* Mon Jul 23 2018 Tom Stellard - 6.0.1-3 +- Sync spec file with the clang6.0 package + +* Thu Jul 12 2018 Fedora Release Engineering - 6.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 26 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release -* Wed Apr 11 2018 Tom Stellard - 5.0.1-7 -- Add conditionals to enable building only the clang-libs package +* Wed Jun 13 2018 Tom Stellard - 6.0.1-0.2.rc2 +- 6.0.1-rc2 -* Fri Apr 06 2018 Tom Stellard - 5.0.1-6 -- Use cmake from base RHEL +* Fri May 11 2018 Tom Stellard - 6.0.1-0.1.rc1 +- 6.0.1-rc1 Release -* Mon Mar 19 2018 Tom Stellard - 5.0.1-5 -- Backport r310435 from clang trunk. rhbz#1558223 +* Fri Mar 23 2018 Tom Stellard - 6.0.0-5 +- Add a clang++-{version} symlink rhbz#1534098 -* Mon Mar 19 2018 Tom Stellard - 5.0.1-4 -- Use system gcc instead of dts. +* Thu Mar 22 2018 Tom Stellard - 6.0.0-4 +- Use correct script for running lit tests -* Tue Feb 06 2018 Tom Stellard - 5.0.1-3 -- Backport retpoline support +* Wed Mar 21 2018 Tom Stellard - 6.0.0-3 +- Fix toolchain detection so we don't default to using cross-compilers: + rhbz#1482491 -* Sat Jan 20 2018 Tom Stellard - 5.0.1-2 -- Limit number of build threads on ppc64le to avoid OOM errors +* Mon Mar 12 2018 Tom Stellard - 6.0.0-2 +- Add Provides: clang(major) rhbz#1547444 -* Tue Jan 09 2018 Tom Stellard - 5.0.1-1 +* Fri Mar 09 2018 Tom Stellard - 6.0.0-1 +- 6.0.0 Release + +* Mon Feb 12 2018 Tom Stellard - 6.0.0-0.6.rc2 +- 6.0.0-rc2 Release + +* Wed Feb 07 2018 Fedora Release Engineering - 6.0.0-0.5.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Feb 01 2018 Tom Stellard - 6.0.0-0.4.rc1 +- Package python helper scripts for tools + +* Fri Jan 26 2018 Tom Stellard - 6.0.0-0.3.rc1 +- Ignore -fstack-clash-protection option instead of giving an error + +* Fri Jan 26 2018 Tom Stellard - 6.0.0-0.2.rc1 +- Package emacs integration files + +* Wed Jan 24 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.0-rc1 Release + +* Wed Jan 24 2018 Tom Stellard - 5.0.1-3 +- Rebuild against llvm5.0 compatibility package +- rhbz#1538231 + +* Wed Jan 03 2018 Iryna Shcherbina - 5.0.1-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Dec 20 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release -* Wed Jun 21 2017 Tom Stellard - 4.0.1-1 +* Wed Dec 13 2017 Tom Stellard - 5.0.0-3 +- Make compiler-rt a weak dependency and add a weak dependency on libomp + +* Mon Nov 06 2017 Merlin Mathesius - 5.0.0-2 +- Cleanup spec file conditionals + +* Mon Oct 16 2017 Tom Stellard - 5.0.0-1 +- 5.0.0 Release + +* Wed Oct 04 2017 Rex Dieter - 4.0.1-6 +- python2-clang subpkg (#1490997) +- tools-extras: tighten (internal) -libs dep +- %%install: avoid cd + +* Wed Aug 30 2017 Tom Stellard - 4.0.1-5 +- Add Requires: python for git-clang-format + +* Sun Aug 06 2017 Björn Esser - 4.0.1-4 +- Rebuilt for AutoReq cmake-filesystem + +* Wed Aug 02 2017 Fedora Release Engineering - 4.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 4.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 23 2017 Tom Stellard - 4.0.1-1 - 4.0.1 Release. -* Wed Jun 21 2017 Tom Stellard - 4.0.0-15 -- Fix Requires for clang-tools-extra +* Fri Jun 16 2017 Tom Stellard - 4.0.0-8 +- Enable make check-clang -* Wed Jun 21 2017 Tom Stellard - 4.0.0-7 +- Package git-clang-format -* Tue Jun 20 2017 Tom Stellard - 4.0.0-13 -- Drop libomp dependency on s390x +* Thu Jun 08 2017 Tom Stellard - 4.0.0-6 +- Generate man pages -* Thu Jun 15 2017 Tom Stellard - 4.0.0-12 -- Use libstdc++ from devtoolset-7 +* Thu Jun 08 2017 Tom Stellard - 4.0.0-5 +- Ignore test-suite failures until all arches are fixed. -* Wed Jun 07 2017 Tom Stellard - 4.0.0-11 -- Fix libomp requires - -* Wed Jun 07 2017 Tom Stellard - 4.0.0-10 -- Build for llvm-toolset-7 rename - -* Tue May 30 2017 Tom Stellard - 4.0.0-9 -- Use ld from devtoolset in clang toolchain - -* Mon May 29 2017 Tom Stellard - 4.0.0-8 -- Add dependency on libopenmp - -* Thu May 25 2017 Tom Stellard - 4.0.0-7 -- Fix check for gcc install - -* Wed May 24 2017 Tom Stellard - 4.0.0-6 -- Add devtoolset-6 dependency for newer libstdc++ - -* Fri May 12 2017 Tom Stellard - 4.0.0-5 -- Add dependency on compiler-rt - -* Tue May 02 2017 Tom Stellard -- Fix dependencies with scl - -* Mon May 01 2017 Tom Stellard - 4.0.0-4 -- Build with llvm-toolset-4 +* Mon Apr 03 2017 Tom Stellard - 4.0.0-4 +- Run llvm test-suite * Mon Mar 27 2017 Tom Stellard - 4.0.0-3 - Enable eh/rtti, which are required by lldb. diff --git a/modular/llvm/compiler-rt/0001-Drop-fno-stack-protector-from-the-compiler-flags.patch b/modular/llvm/compiler-rt/0001-Drop-fno-stack-protector-from-the-compiler-flags.patch deleted file mode 100644 index d7a57a5..0000000 --- a/modular/llvm/compiler-rt/0001-Drop-fno-stack-protector-from-the-compiler-flags.patch +++ /dev/null @@ -1,24 +0,0 @@ -From f007934385dc76b9299bd72cdef102fe979af93b Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Wed, 5 Sep 2018 21:07:42 -0700 -Subject: [PATCH] Drop -fno-stack-protector from the compiler flags - ---- - compiler-rt/CMakeLists.txt | 1 - - 1 file changed, 1 deletion(-) - -diff --git compiler-rt.orig/CMakeLists.txt compiler-rt/CMakeLists.txt -index f26ae25..a6ac032 100644 ---- compiler-rt.orig/CMakeLists.txt -+++ b/compiler-rt/CMakeLists.txt -@@ -271,7 +271,6 @@ if(NOT COMPILER_RT_DEBUG AND NOT APPLE) - append_list_if(COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG -fomit-frame-pointer SANITIZER_COMMON_CFLAGS) - endif() - append_list_if(COMPILER_RT_HAS_FUNWIND_TABLES_FLAG -funwind-tables SANITIZER_COMMON_CFLAGS) --append_list_if(COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG -fno-stack-protector SANITIZER_COMMON_CFLAGS) - append_list_if(COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG -fno-sanitize=safe-stack SANITIZER_COMMON_CFLAGS) - append_list_if(COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG -fvisibility=hidden SANITIZER_COMMON_CFLAGS) - if(NOT COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG) --- -1.8.3.1 - diff --git a/modular/llvm/compiler-rt/compiler-rt.spec b/modular/llvm/compiler-rt/compiler-rt.spec index 9e12cd5..20172e3 100644 --- a/modular/llvm/compiler-rt/compiler-rt.spec +++ b/modular/llvm/compiler-rt/compiler-rt.spec @@ -6,13 +6,19 @@ %{llvm_sb} %endif +%global toolchain clang + # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers -%global maj_ver 17 -%global min_ver 0 -%global patch_ver 2 +%undefine __cmake_in_source_build + +%bcond_with compat_build + +%global maj_ver 18 +%global min_ver 1 +%global patch_ver 6 #global rc_ver 4 %if %{with snapshot_build} %global maj_ver %{llvm_snapshot_version_major} @@ -24,18 +30,26 @@ %global crt_srcdir compiler-rt-%{compiler_rt_version}%{?rc_ver:rc%{rc_ver}}.src +%if %{with compat_build} +%global pkg_name compiler-rt%{maj_ver} +%else +%global pkg_name compiler-rt +%endif + # see https://sourceware.org/bugzilla/show_bug.cgi?id=25271 %global optflags %(echo %{optflags} -D_DEFAULT_SOURCE) # see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615 %global optflags %(echo %{optflags} -Dasm=__asm__) -Name: compiler-rt +%global __python3 /usr/bin/python3 + +Name: %{pkg_name} Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 2%{?dist} +Release: 1%{?dist} Summary: LLVM "compiler-rt" runtime libraries -License: NCSA or MIT +License: Apache-2.0 WITH LLVM-exception OR NCSA OR MIT URL: http://llvm.org %if %{with snapshot_build} Source0: %{llvm_snapshot_source_prefix}compiler-rt-%{llvm_snapshot_yyyymmdd}.src.tar.xz @@ -48,10 +62,6 @@ Source2: release-keys.asc Patch0: 0001-compiler-rt-Fix-FLOAT16-feature-detection.patch -# RHEL-specific patches -Patch100: 0001-Drop-fno-stack-protector-from-the-compiler-flags.patch -Patch101: fix-page-size-constant.patch - BuildRequires: clang BuildRequires: cmake BuildRequires: ninja-build @@ -60,11 +70,13 @@ BuildRequires: python3 BuildRequires: python3-devel BuildRequires: llvm-devel = %{version} BuildRequires: llvm-cmake-utils = %{version} +BuildRequires: zlib-devel # For gpg source verification BuildRequires: gnupg2 Requires: clang-resource-filesystem%{?isa} = %{version} +Provides: %{name}(major) = %{maj_ver} %description The compiler-rt project is a part of the LLVM project. It provides @@ -73,7 +85,7 @@ code generation, sanitizer runtimes and profiling library for code instrumentation, and Blocks C language extension. %prep -#{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -n %{crt_srcdir} -p2 # compiler-rt does not allow configuring LLVM_COMMON_CMAKE_UTILS. @@ -82,19 +94,13 @@ ln -s %{_datadir}/llvm/cmake ../cmake %py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize %build -%undefine __cmake_in_source_build - # Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files. -export ASMFLAGS="%{build_cflags}" +export ASMFLAGS=$CFLAGS -# RHEL 8 specific: "global toolchain clang" is not supported on RHEL 8, so explicitly enable -# clang in cmake. This is necessary to get the correct float16 ABI. %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \ -DCMAKE_SKIP_RPATH:BOOL=ON \ - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ -DCOMPILER_RT_INSTALL_PATH=%{_prefix}/lib/clang/%{maj_ver} \ -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON \ \ @@ -107,6 +113,7 @@ export ASMFLAGS="%{build_cflags}" %else -DLLVM_LIBDIR_SUFFIX= \ %endif + -DPython3_EXECUTABLE=%{__python3} \ -DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on? %cmake_build @@ -119,13 +126,20 @@ export ASMFLAGS="%{build_cflags}" # by clang. mv %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/lib/powerpc64le-redhat-linux-gnu %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/lib/ppc64le-redhat-linux-gnu %endif +%ifarch %{ix86} +# Fix install path on ix86 so that the directory name matches the triple used +# by clang on both actual ix86 and on x86_64 with -m32: +%if "%{_target_cpu}" != "i386" +ln -s i386-redhat-linux-gnu %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/lib/%{_target_cpu}-redhat-linux-gnu +%endif +%endif %check #%%cmake_build --target check-compiler-rt %files %license LICENSE.TXT -%ifarch x86_64 aarch64 +%ifarch x86_64 aarch64 riscv64 %{_prefix}/lib/clang/%{maj_ver}/bin/* %endif %{_prefix}/lib/clang/%{maj_ver}/include/* @@ -136,123 +150,418 @@ mv %{buildroot}%{_prefix}/lib/clang/%{maj_ver}/lib/powerpc64le-redhat-linux-gnu #%endif %changelog -* Fri Oct 13 2023 Nikita Popov - 17.0.2-2 -- Build with clang +* Fri May 03 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Sat Apr 27 2024 Songsong Zhang - 18.1.3-2 +- Add riscv64 support + +* Wed Apr 17 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Fri Mar 22 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Tue Mar 12 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Wed Feb 28 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Wed Jan 24 2024 Fedora Release Engineering - 17.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 17.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +%{?llvm_snapshot_changelog_entry} + +* Mon Dec 18 2023 Jeremy Newton - 17.0.6-3 +- Add compiler-rt(major) provides + +* Wed Dec 13 2023 Miro Hrončok - 17.0.6-2 +- Fix install path on i686 + +* Wed Nov 29 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Wed Nov 01 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Wed Oct 18 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Thu Oct 05 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Fri Jun 23 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Mon Sep 25 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Thu Apr 13 2023 Tom Stellard - 16.0.0-1 +* Mon Sep 11 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 + +* Tue Aug 29 2023 Tom Stellard - 17.0.0~rc3-2 +- Fix FLOAT16 detection + +* Fri Aug 25 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Wed Aug 23 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Thu Aug 03 2023 Tom Stellard - 17.0.0~rc1-2 +- Fix for ppc64le + +* Thu Aug 03 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Wed Jul 19 2023 Fedora Release Engineering - 16.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Thu Jun 15 2023 Nikita Popov - 16.0.5-2 +- Use llvm-cmake-utils package + +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Wed May 10 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Thu Apr 27 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Thu Apr 13 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Tue Mar 21 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 - Update to LLVM 16.0.0 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 +* Wed Mar 15 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Mon Mar 06 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-2 +- Fix the path of the libraries + +* Thu Feb 23 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Wed Feb 15 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Wed Feb 01 2023 Tom Stellard - 15.0.7-4 +- Omit frame pointers when building + +* Thu Jan 19 2023 Tulio Magno Quites Machado Filho - 15.0.7-3 +- Include the Apache license adopted in 2019. + +* Thu Jan 19 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 13 2023 Nikita Popov - 15.0.7-1 - Update to LLVM 15.0.7 +* Thu Dec 15 2022 Nikita Popov - 15.0.6-2 +- Remove ppc64le ieeelongdouble workaround + +* Tue Dec 06 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Mon Nov 07 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Fri Sep 23 2022 Nikita Popov - 15.0.0-3 +- Switch to building with clang + +* Tue Sep 13 2022 Nikita Popov - 15.0.0-2 +- Make sure asm files are built with -fcf-protection + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Tue Jun 28 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Wed Jul 20 2022 Fedora Release Engineering - 14.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Wed May 25 2022 Timm Bäder - 14.0.0-3 -- Fix page size constant size on aarch64 and ppc64le +* Mon Jun 20 2022 Timm Bäder - 14.0.5-1 +- Update to 14.0.5 * Fri Apr 29 2022 Timm Bäder - 14.0.0-2 - Remove llvm-cmake-devel BR -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 +* Thu Mar 24 2022 Timm Bäder - 14.0.0-1 - Update to 14.0.0 -* Thu Feb 03 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Thu Feb 03 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Wed Jan 19 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jan 14 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 + +* Wed Jan 12 2022 Nikita Popov - 13.0.1~rc1-1 +- Update to LLVM 13.0.1rc1 + +* Fri Oct 01 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Wed Sep 22 2021 Tom Stellard - 13.0.0~rc3-1 +- 13.0.0-rc3 Release -* Tue May 25 2021 sguelton@redhat.com - 12.0.0-2 -- Backport several compatibility patches +* Mon Aug 09 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 release +* Wed Jul 21 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.0 final release +* Tue Jul 13 2021 Tom Stellard - 12.0.1 +- 12.0.1 Release -* Mon Sep 21 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +* Wed Jun 30 2021 Tom Stellard - 12.0.1~rc3-1 +- 12.0.1-rc3 Release + +* Fri Jun 04 2021 Tom Stellard - 12.0.1~rc1-2 +- Fix installation paths + +* Tue Jun 01 2021 Tom Stellard - 12.0.1~rc1-1 +- 12.0.1-rc1 Release + +* Fri May 21 2021 sguelton@redhat.com - 12.0.0-3 +- Update removal of C++ dep to follow upstream +- Backport linux/cyclade.h removal patch + +* Mon May 10 2021 sguelton@redhat.com - 12.0.0-2 +- Backport 82150606fb11d28813ae6 + +* Fri Apr 16 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release + +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.6.rc5 +- New upstream release candidate + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.5.rc4 +- New upstream release candidate + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3 +- LLVM 12.0.0 rc3 + +* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.3.rc2 +- rebuilt + +* Thu Feb 25 2021 Serge Guelton - 12.0.0-0.2.rc2 +- 12.0.0-rc2 release + +* Tue Feb 16 2021 Serge Guelton - 12.0.0-0.1.rc1 +- 12.0.0-rc1 release + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-0.3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2 +- 11.1.0-rc2 release + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Wed Jan 06 2021 Serge Guelton - 11.0.1-3 +- LLVM 11.0.1 final + +* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2 +- llvm 11.0.1-rc2 + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- llvm 11.0.1-rc1 + +* Thu Oct 29 2020 Tom Stellard - 11.0.0-2 +- Add dependency on clang-resource-filesystem + +* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 +- Fix NVR + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6 +- 11.0.0-rc6 + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Tue Sep 01 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 +* Mon Aug 10 2020 Tom Stellard - 11.0.0-0.1.rc1 +- 11.0.0-rc1 Release -* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2 -- Fix msan compilation warnings, see rhbz#1841165 +* Wed Jul 29 2020 sguelton@redhat.com - 10.0.0-9 +- use %%license macro -* Wed Apr 8 2020 sguelton@redhat.com - 10.0.0-1 +* Mon Jul 27 2020 sguelton@redhat.com - 10.0.0-8 +- Remove now obsolete debuginfo package limitation + +* Mon Jul 27 2020 Fedora Release Engineering - 10.0.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-6 +- Use modern cmake macros + +* Wed Jul 15 2020 sguelton@redhat.com - 10.0.0-5 +- Fix multilib runtime links, see rhbz#1855379 + +* Wed Jul 15 2020 sguelton@redhat.com - 10.0.0-4 +- Correctly use gpg verification + +* Thu Jul 09 2020 Tom Stellard - 10.0.0-3 +- Drop dependency on llvm-static + +* Thu Jun 11 2020 sguelton@redhat.com - 10.0.0-2 +- Fix msan compilation warnings, see af38074874c605f9 upstream + +* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1 - 10.0.0 final -* Mon Jan 06 2020 Tom Stellard - 9.0.1-2 -- Update fno-stack-protector patch to apply with -p2 +* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6 +- 10.0.0 rc6 -* Fri Dec 20 2019 Tom Stellard - 9.0.1-1 -- 9.0.1 Release +* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5 +- 10.0.0 rc5 -* Fri Sep 27 2019 Tom Stellard - 9.0.0-1 +* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4 +- 10.0.0 rc4 + +* Thu Mar 5 2020 sguelton@redhat.com - 10.0.0-0.3.rc3 +- 10.0.0 rc3 + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2 +- 10.0.0 rc2 + +* Wed Feb 12 2020 sguelton@redhat.com - 10.0.0-0.2.rc1 +- Ship blacklist files in the proper directory, see rhbz#1794936 + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Tue Jan 28 2020 Fedora Release Engineering - 9.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Sep 19 2019 Tom Stellard - 9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 release +* Thu Aug 22 2019 Tom Stellard - 9.0.0-0.1.rc3 +- 9.0.0-rc3 Release -* Thu Jul 4 2019 sguelton@redhat.com - 8.0.1-0.2.rc2 +* Wed Jul 24 2019 Fedora Release Engineering - 8.0.0-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jun 18 2019 sguelton@redhat.com - 8.0.0-2 - Fix rhbz#1678240 -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final -* Wed Apr 17 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4 +- 8.0.0 Release candidate 4 -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 -- 7.0.1 Release +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3 +- 8.0.0 Release candidate 3 -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.1.rc3 -- 7.0.1-rc3 Release +* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 -* Tue Nov 27 2018 Tom Stellard - 7.0.0-1 -- 7.0.0 Release +* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 -* Tue Oct 02 2018 Tom Stellard - 6.0.1-5 +* Thu Jan 31 2019 Fedora Release Engineering - 7.0.1-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 18 2019 sguelton@redhat.com - 7.0.1-2 +- GCC-9 compatibility + +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1 +- 7.0.1 Release + +* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2 +- Ensure rpmlint passes on specfile + +* Mon Sep 24 2018 Tom Stellard - 7.0.0-1 +- 7.0.0-1 Release + +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.4.rc3 +- 7.0.0-rc3 Release + +* Fri Sep 07 2018 Tom Stellard - 7.0.0-0.3.rc1 - Use python3 for build scripts -* Mon Oct 01 2018 Tom Stellard - 6.0.1-4 -- Drop scl macros +* Thu Sep 06 2018 Tom Stellard - 7.0.0-0.2.rc1 +- Drop BuildRequires: python2 -* Thu Sep 06 2018 Tom Stellard - 6.0.1-3 -- Drop -fno-stack-protector flag +* Tue Aug 14 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.0-rc1 Release -* Thu Sep 06 2018 Tom Stellard - 6.0.1-2 -- Explicitly BuildRequire: /usr/bin/python3 +* Thu Jul 12 2018 Fedora Release Engineering - 6.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Wed Jul 11 2018 Tom Stellard - 6.0.1-1 +* Thu Jun 28 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release -* Tue Jan 09 2018 Tom Stellard - 5.0.1-1 +* Mon Mar 19 2018 Iryna Shcherbina - 6.0.0-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Mar 08 2018 Tom Stellard - 6.0.0-1 +- 6.0.0 Release + +* Tue Feb 13 2018 Tom Stellard - 6.0.0-0.4.rc2 +- 6.0.0-rc2 Release + +* Tue Feb 13 2018 Tom Stellard - 6.0.0-0.3.rc1 +- Fix build on AArch64 + +* Wed Feb 07 2018 Fedora Release Engineering - 6.0.0-0.2.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 25 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.0-rc1 Release + +* Wed Jan 17 2018 Tom Stellard - 5.0.1-2 +- Build libFuzzer with gcc + +* Wed Dec 20 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release -* Wed Jun 07 2017 Tom Stellard - 4.0.1-1 +* Fri Oct 13 2017 Tom Stellard - 5.0.0-1 +- 5.0.0 Release + +* Mon Sep 25 2017 Tom Stellard - 4.0.1-6 +- Fix AArch64 build with glibc 2.26 + +* Tue Sep 12 2017 Tom Stellard - 4.0.1-5 +- Package libFuzzer + +* Wed Aug 02 2017 Fedora Release Engineering - 4.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 4.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 23 2017 Tom Stellard - 4.0.1-2 +- Fix build with newer glibc + +* Fri Jun 23 2017 Tom Stellard - 4.0.1-1 - 4.0.1 Release -* Wed Jun 07 2017 Tom Stellard - 4.0.0-3 -- Build for llvm-toolset-7 rename - -* Thu May 18 2017 Tom Stellard - 4.0.0-2 -- Fix disabling debug on s390(x) - * Tue Mar 14 2017 Tom Stellard - 4.0.0-1 - compiler-rt 4.0.0 Final Release diff --git a/modular/llvm/compiler-rt/fix-page-size-constant.patch b/modular/llvm/compiler-rt/fix-page-size-constant.patch deleted file mode 100644 index 2c39c3a..0000000 --- a/modular/llvm/compiler-rt/fix-page-size-constant.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ruN compiler-rt-14.0.0.src.orig/lib/cfi/cfi.cpp compiler-rt-14.0.0.src/lib/cfi/cfi.cpp ---- a/compiler-rt-14.0.0.src.orig/lib/cfi/cfi.cpp 2022-03-14 10:44:55.000000000 +0100 -+++ b/compiler-rt-14.0.0.src/lib/cfi/cfi.cpp 2022-05-25 17:03:51.114415534 +0200 -@@ -51,7 +51,11 @@ - - namespace __cfi { - -+#if defined(__aarch64__) || defined(__powerpc64__) -+#define kCfiShadowLimitsStorageSize 65536 // 1 page -+#else - #define kCfiShadowLimitsStorageSize 4096 // 1 page -+#endif - // Lets hope that the data segment is mapped with 4K pages. - // The pointer to the cfi shadow region is stored at the start of this page. - // The rest of the page is unused and re-mapped read-only. diff --git a/modular/llvm/libomp/libomp.spec b/modular/llvm/libomp/libomp.spec index 439b21e..ee7b89b 100644 --- a/modular/llvm/libomp/libomp.spec +++ b/modular/llvm/libomp/libomp.spec @@ -5,41 +5,44 @@ %{llvm_sb} %endif -%global maj_ver 17 -%global libomp_version %{maj_ver}.0.2 +%global maj_ver 18 +%global min_ver 1 +%global libomp_version %{maj_ver}.%{min_ver}.6 #global rc_ver 4 %global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src -%global so_suffix %{maj_ver} +%global so_suffix %{maj_ver}.%{min_ver} %if %{with snapshot_build} %undefine rc_ver %global maj_ver %{llvm_snapshot_version_major} %global libomp_version %{llvm_snapshot_version} -%global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix} +%global so_suffix %{maj_ver}.%{min_ver}%{llvm_snapshot_version_suffix} %endif +%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src + +%global toolchain clang + # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers +%undefine __cmake_in_source_build + %ifarch ppc64le %global libomp_arch ppc64 %else %global libomp_arch %{_arch} %endif -%ifarch %{ix86} -%bcond_with testpkg -%else -%bcond_without testpkg -%endif +%global __python3 /usr/bin/python3 Name: libomp -Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}} +Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} Release: 1%{?dist} Summary: OpenMP runtime for clang -License: NCSA +License: Apache-2.0 WITH LLVM-exception OR NCSA URL: http://openmp.llvm.org %if %{with snapshot_build} Source0: %{llvm_snapshot_source_prefix}openmp-%{llvm_snapshot_yyyymmdd}.src.tar.xz @@ -49,8 +52,6 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig Source2: release-keys.asc %endif -Source3: run-lit-tests -Source4: lit.fedora.cfg.py BuildRequires: clang >= %{maj_ver} # For clang-offload-packager @@ -62,8 +63,6 @@ BuildRequires: perl BuildRequires: perl-Data-Dumper BuildRequires: perl-Encode BuildRequires: libffi-devel -# RHEL specific: libomp requires libterminfo -BuildRequires: ncurses-devel # For gpg source verification BuildRequires: gnupg2 @@ -74,9 +73,6 @@ BuildRequires: llvm-cmake-utils Requires: elfutils-libelf%{?isa} -# libomp does not support s390x. -ExcludeArch: s390x - %description OpenMP runtime for clang. @@ -88,23 +84,6 @@ Requires: clang-resource-filesystem%{?isa} = %{version} %description devel OpenMP header files. -%if %{with testpkg} - -%package test -Summary: OpenMP regression tests -Requires: %{name}%{?isa} = %{version}-%{release} -Requires: %{name}-devel%{?isa} = %{version}-%{release} -Requires: clang -Requires: llvm -Requires: gcc -Requires: gcc-c++ -Requires: python3-lit - -%description test -OpenMP regression tests - -%endif - %prep %if %{without snapshot_build} %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' @@ -112,13 +91,7 @@ OpenMP regression tests %autosetup -n %{libomp_srcdir} -p2 %build -%undefine __cmake_in_source_build - -# LTO causes build failures in this package. Disable LTO for now -# https://bugzilla.redhat.com/show_bug.cgi?id=1988155 -%define _lto_cflags %{nil} - -%cmake -GNinja \ +%cmake -GNinja \ -DLIBOMP_INSTALL_ALIASES=OFF \ -DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \ -DLLVM_DIR=%{_libdir}/cmake/llvm \ @@ -131,6 +104,7 @@ OpenMP regression tests %if %{with snapshot_build} -DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \ %endif + -DPython3_EXECUTABLE=%{__python3} \ -DCMAKE_SKIP_RPATH:BOOL=ON %cmake_build @@ -139,40 +113,11 @@ OpenMP regression tests %install %cmake_install -%if %{with testpkg} -# Test package setup -%global libomp_srcdir %{_datadir}/libomp/src/ -%global libomp_testdir %{libomp_srcdir}/runtime/test/ -%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py -%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py - -# Install test files -install -d %{buildroot}%{libomp_srcdir}/runtime -cp -R runtime/test %{buildroot}%{libomp_srcdir}/runtime -cp -R runtime/src %{buildroot}%{libomp_srcdir}/runtime - -# Generate lit config files. Strip off the last line that initiates the -# test run, so we can customize the configuration. -head -n -1 %{_vpath_builddir}/runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg} - -# Install custom fedora config file -cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg} - -# Patch lit config files to load custom fedora config -echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_cfg} - -# Install test script -install -d %{buildroot}%{_libexecdir}/tests/libomp -install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp - - -%endif - # Remove static libraries with equivalent shared libraries rm -rf %{buildroot}%{_libdir}/libarcher_static.a %check -%cmake_build --target check-openmp || true +%cmake_build --target check-openmp %files %license LICENSE.TXT @@ -183,14 +128,18 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %endif %ifnarch %{ix86} %{arm} # libomptarget is not supported on 32-bit systems. +# s390x does not support the offloading plugins. +%ifnarch s390x %{_libdir}/libomptarget.rtl.amdgpu.so.%{so_suffix} %{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix} %{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix} +%endif %{_libdir}/libomptarget.so.%{so_suffix} %endif %files devel %{_prefix}/lib/clang/%{maj_ver}/include/omp.h +%{_prefix}/lib/clang/%{maj_ver}/include/ompx.h %ifnarch %{arm} %{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h %{_prefix}/lib/clang/%{maj_ver}/include/ompt.h @@ -199,9 +148,12 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %{_libdir}/cmake/openmp/FindOpenMPTarget.cmake %ifnarch %{ix86} %{arm} # libomptarget is not supported on 32-bit systems. +# s390x does not support the offloading plugins. +%ifnarch s390x %{_libdir}/libomptarget.rtl.amdgpu.so %{_libdir}/libomptarget.rtl.cuda.so %{_libdir}/libomptarget.rtl.%{libomp_arch}.so +%endif %{_libdir}/libomptarget.devicertl.a %{_libdir}/libomptarget-amdgpu-*.bc %{_libdir}/libomptarget-nvptx-*.bc @@ -209,124 +161,381 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %endif %{_datadir}/gdb/python/ompd/* -%if %{with testpkg} -%files test -%{_datadir}/libomp -%{_libexecdir}/tests/libomp/ -%endif - %changelog -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Fri May 03 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release + +* Wed Apr 17 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Fri Mar 22 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Wed Mar 13 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Thu Feb 29 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Thu Jan 25 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 17.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +%{?llvm_snapshot_changelog_entry} + +* Wed Nov 29 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Wed Nov 01 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Wed Oct 18 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Thu Oct 05 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Sat Jul 15 2023 Tom Stellard - 16.0.6-3 -- Remove duplicated installed binaries +* Mon Sep 25 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Wed Jul 05 2023 Tom Stellard - 16.0.6-2 -- Add explict libomp requres to libomp-devel +* Mon Sep 11 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 -* Fri Jun 23 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Fri Aug 25 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 -* Fri Apr 28 2023 Tom Stellard - 16.0.0-1 -- Release 16.0.0 +* Wed Aug 23 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 +* Wed Aug 02 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Thu Jul 20 2023 Fedora Release Engineering - 16.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Wed Jun 28 2023 Tulio Magno Quites Machado Filho - 16.0.5-4 +- Specify the required clang version at build time + +* Sat Jun 17 2023 Tom Stellard - 16.0.5-3 +- Remove libomp-test package + +* Thu Jun 15 2023 Nikita Popov - 16.0.5-2 +- Use llvm-cmake-utils package + +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Wed May 10 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Thu Apr 27 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Wed Apr 19 2023 Tulio Magno Quites Machado Filho - 16.0.1-3 +- Bump the release. Fix rhbz#2187642. + +* Tue Apr 18 2023 Tulio Magno Quites Machado Filho - 16.0.1-2 +- Be explicit about libomp-devel denpending on libomp. Fix rhbz#2187642. + +* Thu Apr 13 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Tue Mar 21 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Wed Mar 15 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Thu Feb 23 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Tue Feb 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Tue Jan 31 2023 Tulio Magno Quites Machado Filho - 15.0.7-5 +- Include the Apache license adopted in 2019. + +* Fri Jan 20 2023 Tom Stellard - 15.0.7-4 +- Omit frame pointers when building + +* Fri Jan 20 2023 Nikita Popov - 15.0.7-3 +- Fix build against GCC 13 + +* Thu Jan 19 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 13 2023 Nikita Popov - 15.0.7-1 - Update to LLVM 15.0.7 +* Tue Dec 06 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Mon Nov 07 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Mon Sep 12 2022 Nikita Popov - 15.0.0-3 +- Re-enable LTO build + +* Mon Sep 12 2022 Nikita Popov - 15.0.0-2 +- Add explicit requires from libomp-devel to libomp + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Wed Aug 10 2022 Tom Stellard - 14.0.6-2 -- Drop -test sub-package on i686 +* Thu Jul 21 2022 Fedora Release Engineering - 14.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Tue Jun 28 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Mon Jun 20 2022 Timm Bäder - 14.0.5-1 +- 14.0.5 Release -* Wed May 18 2022 Timm Bäder - 14.00-2 -- Backport 40d3a0ba4d9e5452c0a68cfdaa8e88eb8ed5c63d to - fix a strict aliasing issue. +* Thu Mar 24 2022 Timm Bäder - 14.0.0-1 +- 14.0.0 Release -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 -- Update to 14.0.0 +* Thu Feb 03 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final -* Thu Feb 03 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Tue Jan 25 2022 Nikita Popov - 13.0.1~rc3-2 +- Update to LLVM 13.0.1rc3 -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Thu Jan 20 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jan 13 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 + +* Mon Jan 10 2022 Nikita Popov - 13.0.1~rc1-1 +- Update to LLVM 13.0.1rc1 + +* Sat Jan 08 2022 Miro Hrončok - 13.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 + +* Mon Oct 04 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Tue Sep 21 2021 Tom Stellard - 13.0.0~rc3-1 +- 13.0.0-rc3 Release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 release +* Mon Aug 09 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.0 final release +* Thu Jul 22 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Mon Sep 21 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +* Tue Jul 13 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Thu Jul 01 2021 Tom Stellard - 12.0.1~rc3-1 +- Fix install path + +* Fri Jun 04 2021 Tom Stellard - 12.0.1~rc1-2 +- Fix install path + +* Tue Jun 01 2021 Tom Stellard - 12.0.1~rc1-1 +- 12.0.1-rc1 Release + +* Fri Apr 16 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release + +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.7.rc5 +- New upstream release candidate + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.6.rc4 +- New upstream release candidate + +* Wed Mar 31 2021 Jonathan Wakely - 12.0.0-0.5.rc3 +- Rebuilt for removed libstdc++ symbols (#1937698) + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3 +- LLVM 12.0.0 rc3 + +* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.3.rc2 +- rebuilt + +* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2 +- 12.0.0-rc2 release + +* Mon Feb 22 2021 sguelton@redhat.com - 12.0.0-0.1.rc1 +- 12.0.0-rc1 release + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-0.3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2 +- llvm 11.1.0-rc2 release + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Wed Jan 06 2021 Serge Guelton - 11.0.1-3 +- LLVM 11.0.1 final + +* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2 +- llvm 11.0.1-rc2 + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- llvm 11.0.1-rc1 + +* Wed Oct 28 2020 Tom Stellard - 11.0.0-2 +- Replace clang-devel dependency with clang-resource-filesystem + +* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 +- Fix NVR + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6 +- 11.0.0-rc6 + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Tue Sep 01 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 final +* Mon Aug 10 2020 Tom Stellard - 11.0.0-0.1.rc1 +- 11.0.0-rc1 Release -* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2 -- Better dependency specification, see rhbz#1841180 +* Mon Aug 10 2020 sguelton@redhat.com - 10.0.0-8 +- Make gcc dependency explicit, see https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires +- use %%license macro -* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1 +* Sat Aug 08 2020 Jeff Law - 10.0.0-7 +- Disable LTO for now + +* Sat Aug 01 2020 Fedora Release Engineering - 10.0.0-6 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 10.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-4 +- Use modern cmake macro +- Use gnupg verify + +* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-3 +- Add Requires: libomp = %%{version}-%%{release} to libomp-test to avoid + the need to test interoperability between the various combinations of old + and new subpackages. + +* Mon Jun 01 2020 sguelton@redhat.com - 10.0.0-2 +- Add Requires: libomp-devel = %%{version}-%%{release} to libomp-test to avoid + the need to test interoperability between the various combinations of old + and new subpackages. + +* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1 - 10.0.0 final +* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6 +- 10.0.0 rc6 + +* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5 +- 10.0.0 rc5 + +* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4 +- 10.0.0 rc4 + +* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3 +- 10.0.0 rc3 + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2 +- 10.0.0 rc2 + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Wed Jan 29 2020 Fedora Release Engineering - 9.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Dec 19 2019 Tom Stellard - 9.0.1-1 - 9.0.1 Release -* Fri Sep 27 2019 Tom Stellard - 9.0.0-1 +* Thu Sep 19 2019 Tom Stellard - 9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 release +* Thu Aug 22 2019 Tom Stellard - 9.0.0-0.1.rc3 +- 9.0.0-rc3 Release -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Thu Jul 25 2019 Fedora Release Engineering - 8.0.0-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild -* Mon Apr 29 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Thu Apr 25 2019 Tom Stellard - 8.0.0-2 +- Simplify libomp-test package -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final + +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.3.rc4 +- 8.0.0 Release candidate 4 + +* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 + +* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 + +* Fri Feb 01 2019 Fedora Release Engineering - 7.0.1-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1 - 7.0.1 Release -* Wed Dec 12 2018 Tom Stellard - 7.0.1-0.2.rc3 -- Fix test failures on single-core systems +* Wed Sep 12 2018 Tom Stellard - 7.0.0-1 +- 7.0.1 Release -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.1.rc3 -- 7.0.1-rc3 Release +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.2.rc3 +- 7.0.0-rc3 Release -* Tue Nov 27 2018 Tom Stellard - 7.0.0-1 -- 7.0.0 Release +* Tue Aug 14 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.1-rc1 Release -* Sat Nov 10 2018 Tom Stellard - 6.0.1-3 -- Don't build libomp-test on i686 +* Fri Jul 13 2018 Fedora Release Engineering - 6.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Mon Oct 01 2018 Tom Stellard - 6.0.1-2 -- Drop scl macros +* Mon Jul 02 2018 Tom Stellard - 6.0.1-2 +- Add -threads option to runtest.sh -* Wed Jul 11 2018 Tom Stellard - 6.0.1-1 +* Thu Jun 28 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release -* Mon Jan 15 2018 Tom Stellard - 5.0.1-2 -- Drop ExcludeArch: ppc64 +* Fri May 11 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.1-rc1 Release + +* Wed Mar 28 2018 Tom Stellard - 6.0.0-3 +- Add test package + +* Wed Mar 28 2018 Tom Stellard - 6.0.0-2 +- Enable libomptarget plugins + +* Fri Mar 09 2018 Tom Stellard - 6.0.0-1 +- 6.0.0 Release + +* Tue Feb 13 2018 Tom Stellard - 6.0.0-0.3.rc2 +- 6.0.0-rc2 Release + +* Wed Feb 07 2018 Fedora Release Engineering - 6.0.0-0.2.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 25 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.0-rc1 Release * Thu Dec 21 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release. -* Wed Jun 21 2017 Tom Stellard - 4.0.1-1 -- 4.0.1 Release. - -* Wed Jun 07 2017 Tom Stellard - 4.0.0-3 -- Rename libopenmp->libomp - -* Fri May 26 2017 Tom Stellard - 4.0.0-2 -- Disable build on s390x - -* Mon May 15 2017 Tom Stellard - 4.0.0-1 +* Mon May 15 2017 Tom Stellard - 5.0.0-1 - Initial version. diff --git a/modular/llvm/libomp/lit.fedora.cfg.py b/modular/llvm/libomp/lit.fedora.cfg.py deleted file mode 100644 index fe0fa89..0000000 --- a/modular/llvm/libomp/lit.fedora.cfg.py +++ /dev/null @@ -1,15 +0,0 @@ -import tempfile - -compiler = '%(libomp_compiler)s' % lit_config.params -config.test_filecheck = '%(bindir)s/FileCheck' % lit_config.params -config.omp_header_directory = '%(includedir)s' % lit_config.params -config.libomp_obj_root = tempfile.mkdtemp() -config.library_dir = '%(libdir)s' % lit_config.params -test_root = '%(libomp_test_root)s' % lit_config.params - -# Lit will default to the compiler used to build openmp, which is gcc, but we -# want to run the tests using clang. -config.test_compiler_features = ['clang', 'clang-11'] -config.test_c_compiler = 'clang' -config.test_cxx_compiler = 'clang++' -lit_config.load_config(config, '%(libomp_test_root)s/lit.cfg' % lit_config.params) diff --git a/modular/llvm/libomp/run-lit-tests b/modular/llvm/libomp/run-lit-tests deleted file mode 100644 index f7e908e..0000000 --- a/modular/llvm/libomp/run-lit-tests +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/bash - -set -e - -usage() { - echo "usage: `basename $0` [OPTIONS]" - echo " --threads NUM The number of threads to use for running tests." -} - - -threads_arg='' - -while [ $# -gt 0 ]; do - case $1 in - --threads) - shift - threads_arg="--threads $1" - ;; - --multilib-arch) - shift - ARCH=$1 - ;; - * ) - echo "unknown option: $1" - echo "" - usage - exit 1 - ;; - esac - shift -done - - -set -xe - -if [ -z "$ARCH" ]; then - ARCH=`rpm --eval '%_arch'` -fi - -case $ARCH in - arm) - ;& - i686) - LIB_DIR="/usr/lib/" - ;; - *) - LIB_DIR="/usr/lib64/" - ;; -esac - -BIN_DIR="/usr/bin/" -INCLUDE_DIR="/usr/include/" - -lit $threads_arg -v \ - --config-prefix $ARCH \ - -Dlibomp_compiler=clang \ - -Dbindir=$BIN_DIR \ - -Dlibdir=$LIB_DIR \ - -Dincludedir=$INCLUDE_DIR \ - -Dlibomp_test_root=/usr/share/libomp/src/runtime/test \ - /usr/share/libomp/src/runtime/test - -exit 0 diff --git a/modular/llvm/lld/lld.spec b/modular/llvm/lld/lld.spec index 43049d6..ecceb68 100644 --- a/modular/llvm/lld/lld.spec +++ b/modular/llvm/lld/lld.spec @@ -6,6 +6,8 @@ %{llvm_sb} %endif +%global toolchain clang + # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers @@ -13,9 +15,9 @@ %bcond_without check %bcond_with compat_build -%global maj_ver 17 -%global min_ver 0 -%global patch_ver 2 +%global maj_ver 18 +%global min_ver 1 +%global patch_ver 6 #global rc_ver 4 %if %{with snapshot_build} @@ -35,22 +37,25 @@ %global install_includedir %{install_prefix}/include %global install_libdir %{install_prefix}/lib %global install_datadir %{install_prefix}/share +%global install_bindir %{install_prefix}/bin %else %global pkg_name lld %global install_prefix /usr %global install_includedir %{_includedir} %global install_libdir %{_libdir} %global install_datadir %{_datadir} +%global install_bindir %{_bindir} %endif -%bcond_with ld_alternative +%global __python3 /usr/bin/python3 +%undefine __cmake_in_source_build Name: %{pkg_name} Version: %{lld_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} Release: 1%{?dist} Summary: The LLVM Linker -License: NCSA +License: Apache-2.0 WITH LLVM-exception OR NCSA URL: http://llvm.org %if %{with snapshot_build} Source0: %{llvm_snapshot_source_prefix}lld-%{llvm_snapshot_yyyymmdd}.src.tar.xz @@ -61,14 +66,10 @@ Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{maj_ve Source2: release-keys.asc %endif -ExcludeArch: s390x - # Bundle libunwind header need during build for MachO support Patch1: 0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch - -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: clang BuildRequires: cmake BuildRequires: ninja-build %if %{with compat_build} @@ -82,7 +83,6 @@ BuildRequires: llvm-googletest = %{version} %endif BuildRequires: ncurses-devel BuildRequires: zlib-devel -BuildRequires: python3-devel # For make check: BuildRequires: python3-rpm-macros @@ -91,10 +91,8 @@ BuildRequires: python3-lit # For gpg source verification BuildRequires: gnupg2 -%if %{with ld_alternative} -Requires(post): %{_sbindir}/alternatives -Requires(preun): %{_sbindir}/alternatives -%endif +Requires(post): %{_sbindir}/update-alternatives +Requires(preun): %{_sbindir}/update-alternatives Requires: %{name}-libs = %{version}-%{release} @@ -109,6 +107,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} # dependency. Requires: %{name}%{?_isa} = %{version}-%{release} %endif +Provides: %{name}-devel(major) = %{maj_ver} %description devel This package contains library and header files needed to develop new native @@ -122,24 +121,13 @@ Shared libraries for LLD. %prep %if %{without snapshot_build} -#{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %endif %autosetup -n %{lld_srcdir} -p2 -%if %{with compat_build} -# For compat builds, we don't want to build the actual lld binary. While there is an -# LLD_BUILD_TOOLS cmake option, it is incomplete in various ways (e.g. still leaves install -# targets and symlinks), so instead skip the tools/lld build entirely. -# We can't simply delete the binaries after the fact, because this would leave checks for -# their existence in the cmake exports. -sed 's/add_subdirectory(tools\/lld)//' -i CMakeLists.txt -%endif - %build -%undefine __cmake_in_source_build - %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -149,23 +137,23 @@ sed 's/add_subdirectory(tools\/lld)//' -i CMakeLists.txt -DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -DPYTHON_EXECUTABLE=%{__python3} \ -%if %{with compat_build} - -DLLVM_CMAKE_DIR=%{install_libdir}/cmake/llvm \ - -DLLVM_INCLUDE_TESTS=OFF \ -%else +%if %{with snapshot_build} + -DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \ +%endif -DLLVM_INCLUDE_TESTS=ON \ -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ -DLLVM_LIT_ARGS="-sv \ --path %{_libdir}/llvm" \ -%if %{with snapshot_build} - -DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \ -%endif +%if %{with compat_build} + -DLLVM_CMAKE_DIR=%{install_libdir}/cmake/llvm \ +%else %if 0%{?__isa_bits} == 64 -DLLVM_LIBDIR_SUFFIX=64 \ %else -DLLVM_LIBDIR_SUFFIX= \ %endif %endif + -DPython3_EXECUTABLE=%{__python3} \ -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src %cmake_build @@ -178,13 +166,21 @@ sed 's/add_subdirectory(tools\/lld)//' -i CMakeLists.txt # This is generated by Patch1 during build and (probably) must be removed afterward rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h -install -D -m 644 -t %{buildroot}%{_mandir}/man1/ docs/ld.lld.1 - -%if %{with ld_alternative} +%if %{with compat_build} +# Add version suffix to binaries +mkdir -p %{buildroot}%{_bindir} +for f in %{buildroot}/%{install_bindir}/*; do + filename=`basename $f` + ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename-%{maj_ver} +done +%else # Required when using update-alternatives: # https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/ touch %{buildroot}%{_bindir}/ld +install -D -m 644 -t %{buildroot}%{_mandir}/man1/ docs/ld.lld.1 + + %post %{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1 @@ -196,25 +192,26 @@ fi %check -%if %{without compat_build} %if %{with check} +export LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %cmake_build --target check-lld %endif +%if %{without compat_build} %ldconfig_scriptlets libs %endif -%if %{without compat_build} %files %license LICENSE.TXT -%if %{with ld_alternative} %ghost %{_bindir}/ld -%endif -%{_bindir}/lld* -%{_bindir}/ld.lld -%{_bindir}/ld64.lld -%{_bindir}/wasm-ld +%{install_bindir}/lld* +%{install_bindir}/ld.lld +%{install_bindir}/ld64.lld +%{install_bindir}/wasm-ld +%if %{without compat_build} %{_mandir}/man1/ld.lld.1* +%else +%{_bindir}/*-%{maj_ver} %endif %files devel @@ -226,110 +223,405 @@ fi %{install_libdir}/liblld*.so.* %changelog -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Thu May 02 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release + +* Wed Apr 17 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Thu Mar 21 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Tue Mar 12 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Sat Mar 02 2024 Tom Stellard - 18.1.0~rc4-2 +- Enable s390x arch + +* Wed Feb 28 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Thu Jan 25 2024 Fedora Release Engineering - 17.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +%{?llvm_snapshot_changelog_entry} + +* Mon Dec 18 2023 Jeremy Newton - 17.0.6-2 +- Add lld-devel(major) provides + +* Wed Nov 29 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Wed Nov 22 2023 Tulio Magno Quites Machado Filho - 17.0.5-1 +- Update to LLVM 17.0.5 + +* Wed Nov 01 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Wed Oct 18 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Wed Oct 04 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Fri Jun 30 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Mon Sep 25 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Fri Apr 28 2023 Tom Stellard - 16.0.0-1 -- 16.0.0 Release +* Mon Sep 11 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 +* Fri Aug 25 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Wed Aug 23 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Wed Aug 02 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Thu Jul 20 2023 Fedora Release Engineering - 16.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Tue Jun 13 2023 Nikita Popov - 16.0.5-2 +- Use llvm-cmake-utils package + +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Thu May 11 2023 Tulio Magno Quites Machado Filho - 16.0.3-2 +- Distribute the manpage. Fix rhbz#2203231 + +* Wed May 10 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Wed Apr 26 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Thu Apr 13 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Fri Mar 24 2023 Tulio Magno Quites Machado Filho - 16.0.0-2 +- Use installed llvm_gtest + +* Tue Mar 21 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Wed Mar 15 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Thu Feb 23 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Tue Feb 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Thu Jan 19 2023 Tulio Magno Quites Machado Filho - 15.0.7-3 +- Update license to SPDX identifiers. +- Include the Apache license adopted in 2019. + +* Thu Jan 19 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 13 2023 Nikita Popov - 15.0.7-1 - Update to LLVM 15.0.7 +* Mon Jan 09 2023 Tom Stellard - 15.0.6-2 +- Omit frame pointers when building + +* Tue Dec 06 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Mon Nov 14 2022 Tulio Magno Quites Machado Filho - 15.0.4-2 +- Enable LTO. + +* Mon Nov 07 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Tue Oct 11 2022 Nikita Popov - 15.0.0-2 +- Remove lld-test package + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Tue Jun 28 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Tue Aug 09 2022 Nikita Popov - 14.0.5-4 +- Backport --package-metadata flag -* Fri May 06 2022 Timm Bäder - 14.0.0-2 -- Backport ignoring --no-add-needed +* Thu Jul 21 2022 Fedora Release Engineering - 14.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 -- Update to 14.0.0 +* Mon Jul 11 2022 Konrad Kleine - 14.0.5-2 +- Set build type to RelWithDebInfo -* Thu Feb 03 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Fri Jun 17 2022 Timm Bäder - 14.0.5-1 +- Update to 14.0.5 -* Thu Dec 09 2021 Tom Stellard - 13.0.0-2 -- Drop lld-test package +* Thu Mar 31 2022 Tom Stellard - 14.0.0-2 +- Fix CI test failure: gcc-compat-basic -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Mon Feb 28 2022 Timm Bäder - 14.0.0~rc1-1 +- Update to 14.0.0rc1 + +* Thu Feb 03 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final + +* Tue Feb 01 2022 Nikita Popov - 13.0.1~rc3-1 +- Update to LLVM 13.0.1 rc3 + +* Thu Jan 20 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jan 14 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 + +* Wed Jan 12 2022 Nikita Popov - 13.0.1~rc1-1 +- Update to LLVM 13.0.1rc1 + +* Wed Oct 06 2021 Tom Stellard - 13.0.0-2 +- Rebuild for llvm soname bump + +* Fri Oct 01 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Thu Sep 30 2021 Tom Stellard - 13.0.0~rc4-1 +- 13.0.0-rc4 Release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 release +* Mon Sep 20 2021 Tom Stellard - 13.0.0~rc1-3 +- 13.0.0-rc3 Release -* Mon Nov 09 2020 sguelton@redhat.com - 11.0.0-3 -- Exclude s390x, see rhbz#1894927 +* Tue Sep 14 2021 Konrad Kleine - 13.0.0~rc1-2 +- Add --without=check option -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.0 final +* Fri Aug 06 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release -* Fri Sep 18 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +* Thu Jul 22 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jul 13 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Wed Jun 30 2021 Tom Stellard - 12.0.1~rc3-1 +- 12.0.1-rc3 Release + +* Tue Jun 01 2021 Tom Stellard - 12.0.1~rc1-1 +- 12.0.1-rc1 Release + +* Fri Apr 16 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release + +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.8.rc5 +- New upstream release candidate + +* Wed Apr 07 2021 Tom Stellard - 12.0.0-0.7.rc4 +- Set executable permissions on run-lit-tests + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.6.rc4 +- New upstream release candidate + +* Wed Mar 31 2021 Jonathan Wakely - 12.0.0-0.5.rc3 +- Rebuilt for removed libstdc++ symbols (#1937698) + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.4.rc3 +- LLVM 12.0.0 rc3 + +* Wed Mar 10 2021 sguelton@redhat.com - 12.0.0-0.3.rc2 +- rebuilt + +* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2 +- llvm 12.0.0-rc2 release + +* Tue Feb 16 2021 sguelton@redhat.com - 12.0.0-0.1.rc1 +- llvm 12.0.0-rc1 release + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-0.3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2 +- llvm 11.1.0-rc2 release + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Wed Jan 06 2021 Serge Guelton - 11.0.1-3 +- LLVM 11.0.1 final + +* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2 +- llvm 11.0.1-rc2 + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- llvm 11.0.1-rc1 + +* Thu Nov 12 2020 sguelton@redhat.com - 11.0.0-3 +- Exclude s390x, unsupported upstream + +* Mon Oct 19 2020 sguelton@redhat.com - 11.0.0-2 +- Rebuilt with all gating tests on + +* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 +- Fix NVR + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.6 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.5.rc6 +- 11.0.0-rc6 + +* Wed Oct 07 2020 sguelton@redhat.com - 11.0.0-0.4.rc5 +- Update CI tests + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Tue Sep 01 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 +* Mon Aug 10 2020 Tom Stellard - 11.0.0-0.1.rc1 +- 11.0.0-rc1 Release -* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-2 -- Fix arch-dependent tarball +* Mon Aug 10 2020 sguelton@redhat.com - 10.0.0-7 +- use %%license macro -* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1 +* Mon Aug 10 2020 Tom Stellard - 10.0.0-6 +- Disable LTO + +* Sat Aug 01 2020 Fedora Release Engineering - 10.0.0-5 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 10.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-3 +- Use generic cmake macros +- Use Ninja as build system +- Remove chrpath dependency + +* Fri Jul 17 2020 sguelton@redhat.com - 10.0.0-2 +- Make test archive arch-independent + +* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1 - 10.0.0 final +* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6 +- 10.0.0 rc6 + +* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5 +- 10.0.0 rc5 + +* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4 +- 10.0.0 rc4 + +* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3 +- 10.0.0 rc3 + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2 +- 10.0.0 rc2 + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Wed Jan 29 2020 Fedora Release Engineering - 9.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Dec 19 2019 Tom Stellard -9.0.1-1 - 9.0.1 Release -* Fri Dec 13 2019 Tom Stellard - 9.0.0-5 +* Sat Dec 14 2019 Tom Stellard - 9.0.0-6 - Fix some rpmdiff errors -* Fri Dec 13 2019 Tom Stellard - 9.0.0-4 +* Fri Dec 13 2019 Tom Stellard - 9.0.0-5 - Remove build artifacts installed with unittests +* Thu Dec 05 2019 Tom Stellard - 9.0.0-4 +- Enable GPG-based source file verification + * Thu Dec 05 2019 Tom Stellard - 9.0.0-3 - Add lld-test package * Thu Nov 14 2019 Tom Stellard - 9.0.0-2 - Add explicit lld-libs requires to fix rpmdiff errors -* Thu Sep 26 2019 Tom Stellard - 9.0.0-1 +* Thu Sep 19 2019 Tom Stellard -9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 release +* Thu Aug 22 2019 Tom Stellard - 9.0.0-0.1.rc3 +- 9.0.0-rc3 Release -* Mon Jun 17 2019 sguelton@redhat.com - 8.0.1-0.2.rc2 -- Remove unnecessary threading patch +* Tue Aug 20 2019 Tom Stellard - 8.0.0-3 +- touch /usr/bin/ld as required by the packaging guidelines for + update-alternatives -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Tue Aug 13 2019 Tom Stellard - 8.0.0-2 +- Add update-alternative for ld -* Tue Apr 16 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Thu Jul 25 2019 Fedora Release Engineering - 8.0.0-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final + +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4 +- 8.0.0 Release candidate 4 + +* Tue Mar 5 2019 sguelton@redhat.com - 8.0.0-0.4.rc3 +- Cleanup specfile after llvm specfile update + +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3 +- 8.0.0 Release candidate 3 + +* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 + +* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 + +* Fri Feb 01 2019 Fedora Release Engineering - 7.0.1-3.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 14 2019 sguelton@redhat.com - 7.0.1-3 - Fix lld + annobin integration & Setup basic CI tests -* Sat Dec 15 2018 Tom Stellard - 7.0.1-2 -- Bump required python3-lit version +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-2 +- Update lit dependency -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 -- 7.0.1-1 Release +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1 +- 7.0.1 Release -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.2.rc3 -- 7.0.1-rc3 Release +* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2 +- Ensure rpmlint passes on specfile -* Tue Nov 27 2018 Tom Stellard - 7.0.0-1 -- 7.0.0 Release +* Mon Sep 24 2018 Tom Stellard - 7.0.0-1 +- 7.0.1 Release -* Mon Oct 01 2018 Tom Stellard - 6.0.1-2 -- Drop scl macros +* Tue Sep 11 2018 Tom Stellard - 7.0.0-0.4.rc3 +- 7.0.0-rc3 Release + +* Fri Aug 31 2018 Tom Stellard - 7.0.0-0.3.rc2 +- 7.0.0-rc2 Release + +* Thu Aug 30 2018 Tom Stellard - 7.0.0-0.2.rc1 +- Enable make check + +* Mon Aug 13 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.0-rc1 Release + +* Fri Jul 13 2018 Fedora Release Engineering - 6.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release diff --git a/modular/llvm/lldb/0001-lldb-Disable-std-vector-pretty-printer.patch b/modular/llvm/lldb/0001-lldb-Disable-std-vector-pretty-printer.patch deleted file mode 100644 index e5ad0ae..0000000 --- a/modular/llvm/lldb/0001-lldb-Disable-std-vector-pretty-printer.patch +++ /dev/null @@ -1,28 +0,0 @@ -From c0e0fdd99c372096a4e018d57443f2d842bb510a Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Fri, 28 Apr 2023 15:42:55 -0700 -Subject: [PATCH] lldb: Disable std vector pretty printer - ---- - lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp | 5 ----- - 1 file changed, 5 deletions(-) - -diff --git a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp -index 1b152c16eac2..a2b7aa4672bf 100644 ---- a/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp -+++ b/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp -@@ -1089,11 +1089,6 @@ static void LoadLibStdcppFormatters(lldb::TypeCategoryImplSP cpp_category_sp) { - SyntheticChildren::Flags stl_deref_flags = stl_synth_flags; - stl_deref_flags.SetFrontEndWantsDereference(); - -- cpp_category_sp->AddTypeSynthetic( -- "^std::vector<.+>(( )?&)?$", eFormatterMatchRegex, -- SyntheticChildrenSP(new ScriptedSyntheticChildren( -- stl_synth_flags, -- "lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider"))); - cpp_category_sp->AddTypeSynthetic( - "^std::map<.+> >(( )?&)?$", eFormatterMatchRegex, - SyntheticChildrenSP(new ScriptedSyntheticChildren( --- -2.31.1 - diff --git a/modular/llvm/lldb/lldb.spec b/modular/llvm/lldb/lldb.spec index 14c6809..4894ebb 100644 --- a/modular/llvm/lldb/lldb.spec +++ b/modular/llvm/lldb/lldb.spec @@ -1,38 +1,29 @@ +%global toolchain clang + # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers -%global lldb_version 17.0.2 +%undefine __cmake_in_source_build + +%global lldb_version 18.1.6 #global rc_ver 4 %global lldb_srcdir %{name}-%{lldb_version}%{?rc_ver:rc%{rc_ver}}.src -%ifarch ppc64le -# Too many threads on some systems causes OOM errors. -%global _smp_mflags -j8 -%endif +%global __python3 /usr/bin/python3 Name: lldb Version: %{lldb_version}%{?rc_ver:~rc%{rc_ver}} Release: 1%{?dist} Summary: Next generation high-performance debugger -License: NCSA +License: Apache-2.0 WITH LLVM-exception OR NCSA URL: http://lldb.llvm.org/ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz.sig Source2: release-keys.asc -# There is a problem with the debug info generated by the -# GCC version we ship in RHEL 8. It somehow makes it very -# hard for lldb to inspect std::vector types. -# Disable the pretty-printer for now, since otherwise -# such vectors look empty to the developer even though -# they aren't. -# See https://bugzilla.redhat.com/show_bug.cgi?id=2082508 -Patch002: 0001-lldb-Disable-std-vector-pretty-printer.patch - -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: clang BuildRequires: cmake BuildRequires: ninja-build BuildRequires: llvm-devel = %{version} @@ -40,7 +31,7 @@ BuildRequires: llvm-test = %{version} BuildRequires: llvm-cmake-utils = %{version} BuildRequires: clang-devel = %{version} BuildRequires: ncurses-devel -BuildRequires: swig +BuildRequires: swig >= 4.0 BuildRequires: llvm-static = %{version} BuildRequires: libffi-devel BuildRequires: zlib-devel @@ -48,6 +39,7 @@ BuildRequires: libxml2-devel BuildRequires: libedit-devel BuildRequires: python3-lit BuildRequires: multilib-rpm-config +BuildRequires: doxygen Requires: python3-lldb @@ -79,15 +71,11 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The package contains the LLDB Python module. %prep -#{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -n %{lldb_srcdir} -p2 %build - -%undefine __cmake_in_source_build - -CFLAGS="%{optflags} -Wno-error=format-security" -CXXFLAGS="%{optflags} -Wno-error=format-security" +%global _lto_cflags -flto=thin %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -104,7 +92,7 @@ CXXFLAGS="%{optflags} -Wno-error=format-security" -DLLVM_LIBDIR_SUFFIX= \ %endif \ - -DPYTHON_EXECUTABLE:STRING=%{__python3} \ + -DPython3_EXECUTABLE=%{__python3} \ -DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \ -DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \ -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ @@ -123,6 +111,9 @@ CXXFLAGS="%{optflags} -Wno-error=format-security" # remove static libraries rm -fv %{buildroot}%{_libdir}/*.a +# remove unused lua bindings +rm -rf %{buildroot}%{_prefix}/lib/lua + # python: fix binary libraries location liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so)) ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so @@ -139,144 +130,434 @@ rm -f %{buildroot}%{python3_sitearch}/six.* %files %license LICENSE.TXT %{_bindir}/lldb* +# Usually, *.so symlinks are kept in devel subpackages. However, the python +# bindings depend on this symlink at runtime. +%{_libdir}/*.so %{_libdir}/liblldb.so.* %{_libdir}/liblldbIntelFeatures.so.* %files devel %{_includedir}/lldb -%{_libdir}/*.so %files -n python3-lldb %{python3_sitearch}/lldb %changelog -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Fri May 03 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release + +* Wed Apr 17 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Mon Mar 25 2024 Tulio Magno Quites Machado Filho - 18.1.2-2 +- Move liblldb symlink to the main package. Fix rhbz#2260611. + +* Fri Mar 22 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Tue Mar 12 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Wed Feb 28 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Thu Jan 25 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 17.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Nov 29 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Wed Nov 01 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Wed Oct 18 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Wed Oct 04 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Fri Jun 23 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Mon Sep 25 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Fri Apr 28 2023 Tom Stellard - 16.0.0-1 -- 16.0.0 Release +* Mon Sep 11 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 +* Fri Aug 25 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Wed Aug 23 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Wed Aug 02 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Thu Jul 20 2023 Fedora Release Engineering - 16.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Fri Jun 16 2023 Python Maint - 16.0.5-4 +- Rebuilt for Python 3.12 + +* Thu Jun 15 2023 Nikita Popov - 16.0.5-3 +- Use llvm-cmake-utils package + +* Thu Jun 15 2023 Python Maint - 16.0.5-2 +- Rebuilt for Python 3.12 + +* Tue Jun 06 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 + +* Fri May 19 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Wed May 10 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Wed Apr 26 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Thu Apr 13 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Tue Mar 21 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Wed Mar 15 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Thu Feb 23 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Tue Feb 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Thu Jan 19 2023 Tulio Magno Quites Machado Filho - 15.0.7-3 +- Include the Apache license adopted in 2019. + +* Thu Jan 19 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 13 2023 Nikita Popov - 15.0.7-1 - Update to LLVM 15.0.7 +* Thu Jan 12 2023 Tom Stellard - 15.0.6-2 +- Omit frame pointers when building + +* Tue Dec 06 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Mon Nov 07 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Tue Oct 18 2022 Nikita Popov - 15.0.0-3 +- Fix crash on ppc64le (fix rhbz#2121369) + +* Mon Oct 03 2022 sguelton@redhat.com - 15.0.0-2 +- Backport compat patches for swig 4.1.0, see rhbz#2128646 + * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Tue Jun 28 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Tue Aug 09 2022 Nikita Popov - 14.0.5-3 +- Fix s390x build -* Wed Jun 08 2022 Timm Bäder - 14.0.0-2 -- Disable libstdc++ std::vector prettyprinter +* Thu Jul 21 2022 Fedora Release Engineering - 14.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 +* Mon Jun 20 2022 Timm Bäder - 14.0.5-1 +- Update to 14.0.5 + +* Mon Jun 13 2022 Python Maint - 14.0.0-2 +- Rebuilt for Python 3.11 + +* Wed Mar 23 2022 Timm Bäder - 14.0.0-1 - Update to 14.0.0 -* Thu Feb 03 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Thu Feb 03 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Thu Jan 20 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jan 14 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 + +* Wed Jan 12 2022 Nikita Popov - 13.0.1~rc1-1 +- Update to LLVM 13.0.1rc1 + +* Fri Oct 01 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 +* Wed Sep 22 2021 Tom Stellard - 13.0.0~rc3-1 +- 13.0.0-rc3 Release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 +* Mon Aug 09 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.0 final +* Thu Jul 22 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Fri Sep 18 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 +* Wed Jul 14 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Thu Jul 01 2021 Tom Stellard - 12.0.0~rc3-1 +- 12.0.0-rc3 Release + +* Fri Jun 04 2021 Python Maint - 12.0.1~rc1-2 +- Rebuilt for Python 3.10 + +* Thu Jun 03 2021 Tom Stellard - 12.0.0~rc1-1 +- 12.0.0-rc1 Release + +* Fri Apr 16 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release + +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-11.rc5 +- New upstream release candidate + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-10.rc4 +- New upstream release candidate + +* Wed Mar 31 2021 Jonathan Wakely - 12.0.0-9.rc3 +- Rebuilt for removed libstdc++ symbols (#1937698) + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-8.rc3 +- LLVM 12.0.0 rc3 + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-7.rc2 +- rebuilt + +* Tue Mar 02 2021 sguelton@redhat.com - 12.0.0-6.rc2 +- Update test regexp + +* Tue Mar 02 2021 sguelton@redhat.com - 12.0.0-5.rc2 +- Improve CI debugging + +* Tue Mar 02 2021 sguelton@redhat.com - 12.0.0-4.rc2 +- Apply upstream D97721 + +* Mon Mar 01 2021 sguelton@redhat.com - 12.0.0-3.rc2 +- Update CI test + +* Thu Feb 25 2021 sguelton@redhat.com - 12.0.0-0.2.rc2 +- 12.0.0-rc2 release + +* Wed Feb 17 2021 sguelton@redhat.com - 12.0.0-0.1.rc1 +- 12.0.0-rc1 release + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-2.rc2 +- llvm 11.1.0-rc2 release + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Wed Jan 06 2021 Serge Guelton - 11.0.1-3 +- LLVM 11.0.1 final + +* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2 +- llvm 11.0.1-rc2 + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- llvm 11.0.1-rc1 + +* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1 +- Fix NVR + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6 +- 11.0.0-rc6 + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Tue Sep 01 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 +* Mon Aug 10 2020 Tom Stellard - 11.0.0-0.1.rc1 +- 11.0.0-rc1 Release -* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2 -- Fix multilib integration, see rhbz#1841073 +* Wed Jul 29 2020 sguelton@redhat.com - 10.0.0-8 +- Make gcc dependency explicit, see https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires +- use %%license macro -* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1 +* Tue Jul 28 2020 Fedora Release Engineering - 10.0.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 sguelton@redhat.com - 10.0.0-6 +- Use ninja and according macros as build system + +* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-5 +- Finer grain specification of python3-lldb deps + +* Tue Jun 02 2020 sguelton@redhat.com - 10.0.0-4 +- Fix arch-dependent header + +* Tue Jun 02 2020 sguelton@redhat.com - 10.0.0-3 +- Instruct cmake not to generate RPATH + +* Tue May 26 2020 Miro Hrončok - 10.0.0-2 +- Rebuilt for Python 3.9 + +* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1 - 10.0.0 final -* Sat Dec 21 2019 Tom Stellard - 9.0.1-1 +* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6 +- 10.0.0 rc6 + +* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5 +- 10.0.0 rc5 + +* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4 +- 10.0.0 rc4 + +* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3 +- 10.0.0 rc3 + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2 +- 10.0.0 rc2 + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Wed Jan 29 2020 Tom Stellard - 9.0.1-4 +- Link against libclang-cpp.so +- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package + +* Wed Jan 29 2020 Fedora Release Engineering - 9.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Dec 21 2019 Tom Stellard - 9.0.1-2 - 9.0.1 Release -* Fri Oct 04 2019 Tom Stellard - 9.0.0-2 -- Disable readline module to work-around segafult - -* Fri Sep 27 2019 Tom Stellard - 9.0.0-1 +* Thu Sep 19 2019 Tom Stellard - 9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 release +* Thu Aug 22 2019 Tom Stellard - 9.0.0-0.1.rc3 +- 9.0.0-rc3 Release -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Mon Aug 19 2019 Miro Hrončok - 8.0.0-2.2 +- Rebuilt for Python 3.8 -* Tue Apr 16 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Thu Jul 25 2019 Fedora Release Engineering - 8.0.0-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild -* Mon Dec 17 2018 Tom Stellard - 7.0.1-2 -- Fix multilib conflict +* Tue Mar 26 2019 sguelton@redhat.com - 8.0.0-2 +- Only depend on Python3 -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final + +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4 +- 8.0.0 Release candidate 4 + +* Tue Mar 5 2019 sguelton@redhat.com - 8.0.0-0.3.rc3 +- 8.0.0 Release candidate 3 + +* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 + +* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 + +* Fri Feb 01 2019 Fedora Release Engineering - 7.0.1-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1 - 7.0.1 Release -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.1.rc3 -- 7.0.1-rc3 Release +* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2 +- Ensure rpmlint passes on specfile -* Thu Dec 06 2018 Tom Stellard - 6.0.1-7 -- Re-enable python module for real +* Tue Sep 25 2018 Tom Stellard - 7.0.0-1 +- 7.0.0 Release -* Wed Oct 03 2018 Tom Stellard - 6.0.1-6 -- Re-enable python module and fix build with python3 +* Fri Sep 21 2018 Tom Stellard - 7.0.0-0.5.rc3 +- lldb should depend on python2-lldb -* Wed Oct 03 2018 Tom Stellard - 6.0.1-5 -- Disable python module +* Mon Sep 17 2018 Tom Stellard - 7.0.0-0.4.rc3 +- 7.0.0-rc3 Release -* Mon Oct 01 2018 Tom Stellard - 6.0.1-4 -- Drop scl macros +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.3.rc2 +- Enable build on s390x -* Tue Aug 28 2018 Tom Stellard - 6.0.1-3 -- Re-enable python module +* Fri Aug 31 2018 Tom Stellard - 7.0.0-0.2.rc2 +- 7.0.0-rc2 Release -* Tue Aug 07 2018 Tom Stellard - 6.0.1-2 -- Install ld.so.conf file in the root filesystem +* Tue Aug 14 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.1-rc1 Release -* Wed Jul 11 2018 Tom Stellard - 6.0.1-1 +* Tue Aug 07 2018 Tom Stellard - 6.0.1-3 +- Enable ppc64le arch + +* Fri Jul 13 2018 Fedora Release Engineering - 6.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon May 21 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release -* Thu Jan 25 2018 Tom Stellard - 5.0.1-3 -- Drop explicit dependencies for llvm-libs and clang-libs +* Mon May 21 2018 Tom Stellard - 6.0.1-0.1.rc1 +- 6.0.1-rc1 Release -* Tue Jan 16 2018 Tom Stellard - 5.0.1-2 -- Rebuid for i686 +* Sat May 05 2018 Miro Hrončok - 6.0.0-4 +- Update Python macros to new packaging standards + (See https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build) -* Thu Jan 11 2018 Tom Stellard - 5.0.1-1 +* Tue Mar 20 2018 Tom Stellard - 6.0.0-3 +- Rebuild against llvm with the rhbz#1558657 fix + +* Wed Mar 14 2018 Tilmann Scheller - 6.0.0-2 +- Restore LLDB SB API headers, fixes rhbz#1548758 + +* Fri Mar 09 2018 Tom Stellard - 6.0.0-1 +- 6.0.0 Release + +* Tue Feb 13 2018 Tom Stellard - 6.0.0-0.3.rc2 +- 6.0.0-rc2 release + +* Thu Feb 08 2018 Fedora Release Engineering - 6.0.0-0.2.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 25 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.1-rc1 Release + +* Thu Dec 21 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release -* Wed Aug 16 2017 Tom Stellard - 4.0.1-4 -- Fix crash when loading Fedora debuginfo - Resloves: #1479529 +* Fri Oct 06 2017 Tom Stellard - 5.0.0-1 +- 5.0.0 Release + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 4.0.1-4 +- Python 2 binary package renamed to python2-lldb + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Mon Jul 31 2017 Jan Kratochvil - 4.0.1-3 - Backport lldb r303907 - Resolves: #1356140 + Resolves rhbz #1356140 -* Thu Jun 22 2017 Tom Stellard - 4.0.1-2 -- Fix requires for python-lldb +* Wed Jul 26 2017 Fedora Release Engineering - 4.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild -* Wed Jun 21 2017 Tom Stellard - 4.0.1-1 -- Build for llvm-toolset-7 rename +* Mon Jun 26 2017 Tom Stellard - 4.0.1-1 +- 4.0.1 Release -* Wed Jun 07 2017 Tom Stellard - 4.0.0-3 -- Build for llvm-toolset-7 rename - -* Thu May 18 2017 Tom Stellard - 4.0.0-2 -- Fix Requires +* Mon May 15 2017 Fedora Release Engineering - 4.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Mar 24 2017 Tom Stellard - 4.0.0-1 - lldb 4.0.0 diff --git a/modular/llvm/llvm/0101-Deactivate-markdown-doc.patch b/modular/llvm/llvm/0101-Deactivate-markdown-doc.patch index 603cb39..a8409aa 100644 --- a/modular/llvm/llvm/0101-Deactivate-markdown-doc.patch +++ b/modular/llvm/llvm/0101-Deactivate-markdown-doc.patch @@ -1,26 +1,13 @@ -diff -Naur a/llvm/docs/conf.py b/llvm/docs/conf.py ---- a/llvm/docs/conf.py 2020-09-15 09:12:24.318287611 +0000 -+++ b/llvm/docs/conf.py 2020-09-15 15:01:00.025893199 +0000 -@@ -36,21 +36,7 @@ - ".rst": "restructuredtext", - } +diff --git a/llvm/docs/conf.py b/llvm/docs/conf.py +index cf8a75980b53..b208ad138e89 100644 +--- a/llvm/docs/conf.py ++++ b/llvm/docs/conf.py +@@ -26,7 +26,7 @@ from datetime import date --try: -- import recommonmark --except ImportError: -- # manpages do not use any .md sources -- if not tags.has("builder-man"): -- raise --else: -- import sphinx -- -- if sphinx.version_info >= (3, 0): -- # This requires 0.5 or later. -- extensions.append("recommonmark") -- else: -- source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} -- source_suffix[".md"] = "markdown" -+import sphinx + # Add any Sphinx extension module names here, as strings. They can be extensions + # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +-extensions = ["myst_parser", "sphinx.ext.intersphinx", "sphinx.ext.todo"] ++extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo"] - # The encoding of source files. - # source_encoding = 'utf-8-sig' + # Automatic anchors for markdown titles + from llvm_slug import make_slug diff --git a/modular/llvm/llvm/llvm.spec b/modular/llvm/llvm/llvm.spec index 4874fe2..98adcd5 100644 --- a/modular/llvm/llvm/llvm.spec +++ b/modular/llvm/llvm/llvm.spec @@ -13,6 +13,8 @@ # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 %undefine _include_frame_pointers +%undefine __cmake_in_source_build + # Components enabled if supported by target architecture: %define gold_arches %{ix86} x86_64 aarch64 %{power64} s390x %ifarch %{gold_arches} @@ -24,16 +26,20 @@ %bcond_with compat_build %bcond_without check -%ifarch %ix86 +%ifarch %ix86 riscv64 # Disable LTO on x86 in order to reduce memory consumption %bcond_with lto_build %else +%if %{with snapshot_build} +# Disable LTO to speed up builds +%bcond_with lto_build +%endif %bcond_without lto_build %endif -%global maj_ver 17 -%global min_ver 0 -%global patch_ver 2 +%global maj_ver 18 +%global min_ver 1 +%global patch_ver 6 #global rc_ver 4 %if %{with snapshot_build} @@ -88,34 +94,6 @@ # The executable Python scripts in /usr/share/opt-viewer/ import each other %undefine _py3_shebang_P -################################################################################ -# OS Specific Configuration -################################################################################ - -######## -# RHEL # -######## -%if 0%{?rhel} -%global _smp_mflags -j8 - -%if 0%{?rhel} == 8 -%undefine __cmake_in_source_build - -# libedit-devel is a buildroot-only package in RHEL8, so we can't have a -# any run-time depencies on it. -%global use_libedit 0 -%endif - -%if 0%{?rhel} > 8 -%global use_libedit 1 -%endif -%endif - -################################################################################ -# Spec File -################################################################################ - - Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} Release: 2%{?dist} @@ -138,7 +116,7 @@ Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{maj_ve Source6: release-keys.asc %endif -# RHEL-specific patch to avoid unwanted recommonmark dep +# RHEL-specific patch to avoid unwanted python3-myst-parser dep Patch101: 0101-Deactivate-markdown-doc.patch BuildRequires: gcc @@ -152,7 +130,7 @@ BuildRequires: ncurses-devel BuildRequires: python3-psutil BuildRequires: python3-sphinx %if %{undefined rhel} -BuildRequires: python3-recommonmark +BuildRequires: python3-myst-parser %endif BuildRequires: multilib-rpm-config %if %{with gold} @@ -162,17 +140,9 @@ BuildRequires: binutils-devel # Enable extra functionality when run the LLVM JIT under valgrind. BuildRequires: valgrind-devel %endif -%if 0%{?use_libedit} # LLVM's LineEditor library will use libedit if it is available. BuildRequires: libedit-devel -%endif -# Need pandoc to cover markdown to rst, because RHEL does not have recommonmark, -# so we can't build the documentation as is. -%if 0%{?rhel} == 8 -# RHEL8 has pandoc which we can use instead of python3-recommonmark for some things. -BuildRequires: pandoc -%endif -# We need python3-devel for pathfix.py and %%py3_shebang_fix. +# We need python3-devel for %%py3_shebang_fix BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -197,23 +167,19 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} # The installed LLVM cmake files will add -ledit to the linker flags for any # app that requires the libLLVMLineEditor, so we need to make sure # libedit-devel is available. -%if 0%{?use_libedit} Requires: libedit-devel -%endif # The installed cmake files reference binaries from llvm-test, llvm-static, and # llvm-gtest. We tried in the past to split the cmake exports for these binaries # out into separate files, so that llvm-devel would not need to Require these packages, # but this caused bugs (rhbz#1773678) and forced us to carry two non-upstream # patches. Requires: %{name}-static%{?_isa} = %{version}-%{release} -%if %{without compat_build} Requires: %{name}-test%{?_isa} = %{version}-%{release} Requires: %{name}-googletest%{?_isa} = %{version}-%{release} -%endif -Requires(post): %{_sbindir}/alternatives -Requires(postun): %{_sbindir}/alternatives +Requires(post): /usr/sbin/alternatives +Requires(postun): /usr/sbin/alternatives Provides: llvm-devel(major) = %{maj_ver} @@ -231,6 +197,8 @@ Documentation for the LLVM compiler infrastructure. %package libs Summary: LLVM shared libraries +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description libs Shared libraries for the LLVM compiler infrastructure. @@ -251,8 +219,6 @@ Summary: CMake utilities shared across LLVM subprojects CMake utilities shared across LLVM subprojects. This is for internal use by LLVM packages only. -%if %{without compat_build} - %package test Summary: LLVM regression tests Requires: %{name}%{?_isa} = %{version}-%{release} @@ -265,34 +231,14 @@ LLVM regression tests. %package googletest Summary: LLVM's modified googletest sources -# libllvm_gtest.a moved from llvm-static to llvm-googletest -Conflicts: %{name}-static < 17.0.0 %description googletest LLVM's modified googletest sources. -%if 0%{?rhel} -%package toolset -Summary: Package that installs llvm-toolset -Requires: clang = %{version} -Requires: llvm = %{version} - -%ifnarch s390x -Requires: lld = %{version} -%endif - -%description toolset -This is the main package for llvm-toolset. -%endif - -%endif - %prep -%if %{without snapshot_build} -#{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}' -#{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3}' --data='%{SOURCE2}' -#{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE5}' --data='%{SOURCE4}' -%endif +%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE3}' --data='%{SOURCE2}' +%{gpgverify} --keyring='%{SOURCE6}' --signature='%{SOURCE5}' --data='%{SOURCE4}' %setup -T -q -b 2 -n %{cmake_srcdir} # TODO: It would be more elegant to set -DLLVM_COMMON_CMAKE_UTILS=%{_builddir}/%{cmake_srcdir}, # but this is not a CACHED variable, so we can't actually set it externally :( @@ -310,19 +256,13 @@ mv %{third_party_srcdir} third-party tools/opt-viewer/*.py \ utils/update_cc_test_checks.py -%if 0%{?rhel} == 8 -# Convert markdown files to rst to cope with the absence of compatible md parser in rhel. -# The sed expression takes care of a slight difference between pandoc markdown and sphinx markdown. -find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pandoc -f markdown -o ${md%.md}.rst ; done -%endif - %build %if %{without lto_build} %global _lto_cflags %nil %endif -%ifarch s390 s390x %ix86 +%ifarch s390 s390x %ix86 riscv64 # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -337,7 +277,7 @@ export ASMFLAGS="%{build_cflags}" -DLLVM_PARALLEL_LINK_JOBS=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -%ifarch s390 %ix86 +%ifarch s390 %ix86 riscv64 -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ %endif @@ -367,24 +307,16 @@ export ASMFLAGS="%{build_cflags}" \ -DLLVM_INCLUDE_TESTS:BOOL=ON \ -DLLVM_BUILD_TESTS:BOOL=ON \ -%if %{with compat_build} - -DLLVM_INSTALL_GTEST:BOOL=OFF \ -%else -DLLVM_INSTALL_GTEST:BOOL=ON \ -%endif -DLLVM_LIT_ARGS=-v \ \ -DLLVM_INCLUDE_EXAMPLES:BOOL=ON \ -DLLVM_BUILD_EXAMPLES:BOOL=OFF \ \ -DLLVM_INCLUDE_UTILS:BOOL=ON \ -%if %{with compat_build} - -DLLVM_INSTALL_UTILS:BOOL=OFF \ -%else -DLLVM_INSTALL_UTILS:BOOL=ON \ - -DLLVM_UTILS_INSTALL_DIR:PATH=%{_bindir} \ + -DLLVM_UTILS_INSTALL_DIR:PATH=bin \ -DLLVM_TOOLS_INSTALL_DIR:PATH=bin \ -%endif \ -DLLVM_INCLUDE_DOCS:BOOL=ON \ -DLLVM_BUILD_DOCS:BOOL=ON \ @@ -405,12 +337,14 @@ export ASMFLAGS="%{build_cflags}" -DSPHINX_WARNINGS_AS_ERRORS=OFF \ -DCMAKE_INSTALL_PREFIX=%{install_prefix} \ -DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \ - -DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \ + -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build-3 \ -DLLVM_INCLUDE_BENCHMARKS=OFF \ %if %{with lto_build} -DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0" \ %endif +%ifarch x86_64 -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error" +%endif # Build libLLVM.so first. This ensures that when libLLVM.so is linking, there # are no other compile jobs running. This will help reduce OOM errors on the @@ -423,29 +357,34 @@ export ASMFLAGS="%{build_cflags}" mkdir -p %{buildroot}/%{_bindir} -%if %{without compat_build} - -# Fix some man pages -ln -s llvm-config.1 %{buildroot}%{_mandir}/man1/llvm-config%{exec_suffix}-%{__isa_bits}.1 - # Install binaries needed for lit tests %global test_binaries llvm-isel-fuzzer llvm-opt-fuzzer for f in %{test_binaries} do - install -m 0755 %{_vpath_builddir}/bin/$f %{buildroot}%{_bindir} + install -m 0755 %{_vpath_builddir}/bin/$f %{buildroot}%{install_bindir} done # Remove testing of update utility tools rm -rf test/tools/UpdateTestChecks -%multilib_fix_c_header --file %{_includedir}/llvm/Config/llvm-config.h - # Install libraries needed for unittests +%if %{without compat_build} %global build_libdir %{_vpath_builddir}/%{_lib} +%else +%global build_libdir %{_vpath_builddir}/lib +%endif -install %{build_libdir}/libLLVMTestingSupport.a %{buildroot}%{_libdir} -install %{build_libdir}/libLLVMTestingAnnotations.a %{buildroot}%{_libdir} +install %{build_libdir}/libLLVMTestingSupport.a %{buildroot}%{install_libdir} +install %{build_libdir}/libLLVMTestingAnnotations.a %{buildroot}%{install_libdir} + +# Fix multi-lib +%multilib_fix_c_header --file %{install_includedir}/llvm/Config/llvm-config.h + +%if %{without compat_build} + +# Fix some man pages +ln -s llvm-config.1 %{buildroot}%{_mandir}/man1/llvm-config%{exec_suffix}-%{__isa_bits}.1 %if %{with gold} # Add symlink to lto plugin in the binutils plugin directory. @@ -461,17 +400,9 @@ for f in %{buildroot}/%{install_bindir}/*; do ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix} done -# Move header files -mkdir -p %{buildroot}/%{pkg_includedir} -ln -s ../../../%{install_includedir}/llvm %{buildroot}/%{pkg_includedir}/llvm -ln -s ../../../%{install_includedir}/llvm-c %{buildroot}/%{pkg_includedir}/llvm-c - -# Fix multi-lib -%multilib_fix_c_header --file %{install_includedir}/llvm/Config/llvm-config.h - # Create ld.so.conf.d entry -mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d -cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF +mkdir -p %{buildroot}/etc/ld.so.conf.d +cat >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf << EOF %{install_libdir} EOF @@ -482,9 +413,6 @@ for f in %{build_install_prefix}/share/man/man1/*; do mv $f %{buildroot}%{_mandir}/man1/$filename%{exec_suffix}.1 done -# Remove opt-viewer, since this is just a compatibility package. -rm -Rf %{build_install_prefix}/share/opt-viewer - %endif # llvm-config special casing. llvm-config is managed by update-alternatives. @@ -517,7 +445,6 @@ mkdir -p %{buildroot}%{pkg_datadir}/llvm/cmake cp -Rv ../cmake/* %{buildroot}%{pkg_datadir}/llvm/cmake %check - # non reproducible errors rm test/tools/dsymutil/X86/swift-interface.test @@ -526,66 +453,87 @@ rm test/tools/dsymutil/X86/swift-interface.test LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C %{_vpath_builddir} %endif -%ldconfig_scriptlets libs +%if %{with compat_build} +# Packages that install files in /etc/ld.so.conf have to manually run +# ldconfig. +# See https://bugzilla.redhat.com/show_bug.cgi?id=2001328 and +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_linker_configuration_files +%post -p /sbin/ldconfig libs +%postun -p /sbin/ldconfig libs +%endif %post devel -%{_sbindir}/update-alternatives --install %{_bindir}/llvm-config%{exec_suffix} llvm-config%{exec_suffix} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} %{__isa_bits} +/usr/sbin/update-alternatives --install %{_bindir}/llvm-config%{exec_suffix} llvm-config%{exec_suffix} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} %{__isa_bits} %if %{without compat_build} -%{_sbindir}/update-alternatives --install %{_bindir}/llvm-config-%{maj_ver} llvm-config-%{maj_ver} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} %{__isa_bits} +/usr/sbin/update-alternatives --install %{_bindir}/llvm-config-%{maj_ver} llvm-config-%{maj_ver} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} %{__isa_bits} + +# During the upgrade from LLVM 16 (F38) to LLVM 17 (F39), we found out the +# main llvm-devel package was leaving entries in the alternatives system. +# Try to remove them now. +for v in 14 15 16; do + if [[ -e %{_bindir}/llvm-config-$v + && "x$(%{_bindir}/llvm-config-$v --version | awk -F . '{ print $1 }')" != "x$v" ]]; then + /usr/sbin/update-alternatives --remove llvm-config-$v %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} + fi +done %endif + %postun devel if [ $1 -eq 0 ]; then - %{_sbindir}/update-alternatives --remove llvm-config%{exec_suffix} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} -%if %{without compat_build} - %{_sbindir}/update-alternatives --remove llvm-config-%{maj_ver} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} -%endif + /usr/sbin/update-alternatives --remove llvm-config%{exec_suffix} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} fi +%if %{without compat_build} +# When upgrading between minor versions (i.e. from x.y.1 to x.y.2), we must +# not remove the alternative. +# However, during a major version upgrade (i.e. from 16.x.y to 17.z.w), the +# alternative must be removed in order to give priority to a newly installed +# compat package. +if [[ $1 -eq 0 + || "x$(%{_bindir}/llvm-config-%{maj_ver} --version | awk -F . '{ print $1 }')" != "x%{maj_ver}" ]]; then + /usr/sbin/update-alternatives --remove llvm-config-%{maj_ver} %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} +fi +%endif %files -%{!?_licensedir:%global license %%doc} %license LICENSE.TXT %exclude %{_mandir}/man1/llvm-config* %{_mandir}/man1/* -%{_bindir}/* +%{install_bindir}/* +%if %{with compat_build} +# This is for all the binaries with the version suffix. +%{_bindir}/*%{exec_suffix} +%endif %exclude %{_bindir}/llvm-config%{exec_suffix} %exclude %{install_bindir}/llvm-config%{exec_suffix}-%{__isa_bits} -%if %{without compat_build} %exclude %{_bindir}/llvm-config-%{maj_ver} %exclude %{install_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} -%exclude %{_bindir}/not -%exclude %{_bindir}/count -%exclude %{_bindir}/yaml-bench -%exclude %{_bindir}/lli-child-target -%exclude %{_bindir}/llvm-isel-fuzzer -%exclude %{_bindir}/llvm-opt-fuzzer -%{_datadir}/opt-viewer -%else -%{install_bindir} -%endif +%exclude %{install_bindir}/not +%exclude %{install_bindir}/count +%exclude %{install_bindir}/yaml-bench +%exclude %{install_bindir}/lli-child-target +%exclude %{install_bindir}/llvm-isel-fuzzer +%exclude %{install_bindir}/llvm-opt-fuzzer +%{pkg_datadir}/opt-viewer %files libs %license LICENSE.TXT %{install_libdir}/libLLVM-%{maj_ver}%{?llvm_snapshot_version_suffix:%{llvm_snapshot_version_suffix}}.so -%if %{without compat_build} %if %{with gold} -%{_libdir}/LLVMgold.so +%{install_libdir}/LLVMgold.so +%if %{without compat_build} %{_libdir}/bfd-plugins/LLVMgold.so %endif -%{_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so -%{_libdir}/libLTO.so* -%else -%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf -%if %{with gold} -%{_libdir}/%{name}/lib/LLVMgold.so %endif -%{install_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so +%{install_libdir}/libLLVM-%{maj_ver}.so +%{install_libdir}/libLLVM.so.%{maj_ver}.%{min_ver} %{install_libdir}/libLTO.so* -%exclude %{install_libdir}/libLTO.so -%endif %{install_libdir}/libRemarks.so* +%if %{with compat_build} +%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf +%endif %files devel %license LICENSE.TXT @@ -598,14 +546,8 @@ fi %{install_includedir}/llvm-c %{install_libdir}/libLLVM.so %{install_libdir}/cmake/llvm -%if %{without compat_build} %{install_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} %ghost %{_bindir}/llvm-config-%{maj_ver} -%else -%{pkg_includedir}/llvm -%{pkg_includedir}/llvm-c -%{install_libdir}/libLTO.so -%endif %files doc %license LICENSE.TXT @@ -614,27 +556,23 @@ fi %files static %license LICENSE.TXT %{install_libdir}/*.a -%if %{without compat_build} %exclude %{install_libdir}/libLLVMTestingSupport.a %exclude %{install_libdir}/libLLVMTestingAnnotations.a %exclude %{install_libdir}/libllvm_gtest.a %exclude %{install_libdir}/libllvm_gtest_main.a -%endif %files cmake-utils %license LICENSE.TXT %{pkg_datadir}/llvm/cmake -%if %{without compat_build} - %files test %license LICENSE.TXT -%{_bindir}/not -%{_bindir}/count -%{_bindir}/yaml-bench -%{_bindir}/lli-child-target -%{_bindir}/llvm-isel-fuzzer -%{_bindir}/llvm-opt-fuzzer +%{install_bindir}/not +%{install_bindir}/count +%{install_bindir}/yaml-bench +%{install_bindir}/lli-child-target +%{install_bindir}/llvm-isel-fuzzer +%{install_bindir}/llvm-opt-fuzzer %files googletest %license LICENSE.TXT @@ -645,119 +583,447 @@ fi %{install_includedir}/llvm-gtest %{install_includedir}/llvm-gmock -%if 0%{?rhel} -%files toolset -%license LICENSE.TXT -%endif - -%endif %changelog -* Mon Oct 23 2023 Nikita Popov - 17.0.2-2 -- Add Conflicts to llvm-googletest +* Tue May 14 2024 Tom Stellard - 18.1.3-2 +- Backport fix for rhbz#2275090 -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +%{?llvm_snapshot_changelog_entry} +* Thu Apr 25 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release + +* Fri Apr 12 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Thu Mar 21 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Mon Mar 11 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Tue Feb 27 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Tue Feb 20 2024 Tom Stellard - 18.1.0~rc3-1 +- 18.1.0-rc3 Release + +* Thu Feb 01 2024 Nikita Popov - 17.0.6-6 +- Fix crash with -fzero-call-used-regs (rhbz#2262260) + +* Mon Jan 29 2024 Nikita Popov - 17.0.6-5 +- Only use cet-report=error on x86_64 + +* Thu Jan 25 2024 Fedora Release Engineering - 17.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Nov 30 2023 Tulio Magno Quites Machado Filho - 17.0.6-2 +- Fix rhbz #2248872 + +* Tue Nov 28 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Tue Nov 14 2023 Tulio Magno Quites Machado Filho - 17.0.5-1 +- Update to LLVM 17.0.5 + +* Tue Oct 31 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Tue Oct 17 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Tue Oct 03 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Thu Aug 03 2023 Tulio Magno Quites Machado Filho - 16.0.6-3 -- Fix rhbz #2228944 +* Fri Sep 22 2023 Tulio Magno Quites Machado Filho - 17.0.1~rc4-1 +- Update to LLVM 17.0.1 -* Wed Jul 19 2023 Tulio Magno Quites Machado Filho - 16.0.6-2 +* Tue Sep 05 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 + +* Thu Aug 24 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Thu Aug 24 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-2 +- Temporarily disable a failing test on ppc64le + +* Thu Aug 17 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Wed Aug 16 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-4 +- Disable LTO on i686 + +* Mon Aug 14 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-3 +- Re-add patch removed by mistake + +* Tue Aug 01 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-2 +- Enable LLVM_UNREACHABLE_OPTIMIZE temporarily + +* Mon Jul 31 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Mon Jul 31 2023 Tulio Magno Quites Machado Filho - 16.0.6-6 +- Fix rhbz #2224885 + +* Thu Jul 20 2023 Fedora Release Engineering - 16.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Tulio Magno Quites Machado Filho - 16.0.6-4 +- Use LLVM_UNITTEST_LINK_FLAGS to reduce link times for unit tests + +* Mon Jul 03 2023 Tulio Magno Quites Machado Filho - 16.0.6-3 - Improve error messages for unsupported relocs on s390x (rhbz#2216906) - Disable LLVM_UNREACHABLE_OPTIMIZE -* Sat Jun 17 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Wed Jun 14 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 -* Wed Apr 05 2023 Timm Bäder - 16.0.0-1 -- 16.0.0 Release +* Fri Jun 09 2023 Nikita Popov - 16.0.5-2 +- Split off llvm-cmake-utils package -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 -- 15.0.7 Release +* Mon Jun 05 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 +- Update to LLVM 16.0.5 -* Mon Oct 31 2022 Tom Stellard - 15.0.0-2 -- Re-enable debuginfo for ppc64le +* Fri May 19 2023 Yaakov Selkowitz - 16.0.4-2 +- Avoid recommonmark dependency in RHEL builds + +* Thu May 18 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Tue Apr 25 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Tue Apr 11 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Thu Mar 23 2023 Tulio Magno Quites Machado Filho - 16.0.0-2 +- Distribute libllvm_gtest.a and libllvm_gtest_main.a with llvm-googletest +- Stop distributing /usr/share/llvm/src/utils + +* Mon Mar 20 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Thu Mar 16 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-2 +- Fix the ppc64le triple + +* Tue Mar 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Fri Mar 10 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-2 +- Fix llvm-exegesis failures on s390x + +* Wed Feb 22 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Wed Feb 01 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Thu Jan 19 2023 Tulio Magno Quites Machado Filho - 15.0.7-3 +- Update license to SPDX identifiers. +- Include the Apache license adopted in 2019. + +* Thu Jan 19 2023 Fedora Release Engineering - 15.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jan 12 2023 Nikita Popov - 15.0.7-1 +- Update to LLVM 15.0.7 + +* Mon Jan 09 2023 Tom Stellard - 15.0.6-3 +- Omit frame pointers when building + +* Mon Dec 19 2022 Nikita Popov - 15.0.6-2 +- Remove workaround for rbhz#2048440 + +* Mon Dec 05 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Fri Nov 11 2022 Nikita Popov - 15.0.4-2 +- Copy CFLAGS to ASMFLAGs to enable CET in asm files + +* Wed Nov 02 2022 Nikita Popov - 15.0.4-1 +- Update to LLVM 15.0.4 + +* Tue Sep 27 2022 Nikita Popov - 15.0.0-2 +- Export GetHostTriple.cmake * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to LLVM 15.0.0 -* Mon Jun 27 2022 Tom Stellard - 14.0.6-1 -- 14.0.6 Release +* Thu Jul 21 2022 Fedora Release Engineering - 14.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Mon May 23 2022 Timm Bäder - 14.0.0-3 -- Build gold plugin on s390x as well +* Fri Jun 17 2022 Timm Bäder - 14.0.5-2 +- Release bump for new redhat-rpm-config + +* Mon Jun 13 2022 Timm Bäder - 14.0.5-1 +- 14.0.5 Release + +* Wed May 18 2022 Tom Stellard - 14.0.3-1 +- 14.0.3 Release * Fri Apr 29 2022 Timm Bäder - 14.0.0-2 -- Remove llvm-cmake-devel package again +- Remove llvm-cmake-devel package -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 -- Update to 14.0.0 +* Wed Mar 23 2022 Timm Bäder - 14.0.0-1 +- Update to LLVM 14.0.0 -* Wed Feb 02 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Wed Feb 02 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 final -* Sat Jan 29 2022 Tom Stellard - 13.0.0-4 -- Rebuild with gcc fix from rhbz#2028609 +* Tue Jan 25 2022 Nikita Popov - 13.0.1~rc3-1 +- Update to LLVM 13.0.1rc3 -* Thu Oct 21 2021 sguelton@redhat.com - 13.0.0-3 -- Correctly set ldflags +* Thu Jan 20 2022 Fedora Release Engineering - 13.0.1~rc2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild -* Wed Oct 20 2021 Tom Stellard - 13.0.0-2 -- Disable failing test on s390x +* Thu Jan 13 2022 Nikita Popov - 13.0.1~rc2-1 +- Update to LLVM 13.0.1rc2 -* Thu Oct 14 2021 Tom Stellard - 13.0.0-1 +* Mon Jan 10 2022 Nikita Popov - 13.0.1~rc1-1 +- Upstream 13.0.1 rc1 release + +* Sat Jan 08 2022 Miro Hrončok - 13.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 + +* Thu Nov 11 2021 Tom Stellard - 13.0.0-7 +- Enable lto on s390x and arm + +* Mon Oct 25 2021 Tom Stellard - 13.0.0-6 +- Build with Thin LTO + +* Mon Oct 18 2021 Tom Stellard - 13.0.0-5 +- Build with clang + +* Fri Oct 08 2021 Tom Stellard - 13.0.0-4 +- Fix default triple on arm + +* Wed Oct 06 2021 Tom Stellard - 13.0.0-3 +- Set default triple + +* Mon Oct 04 2021 Tom Stellard - 13.0.0-2 +- Drop abi_revision from soname + +* Thu Sep 30 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Thu Sep 30 2021 Tom Stellard - 13.0.0~rc4-2 +- Restore config.guess for host triple detection -* Fri Jul 02 2021 Tom Stellard - 12.0.0-2 +* Fri Sep 24 2021 Tom Stellard - 13.0.0~rc4-1 +- 13.0.0-rc4 Release + +* Fri Sep 17 2021 Tom Stellard - 13.0.0~rc3-1 +- 13.0.0-rc3 Release + +* Mon Sep 13 2021 Tom Stellard - 13.0.0~rc1-3 +- Pass LLVM_DEFAULT_TARGET_TRIPLE to cmake + +* Mon Sep 13 2021 Konrad Kleine - 13.0.0~rc1-2 +- Add --without=check option + +* Wed Aug 04 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release + +* Thu Jul 22 2021 sguelton@redhat.com - 12.0.1-3 +- Maintain versionned link to llvm-config + +* Thu Jul 22 2021 Fedora Release Engineering - 12.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 12 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Wed Jun 30 2021 Tom Stellard - llvm-12.0.1~rc3-1 +- 12.0.1-rc3 Release + +* Fri May 28 2021 Tom Stellard - 12.0.1~rc1-2 - Stop installing lit tests -* Tue May 25 2021 sguelton@redhat.com - 12.0.0-1 -- Remove obsolete patch +* Wed May 26 2021 Tom Stellard - llvm-12.0.1~rc1-1 +- 12.0.1-rc1 Release -* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-2 -- Remove obsolete patch +* Mon May 17 2021 sguelton@redhat.com - 12.0.0-7 +- Fix handling of llvm-config -* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-1 -- 11.0.1 final release +* Mon May 03 2021 kkleine@redhat.com - 12.0.0-6 +- More verbose builds thanks to python3-psutil -* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-0.6.rc2 -- Restore default CI behavior wrt. number of threads +* Sat May 01 2021 sguelton@redhat.com - 12.0.0-5 +- Fix llvm-config install -* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.5.rc2 -- Fix test case depending on fs capability +* Tue Apr 27 2021 sguelton@redhat.com - 12.0.0-4 +- Provide default empty value for exec_suffix when not in compat mode -* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.4.rc2 -- Fix dependency on dsymutil.rst from CI +* Tue Apr 27 2021 sguelton@redhat.com - 12.0.0-3 +- Fix llvm-config install -* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.3.rc2 -- Fix test file generation +* Tue Apr 20 2021 sguelton@redhat.com - 12.0.0-2 +- Backport compat package fix -* Wed Sep 23 2020 sguelton@redhat.com - 11.0.0-0.2.rc2 -- Remove runtime dep on libedit-devel +* Thu Apr 15 2021 Tom Stellard - 12.0.0-1 +- 12.0.0 Release -* Mon Sep 14 2020 sguelton@redhat.com - 11.0.0-0.1.rc2 -- 11.0.1.rc2 Release +* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.11.rc5 +- New upstream release candidate -* Wed Aug 19 2020 Tom Stellard - 10.0.1-3 +* Tue Apr 06 2021 sguelton@redhat.com - 12.0.0-0.10.rc4 +- Patch test case for compatibility with llvm-test latout + +* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.9.rc4 +- New upstream release candidate + +* Wed Mar 31 2021 Jonathan Wakely - 12.0.0-0.8.rc3 +- Rebuilt for removed libstdc++ symbols (#1937698) + +* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.7.rc3 +- LLVM 12.0.0 rc3 + +* Wed Mar 10 2021 Kalev Lember - 12.0.0-0.6.rc2 +- Add llvm-static(major) provides to the -static subpackage + +* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.5.rc2 +- rebuilt + +* Tue Mar 02 2021 sguelton@redhat.com - 12.0.0-0.4.rc2 +- Change CI working dir + +* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.3.rc2 +- 12.0.0-rc2 release + +* Tue Feb 16 2021 Dave Airlie - 12.0.0-0.2.rc1 +- Enable LLVM_USE_PERF to allow perf integration + +* Tue Feb 2 2021 Serge Guelton - 12.0.0-0.1.rc1 +- 12.0.0-rc1 release + +* Tue Jan 26 2021 Fedora Release Engineering - 11.1.0-0.3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2 +- 11.1.0-rc2 release + +* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1 +- 11.1.0-rc1 release + +* Tue Jan 05 2021 Serge Guelton - 11.0.1-3.rc2 +- Waive extra test case + +* Sun Dec 20 2020 sguelton@redhat.com - 11.0.1-2.rc2 +- 11.0.1-rc2 release + +* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1 +- 11.0.1-rc1 release + +* Sat Oct 31 2020 Jeff Law - 11.0.0-2 +- Fix missing #include for gcc-11 + +* Wed Oct 14 2020 Josh Stone - 11.0.0-1 +- Fix coreos-installer test crash on s390x (rhbz#1883457) + +* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.11 +- llvm 11.0.0 - final release + +* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.10.rc6 +- 11.0.0-rc6 + +* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.9.rc5 +- 11.0.0-rc5 Release + +* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.8.rc3 +- Fix NVR + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.2.rc3 +- Obsolete patch for rhbz#1862012 + +* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3 +- 11.0.0-rc3 Release + +* Wed Sep 02 2020 sguelton@redhat.com - 11.0.0-0.7.rc2 +- Apply upstream patch for rhbz#1862012 + +* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.6.rc2 +- Fix source location + +* Fri Aug 21 2020 Tom Stellard - 11.0.0-0.5.rc2 +- 11.0.0-rc2 Release + +* Wed Aug 19 2020 Tom Stellard - 11.0.0-0.4.rc1 +- Fix regression-tests CI tests + +* Tue Aug 18 2020 Tom Stellard - 11.0.0-0.3.rc1 - Fix rust crash on ppc64le compiling firefox +- rhbz#1862012 -* Fri Jul 31 2020 sguelton@redhat.com - 10.0.1-2 -- Fix llvm-config alternative handling, see rhbz#1859996 +* Tue Aug 11 2020 Tom Stellard - 11.0.0-0.2.rc1 +- Install update_cc_test_checks.py script -* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1 -- 10.0.1 Release +* Thu Aug 06 2020 Tom Stellard - 11.0.0-0.1-rc1 +- LLVM 11.0.0-rc1 Release +- Make llvm-devel require llvm-static and llvm-test -* Wed Jun 24 2020 sguelton@redhat.com - 10.0.0-2 -- Reproducible build of test.tar.gz, see rhbz#1820319 +* Tue Aug 04 2020 Tom Stellard - 10.0.0-10 +- Backport upstream patch to fix build with -flto. +- Disable LTO on s390x to work-around unit test failures. -* Tue Apr 7 2020 sguelton@redhat.com - 10.0.0-1 -- 10.0.0 Release +* Sat Aug 01 2020 sguelton@redhat.com - 10.0.0-9 +- Fix update-alternative uninstall script -* Thu Feb 27 2020 Josh Stone - 9.0.1-4 -- Fix a codegen bug for Rust +* Sat Aug 01 2020 sguelton@redhat.com - 10.0.0-8 +- Fix gpg verification and update macro usage. + +* Sat Aug 01 2020 Fedora Release Engineering - 10.0.0-7 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 10.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild +* Thu Jun 11 2020 sguelton@redhat.com - 10.0.0-5 +- Make llvm-test.tar.gz creation reproducible. + +* Tue Jun 02 2020 sguelton@redhat.com - 10.0.0-4 +- Instruct cmake not to generate RPATH + +* Thu Apr 30 2020 Tom Stellard - 10.0.0-3 +- Install LLVMgold.so symlink in bfd-plugins directory + +* Tue Apr 07 2020 sguelton@redhat.com - 10.0.0-2 +- Do not package UpdateTestChecks tests in llvm-tests +- Apply upstream patch bab5908df to pass gating tests + +* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-1 +- 10.0.0 final + +* Mon Mar 23 2020 sguelton@redhat.com - 10.0.0-0.6.rc6 +- 10.0.0 rc6 + +* Thu Mar 19 2020 sguelton@redhat.com - 10.0.0-0.5.rc5 +- 10.0.0 rc5 + +* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.4.rc4 +- 10.0.0 rc4 + +* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3 +- 10.0.0 rc3 + +* Fri Feb 28 2020 sguelton@redhat.com - 10.0.0-0.2.rc2 +- Remove *_finite support, see rhbz#1803203 + +* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2 +- 10.0.0 rc2 + +* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1 +- 10.0.0 rc1 + +* Wed Jan 29 2020 Fedora Release Engineering - 9.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 21 2020 Tom Stellard - 9.0.1-4 +- Rebuild after previous build failed to strip binaries * Fri Jan 17 2020 Tom Stellard - 9.0.1-3 - Add explicit Requires from sub-packages to llvm-libs @@ -768,160 +1034,284 @@ fi * Thu Dec 19 2019 tstellar@redhat.com - 9.0.1-1 - 9.0.1 Release -* Wed Oct 30 2019 Tom Stellard - 9.0.0-5 -- Remove work-around for threading issue in gold +* Mon Nov 25 2019 sguelton@redhat.com - 9.0.0-4 +- Activate AVR on all architectures -* Wed Oct 30 2019 Tom Stellard - 9.0.0-4 +* Mon Sep 30 2019 Tom Stellard - 9.0.0-3 - Build libLLVM.so first to avoid OOM errors -* Tue Oct 01 2019 Tom Stellard - 9.0.0-3 -- Adjust run-lit-tests script to better match in tree testing +* Fri Sep 27 2019 Tom Stellard - 9.0.0-2 +- Remove unneeded BuildRequires: libstdc++-static -* Mon Sep 30 2019 Tom Stellard - 9.0.0-2 -- Limit number of build threads using -l option for ninja - -* Thu Sep 26 2019 Tom Stellard - 9.0.0-1 +* Thu Sep 19 2019 sguelton@redhat.com - 9.0.0-1 - 9.0.0 Release -* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1 -- 8.0.1 release +* Wed Sep 18 2019 sguelton@redhat.com - 9.0.0-0.5.rc3 +- Support avr target, see rhbz#1718492 -* Tue Jul 2 2019 sguelton@redhat.com - 8.0.1-0.3.rc2 -- Deactivate multithreading for gold plugin only to fix rhbz#1636479 +* Tue Sep 10 2019 Tom Stellard - 9.0.0-0.4.rc3 +- Split out test executables into their own export file -* Mon Jun 17 2019 sguelton@redhat.com - 8.0.1-0.2.rc2 -- Deactivate multithreading instead of patching to fix rhbz#1636479 +* Fri Sep 06 2019 Tom Stellard - 9.0.0-0.3.rc3 +- Fix patch for splitting out static library exports -* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2 -- 8.0.1rc2 Release +* Fri Aug 30 2019 Tom Stellard - 9.0.0-0.2.rc3 +- 9.0.0-rc3 Release -* Tue May 14 2019 sguelton@redhat.com - 8.0.0-3 -- Disable threading in LTO +* Thu Aug 01 2019 Tom Stellard - 9.0.0-0.1.rc2 +- 9.0.0-rc2 Release -* Wed May 8 2019 sguelton@redhat.com - 8.0.0-2 +* Tue Jul 30 2019 Tom Stellard - 8.0.0-9 +- Sync with llvm8.0 spec file + +* Thu Jul 25 2019 Fedora Release Engineering - 8.0.0-8.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jul 17 2019 Tom Stellard - 8.0.0-8 +- Add provides for the major version of sub-packages + +* Fri May 17 2019 sguelton@redhat.com - 8.0.0-7 - Fix conflicts between llvm-static = 8 and llvm-dev < 8 around LLVMStaticExports.cmake -* Thu May 2 2019 sguelton@redhat.com - 8.0.0-1 -- 8.0.0 Release +* Wed Apr 24 2019 Tom Stellard - 8.0.0-6 +- Make sure we aren't passing -g on s390x -* Fri Dec 14 2018 Tom Stellard - 7.0.1-1 -- 7.0.1 Release +* Sat Mar 30 2019 Tom Stellard - 8.0.0-5 +- Enable build rpath while keeping install rpath disabled -* Thu Dec 13 2018 Tom Stellard - 7.0.1-0.5.rc3 -- Drop compat libs +* Wed Mar 27 2019 Tom Stellard - 8.0.0-4 +- Backport r351577 from trunk to fix ninja check failures -* Wed Dec 12 2018 Tom Stellard - 7.0.1-0.4.rc3 -- Fix ambiguous python shebangs +* Tue Mar 26 2019 Tom Stellard - 8.0.0-3 +- Fix ninja check -* Tue Dec 11 2018 Tom Stellard - 7.0.1-0.3.rc3 -- Disable threading in thinLTO +* Fri Mar 22 2019 Tom Stellard - 8.0.0-2 +- llvm-test fixes -* Tue Dec 11 2018 Tom Stellard - 7.0.1-0.2.rc3 -- Update cmake options for compat build +* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1 +- 8.0.0 final -* Mon Dec 10 2018 Tom Stellard - 7.0.1-0.1.rc3 -- 7.0.1-rc3 Release +* Fri Mar 15 2019 sguelton@redhat.com - 8.0.0-0.6.rc4 +- Activate all backends (rhbz#1689031) -* Fri Dec 07 2018 Tom Stellard - 6.0.1-14 -- Don't build llvm-test on i686 +* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.5.rc4 +- 8.0.0 Release candidate 4 -* Thu Dec 06 2018 Tom Stellard - 6.0.1-13 -- Fix build when python2 is not present on system +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.4.rc3 +- Move some binaries to -test package, cleanup specfile -* Tue Nov 06 2018 Tom Stellard - 6.0.1-12 -- Fix multi-lib installation of llvm-devel +* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.3.rc3 +- 8.0.0 Release candidate 3 -* Tue Oct 23 2018 Tom Stellard - 6.0.1-11 -- Add sub-packages for testing +* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2 +- 8.0.0 Release candidate 2 -* Mon Oct 01 2018 Tom Stellard - 6.0.1-10 -- Drop scl macros +* Sat Feb 9 2019 sguelton@redhat.com - 8.0.0-0.1.rc1 +- 8.0.0 Release candidate 1 -* Tue Aug 28 2018 Tom Stellard - 6.0.1-9 -- Drop libedit dependency +* Fri Feb 01 2019 Fedora Release Engineering - 7.0.1-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild -* Tue Aug 14 2018 Tom Stellard - 6.0.1-8 -- Only enabled valgrind functionality on arches that support it +* Mon Jan 21 2019 Josh Stone - 7.0.1-2 +- Fix discriminators in metadata, rhbz#1668033 -* Mon Aug 13 2018 Tom Stellard - 6.0.1-7 -- BuildRequires: python3-devel +* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1 +- 7.0.1 release + +* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-5 +- Ensure rpmlint passes on specfile + +* Sat Nov 17 2018 Tom Stellard - 7.0.0-4 +- Install testing libraries for unittests + +* Sat Oct 27 2018 Tom Stellard - 7.0.0-3 +- Fix running unittests as not-root user + +* Thu Sep 27 2018 Tom Stellard - 7.0.0-2 +- Fixes for llvm-test package: +- Add some missing Requires +- Add --threads option to run-lit-tests script +- Set PATH so lit can find tools like count, not, etc. +- Don't hardcode tools directory to /usr/lib64/llvm +- Fix typo in yaml-bench define +- Only print information about failing tests + +* Fri Sep 21 2018 Tom Stellard - 7.0.0-1 +- 7.0.0 Release + +* Thu Sep 13 2018 Tom Stellard - 7.0.0-0.15.rc3 +- Disable rpath on install LLVM and related sub-projects + +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.14.rc3 +- Remove rpath from executables and libraries + +* Tue Sep 11 2018 Tom Stellard - 7.0.0-0.13.rc3 +- Re-enable arm and aarch64 targets on x86_64 + +* Mon Sep 10 2018 Tom Stellard - 7.0.0-0.12.rc3 +- 7.0.0-rc3 Release + +* Fri Sep 07 2018 Tom Stellard - 7.0.0-0.11.rc2 +- Use python3 shebang for opt-viewewr scripts + +* Thu Aug 30 2018 Tom Stellard - 7.0.0-0.10.rc2 +- Drop all uses of python2 from lit tests + +* Thu Aug 30 2018 Tom Stellard - 7.0.0-0.9.rc2 +- Build the gold plugin on all supported architectures + +* Wed Aug 29 2018 Kevin Fenzi - 7.0.0-0.8.rc2 +- Re-enable debuginfo to avoid 25x size increase. + +* Tue Aug 28 2018 Tom Stellard - 7.0.0-0.7.rc2 +- 7.0.0-rc2 Release + +* Tue Aug 28 2018 Tom Stellard - 7.0.0-0.6.rc1 +- Guard valgrind usage with valgrind_arches macro + +* Thu Aug 23 2018 Tom Stellard - 7.0.0-0.5.rc1 +- Package lit tests and googletest sources. + +* Mon Aug 20 2018 Tom Stellard - 7.0.0-0.4.rc1 +- Re-enable AMDGPU target on ARM rhbz#1618922 + +* Mon Aug 13 2018 Tom Stellard - 7.0.0-0.3.rc1 +- Drop references to TestPlugin.so from cmake files + +* Fri Aug 10 2018 Tom Stellard - 7.0.0-0.2.rc1 +- Fixes for lit tests + +* Fri Aug 10 2018 Tom Stellard - 7.0.0-0.1.rc1 +- 7.0.0-rc1 Release +- Reduce number of enabled targets on all arches. +- Drop s390 detection patch, LLVM does not support s390 codegen. * Mon Aug 06 2018 Tom Stellard - 6.0.1-6 -- Backport fixes for rhbz#1610053, rhbz#1562196, rhbz#1595996 +- Backport some fixes needed by mesa and rust -* Mon Aug 06 2018 Tom Stellard - 6.0.1-5 -- Fix ld.so.conf.d path in files list +* Thu Jul 26 2018 Tom Stellard - 6.0.1-5 +- Move libLLVM-6.0.so to llvm6.0-libs. -* Sat Aug 04 2018 Tom Stellard - 6.0.1-4 -- Fix ld.so.conf.d path +* Mon Jul 23 2018 Tom Stellard - 6.0.1-4 +- Rebuild because debuginfo stripping failed with the previous build -* Fri Aug 03 2018 Tom Stellard - 6.0.1-3 -- Install ld.so.conf so llvm libs are in the library search path +* Fri Jul 13 2018 Tom Stellard - 6.0.1-3 +- Sync specfile with llvm6.0 package -* Wed Jul 25 2018 Tom Stellard - 6.0.1-2 -- Re-enable doc package now that BREW-2381 is fixed +* Fri Jul 13 2018 Fedora Release Engineering - 6.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Tue Jul 10 2018 Tom Stellard - 6.0.1-1 +* Mon Jun 25 2018 Tom Stellard - 6.0.1-1 - 6.0.1 Release -* Mon Jun 04 2018 Tom Stellard - 5.0.1-13 -- Limit build jobs on ppc64 to avoid OOM errors +* Thu Jun 07 2018 Tom Stellard - 6.0.1-0.4.rc2 +- 6.0.1-rc2 -* Sat Jun 02 2018 Tom Stellard - 5.0.1-12 -- Switch to python3-sphinx +* Wed Jun 06 2018 Tom Stellard - 6.0.1-0.3.rc1 +- Re-enable all targets to avoid breaking the ABI. -* Thu May 31 2018 Tom Stellard - 5.0.1-11 -- Remove conditionals to enable building only the llvm-libs package, we don't - needs these for module builds. +* Mon Jun 04 2018 Tom Stellard - 6.0.1-0.2.rc1 +- Reduce the number of enabled targets based on the architecture -* Wed May 23 2018 Tom Stellard - 5.0.1-10 -- Add BuildRequires: libstdc++-static -- Resolves: #1580785 +* Thu May 10 2018 Tom Stellard - 6.0.1-0.1.rc1 +- 6.0.1 rc1 -* Wed Apr 04 2018 Tom Stellard - 5.0.1-9 -- Add conditionals to enable building only the llvm-libs package +* Tue Mar 27 2018 Tom Stellard - 6.0.0-11 +- Re-enable arm tests that used to hang -* Tue Apr 03 2018 Tom Stellard - 5.0.1-8 -- Drop BuildRequires: libstdc++-static this package does not exist in RHEL8 +* Thu Mar 22 2018 Tom Stellard - 6.0.0-10 +- Fix testcase in backported patch -* Tue Mar 20 2018 Tilmann Scheller - 5.0.1-7 -- Backport fix for rhbz#1558226 from trunk +* Tue Mar 20 2018 Tom Stellard - 6.0.0-9 +- Prevent external projects from linking against both static and shared + libraries. rhbz#1558657 -* Tue Mar 06 2018 Tilmann Scheller - 5.0.1-6 -- Backport fix for rhbz#1550469 from trunk +* Mon Mar 19 2018 Tom Stellard - 6.0.0-8 +- Backport r327651 from trunk rhbz#1554349 -* Thu Feb 22 2018 Tom Stellard - 5.0.1-5 -- Backport some retpoline fixes +* Fri Mar 16 2018 Tom Stellard - 6.0.0-7 +- Filter out cxxflags and cflags from llvm-config that aren't supported by clang +- rhbz#1556980 -* Tue Feb 06 2018 Tom Stellard - 5.0.1-4 -- Backport retpoline support +* Wed Mar 14 2018 Tom Stellard - 6.0.0-6 +- Enable symbol versioning in libLLVM.so -* Mon Jan 29 2018 Tom Stellard - 5.0.1-3 -- Backport r315279 to fix an issue with rust +* Wed Mar 14 2018 Tom Stellard - 6.0.0-5 +- Stop statically linking libstdc++. This is no longer required by Steam + client, but the steam installer still needs a work-around which should + be handled in the steam package. +* Wed Mar 14 2018 Tom Stellard - 6.0.0-4 +- s/make check/ninja check/ -* Mon Jan 15 2018 Tom Stellard - 5.0.1-2 -- Drop ExculdeArch: ppc64 +* Fri Mar 09 2018 Tom Stellard - 6.0.0-3 +- Backport fix for compile time regression on rust rhbz#1552915 -* Mon Jan 08 2018 Tom Stellard - 5.0.1-1 +* Thu Mar 08 2018 Tom Stellard - 6.0.0-2 +- Build with Ninja: This reduces RPM build time on a 6-core x86_64 builder + from 82 min to 52 min. + +* Thu Mar 08 2018 Tom Stellard - 6.0.0-1 +- 6.0.0 Release + +* Thu Mar 08 2018 Tom Stellard - 6.0.0-0.5.rc2 +- Reduce debuginfo size on i686 to avoid OOM errors during linking + +* Fri Feb 09 2018 Tom Stellard - 6.0.0-0.4.rc2 +- 6.0.1 rc2 + +* Fri Feb 09 2018 Igor Gnatenko - 6.0.0-0.3.rc1 +- Escape macros in %%changelog + +* Thu Feb 08 2018 Fedora Release Engineering - 6.0.0-0.2.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 19 2018 Tom Stellard - 6.0.0-0.1.rc1 +- 6.0.1 rc1 + +* Tue Dec 19 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release -* Thu Jun 22 2017 Tom Stellard - 4.0.1-3 -- Fix Requires for devel package again. +* Mon Nov 20 2017 Tom Stellard - 5.0.0-5 +- Backport debuginfo fix for rust -* Thu Jun 22 2017 Tom Stellard - 4.0.1-2 -- Fix Requires for llvm-devel +* Fri Nov 03 2017 Tom Stellard - 5.0.0-4 +- Reduce debuginfo size for ARM -* Tue Jun 20 2017 Tom Stellard - 4.0.1-1 +* Tue Oct 10 2017 Tom Stellard - 5.0.0-2 +- Reduce memory usage on ARM by disabling debuginfo and some non-ARM targets. + +* Mon Sep 25 2017 Tom Stellard - 5.0.0-1 +- 5.0.0 Release + +* Mon Sep 18 2017 Tom Stellard - 4.0.1-6 +- Add Requires: libedit-devel for llvm-devel + +* Fri Sep 08 2017 Tom Stellard - 4.0.1-5 +- Enable libedit backend for LineEditor API + +* Fri Aug 25 2017 Tom Stellard - 4.0.1-4 +- Enable extra functionality when run the LLVM JIT under valgrind. + +* Thu Aug 03 2017 Fedora Release Engineering - 4.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 4.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 21 2017 Tom Stellard - 4.0.1-1 - 4.0.1 Release -* Mon Jun 05 2017 Tom Stellard - 4.0.0-5 -- Build for llvm-toolset-7 rename +* Thu Jun 15 2017 Tom Stellard - 4.0.0-6 +- Install llvm utils + +* Thu Jun 08 2017 Tom Stellard - 4.0.0-5 +- Fix docs-llvm-man target * Mon May 01 2017 Tom Stellard - 4.0.0-4 -- Remove multi-lib workarounds +- Make cmake files no longer depend on static libs (rhbz 1388200) -* Fri Apr 28 2017 Tom Stellard - 4.0.0-3 -- Fix build with llvm-toolset-4 scl +* Tue Apr 18 2017 Josh Stone - 4.0.0-3 +- Fix computeKnownBits for ARMISD::CMOV (rust-lang/llvm#67) * Mon Apr 03 2017 Tom Stellard - 4.0.0-2 - Simplify spec with rpm macros. diff --git a/modular/llvm/python-lit/python-lit.spec b/modular/llvm/python-lit/python-lit.spec index d135625..7d054a8 100644 --- a/modular/llvm/python-lit/python-lit.spec +++ b/modular/llvm/python-lit/python-lit.spec @@ -6,7 +6,7 @@ %{llvm_sb} %endif -%global lit_version 17.0.2 +%global lit_version 18.1.6 #global rc_ver 4 #global post_ver 0 @@ -20,12 +20,14 @@ %bcond_without check +%global __python3 /usr/bin/python3 + Name: python-lit Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} Release: 1%{?dist} BuildArch: noarch -License: NCSA +License: Apache-2.0 WITH LLVM-exception OR NCSA Summary: Tool for executing llvm test suites URL: https://pypi.python.org/pypi/lit %if %{without snapshot_build} @@ -82,108 +84,295 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.p %{_bindir}/lit %changelog -* Wed Oct 04 2023 Nikita Popov - 17.0.2-1 +* Thu Apr 25 2024 Tom Stellard - 18.1.4-1 +- 18.1.4 Release + +* Fri Apr 12 2024 Tom Stellard - 18.1.3-1 +- 18.1.3 Release + +* Thu Mar 21 2024 Tom Stellard - 18.1.2-1 +- 18.1.2 Release + +* Tue Mar 12 2024 Tom Stellard - 18.1.1-1 +- 18.1.1 Release + +* Wed Feb 28 2024 Tom Stellard - 18.1.0~rc4-1 +- 18.1.0-rc4 Release + +* Wed Feb 21 2024 Tom Stellard - 18.1.0~rc3-1 +- 18.1.0-rc3 Release + +* Fri Jan 26 2024 Fedora Release Engineering - 17.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 17.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +%{?llvm_snapshot_changelog_entry} + +* Tue Nov 28 2023 Tulio Magno Quites Machado Filho - 17.0.6-1 +- Update to LLVM 17.0.6 + +* Tue Nov 14 2023 Tulio Magno Quites Machado Filho - 17.0.5-1 +- Update to LLVM 17.0.5 + +* Tue Oct 31 2023 Tulio Magno Quites Machado Filho - 17.0.4-1 +- Update to LLVM 17.0.4 + +* Tue Oct 17 2023 Tulio Magno Quites Machado Filho - 17.0.3-1 +- Update to LLVM 17.0.3 + +* Mon Oct 09 2023 Tom Stellard - 17.0.2-2 +- Update license + +* Tue Oct 03 2023 Tulio Magno Quites Machado Filho - 17.0.2-1 - Update to LLVM 17.0.2 -* Sat Jun 17 2023 Tom Stellard - 16.0.6-1 -- 16.0.6 Release +* Mon Sep 25 2023 Tulio Magno Quites Machado Filho - 17.0.1-1 +- Update to LLVM 17.0.1 -* Thu Apr 27 2023 Tom Stellard - 16.0.0-1 -- 16.0.0 Release +* Tue Sep 05 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc4-1 +- Update to LLVM 17.0.0 RC4 -* Thu Jan 19 2023 Tom Stellard - 15.0.7-1 -- Update to lit 15.0.7 +* Tue Aug 22 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc3-1 +- Update to LLVM 17.0.0 RC3 + +* Thu Aug 10 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc2-1 +- Update to LLVM 17.0.0 RC2 + +* Mon Jul 31 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 +- Update to LLVM 17.0.0 RC1 + +* Fri Jul 21 2023 Fedora Release Engineering - 16.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jul 06 2023 Tulio Magno Quites Machado Filho - 16.0.6-2 +- Rebuilt for Python 3.12 again + +* Wed Jun 14 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 +- Update to LLVM 16.0.6 + +* Tue Jun 13 2023 Python Maint - 16.0.5.post0-2 +- Rebuilt for Python 3.12 + +* Fri Jun 02 2023 Tulio Magno Quites Machado Filho - 16.0.5.post0-1 +- Update to LLVM 16.0.5.post0 + +* Thu May 18 2023 Tulio Magno Quites Machado Filho - 16.0.4-1 +- Update to LLVM 16.0.4 + +* Mon May 15 2023 Tulio Magno Quites Machado Filho - 16.0.3-2 +- Add a patch that accepts ppc64le as a valid triple + +* Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 +- Update to LLVM 16.0.3 + +* Tue Apr 25 2023 Tulio Magno Quites Machado Filho - 16.0.2-1 +- Update to LLVM 16.0.2 + +* Mon Apr 10 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 +- Update to LLVM 16.0.1 + +* Mon Mar 20 2023 Tulio Magno Quites Machado Filho - 16.0.0-1 +- Update to LLVM 16.0.0 + +* Tue Mar 14 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc4-1 +- Update to LLVM 16.0.0 RC4 + +* Wed Feb 22 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc3-1 +- Update to LLVM 16.0.0 RC3 + +* Wed Feb 01 2023 Tulio Magno Quites Machado Filho - 16.0.0~rc1-1 +- Update to LLVM 16.0.0 RC1 + +* Fri Jan 20 2023 Fedora Release Engineering - 15.0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 17 2023 Nikita Popov - 15.0.7-2 +- Update to LLVM 15.0.7 + +* Tue Dec 06 2022 Nikita Popov - 15.0.6-1 +- Update to LLVM 15.0.6 + +* Thu Nov 03 2022 Nikita Popov - 15.0.1-1 +- Update to lit 15.0.1 + +* Fri Oct 21 2022 Serge Guelton - 15.0.0-2 +- Add python3-psutil recommends to avoid runtime warning * Tue Sep 06 2022 Nikita Popov - 15.0.0-1 - Update to lit 15.0.0 -* Mon Jun 27 2022 Tom Stellard - 14.0.6-1 -- Update to 14.0.6 +* Fri Jul 22 2022 Fedora Release Engineering - 14.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Thu Apr 07 2022 Timm Bäder - 14.0.0-1 +* Mon Jun 13 2022 Python Maint - 14.0.3-2 +- Rebuilt for Python 3.11 + +* Wed May 18 2022 Tom Stellard - 14.0.3-1 +- 14.0.3 Release + +* Wed Mar 02 2022 Timm Bäder - 14.0.0-1 - Update to 14.0.0 -* Wed Feb 02 2022 Tom Stellard - 13.0.1-1 -- 13.0.1 Release +* Fri Feb 04 2022 Nikita Popov - 13.0.1-1 +- Update to LLVM 13.0.1 -* Fri Oct 15 2021 Tom Stellard - 13.0.0-1 +* Fri Jan 21 2022 Fedora Release Engineering - 13.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jan 11 2022 Nikita Popov - 13.0.0-3 +- Backport patch 46c947af7 for build reproducibility + +* Thu Oct 21 2021 Konrad Kleine - 13.0.0-2 +- Remove python 2 support + +* Tue Oct 05 2021 Tom Stellard - 13.0.0-1 - 13.0.0 Release -* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1 -- 12.0.1 release +* Mon Aug 09 2021 Tom Stellard - 13.0.0~rc1-2 +- Add missing dist tag to release -* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 -- 12.0.0 release +* Fri Aug 06 2021 Tom Stellard - 13.0.0~rc1-1 +- 13.0.0-rc1 Release -* Thu Oct 29 2020 sguelton@redhat.com - 0.11.0-1 -- 0.11.0 final release +* Fri Jul 23 2021 Fedora Release Engineering - 12.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Thu Sep 17 2020 sguelton@redhat.com - 0.11.0-0.1.rc1 +* Wed Jul 14 2021 Tom Stellard - 12.0.1-1 +- 12.0.1 Release + +* Fri Jun 04 2021 Python Maint - 12.0.0-3 +- Rebuilt for Python 3.10 + +* Fri Jun 04 2021 Python Maint - 12.0.0-2 +- Bootstrap for Python 3.10 + +* Thu May 06 2021 sguelton@redhat.com - 12.0.0-1 +- 12.0.0 final release + +* Tue Feb 23 2021 Pete Walter - 12.0.0-0.2.rc1 +- rebuilt + +* Wed Feb 03 2021 sguelton@redhat.com - 12.0.0-0.1.rc1 +- 12.0.0 rc1 Release + +* Wed Jan 27 2021 Fedora Release Engineering - 0.11.1-3.rc2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jan 05 2021 sguelton@redhat.com - 0.11.1-2.rc2 +- 0.11.1 rc2 Release + +* Wed Dec 02 2020 sguelton@redhat.com - 0.11.1-1.rc1 +- 0.11.1 rc1 Release + +* Sun Oct 25 2020 sguelton@redhat.com - 0.11.0-1 +- llvm 11.0.0 - final release + +* Fri Oct 09 2020 sguelton@redhat.com - 0.11.0-0.2.rc1 +- Correctly ship license + +* Fri Aug 07 2020 Tom Stellard - 0.11.0-0.1.rc1 - 0.11.0 rc1 Release +* Wed Jul 29 2020 Fedora Release Engineering - 0.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 25 2020 Miro Hrončok - 0.10.0-3 +- Rebuilt for Python 3.9 + +* Mon May 25 2020 Miro Hrončok - 0.10.0-2 +- Bootstrap for Python 3.9 + * Thu Apr 9 2020 sguelton@redhat.com - 0.10.0-1 - 0.10.0 final release -* Fri Sep 27 2019 Tom Stellard - 0.9.0-1 +* Tue Feb 11 2020 sguelton@redhat.com - 0.10.0-0.1.rc1 +- 0.10.0 rc1 Release + +* Thu Jan 30 2020 Fedora Release Engineering - 0.9.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Sep 20 2019 Tom Stellard - 0.9.0-3 +- Re-enable tests + +* Fri Sep 20 2019 Tom Stellard - 0.9.0-2 +- Disable check to avoid circular dependency with llvm-test + +* Fri Sep 20 2019 Tom Stellard - 0.9.0-1 - 0.9.0 Release -* Wed Apr 17 2019 sguelton@redhat.com - 0.8.0-1 +* Thu Aug 22 2019 Tom Stellard - 0.9.0-0.1.rc4 +- 0.9.0 rc4 Release + +* Tue Aug 20 2019 sguelton@redhat.com - 8.0.0-7 +- Rebuild for Python 3.8 with test, preparatory work for rhbz#1715016 + +* Tue Aug 20 2019 sguelton@redhat.com - 8.0.0-6 +- Rebuild for Python 3.8 without test, preparatory work for rhbz#1715016 + +* Mon Aug 19 2019 Miro Hrončok - 0.8.0-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 16 2019 sguelton@redhat.com - 8.0.0-3 +- Fix rhbz#1728067 + +* Fri Jun 28 2019 sguelton@redhat.com - 8.0.0-2 +- Fix rhbz#1725155 + +* Thu Mar 21 2019 sguelton@redhat.com - 8.0.0-1 - 0.8.0 Release -* Fri Dec 14 2018 Tom Stellard - 0.7.1-1 -- 0.7.1 Release +* Sat Feb 02 2019 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild -* Tue Nov 27 2018 Tom Stellard - 0.7.0-1 +* Mon Dec 17 2018 sguelton@redhat.com - 0.7.1-1 +- 7.0.1 Release + +* Tue Sep 25 2018 Tom Stellard - 0.7.0-2 +- Add missing dist to release tag + +* Fri Sep 21 2018 Tom Stellard - 0.7.0-1 - 0.7.0 Release -* Fri Nov 16 2018 Lumír Balhar - 0.6.0-6 -- Require platform-python-setuptools instead of python3-setuptools -- Resolves: rhbz#1650540 +* Fri Aug 31 2018 Tom Stellard - 0.7.0-0.2.rc1 +- Add Requires: python[23]-setuptools -* Mon Oct 01 2018 Tom Stellard - 0.6.0-5 -- Drop SCL macros +* Mon Aug 13 2018 Tom Stellard - 0.7.0-0.1.rc1 +- 0.7.0 rc1 -* Wed Sep 12 2018 Tom Stellard - 0.6.0-4 -- Use versioned python dependencies (python3) +* Sat Jul 14 2018 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Mon Aug 27 2018 Tom Stellard - 0.6.0-3 -- Fix python3 install +* Tue Jun 19 2018 Miro Hrončok - 0.6.0-2 +- Rebuilt for Python 3.7 -* Mon Aug 27 2018 Tom Stellard - 0.6.0-2 -- Enable python3 - -* Tue Jul 10 2018 Tom Stellrad - 0.6.0-1 +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-1 - 0.6.0 Release -* Mon Jul 02 2018 Tom Stellard - 0.5.1-4 -- Drop python2 +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-0.2.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -* Tue Jun 12 2018 Tom Stellard - 0.5.1-3 -- Add BuildRequires: scl-utils-build +* Tue Jan 23 2018 Tom Stellard - 0.6.0-0.1.rc1 +- 0.6.0 rc1 -* Thu Jan 11 2018 Tom Stellard - 0.5.1-2 -- Fix build on RHEL8 +* Tue Jan 23 2018 John Dulaney - 0.5.1-4 +- Add a missed python3 conditional around a sed operation -* Tue Jan 09 2018 Tom Stellard - 0.5.1-1 +* Mon Jan 15 2018 Merlin Mathesius - 0.5.1-3 +- Cleanup spec file conditionals + +* Wed Dec 06 2017 Tom Stellard - 0.5.1-2 +- Fix python prefix in BuildRequires + +* Tue Oct 03 2017 Tom Stellard - 0.5.1-1 - Rebase to 0.5.1 -* Thu Jun 08 2017 Tom Stellard - 0.5.0-7 -- Build for llvm-toolset-7 rename - -* Thu May 18 2017 Tom Stellard - 0.5.0-6 -- Fix package names - -* Wed May 10 2017 Tilmann Scheller - 0.5.0-5 -- Next attempt to add runtime dependency on python-setuptools - -* Tue May 09 2017 Tilmann Scheller - 0.5.0-4 -- Properly add missing runtime dependency to python-setuptools - -* Tue May 09 2017 Tilmann Scheller - 0.5.0-3 -- Add missing runtime dependency to python-setuptools - -* Fri Apr 28 2017 Tom Stellard - 0.5.0-2 -- Add llvm-toolset-4 scl support +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 09 2017 Tom Stellard - 0.5.0-1 - Initial version