pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
afl++: imported to pkgsrc
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Sat Oct 25 16:02:07 2025 +0200
Changeset: 9e177b33661f13d0d6adc671705e0071f526716e
Modified Files:
Makefile
Removed Files:
afl++/DESCR
afl++/Makefile
afl++/PLIST
afl++/distinfo
afl++/patches/patch-GNUmakefile
afl++/patches/patch-GNUmakefile.llvm
afl++/patches/patch-afl-cmin
afl++/patches/patch-src_afl-cc.c
Log Message:
afl++: imported to pkgsrc
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9e177b33661f13d0d6adc671705e0071f526716e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 -
afl++/DESCR | 4 -
afl++/Makefile | 41 ------
afl++/PLIST | 236 -----------------------------------
afl++/distinfo | 9 --
afl++/patches/patch-GNUmakefile | 43 -------
afl++/patches/patch-GNUmakefile.llvm | 15 ---
afl++/patches/patch-afl-cmin | 25 ----
afl++/patches/patch-src_afl-cc.c | 18 ---
9 files changed, 392 deletions(-)
diffs:
diff --git a/Makefile b/Makefile
index d1d0fdb7a5..9042958741 100644
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,6 @@ SUBDIR+= aegis-devel
SUBDIR+= aegisub
SUBDIR+= aespipe
SUBDIR+= afflib
-SUBDIR+= afl++
SUBDIR+= afl-cov
SUBDIR+= agile
SUBDIR+= ags
diff --git a/afl++/DESCR b/afl++/DESCR
deleted file mode 100644
index bb95a84145..0000000000
--- a/afl++/DESCR
+++ /dev/null
@@ -1,4 +0,0 @@
-afl++ is an upgrade to the American Fuzzy Lop (afl) fuzzer, created initially
-to incorporate all the best features developed in the years for the fuzzers in
-the AFL family but was not merged in AFL as it is not updated since November
-2017.
diff --git a/afl++/Makefile b/afl++/Makefile
deleted file mode 100644
index 4e5c66d92d..0000000000
--- a/afl++/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-# $NetBSD: Makefile,v 1.6 2024/10/14 06:45:35 wiz Exp $
-
-DISTNAME= AFLplusplus-4.34c
-PKGNAME= ${DISTNAME:C/AFLplusplus/afl++/}
-GITHUB_PROJECT= AFLplusplus
-CATEGORIES= devel
-MASTER_SITES= ${MASTER_SITE_GITHUB:=AFLplusplus/}
-GITHUB_TAG= v${PKGVERSION_NOREV}
-
-MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= https://github.com/AFLplusplus/AFLplusplus/
-COMMENT= American Fuzzy Lop ++, a fuzzing tool for finding bugs by random input
-LICENSE= apache-2.0
-
-PYTHON_INCLUDE_CMD= python${PYVERSSUFFIX}-config --includes
-PYTHON_VERSION_CMD= python${PYVERSSUFFIX} --version
-PYTHON_LIB_CMD= python${PYVERSSUFFIX}-config --libs --embed --ldflags
-REPLACE_PYTHON+= afl-cmin.py
-
-MAKE_FLAGS+= PYTHON_INCLUDE=${PYTHON_INCLUDE_CMD:sh:Q}
-MAKE_FLAGS+= PYTHON_VERSION=${PYTHON_VERSION_CMD:sh:Q}
-MAKE_FLAGS+= PYTHON_LIB=${PYTHON_LIB_CMD:sh:Q}
-
-USE_LANGUAGES= c c++
-USE_TOOLS+= bash:run gmake
-REPLACE_BASH+= afl-cmin
-REPLACE_BASH+= afl-cmin.bash
-REPLACE_BASH+= afl-persistent-config
-MAKE_FILE= GNUmakefile
-
-.include "../../mk/bsd.prefs.mk"
-
-# for backtrace
-.if ${OPSYS} == "NetBSD" && exists(/usr/include/execinfo.h)
-LDFLAGS+= -lexecinfo
-.endif
-
-DEPENDS+= gawk-[0-9]*:../../lang/gawk
-
-.include "../../lang/python/application.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/afl++/PLIST b/afl++/PLIST
deleted file mode 100644
index 3c0fbda5c5..0000000000
--- a/afl++/PLIST
+++ /dev/null
@@ -1,236 +0,0 @@
-@comment $NetBSD$
-bin/afl-addseeds
-bin/afl-analyze
-bin/afl-c++
-bin/afl-cc
-bin/afl-clang
-bin/afl-clang++
-bin/afl-clang-fast
-bin/afl-clang-fast++
-bin/afl-cmin
-bin/afl-cmin.bash
-bin/afl-cmin.py
-bin/afl-fuzz
-bin/afl-g++
-bin/afl-gcc
-bin/afl-gotcpu
-bin/afl-persistent-config
-bin/afl-plot
-bin/afl-showmap
-bin/afl-system-config
-bin/afl-tmin
-bin/afl-whatsup
-include/afl/afl-fuzz.h
-include/afl/afl-mutations.h
-include/afl/afl-persistent-replay.h
-include/afl/afl-prealloc.h
-include/afl/afl-record-compat.h
-include/afl/alloc-inl.h
-include/afl/android-ashmem.h
-include/afl/cmplog.h
-include/afl/common.h
-include/afl/config.h
-include/afl/coverage-32.h
-include/afl/coverage-64.h
-include/afl/debug.h
-include/afl/envs.h
-include/afl/forkserver.h
-include/afl/hash.h
-include/afl/list.h
-include/afl/sharedmem.h
-include/afl/snapshot-inl.h
-include/afl/t1ha.h
-include/afl/t1ha0_ia32aes_b.h
-include/afl/t1ha_bits.h
-include/afl/t1ha_selfcheck.h
-include/afl/types.h
-include/afl/xxhash.h
-lib/afl/SanitizerCoveragePCGUARD.so
-lib/afl/afl-compiler-rt-32.o
-lib/afl/afl-compiler-rt-64.o
-lib/afl/afl-compiler-rt.o
-lib/afl/afl-llvm-dict2file.so
-lib/afl/afl-llvm-ijon-pass.so
-lib/afl/afl-llvm-pass.so
-lib/afl/cmplog-instructions-pass.so
-lib/afl/cmplog-routines-pass.so
-lib/afl/cmplog-switches-pass.so
-lib/afl/compare-transform-pass.so
-lib/afl/dynamic_list.txt
-lib/afl/injection-pass.so
-lib/afl/libAFLDriver.a
-lib/afl/libAFLQemuDriver.a
-lib/afl/split-compares-pass.so
-lib/afl/split-switches-pass.so
-man/man8/afl-addseeds.8
-man/man8/afl-analyze.8
-man/man8/afl-c++.8
-man/man8/afl-cc.8
-man/man8/afl-clang-fast++.8
-man/man8/afl-clang-fast.8
-man/man8/afl-cmin.8
-man/man8/afl-cmin.bash.8
-man/man8/afl-cmin.py.8
-man/man8/afl-fuzz.8
-man/man8/afl-gotcpu.8
-man/man8/afl-persistent-config.8
-man/man8/afl-plot.8
-man/man8/afl-showmap.8
-man/man8/afl-system-config.8
-man/man8/afl-tmin.8
-man/man8/afl-whatsup.8
-share/afl/dictionaries/README.md
-share/afl/dictionaries/aff.dict
-share/afl/dictionaries/ass.dict
-share/afl/dictionaries/atom.dict
-share/afl/dictionaries/av1_dc.dict
-share/afl/dictionaries/bash.dict
-share/afl/dictionaries/bdf.dict
-share/afl/dictionaries/bmp.dict
-share/afl/dictionaries/bz2.dict
-share/afl/dictionaries/creole.dict
-share/afl/dictionaries/css.dict
-share/afl/dictionaries/csv.dict
-share/afl/dictionaries/dds.dict
-share/afl/dictionaries/djvu.dict
-share/afl/dictionaries/docommand.dict
-share/afl/dictionaries/exif.dict
-share/afl/dictionaries/fbs.dict
-share/afl/dictionaries/ftp.dict
-share/afl/dictionaries/gif.dict
-share/afl/dictionaries/graphviz.dict
-share/afl/dictionaries/heif.dict
-share/afl/dictionaries/hoextdown.dict
-share/afl/dictionaries/html_tags.dict
-share/afl/dictionaries/http.dict
-share/afl/dictionaries/icc.dict
-share/afl/dictionaries/iccprofile.dict
-share/afl/dictionaries/icns.dict
-share/afl/dictionaries/initfile.dict
-share/afl/dictionaries/jbig2.dict
-share/afl/dictionaries/jpeg.dict
-share/afl/dictionaries/jpeg2000.dict
-share/afl/dictionaries/js.dict
-share/afl/dictionaries/json.dict
-share/afl/dictionaries/jsonnet.dict
-share/afl/dictionaries/jsonschema.dict
-share/afl/dictionaries/markdown.dict
-share/afl/dictionaries/math.dict
-share/afl/dictionaries/mathml.dict
-share/afl/dictionaries/mp4.dict
-share/afl/dictionaries/mysqld.dict
-share/afl/dictionaries/ogg.dict
-share/afl/dictionaries/openexr.dict
-share/afl/dictionaries/otf.dict
-share/afl/dictionaries/pbm.dict
-share/afl/dictionaries/pcap.dict
-share/afl/dictionaries/pdf.dict
-share/afl/dictionaries/perl.dict
-share/afl/dictionaries/png.dict
-share/afl/dictionaries/proj4.dict
-share/afl/dictionaries/protobuf.dict
-share/afl/dictionaries/ps.dict
-share/afl/dictionaries/psd.dict
-share/afl/dictionaries/regexp.dict
-share/afl/dictionaries/riff.dict
-share/afl/dictionaries/rss.dict
-share/afl/dictionaries/rst.dict
-share/afl/dictionaries/rtf.dict
-share/afl/dictionaries/ruby.dict
-share/afl/dictionaries/sas.dict
-share/afl/dictionaries/spss.dict
-share/afl/dictionaries/sql.dict
-share/afl/dictionaries/stata.dict
-share/afl/dictionaries/svg.dict
-share/afl/dictionaries/tex.dict
-share/afl/dictionaries/theme-load-fuzz.dict
-share/afl/dictionaries/tiff.dict
-share/afl/dictionaries/tokener_parse_ex.dict
-share/afl/dictionaries/toml.dict
-share/afl/dictionaries/type42.dict
-share/afl/dictionaries/url.dict
-share/afl/dictionaries/utf8.dict
-share/afl/dictionaries/vcf.dict
-share/afl/dictionaries/vhd.dict
-share/afl/dictionaries/vpx_dec.dict
-share/afl/dictionaries/wav.dict
-share/afl/dictionaries/webm.dict
-share/afl/dictionaries/webp.dict
-share/afl/dictionaries/wkt.dict
-share/afl/dictionaries/x86.dict
-share/afl/dictionaries/xml.dict
-share/afl/dictionaries/xml_UTF_16.dict
-share/afl/dictionaries/xml_UTF_16BE.dict
-share/afl/dictionaries/xml_UTF_16LE.dict
-share/afl/dictionaries/xpath.dict
-share/afl/dictionaries/xslt.dict
-share/afl/dictionaries/yaml.dict
-share/afl/dictionaries/yara.dict
-share/afl/dictionaries/zip.dict
-share/afl/injections.dic
-share/afl/testcases/README.md
-share/afl/testcases/archives/common/ar/small_archive.a
-share/afl/testcases/archives/common/bzip2/small_archive.bz2
-share/afl/testcases/archives/common/cab/small_archive.cab
-share/afl/testcases/archives/common/compress/small_archive.Z
-share/afl/testcases/archives/common/cpio/small_archive.cpio
-share/afl/testcases/archives/common/gzip/small_archive.gz
-share/afl/testcases/archives/common/lzo/small_archive.lzo
-share/afl/testcases/archives/common/rar/small_archive.rar
-share/afl/testcases/archives/common/tar/small_archive.tar
-share/afl/testcases/archives/common/xz/small_archive.xz
-share/afl/testcases/archives/common/zip/small_archive.zip
-share/afl/testcases/archives/exotic/arj/small_archive.arj
-share/afl/testcases/archives/exotic/lha/small_archive.lha
-share/afl/testcases/archives/exotic/lrzip/small_archive.lrz
-share/afl/testcases/archives/exotic/lzip/small_archive.lz
-share/afl/testcases/archives/exotic/lzma/small_archive.lzma
-share/afl/testcases/archives/exotic/rzip/small_archive.rz
-share/afl/testcases/archives/exotic/zoo/small_archive.zoo
-share/afl/testcases/images/bmp/not_kitty.bmp
-share/afl/testcases/images/gif/not_kitty.gif
-share/afl/testcases/images/ico/not_kitty.ico
-share/afl/testcases/images/jp2/not_kitty.jp2
-share/afl/testcases/images/jpeg/not_kitty.jpg
-share/afl/testcases/images/jxr/not_kitty.jxr
-share/afl/testcases/images/png/not_kitty.png
-share/afl/testcases/images/png/not_kitty_alpha.png
-share/afl/testcases/images/png/not_kitty_gamma.png
-share/afl/testcases/images/png/not_kitty_icc.png
-share/afl/testcases/images/tiff/not_kitty.tiff
-share/afl/testcases/images/webp/not_kitty.webp
-share/afl/testcases/multimedia/h264/small_movie.mp4
-share/afl/testcases/others/elf/small_exec.elf
-share/afl/testcases/others/js/small_script.js
-share/afl/testcases/others/pcap/small_capture.pcap
-share/afl/testcases/others/pdf/small.pdf
-share/afl/testcases/others/rtf/small_document.rtf
-share/afl/testcases/others/sql/simple_queries.sql
-share/afl/testcases/others/text/hello_world.txt
-share/afl/testcases/others/xml/small_document.xml
-share/doc/afl/Changelog.md
-share/doc/afl/FAQ.md
-share/doc/afl/IJON.md
-share/doc/afl/INSTALL.md
-share/doc/afl/README.cmplog.md
-share/doc/afl/README.gcc_plugin.md
-share/doc/afl/README.injections.md
-share/doc/afl/README.instrument_list.md
-share/doc/afl/README.laf-intel.md
-share/doc/afl/README.llvm.md
-share/doc/afl/README.lto.md
-share/doc/afl/README.md
-share/doc/afl/README.persistent_mode.md
-share/doc/afl/SAND.md
-share/doc/afl/afl-fuzz_approach.md
-share/doc/afl/best_practices.md
-share/doc/afl/custom_mutators.md
-share/doc/afl/env_variables.md
-share/doc/afl/features.md
-share/doc/afl/fuzzing_binary-only_targets.md
-share/doc/afl/fuzzing_in_depth.md
-share/doc/afl/ideas.md
-share/doc/afl/important_changes.md
-share/doc/afl/rpc_statsd.md
-share/doc/afl/third_party_tools.md
-share/doc/afl/tutorials.md
diff --git a/afl++/distinfo b/afl++/distinfo
deleted file mode 100644
index b2b206abc8..0000000000
--- a/afl++/distinfo
+++ /dev/null
@@ -1,9 +0,0 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:14:13 nia Exp $
-
-BLAKE2s (AFLplusplus-4.34c.tar.gz) = 4d06625771850f7204b83c2b4f4866dbe00a87dc218272017e62be7f8119962b
-SHA512 (AFLplusplus-4.34c.tar.gz) = 42f8618f8da4bfd1b4e4dc97ba827cfab730b1e2755a6143dce41d9e256aadb0ff18c2f61b07ae50790612f090371f58cd1e434996373d9c799a8a00b867b574
-Size (AFLplusplus-4.34c.tar.gz) = 3100867 bytes
-SHA1 (patch-GNUmakefile) = 7c628d33c5f542bbbcdeafcbad37a50ac3820dd3
-SHA1 (patch-GNUmakefile.llvm) = cf76d3b5bb81e17a331c531bbbb174f2c918ac04
-SHA1 (patch-afl-cmin) = 4c821a9a7efcf40f86737dcc04abd12e614dbdc8
-SHA1 (patch-src_afl-cc.c) = ce8b51060b94f8129a9ef08fa131d2c20acc8c53
diff --git a/afl++/patches/patch-GNUmakefile b/afl++/patches/patch-GNUmakefile
deleted file mode 100644
index 7686607b28..0000000000
--- a/afl++/patches/patch-GNUmakefile
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD$
-
-* Fix pathes
-* Disable gcc_plugin
-
---- GNUmakefile.orig 2025-10-01 07:45:10.000000000 +0000
-+++ GNUmakefile
-@@ -24,7 +24,7 @@ BIN_PATH = $(PREFIX)/bin
- HELPER_PATH = $(PREFIX)/lib/afl
- DOC_PATH = $(PREFIX)/share/doc/afl
- MISC_PATH = $(PREFIX)/share/afl
--MAN_PATH = $(PREFIX)/share/man/man8
-+MAN_PATH = $(PREFIX)/man/man8
- INCLUDE_PATH = $(PREFIX)/include/afl
-
- PROGNAME = afl
-@@ -329,7 +329,7 @@ ifeq "$(ARCH)" "aarch64"
- endif
-
- .PHONY: all
--all: test_x86 test_shm test_python ready $(PROGS) llvm gcc_plugin test_build all_done
-+all: test_x86 test_shm test_python ready $(PROGS) llvm
- -$(MAKE) -C utils/aflpp_driver
- @echo
- @echo
-@@ -703,7 +703,6 @@ endif
- distrib: all
- -$(MAKE) -j$(nproc) -f GNUmakefile.llvm
- ifneq "$(SYS)" "Darwin"
-- -$(MAKE) -f GNUmakefile.gcc_plugin
- -$(MAKE) -C utils/libdislocator
- -$(MAKE) -C utils/libtokencap
- endif
-@@ -859,9 +858,6 @@ install: all $(MANPAGES)
- @if [ -f utils/aflpp_driver/libAFLDriver.a ]; then set -e; install -m 644 utils/aflpp_driver/libAFLDriver.a $${DESTDIR}$(HELPER_PATH); fi
- @if [ -f utils/aflpp_driver/libAFLQemuDriver.a ]; then set -e; install -m 644 utils/aflpp_driver/libAFLQemuDriver.a $${DESTDIR}$(HELPER_PATH); fi
- -$(MAKE) -f GNUmakefile.llvm install
--ifneq "$(SYS)" "Darwin"
-- -$(MAKE) -f GNUmakefile.gcc_plugin install
--endif
- ln -sf afl-cc $${DESTDIR}$(BIN_PATH)/afl-gcc
- ln -sf afl-cc $${DESTDIR}$(BIN_PATH)/afl-g++
- ln -sf afl-cc $${DESTDIR}$(BIN_PATH)/afl-clang
diff --git a/afl++/patches/patch-GNUmakefile.llvm b/afl++/patches/patch-GNUmakefile.llvm
deleted file mode 100644
index bf3c0fc4c5..0000000000
--- a/afl++/patches/patch-GNUmakefile.llvm
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-* Fix pathes
-
---- GNUmakefile.llvm.orig 2025-10-01 07:45:10.000000000 +0000
-+++ GNUmakefile.llvm
-@@ -24,7 +24,7 @@ HELPER_PATH ?= $(PREFIX)/lib/afl
- BIN_PATH ?= $(PREFIX)/bin
- DOC_PATH ?= $(PREFIX)/share/doc/afl
- MISC_PATH ?= $(PREFIX)/share/afl
--MAN_PATH ?= $(PREFIX)/share/man/man8
-+MAN_PATH ?= $(PREFIX)/man/man8
-
- BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u "+%Y-%m-%d")
-
diff --git a/afl++/patches/patch-afl-cmin b/afl++/patches/patch-afl-cmin
deleted file mode 100644
index 65731ba9a4..0000000000
--- a/afl++/patches/patch-afl-cmin
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD$
-
-* Use gawk instead of awk
-* Use getconf instead of nproc
-
---- afl-cmin.orig 2025-10-01 07:45:10.000000000 +0000
-+++ afl-cmin
-@@ -16,7 +16,7 @@ test "$SYS" = "Darwin" && {
- export AFL_QUIET=1
- export ASAN_OPTIONS=detect_leaks=0
- export PATH="${THISPATH}:$PATH"
--awk -f - -- ${@+"$@"} <<'EOF'
-+gawk -f - -- ${@+"$@"} <<'EOF'
- #!/usr/bin/awk -f
- # awk script to minimize a test corpus of input files
- #
-@@ -383,7 +383,7 @@ BEGIN {
- }
-
- if (threads) {
-- cmd = "nproc"
-+ cmd = "getconf NPROCESSORS_ONLN"
- cmd | getline nproc
- close(cmd)
- if (threads == "all") {
diff --git a/afl++/patches/patch-src_afl-cc.c b/afl++/patches/patch-src_afl-cc.c
deleted file mode 100644
index c1b61780b1..0000000000
--- a/afl++/patches/patch-src_afl-cc.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD$
-
-* On NetBSD link with libexecinfo on runtime
-
---- src/afl-cc.c.orig 2025-10-19 13:59:11.282415885 +0000
-+++ src/afl-cc.c
-@@ -2564,6 +2564,11 @@ void add_runtime(aflcc_state_t *aflcc) {
- insert_param(aflcc, "-Wl,-lrt");
- #endif
-
-+#if defined(__NetBSD__)
-+ // Required for backtrace used in afl-compiler-rt.o
-+ insert_param(aflcc, "-lexecinfo");
-+#endif
-+
- }
-
- /** Linking behaviors -----END----- **/
Home |
Main Index |
Thread Index |
Old Index