From owner-svn-ports-all@freebsd.org Tue Jun 25 04:13:35 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1946715BBBCD; Tue, 25 Jun 2019 04:13:35 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1DB56F592; Tue, 25 Jun 2019 04:13:34 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8D8EBB15A; Tue, 25 Jun 2019 04:13:34 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x5P4DYi8099693; Tue, 25 Jun 2019 04:13:34 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5P4DXMO099690; Tue, 25 Jun 2019 04:13:33 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201906250413.x5P4DXMO099690@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 25 Jun 2019 04:13:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505067 - in head/security: afl afl++ X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/security: afl afl++ X-SVN-Commit-Revision: 505067 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B1DB56F592 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jun 2019 04:13:35 -0000 Author: tobik Date: Tue Jun 25 04:13:33 2019 New Revision: 505067 URL: https://svnweb.freebsd.org/changeset/ports/505067 Log: security/afl++: Unlock build on aarch64 In theory it might work on other archs but that has not been tested. While here - Install missing docs - Do not install afl-system-config since it is Linux only - Add CONFLICTS_INSTALL to security/afl (forgotten in r505008) Modified: head/security/afl++/Makefile head/security/afl++/pkg-plist head/security/afl/Makefile Modified: head/security/afl++/Makefile ============================================================================== --- head/security/afl++/Makefile Tue Jun 25 00:44:56 2019 (r505066) +++ head/security/afl++/Makefile Tue Jun 25 04:13:33 2019 (r505067) @@ -3,6 +3,7 @@ PORTNAME= afl PORTVERSION= 2.52c +PORTREVISION= 1 CATEGORIES= security PKGNAMESUFFIX= ++ @@ -12,10 +13,10 @@ COMMENT= Fast instrumented fuzzer LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/docs/COPYING -# In theory afl supports other architectures with the LLVM plugin. -# It has to be compiled with AFL_NO_X86=1 in that case. -ONLY_FOR_ARCHS= amd64 i386 -ONLY_FOR_ARCHS_REASON= Uses binary instrumentation +# In theory afl supports non-x86 architectures with the LLVM plugin. +# This has only been run tested on aarch64 so far. +ONLY_FOR_ARCHS= aarch64 amd64 i386 +ONLY_FOR_ARCHS_REASON= uses x86-only instrumentation or requires complete LLVM support USES= gmake tar:tgz USE_GITHUB= yes @@ -29,6 +30,8 @@ CONFLICTS_INSTALL= afl OPTIONS_DEFINE= DEBUG DOCS LLVM OPTIONS_DEFAULT= LLVM +# On non-x86 architectures LLVM is mandatory +OPTIONS_SLAVE= ${ARCH:Namd64:Ni386:S/${ARCH}/LLVM/} OPTIONS_SUB= yes LLVM_DESC= LLVM-based instrumentation @@ -43,6 +46,13 @@ LLVM_VARS= CC=clang${LLVM_DEFAULT} \ .include +.if ${ARCH} == "i386" || ${ARCH} == "amd64" +PLIST_SUB+= X86="" +.else +MAKE_ARGS+= AFL_NO_X86=1 +PLIST_SUB+= X86="@comment " +.endif + .if ${ARCH} == "i386" # Clang i386 emits .cfi_sections which base as(1) doesn't understand BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils @@ -83,7 +93,8 @@ post-install: post-install-LLVM-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/*.so \ ${STAGEDIR}${PREFIX}/bin/afl-clang-fast - ${INSTALL_DATA} ${WRKSRC}/llvm_mode/README.llvm \ + ${INSTALL_MAN} ${WRKSRC}/llvm_mode/README.laf-intel \ + ${WRKSRC}/llvm_mode/README.llvm \ ${STAGEDIR}${DOCSDIR} .include Modified: head/security/afl++/pkg-plist ============================================================================== --- head/security/afl++/pkg-plist Tue Jun 25 00:44:56 2019 (r505066) +++ head/security/afl++/pkg-plist Tue Jun 25 04:13:33 2019 (r505067) @@ -1,24 +1,24 @@ bin/afl-analyze -bin/afl-clang -bin/afl-clang++ +%%X86%%bin/afl-clang +%%X86%%bin/afl-clang++ %%LLVM%%bin/afl-clang-fast %%LLVM%%bin/afl-clang-fast++ bin/afl-cmin bin/afl-fuzz -bin/afl-g++ -bin/afl-gcc +%%X86%%bin/afl-g++ +%%X86%%bin/afl-gcc bin/afl-gotcpu bin/afl-plot bin/afl-showmap -bin/afl-system-config +@comment bin/afl-system-config bin/afl-tmin bin/afl-whatsup -lib/afl/afl-as +%%X86%%lib/afl/afl-as %%LLVM%%lib/afl/afl-llvm-pass.so -%%LLVM%%lib/afl/afl-llvm-rt-32.o +%%X86%%%%LLVM%%lib/afl/afl-llvm-rt-32.o %%LLVM%%lib/afl/afl-llvm-rt-64.o %%LLVM%%lib/afl/afl-llvm-rt.o -lib/afl/as +%%X86%%lib/afl/as %%LLVM%%lib/afl/compare-transform-pass.so lib/afl/libdislocator.so %%LLVM%%lib/afl/split-compares-pass.so @@ -79,6 +79,7 @@ lib/afl/libdislocator.so %%PORTDOCS%%%%DOCSDIR%%/QuickStartGuide.txt %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README.dislocator +%%LLVM%%%%PORTDOCS%%%%DOCSDIR%%/README.laf-intel %%LLVM%%%%PORTDOCS%%%%DOCSDIR%%/README.llvm %%PORTDOCS%%%%DOCSDIR%%/env_variables.txt %%PORTDOCS%%%%DOCSDIR%%/historical_notes.txt Modified: head/security/afl/Makefile ============================================================================== --- head/security/afl/Makefile Tue Jun 25 00:44:56 2019 (r505066) +++ head/security/afl/Makefile Tue Jun 25 04:13:33 2019 (r505067) @@ -24,6 +24,8 @@ USES= gmake tar:tgz ALL_TARGET= all libdislocator TEST_TARGET= test_build +CONFLICTS_INSTALL= afl++ + OPTIONS_DEFINE= DEBUG DOCS LLVM OPTIONS_DEFAULT= LLVM OPTIONS_SUB= yes