* [PR PATCH] New package: afl++-4.07c
@ 2023-07-12 18:18 leahneukirchen
2023-07-16 14:57 ` Duncaen
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: leahneukirchen @ 2023-07-12 18:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
There is a new pull request by leahneukirchen against master on the void-packages repository
https://github.com/leahneukirchen/void-packages afl++
https://github.com/void-linux/void-packages/pull/44998
New package: afl++-4.07c
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/44998.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-afl++-44998.patch --]
[-- Type: text/x-diff, Size: 3359 bytes --]
From cde7ab99eb728e6eb9a53509760500df2c49a6e2 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:07 +0200
Subject: [PATCH 1/2] New package: afl++-4.07c
---
srcpkgs/afl++/template | 27 +++++++++++++++++++++++++++
srcpkgs/afl++/update | 1 +
2 files changed, 28 insertions(+)
create mode 100644 srcpkgs/afl++/template
create mode 100644 srcpkgs/afl++/update
diff --git a/srcpkgs/afl++/template b/srcpkgs/afl++/template
new file mode 100644
index 000000000000..705a67310b52
--- /dev/null
+++ b/srcpkgs/afl++/template
@@ -0,0 +1,27 @@
+# Template file for 'afl++'
+pkgname=afl++
+version=4.07c
+revision=1
+# x86 only currently
+archs="i686* x86_64*"
+build_style=gnu-makefile
+hostmakedepends="which"
+makedepends="clang gmp-devel lld llvm python3-devel"
+short_desc="American fuzzy lop Plus Plus - a brute-force fuzzer"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
+license="Apache-2.0"
+homepage="https://aflplus.plus/"
+distfiles="https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/${version}.tar.gz"
+checksum=cdb42834359b17336047814d1c24845f606456dbe4e6aff5edac66c21aa577db
+conflicts="afl>=0"
+replaces="afl>=0"
+
+nostrip_files="small_archive.a small_exec.elf"
+
+export LLVM_CONFIG=llvm-config
+
+post_install() {
+ # Test cases contain binary .../testcases/others/elf/small_exec.elf
+ # so move them to /usr/lib/afl
+ mv ${DESTDIR}/usr/{share,lib}/afl/testcases
+}
diff --git a/srcpkgs/afl++/update b/srcpkgs/afl++/update
new file mode 100644
index 000000000000..a7e36afa8b61
--- /dev/null
+++ b/srcpkgs/afl++/update
@@ -0,0 +1 @@
+pattern='v\K[\d.]+b'
From fb383b2f6f736c69ddc3ddfcde021b314e9838a3 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:17 +0200
Subject: [PATCH 2/2] afl: remove, upstream unmaintained.
Replaced by afl++.
---
srcpkgs/afl/template | 32 --------------------------------
srcpkgs/afl/update | 1 -
2 files changed, 33 deletions(-)
delete mode 100644 srcpkgs/afl/template
delete mode 100644 srcpkgs/afl/update
diff --git a/srcpkgs/afl/template b/srcpkgs/afl/template
deleted file mode 100644
index 0f5562dee17c..000000000000
--- a/srcpkgs/afl/template
+++ /dev/null
@@ -1,32 +0,0 @@
-# Template file for 'afl'
-pkgname=afl
-version=2.57b
-revision=1
-# x86 only currently
-archs="i686* x86_64*"
-build_style=gnu-makefile
-hostmakedepends="clang llvm which"
-short_desc="American fuzzy lop - a brute-force fuzzer"
-maintainer="Leah Neukirchen <leah@vuxu.org>"
-license="Apache-2.0"
-homepage="https://github.com/google/AFL/"
-distfiles="https://github.com/google/AFL/archive/v${version}.tar.gz"
-checksum=6f05a6515c07abe49f6f292bd13c96004cc1e016bda0c3cc9c2769dd43f163ee
-
-nostrip_files="small_archive.a small_exec.elf"
-
-do_build() {
- make PREFIX=/usr
-
- CFLAGS="${CFLAGS//-fstack-clash-protection} -fPIC" \
- CXXFLAGS="${CXXFLAGS//-fstack-clash-protection} -fPIC" \
- LDFLAGS="${LDFLAGS} -pie" \
- make PREFIX=/usr CC=clang CXX=clang++ -C llvm_mode
-}
-
-post_install() {
- # Test cases contain binary .../testcases/others/elf/small_exec.elf
- # so move them to /usr/lib/afl
- mv ${DESTDIR}/usr/{share,lib}/afl/testcases
-}
-
diff --git a/srcpkgs/afl/update b/srcpkgs/afl/update
deleted file mode 100644
index a7e36afa8b61..000000000000
--- a/srcpkgs/afl/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern='v\K[\d.]+b'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New package: afl++-4.07c
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
@ 2023-07-16 14:57 ` Duncaen
2023-07-16 14:59 ` Duncaen
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2023-07-16 14:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 4741 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/pull/44998#issuecomment-1637113701
Comment:
Here is the template I've had lying around, don't remember how finished it is, but I have x86_64-glibc version installed and used it a bit.
```diff
From 14518faadde08701569ed29142420bb6758ceb58 Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Sun, 16 Jul 2023 16:55:27 +0200
Subject: [PATCH] New package: afl++-4.06c
---
.../0001-fix-missing-max-path-define.patch | 20 +++++++
.../0003-fix-wrong-format-specifier.patch | 15 +++++
srcpkgs/afl++/template | 58 +++++++++++++++++++
3 files changed, 93 insertions(+)
create mode 100644 srcpkgs/afl++/patches/0001-fix-missing-max-path-define.patch
create mode 100644 srcpkgs/afl++/patches/0003-fix-wrong-format-specifier.patch
create mode 100644 srcpkgs/afl++/template
diff --git a/srcpkgs/afl++/patches/0001-fix-missing-max-path-define.patch b/srcpkgs/afl++/patches/0001-fix-missing-max-path-define.patch
new file mode 100644
index 0000000000..8711c06961
--- /dev/null
+++ b/srcpkgs/afl++/patches/0001-fix-missing-max-path-define.patch
@@ -0,0 +1,20 @@
+Source: https://git.alpinelinux.org/aports/tree/community/afl++/0001-fix-missing-max-path-define.patch
+Fix for:
+
+ src/afl-ld-lto.c:260:15: error: use of undeclared identifier 'PATH_MAX'
+ char thecwd[PATH_MAX];
+
+--- AFLplusplus-4.00c/src/afl-ld-lto.c
++++ AFLplusplus-4.00c/src/afl-ld-lto.c
+@@ -45,10 +45,7 @@
+
+ #include <dirent.h>
+
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
+- defined(__DragonFly__)
+- #include <limits.h>
+-#endif
++#include <limits.h>
+
+ #ifdef __APPLE__
+ #include <sys/syslimits.h>
diff --git a/srcpkgs/afl++/patches/0003-fix-wrong-format-specifier.patch b/srcpkgs/afl++/patches/0003-fix-wrong-format-specifier.patch
new file mode 100644
index 0000000000..49622819a7
--- /dev/null
+++ b/srcpkgs/afl++/patches/0003-fix-wrong-format-specifier.patch
@@ -0,0 +1,15 @@
+Source: https://git.alpinelinux.org/aports/tree/community/afl++/0003-fix-wrong-format-specifier.patch
+The format specifier for size_t is %zu and not %lu. Fixing this to
+prevent issues on 32 bit machines.
+
+--- AFLplusplus-4.00c/instrumentation/SanitizerCoverageLTO.so.cc
++++ AFLplusplus-4.00c/instrumentation/SanitizerCoverageLTO.so.cc
+@@ -1080,7 +1080,7 @@
+ }
+
+ if (!be_quiet)
+- printf("AUTODICTIONARY: %lu string%s found\n", count,
++ printf("AUTODICTIONARY: %zu string%s found\n", count,
+ count == 1 ? "" : "s");
+
+ if (count) {
diff --git a/srcpkgs/afl++/template b/srcpkgs/afl++/template
new file mode 100644
index 0000000000..c16d74c6eb
--- /dev/null
+++ b/srcpkgs/afl++/template
@@ -0,0 +1,58 @@
+# Template file for 'afl++'
+pkgname=afl++
+version=4.06c
+revision=1
+#wrksrc=
+#create_wrksrc=yes
+#only_for_archs="i686 x86_64"
+build_style=gnu-makefile
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="clang llvm lld "
+makedepends="gmp-devel "
+depends=""
+short_desc="AFL fork fuzzer relying on genetic algorithms instead of brute force"
+maintainer="Duncaen <duncaen@voidlinux.org>"
+license="Apache-2.0"
+homepage="https://aflplus.plus/"
+distfiles="https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/${version}.tar.gz"
+checksum=98ef9d9a1eee10b1642067700a3ea2ff87ee7aa6ca4a15cb924053c41d119423
+
+ignore_elf_dirs="/usr/share/afl/testcases/others/elf"
+nostrip_files="small_archive.a small_exec.elf"
+conflicts="afl>=0"
+
+post_patch() {
+ vsed -e 's/install: all/install:/' -i GNUmakefile
+ vsed -e '/-f GNUmakefile.llvm$/d' -i GNUmakefile
+}
+
+do_build() {
+ case "${XBPS_TARGET_MACHINE}" in
+ x86_64*|i686*) ;;
+ *) export AFL_NO_X86=1 ;;
+ esac
+ if [[ -v CROSS_BUILD ]]; then
+ CLANG_TARGET="-target=${XBPS_CROSS_TRIPLET}"
+ fi
+ echo $LDFLAGS
+ export CFLAGS="${CFLAGS//-fstack-clash-protection}"
+ export CFLAGS="${CFLAGS//-D_FORTIFY_SOURCE=2}"
+ export CXXFLAGS="${CXXFLAGS//-fstack-clash-protection}"
+ export CXXFLAGS="${CXXFLAGS//-D_FORTIFY_SOURCE=2}"
+ make PREFIX=/usr CLANG_BIN="$CLANG_BIN" CLANGPP_BIN="$CLANGPP_BIN" all
+ make -f GNUmakefile.llvm PREFIX=/usr CFLAGS="${CLANG_TARGET} ${CFLAGS}" CXXFLAGS="${CLANG_TARGET} ${CXXFLAGS}"
+}
+
+pre_install() {
+ export AFL_NO_X86=1
+}
+
+post_install() {
+ # Test cases contain binary .../testcases/others/elf/small_exec.elf
+ # so move them to /usr/lib/afl
+ mv ${DESTDIR}/usr/{share,lib}/afl/testcases
+}
--
2.41.0
```
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: New package: afl++-4.07c
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
2023-07-16 14:57 ` Duncaen
@ 2023-07-16 14:59 ` Duncaen
2023-08-05 13:53 ` [PR PATCH] [Updated] " leahneukirchen
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Duncaen @ 2023-07-16 14:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/pull/44998#issuecomment-1637114068
Comment:
Never mind, my template doesn't build at all anymore or I did some changes that broke it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] New package: afl++-4.07c
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
2023-07-16 14:57 ` Duncaen
2023-07-16 14:59 ` Duncaen
@ 2023-08-05 13:53 ` leahneukirchen
2023-08-05 14:48 ` leahneukirchen
2023-08-05 16:23 ` [PR PATCH] [Merged]: " leahneukirchen
4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2023-08-05 13:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
There is an updated pull request by leahneukirchen against master on the void-packages repository
https://github.com/leahneukirchen/void-packages afl++
https://github.com/void-linux/void-packages/pull/44998
New package: afl++-4.07c
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
If someone is bored, adding the QEMU mode could be useful...
A patch file from https://github.com/void-linux/void-packages/pull/44998.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-afl++-44998.patch --]
[-- Type: text/x-diff, Size: 3372 bytes --]
From 63e012de72f1d71a0a4d8b30dc77e047e08174a3 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:07 +0200
Subject: [PATCH 1/2] New package: afl++-4.07c
---
srcpkgs/afl++/template | 27 +++++++++++++++++++++++++++
srcpkgs/afl++/update | 1 +
2 files changed, 28 insertions(+)
create mode 100644 srcpkgs/afl++/template
create mode 100644 srcpkgs/afl++/update
diff --git a/srcpkgs/afl++/template b/srcpkgs/afl++/template
new file mode 100644
index 0000000000000..705a67310b529
--- /dev/null
+++ b/srcpkgs/afl++/template
@@ -0,0 +1,27 @@
+# Template file for 'afl++'
+pkgname=afl++
+version=4.07c
+revision=1
+# x86 only currently
+archs="i686* x86_64*"
+build_style=gnu-makefile
+hostmakedepends="which"
+makedepends="clang gmp-devel lld llvm python3-devel"
+short_desc="American fuzzy lop Plus Plus - a brute-force fuzzer"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
+license="Apache-2.0"
+homepage="https://aflplus.plus/"
+distfiles="https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/${version}.tar.gz"
+checksum=cdb42834359b17336047814d1c24845f606456dbe4e6aff5edac66c21aa577db
+conflicts="afl>=0"
+replaces="afl>=0"
+
+nostrip_files="small_archive.a small_exec.elf"
+
+export LLVM_CONFIG=llvm-config
+
+post_install() {
+ # Test cases contain binary .../testcases/others/elf/small_exec.elf
+ # so move them to /usr/lib/afl
+ mv ${DESTDIR}/usr/{share,lib}/afl/testcases
+}
diff --git a/srcpkgs/afl++/update b/srcpkgs/afl++/update
new file mode 100644
index 0000000000000..bb22392e73315
--- /dev/null
+++ b/srcpkgs/afl++/update
@@ -0,0 +1 @@
+pattern='/\K\d+\.[\d.]+c'
From bfa299452ddf67c39bf23ffc61a94c11756585e2 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:17 +0200
Subject: [PATCH 2/2] afl: remove, upstream unmaintained.
Replaced by afl++.
---
srcpkgs/afl/template | 32 --------------------------------
srcpkgs/afl/update | 1 -
2 files changed, 33 deletions(-)
delete mode 100644 srcpkgs/afl/template
delete mode 100644 srcpkgs/afl/update
diff --git a/srcpkgs/afl/template b/srcpkgs/afl/template
deleted file mode 100644
index 0f5562dee17c1..0000000000000
--- a/srcpkgs/afl/template
+++ /dev/null
@@ -1,32 +0,0 @@
-# Template file for 'afl'
-pkgname=afl
-version=2.57b
-revision=1
-# x86 only currently
-archs="i686* x86_64*"
-build_style=gnu-makefile
-hostmakedepends="clang llvm which"
-short_desc="American fuzzy lop - a brute-force fuzzer"
-maintainer="Leah Neukirchen <leah@vuxu.org>"
-license="Apache-2.0"
-homepage="https://github.com/google/AFL/"
-distfiles="https://github.com/google/AFL/archive/v${version}.tar.gz"
-checksum=6f05a6515c07abe49f6f292bd13c96004cc1e016bda0c3cc9c2769dd43f163ee
-
-nostrip_files="small_archive.a small_exec.elf"
-
-do_build() {
- make PREFIX=/usr
-
- CFLAGS="${CFLAGS//-fstack-clash-protection} -fPIC" \
- CXXFLAGS="${CXXFLAGS//-fstack-clash-protection} -fPIC" \
- LDFLAGS="${LDFLAGS} -pie" \
- make PREFIX=/usr CC=clang CXX=clang++ -C llvm_mode
-}
-
-post_install() {
- # Test cases contain binary .../testcases/others/elf/small_exec.elf
- # so move them to /usr/lib/afl
- mv ${DESTDIR}/usr/{share,lib}/afl/testcases
-}
-
diff --git a/srcpkgs/afl/update b/srcpkgs/afl/update
deleted file mode 100644
index a7e36afa8b61f..0000000000000
--- a/srcpkgs/afl/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern='v\K[\d.]+b'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] New package: afl++-4.07c
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
` (2 preceding siblings ...)
2023-08-05 13:53 ` [PR PATCH] [Updated] " leahneukirchen
@ 2023-08-05 14:48 ` leahneukirchen
2023-08-05 16:23 ` [PR PATCH] [Merged]: " leahneukirchen
4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2023-08-05 14:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
There is an updated pull request by leahneukirchen against master on the void-packages repository
https://github.com/leahneukirchen/void-packages afl++
https://github.com/void-linux/void-packages/pull/44998
New package: afl++-4.07c
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
If someone is bored, adding the QEMU mode could be useful...
A patch file from https://github.com/void-linux/void-packages/pull/44998.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-afl++-44998.patch --]
[-- Type: text/x-diff, Size: 4037 bytes --]
From ce01c7535ce536a17fecb491da538c232f5c87de Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:07 +0200
Subject: [PATCH 1/2] New package: afl++-4.07c
---
srcpkgs/afl++/patches/limits.patch | 11 +++++++++++
srcpkgs/afl++/template | 27 +++++++++++++++++++++++++++
srcpkgs/afl++/update | 1 +
3 files changed, 39 insertions(+)
create mode 100644 srcpkgs/afl++/patches/limits.patch
create mode 100644 srcpkgs/afl++/template
create mode 100644 srcpkgs/afl++/update
diff --git a/srcpkgs/afl++/patches/limits.patch b/srcpkgs/afl++/patches/limits.patch
new file mode 100644
index 0000000000000..c8463b898a642
--- /dev/null
+++ b/srcpkgs/afl++/patches/limits.patch
@@ -0,0 +1,11 @@
+--- a/src/afl-ld-lto.c
++++ b/src/afl-ld-lto.c
+@@ -45,7 +45,7 @@
+
+ #include <dirent.h>
+
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
++#if 1 || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
+ defined(__DragonFly__)
+ #include <limits.h>
+ #endif
diff --git a/srcpkgs/afl++/template b/srcpkgs/afl++/template
new file mode 100644
index 0000000000000..705a67310b529
--- /dev/null
+++ b/srcpkgs/afl++/template
@@ -0,0 +1,27 @@
+# Template file for 'afl++'
+pkgname=afl++
+version=4.07c
+revision=1
+# x86 only currently
+archs="i686* x86_64*"
+build_style=gnu-makefile
+hostmakedepends="which"
+makedepends="clang gmp-devel lld llvm python3-devel"
+short_desc="American fuzzy lop Plus Plus - a brute-force fuzzer"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
+license="Apache-2.0"
+homepage="https://aflplus.plus/"
+distfiles="https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/${version}.tar.gz"
+checksum=cdb42834359b17336047814d1c24845f606456dbe4e6aff5edac66c21aa577db
+conflicts="afl>=0"
+replaces="afl>=0"
+
+nostrip_files="small_archive.a small_exec.elf"
+
+export LLVM_CONFIG=llvm-config
+
+post_install() {
+ # Test cases contain binary .../testcases/others/elf/small_exec.elf
+ # so move them to /usr/lib/afl
+ mv ${DESTDIR}/usr/{share,lib}/afl/testcases
+}
diff --git a/srcpkgs/afl++/update b/srcpkgs/afl++/update
new file mode 100644
index 0000000000000..bb22392e73315
--- /dev/null
+++ b/srcpkgs/afl++/update
@@ -0,0 +1 @@
+pattern='/\K\d+\.[\d.]+c'
From c5b509aacf0f3343146a00166a6ef0408194b143 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Wed, 12 Jul 2023 20:12:17 +0200
Subject: [PATCH 2/2] afl: remove, upstream unmaintained.
Replaced by afl++.
---
srcpkgs/afl/template | 32 --------------------------------
srcpkgs/afl/update | 1 -
2 files changed, 33 deletions(-)
delete mode 100644 srcpkgs/afl/template
delete mode 100644 srcpkgs/afl/update
diff --git a/srcpkgs/afl/template b/srcpkgs/afl/template
deleted file mode 100644
index 0f5562dee17c1..0000000000000
--- a/srcpkgs/afl/template
+++ /dev/null
@@ -1,32 +0,0 @@
-# Template file for 'afl'
-pkgname=afl
-version=2.57b
-revision=1
-# x86 only currently
-archs="i686* x86_64*"
-build_style=gnu-makefile
-hostmakedepends="clang llvm which"
-short_desc="American fuzzy lop - a brute-force fuzzer"
-maintainer="Leah Neukirchen <leah@vuxu.org>"
-license="Apache-2.0"
-homepage="https://github.com/google/AFL/"
-distfiles="https://github.com/google/AFL/archive/v${version}.tar.gz"
-checksum=6f05a6515c07abe49f6f292bd13c96004cc1e016bda0c3cc9c2769dd43f163ee
-
-nostrip_files="small_archive.a small_exec.elf"
-
-do_build() {
- make PREFIX=/usr
-
- CFLAGS="${CFLAGS//-fstack-clash-protection} -fPIC" \
- CXXFLAGS="${CXXFLAGS//-fstack-clash-protection} -fPIC" \
- LDFLAGS="${LDFLAGS} -pie" \
- make PREFIX=/usr CC=clang CXX=clang++ -C llvm_mode
-}
-
-post_install() {
- # Test cases contain binary .../testcases/others/elf/small_exec.elf
- # so move them to /usr/lib/afl
- mv ${DESTDIR}/usr/{share,lib}/afl/testcases
-}
-
diff --git a/srcpkgs/afl/update b/srcpkgs/afl/update
deleted file mode 100644
index a7e36afa8b61f..0000000000000
--- a/srcpkgs/afl/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern='v\K[\d.]+b'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Merged]: New package: afl++-4.07c
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
` (3 preceding siblings ...)
2023-08-05 14:48 ` leahneukirchen
@ 2023-08-05 16:23 ` leahneukirchen
4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2023-08-05 16:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
There's a merged pull request on the void-packages repository
New package: afl++-4.07c
https://github.com/void-linux/void-packages/pull/44998
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
If someone is bored, adding the QEMU mode could be useful...
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-08-05 16:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12 18:18 [PR PATCH] New package: afl++-4.07c leahneukirchen
2023-07-16 14:57 ` Duncaen
2023-07-16 14:59 ` Duncaen
2023-08-05 13:53 ` [PR PATCH] [Updated] " leahneukirchen
2023-08-05 14:48 ` leahneukirchen
2023-08-05 16:23 ` [PR PATCH] [Merged]: " leahneukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).