SHA256
1
0
forked from pool/afl

Accepting request 293476 from devel:tools

afl 1.58b and libexedir improvement

OBS-URL: https://build.opensuse.org/request/show/293476
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/afl?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2015-03-30 17:33:16 +00:00 committed by Git OBS Bridge
commit c0cbd0c628
5 changed files with 48 additions and 13 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e4166a57e9ef812834c498a1d95f6fcab9b1805e7ba531bc00278cffa680bc15
size 782637

19
afl-1.58b-fix-paths.patch Normal file
View File

@ -0,0 +1,19 @@
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: afl-1.58b/Makefile
===================================================================
--- afl-1.58b.orig/Makefile 2015-03-27 07:47:58.000000000 +0100
+++ afl-1.58b/Makefile 2015-03-27 21:14:10.000000000 +0100
@@ -18,8 +18,8 @@ VERSION = 1.58b
PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
-HELPER_PATH = $(PREFIX)/lib/afl
-DOC_PATH = $(PREFIX)/share/doc/afl
+HELPER_PATH = $(LIBEXEC_DIR)/afl
+DOC_PATH = $(DOC_DIR)/afl
MISC_PATH = $(PREFIX)/share/afl
PROGS = afl-gcc afl-as afl-fuzz afl-showmap afl-tmin afl-gotcpu

3
afl-1.58b.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d5ed2c5ade69e3eab4a8fa10fb73cf72966dfda45a7b458d62bc5d4497defeb
size 785211

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Mar 27 20:26:35 UTC 2015 - astieger@suse.com
- fix SLE 11 SP3 build, add afl-1.58b-fix-paths.patch
-------------------------------------------------------------------
Fri Mar 27 14:40:09 UTC 2015 - astieger@suse.com
- afl 1.58b:
* Added a workaround for abort() behavior in -lpthread programs in
QEMU mode.
* Made several documentation updates, including links to the
static instrumentation tool (sister_projects.txt).
- use libexecdir
-------------------------------------------------------------------
Tue Mar 24 15:58:08 UTC 2015 - meissner@suse.com

View File

@ -17,15 +17,16 @@
Name: afl
Version: 1.57b
Version: 1.58b
Release: 0
Summary: American fuzzy lop is a security-oriented fuzzer
License: Apache-2.0
Group: Development/Tools/Debuggers
Url: http://lcamtuf.coredump.cx/afl/
Source: http://lcamtuf.coredump.cx/afl/releases/%{name}-%{version}.tgz
Source1: afl-rpmlintrc
Source1: afl-rpmlintrc
Patch0: afl-1.46b-nodate.patch
Patch1: afl-1.58b-fix-paths.patch
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -37,24 +38,24 @@ Compared to other instrumented fuzzers, afl-fuzz is designed to be practical: it
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
export CFLAGS="$CFLAGS %{optflags}"
make %{?_smp_mflags}
make PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} %{?_smp_mflags}
%install
export PREFIX=%{_prefix}
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_datadir}/doc/%{name}
make PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%doc docs/COPYING
%{_bindir}/%{name}-*
%dir /usr/lib/%{name}
/usr/lib/%{name}/%{name}-as
/usr/lib/%{name}/as
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}-as
%{_libexecdir}/%{name}/as
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/testcases
%{_datadir}/%{name}/testcases/*
%doc docs/COPYING docs/README docs/ChangeLog docs/*.txt docs/visualization docs/vuln_samples
%changelog