Accepting request 882886 from devel:tools
- install `afl-clang-lto`, recommended by upstream as the best variant - add dependency on `lld` - bump llvm-devel up to >= 11.0.0 - fix /usr/bin/env path in afl.cmin scripts - prevent stripping of runtime objects (fix bug 1184324) (forwarded request 882850 from haasn) OBS-URL: https://build.opensuse.org/request/show/882886 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/afl?expand=0&rev=60
This commit is contained in:
commit
57185a42bb
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 3 23:31:18 UTC 2021 - Niklas Haas <obs@haasn.xyz>
|
||||||
|
|
||||||
|
- install `afl-clang-lto`, recommended by upstream as the best variant
|
||||||
|
- add dependency on `lld`
|
||||||
|
- bump llvm-devel up to >= 11.0.0
|
||||||
|
- fix /usr/bin/env path in afl.cmin scripts
|
||||||
|
- prevent stripping of runtime objects (fix bug 1184324)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 29 12:29:54 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Mon Mar 29 12:29:54 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
11
afl.spec
11
afl.spec
@ -27,8 +27,10 @@ Source1: afl-rpmlintrc
|
|||||||
Patch1: afl-3.0c-fix-paths.patch
|
Patch1: afl-3.0c-fix-paths.patch
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: lld
|
||||||
|
BuildRequires: llvm-devel >= 11.0.0
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
Requires: lld
|
||||||
|
|
||||||
%description
|
%description
|
||||||
American fuzzy lop is a security-oriented fuzzer that employs a novel type
|
American fuzzy lop is a security-oriented fuzzer that employs a novel type
|
||||||
@ -48,7 +50,8 @@ use cases - say, common image parsing or file compression libraries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n AFLplusplus-%version
|
%setup -q -n AFLplusplus-%version
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' afl-cmin
|
sed -i 's|#!/usr/bin/env sh|#!/bin/sh|g' afl-cmin
|
||||||
|
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' afl-cmin.bash
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$CFLAGS %{optflags} -fno-lto"
|
export CFLAGS="$CFLAGS %{optflags} -fno-lto"
|
||||||
@ -63,6 +66,7 @@ make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_doc
|
|||||||
export AFL_NO_X86=1
|
export AFL_NO_X86=1
|
||||||
%endif
|
%endif
|
||||||
make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} MAN_PATH=%{_mandir}/man8 DESTDIR=%{buildroot} install
|
make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} MAN_PATH=%{_mandir}/man8 DESTDIR=%{buildroot} install
|
||||||
|
chmod -x %{buildroot}/%{_libexecdir}/%{name}/*.o
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license docs/COPYING LICENSE
|
%license docs/COPYING LICENSE
|
||||||
@ -74,13 +78,16 @@ make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_doc
|
|||||||
%ifarch x86_64 aarch64 ppc64 ppc64le s390x
|
%ifarch x86_64 aarch64 ppc64 ppc64le s390x
|
||||||
%{_libexecdir}/%{name}/afl-compiler-rt-64.o
|
%{_libexecdir}/%{name}/afl-compiler-rt-64.o
|
||||||
%{_libexecdir}/%{name}/afl-llvm-rt-64.o
|
%{_libexecdir}/%{name}/afl-llvm-rt-64.o
|
||||||
|
%{_libexecdir}/%{name}/afl-llvm-rt-lto-64.o
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86 %{arm}
|
%ifarch %ix86 %{arm}
|
||||||
%{_libexecdir}/%{name}/afl-compiler-rt-32.o
|
%{_libexecdir}/%{name}/afl-compiler-rt-32.o
|
||||||
%{_libexecdir}/%{name}/afl-llvm-rt-32.o
|
%{_libexecdir}/%{name}/afl-llvm-rt-32.o
|
||||||
|
%{_libexecdir}/%{name}/afl-llvm-rt-lto-32.o
|
||||||
%endif
|
%endif
|
||||||
%{_libexecdir}/%{name}/afl-compiler-rt.o
|
%{_libexecdir}/%{name}/afl-compiler-rt.o
|
||||||
%{_libexecdir}/%{name}/afl-llvm-rt.o
|
%{_libexecdir}/%{name}/afl-llvm-rt.o
|
||||||
|
%{_libexecdir}/%{name}/afl-llvm-rt-lto.o
|
||||||
%{_libexecdir}/%{name}/dynamic_list.txt
|
%{_libexecdir}/%{name}/dynamic_list.txt
|
||||||
%{_libexecdir}/%{name}/*.so
|
%{_libexecdir}/%{name}/*.so
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user