import lld-11.0.0-3.module+el8.4.0+8719+b61528dc

This commit is contained in:
CentOS Sources 2021-05-18 02:44:40 -04:00 committed by Andrew Lukoshko
parent 0795b24719
commit 367a392d30
7 changed files with 8035 additions and 37 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/lld-10.0.1.src.tar.xz
SOURCES/hans-gpg-key.asc
SOURCES/lld-11.0.0.src.tar.xz

View File

@ -1 +1,2 @@
8581337dba00041c2633f61bfb5be778df83cff7 SOURCES/lld-10.0.1.src.tar.xz
32fa4b0193960f05064f2ab31b5a89c7cf48a0b9 SOURCES/hans-gpg-key.asc
60672d63fa16a0c3b6e267331fa605d76b79e87b SOURCES/lld-11.0.0.src.tar.xz

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,9 @@
#%%global rc_ver 6
%global baserelease 1
%global baserelease 3
%global lld_srcdir lld-%{version}%{?rc_ver:rc%{rc_ver}}.src
%global maj_ver 10
%global maj_ver 11
%global min_ver 0
%global patch_ver 1
%global patch_ver 0
# Don't include unittests in automatic generation of provides or requires.
%global __provides_exclude_from ^%{_libdir}/lld/.*$
@ -18,27 +18,26 @@ Summary: The LLVM Linker
License: NCSA
URL: http://llvm.org
%if 0%{?rc_ver:1}
Source0: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{lld_srcdir}.tar.xz
Source3: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{lld_srcdir}.tar.xz.sig
%else
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lld_srcdir}.tar.xz
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lld_srcdir}.tar.xz.sig
%endif
Source1: run-lit-tests
Source2: lit.lld-test.cfg.py
Source4: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{lld_srcdir}.tar.xz
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{lld_srcdir}.tar.xz.sig
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
Source3: run-lit-tests
Source4: lit.lld-test.cfg.py
Patch0: 0001-CMake-Check-for-gtest-headers-even-if-lit.py-is-not-.patch
Patch1: 0001-Revert-lld-Initial-commit-for-new-Mach-O-backend.patch
ExcludeArch: s390x
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: llvm-devel = %{version}
BuildRequires: llvm-test = %{version}
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: chrpath
BuildRequires: python3-devel
# For make check:
BuildRequires: python3-rpm-macros
@ -57,7 +56,10 @@ The LLVM project linker.
%package devel
Summary: Libraries and header files for LLD
Requires: lld-libs = %{version}-%{release}
Requires: lld-libs%{?_isa} = %{version}-%{release}
# lld tools are referenced in the cmake files, so we need to add lld as a
# dependency.
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains library and header files needed to develop new native
@ -80,7 +82,15 @@ Requires: lld-libs = %{version}-%{release}
LLVM regression tests.
%prep
%autosetup -n %{lld_srcdir} -p1
%setup -q -n %{lld_srcdir}
%patch0 -p1 -b .gtest-fix
# Remove the MachO backend since it doesn't seem to work on big-endian hosts.
%ifarch s390x
%patch1 -p2 -b .remove-MachO
%endif
%build
@ -88,8 +98,10 @@ mkdir %{_target_platform}
cd %{_target_platform}
%cmake .. \
-GNinja \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DLLVM_DYLIB_COMPONENTS="all" \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DPYTHON_EXECUTABLE=%{__python3} \
-DLLVM_INCLUDE_TESTS=ON \
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
@ -102,10 +114,10 @@ cd %{_target_platform}
-DLLVM_LIBDIR_SUFFIX=
%endif
%make_build
%ninja_build
# Build the unittests so we can install them.
%make_build lld-test-depends
%ninja_build lld-test-depends
%install
@ -125,7 +137,7 @@ done
# Install test files
install -d %{buildroot}%{_datadir}/lld/src
cp %{SOURCE2} %{buildroot}%{_datadir}/lld/
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
@ -133,9 +145,8 @@ mv %{lit_cfg} %{buildroot}%{_datadir}/lld/src/%{_arch}.site.cfg.py
mv %{lit_unit_cfg} %{buildroot}%{_datadir}/lld/src/%{_arch}.Unit.site.cfg.py
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
cp %{SOURCE1} %{buildroot}%{_libexecdir}/tests/lld
cp %{SOURCE3} %{buildroot}%{_libexecdir}/tests/lld
# Install unit test binaries
install -d %{buildroot}%{_libdir}/lld/
@ -147,12 +158,7 @@ cp %{_target_platform}/%{_lib}/libgtest*so* %{buildroot}%{_libdir}/lld/
# Install libraries and binaries
cd %{_target_platform}
%make_install
# Remove rpath
chrpath --delete %{buildroot}%{_bindir}/*
chrpath --delete %{buildroot}%{_libdir}/*.so*
chrpath --delete `find %{buildroot}%{_libdir}/lld/ -type f`
%ninja_install
%if %{with ld_alternative}
# Required when using update-alternatives:
@ -172,12 +178,13 @@ fi
# armv7lhl tests disabled because of arm issue, see https://koji.fedoraproject.org/koji/taskinfo?taskID=33660162
%ifnarch %{arm}
make -C %{_target_platform} %{?_smp_mflags} check-lld
%ninja_build -C %{_target_platform} %{?_smp_mflags} check-lld
%endif
%ldconfig_scriptlets libs
%files
%license LICENSE.TXT
%if %{with ld_alternative}
%ghost %{_bindir}/ld
%endif
@ -189,6 +196,7 @@ make -C %{_target_platform} %{?_smp_mflags} check-lld
%files devel
%{_includedir}/lld
%{_libdir}/liblld*.so
%{_libdir}/cmake/lld/
%files libs
%{_libdir}/liblld*.so.*
@ -202,6 +210,15 @@ make -C %{_target_platform} %{?_smp_mflags} check-lld
%{_datadir}/lld/lit.lld-test.cfg.py
%changelog
* Mon Nov 09 2020 sguelton@redhat.com - 11.0.0-3
- Exclude s390x, see rhbz#1894927
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
- 11.0.0 final
* Fri Sep 18 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