Compare commits

...

3 Commits
rawhide ... f26

Author SHA1 Message Date
Tom Stellard dc584aef94 Package libFuzzer
The libFuzzer source code is included in the llvm sources
for llvm 4.0 and 5.0, but is moved into compiler-rt for LLVM 6.0,
so we are packaging it as a part of compiler-rt-4.0.* to keep it
consistent with future versions of LLVM.
2017-09-13 02:20:57 +00:00
Tom Stellard 7767000a7d 4.0.1 Release 2017-06-23 11:58:56 +00:00
Tom Stellard 6bcb3b7dbd compiler-rt 4.0.0 Final Release 2017-05-11 01:37:00 +00:00
3 changed files with 42 additions and 6 deletions

3
.gitignore vendored
View File

@ -4,3 +4,6 @@
/compiler-rt-3.8.0.src.tar.xz
/compiler-rt-3.9.0.src.tar.xz
/compiler-rt-3.9.1.src.tar.xz
/compiler-rt-4.0.0.src.tar.xz
/compiler-rt-4.0.1.src.tar.xz
/Fuzzer.tar.xz

View File

@ -4,19 +4,31 @@
%endif
Name: compiler-rt
Version: 3.9.1
Release: 1%{?dist}
Version: 4.0.1
Release: 2%{?dist}
Summary: LLVM "compiler-rt" runtime libraries
License: NCSA or MIT
URL: http://llvm.org
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
# Extract libFuzzer sources from the llvm tarball. We are packaging it as part
# of compiler-rt, because upstream moved the code into the compiler-rt project
# for LLVM 6.0.0, and we also don't want to add clang as a build dependency for
# llvm.
# wget http://llvm.org/releases/4.0.1/llvm-4.0.1.src.tar.xz
# tar -xJf llvm-4.0.1.src.tar.xz
# cd llvm-4.0.1.src/lib/Fuzzer/
# tar -cJf Fuzzer.tar.xz Fuzzer/
Source1: Fuzzer.tar.xz
BuildRequires: cmake
BuildRequires: python
BuildRequires: llvm-devel = %{version}
BuildRequires: llvm-static = %{version}
# libFuzzer must be built by clang.
BuildRequires: clang
%description
The compiler-rt project is a part of the LLVM project. It provides
implementation of the low-level target-specific hooks required by
@ -24,7 +36,9 @@ code generation, sanitizer runtimes and profiling library for code
instrumentation, and Blocks C language extension.
%prep
%setup -q -n %{name}-%{version}.src
%setup -T -q -b 1 -n Fuzzer
%autosetup -n %{name}-%{version}.src -p1
%build
mkdir -p _build
@ -42,18 +56,26 @@ cd _build
make %{?_smp_mflags}
pushd ../../Fuzzer
./build.sh
popd
%install
cd _build
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
pushd ../../Fuzzer
install -m0644 libFuzzer.a %{buildroot}%{_libdir}/clang/%{version}/lib
popd
# move sanitizer lists to better place
mkdir -p %{buildroot}%{_libdir}/clang/%{version}
for file in asan_blacklist.txt msan_blacklist.txt dfsan_blacklist.txt cfi_blacklist.txt dfsan_abilist.txt; do
mv -v %{buildroot}%{_prefix}/${file} %{buildroot}%{_libdir}/clang/%{version}/ || :
done
# move sanitizer libs to better place
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
mv -v %{buildroot}%{_prefix}/lib/linux/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
@ -70,6 +92,15 @@ cd _build
%{_libdir}/clang/%{version}
%changelog
* Tue Sep 12 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-2
- Package libFuzzer
* Fri Jun 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
- 4.0.1 Release
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
- compiler-rt 4.0.0 Final Release
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
- compiler-rt 3.9.1

View File

@ -1 +1,3 @@
SHA512 (compiler-rt-3.9.1.src.tar.xz) = 91a4c78a5e8c1cdd2d6bbcb27d2c34f49ea30a952733444ef4f4a7cc7503c880d4b6924595e87745ef6278851178f49f98d38d2068975d4fb6577fb9e9cdcdbe
SHA512 (compiler-rt-4.0.0.src.tar.xz) = ed52436a2399ca82c1af46a523e89e88c23367f74cd110f0267af49a72aa4912ae8f48c6093e6b01c9ea68c48354a12201d26baf721d254fb017ddb98af2e3dd
SHA512 (compiler-rt-4.0.1.src.tar.xz) = cfeb625884b273f7c0e6767b81a8d3e5f24e0b96a510d5764d9d47a0e215fc841b4cb9d1843c8fb428cd21def720cfbfe8d3593ff5bb390548ebc8c32a902649
SHA512 (Fuzzer.tar.xz) = 74a3df67ac71a1049a97a03f1465162bdee536504b193829842c54c27d879b01a4496f0c276e9626b5d06c1b42190e275de02c8fa05f36d9c2650602b3aa13dd