import lld-11.0.0-3.module+el8.4.0+8719+b61528dc
This commit is contained in:
parent
734a4deed4
commit
c75fca7755
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/hans-gpg-key.asc
|
||||
SOURCES/lld-10.0.0.src.tar.xz
|
||||
SOURCES/lld-11.0.0.src.tar.xz
|
||||
|
@ -1,2 +1,2 @@
|
||||
32fa4b0193960f05064f2ab31b5a89c7cf48a0b9 SOURCES/hans-gpg-key.asc
|
||||
ed8dc4f73847e084b65f4ad5d2f6670f6f38a8eb SOURCES/lld-10.0.0.src.tar.xz
|
||||
60672d63fa16a0c3b6e267331fa605d76b79e87b SOURCES/lld-11.0.0.src.tar.xz
|
||||
|
7986
SOURCES/0001-Revert-lld-Initial-commit-for-new-Mach-O-backend.patch
Normal file
7986
SOURCES/0001-Revert-lld-Initial-commit-for-new-Mach-O-backend.patch
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
SOURCES/lld-11.0.0.src.tar.xz.sig
Normal file
BIN
SOURCES/lld-11.0.0.src.tar.xz.sig
Normal file
Binary file not shown.
@ -56,8 +56,9 @@ esac
|
||||
cd $(mktemp -d)
|
||||
ln -s /usr/include include
|
||||
tar -xzf /usr/share/lld/src/test.tar.gz
|
||||
ln -s $ARCH.site.cfg.py test/lit.site.cfg.py
|
||||
ln -s $ARCH.site.cfg.py test/Unit/lit.site.cfg.py
|
||||
ln -s /usr/share/lld/src/$ARCH.site.cfg.py test/lit.site.cfg.py
|
||||
ln -s /usr/share/lld/src/$ARCH.Unit.site.cfg.py test/Unit/lit.site.cfg.py
|
||||
|
||||
|
||||
LD_LIBRARY_PATH=$LIB_DIR/lld:$LD_LIBRARY_PATH \
|
||||
lit -v -s $threads_arg test \
|
||||
|
@ -1,7 +1,7 @@
|
||||
#%%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 0
|
||||
|
||||
@ -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,11 +137,16 @@ 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
|
||||
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
|
||||
|
||||
tar -czf %{buildroot}%{_datadir}/lld/src/test.tar.gz test/
|
||||
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/
|
||||
@ -141,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:
|
||||
@ -166,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
|
||||
@ -183,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.*
|
||||
@ -191,9 +205,26 @@ make -C %{_target_platform} %{?_smp_mflags} check-lld
|
||||
%{_libexecdir}/tests/lld/
|
||||
%{_libdir}/lld/
|
||||
%{_datadir}/lld/src/test.tar.gz
|
||||
%{_datadir}/lld/src/%{_arch}.site.cfg.py
|
||||
%{_datadir}/lld/src/%{_arch}.Unit.site.cfg.py
|
||||
%{_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
|
||||
|
||||
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-2
|
||||
- Fix arch-dependent tarball
|
||||
|
||||
* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1
|
||||
- 10.0.0 final
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user