import lld-14.0.6-1.module+el8.7.0+15816+ec020e8f

c8-stream-rhel8 imports/c8-stream-rhel8/lld-14.0.6-1.module+el8.7.0+15816+ec020e8f
CentOS Sources 7 months ago committed by Stepan Oksanichenko
parent 6386b0712d
commit f82f2978cb

.gitignore vendored

@ -1,2 +1,2 @@

@ -1,2 +1,2 @@
78d69e9bd03422f12cf36cc720bf4ee7293e17c5 SOURCES/lld-13.0.1.src.tar.xz
bba0ab108d525c911e80fed4b10435e459cdf7b6 SOURCES/lld-14.0.6.src.tar.xz
b8d2648a01d36ed0186fd2c5af325fd28797f9a0 SOURCES/tstellar-gpg-key.asc

Binary file not shown.

Binary file not shown.

@ -1,27 +1,27 @@
%bcond_without check
#global rc_ver 4
#global rc_ver 1
%global lld_srcdir lld-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%global baserelease 2
%global maj_ver 13
%global maj_ver 14
%global min_ver 0
%global patch_ver 1
%global patch_ver 6
# Don't include unittests in automatic generation of provides or requires.
%global __provides_exclude_from ^%{_libdir}/lld/.*$
%global __requires_exclude ^libgtest.*$
%bcond_with ld_alternative
%bcond_with testpkg
Name: lld
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
Release: 1%{?rc_ver:.rc%{rc_ver}}%{?dist}
Summary: The LLVM Linker
License: NCSA
Source2: tstellar-gpg-key.asc
Source3: run-lit-tests
@ -33,7 +33,6 @@ Patch0: 0001-PATCH-lld-CMake-Check-for-gtest-headers-even-if-lit..patch
# 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: cmake
@ -49,6 +48,9 @@ BuildRequires: python3-rpm-macros
BuildRequires: python3-lit
BuildRequires: llvm-googletest = %{version}
# For gpg source verification
BuildRequires: gnupg2
%if %{with ld_alternative}
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
@ -76,7 +78,20 @@ Summary: LLD shared libraries
%description libs
Shared libraries for LLD.
%if %{with testpkg}
%package test
Summary: LLD regression tests
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python3-lit
Requires: llvm-test(major) = %{maj_ver}
Requires: lld-libs = %{version}-%{release}
%description test
LLVM regression tests.
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{lld_srcdir} -p2
@ -107,11 +122,55 @@ cd %{_vpath_builddir}
%if %{with testpkg}
# Build the unittests so we can install them.
%cmake_build --target lld-test-depends
# Install libraries and binaries
cd %{_target_platform}
%if %{with testpkg}
%global lit_cfg test/%{_arch}
%global lit_unit_cfg test/Unit/%{_arch}
%global lit_lld_test_cfg_install_path %{_datadir}/lld/
# Generate lit config files. Strip off the last line that initiates the
# test run, so we can customize the configuration.
head -n -1 %{__cmake_builddir}/test/ >> %{lit_cfg}
head -n -1 %{__cmake_builddir}/test/Unit/ >> %{lit_unit_cfg}
# Patch lit config files to load custom config:
for f in %{lit_cfg} %{lit_unit_cfg}; do
echo "lit_config.load_config(config, '%{lit_lld_test_cfg_install_path}')" >> $f
# Install test files
install -d %{buildroot}%{_datadir}/lld/src
cp %{SOURCE4} %{buildroot}%{_datadir}/lld/
# The various tar options are there to make sur the archive is the same on 32 and 64 bit arch, i.e.
# the archive creation is reproducible. Move arch-specific content out of the tarball
mv %{lit_cfg} %{buildroot}%{_datadir}/lld/src/%{_arch}
mv %{lit_unit_cfg} %{buildroot}%{_datadir}/lld/src/%{_arch}
tar --sort=name --mtime='UTC 2020-01-01' -c test/ | gzip -n > %{buildroot}%{_datadir}/lld/src/test.tar.gz
install -d %{buildroot}%{_libexecdir}/tests/lld
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/lld
# Install unit test binaries
install -d %{buildroot}%{_libdir}/lld/
rm -rf `find %{buildroot}%{_libdir}/lld/ -iname '*make*'`
# Install gtest libraries
cp %{__cmake_builddir}/%{_lib}/libgtest*so* %{buildroot}%{_libdir}/lld/
# Install libraries and binaries
pushd %{_vpath_builddir}
# This is generated by Patch1 during build and (probably) must be removed afterward
rm %{buildroot}%{_includedir}/mach-o/compact_unwind_encoding.h
@ -130,13 +189,14 @@ fi
cd %{_vpath_builddir}
# armv7lhl tests disabled because of arm issue, see
%ifnarch %{arm}
%if %{with check}
%cmake_build --target check-lld
%ldconfig_scriptlets libs
@ -148,8 +208,6 @@ cd %{_vpath_builddir}
%files devel
@ -160,7 +218,26 @@ cd %{_vpath_builddir}
%files libs
%if %{with testpkg}
%files test
* Tue Jun 28 2022 Tom Stellard <> - 14.0.6-1
- 14.0.6 Release
* Fri May 06 2022 Timm Bäder <> - 14.0.0-2
- Backport ignoring --no-add-needed
* Thu Apr 07 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