From 74a803cbc5ba77ac2c202a990f039a3ab9d7458585768f4b8ca1e0a4ff7de416 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Thu, 30 Aug 2018 15:07:23 +0000 Subject: [PATCH] Accepting request 632353 from home:Guillaume_G:branches:openSUSE:Factory:ARM - Fix build on non X86* platforms OBS-URL: https://build.opensuse.org/request/show/632353 OBS-URL: https://build.opensuse.org/package/show/devel:tools/afl?expand=0&rev=92 --- afl.changes | 5 +++++ afl.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/afl.changes b/afl.changes index e6ac97c..8f9eb6d 100644 --- a/afl.changes +++ b/afl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 30 15:03:49 UTC 2018 - Guillaume GARDET + +- Fix build on non X86* platforms + ------------------------------------------------------------------- Sun Nov 5 07:57:53 UTC 2017 - mardnh@gmx.de diff --git a/afl.spec b/afl.spec index ed81e0a..0f03bf5 100644 --- a/afl.spec +++ b/afl.spec @@ -1,7 +1,7 @@ # # spec file for package afl # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,6 @@ Source: http://lcamtuf.coredump.cx/afl/releases/%{name}-%{version}.tgz Source1: afl-rpmlintrc Patch1: afl-1.58b-fix-paths.patch BuildRequires: gcc-c++ -ExclusiveArch: i586 x86_64 %description American fuzzy lop is a security-oriented fuzzer that employs a novel type @@ -51,9 +50,15 @@ sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' afl-cmin %build export CFLAGS="$CFLAGS %{optflags}" +%ifnarch %{ix86} x86_64 +export AFL_NO_X86=1 +%endif make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} %install +%ifnarch %{ix86} x86_64 +export AFL_NO_X86=1 +%endif make %{?_smp_mflags} PREFIX=%{_prefix} LIBEXEC_DIR=%{_libexecdir} DOC_DIR=%{_docdir} DESTDIR=%{buildroot} install %files