diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2025-10-05 23:55:52 +0900 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2025-11-22 13:39:08 +0800 |
| commit | 6c965c460fb16fe805d4151bc1624dc2e18120d3 (patch) | |
| tree | 1fe53240877071f849156daa2db651e0d8d91bec /gnu/packages/debug.scm | |
| parent | b9e5d234d9551dfb85f1c2c6f400b6ae93ddb559 (diff) | |
gnu: aflplusplus: Use qemu-for-aflplusplus.
* gnu/packages/debug.scm (aflplusplus) [inputs]:
Replace qemu with qemu-for-aflplusplus.
Closes: guix/guix#3319
Change-Id: I17f7f5eba5ac0ace54634dc2b8eecde4b3e19a6f
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/debug.scm')
| -rw-r--r-- | gnu/packages/debug.scm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 6869436deb3..cf00e82cca0 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm | |||
| @@ -639,10 +639,24 @@ server and embedded PowerPC, and S390 guests.") | |||
| 639 | (search-input-file inputs "bin/gcc"))) | 639 | (search-input-file inputs "bin/gcc"))) |
| 640 | (("alt_cxx = \"g\\+\\+\";") | 640 | (("alt_cxx = \"g\\+\\+\";") |
| 641 | (format #f "alt_cxx = \"~a\";" | 641 | (format #f "alt_cxx = \"~a\";" |
| 642 | (search-input-file inputs "bin/g++")))))))))) | 642 | (search-input-file inputs "bin/g++")))))) |
| 643 | (add-after 'build 'build-qasan | ||
| 644 | (lambda* (#:key parallel-build? make-flags #:allow-other-keys) | ||
| 645 | (apply invoke "make" "-C" "qemu_mode/libqasan" | ||
| 646 | "-j" (number->string (if parallel-build? | ||
| 647 | (parallel-job-count) | ||
| 648 | "1")) | ||
| 649 | make-flags))) | ||
| 650 | ;; afl-qemu-trace is a symbolic link to QEMU's binary. | ||
| 651 | ;; Substituting its source code with AFL++'s output path | ||
| 652 | ;; would result in a dependency cycle. | ||
| 653 | (add-after 'install-qemu 'wrap-qemu | ||
| 654 | (lambda _ | ||
| 655 | (wrap-program (string-append #$output "/bin/afl-qemu-trace") | ||
| 656 | `("AFL_PATH" = (,(string-append #$output "/lib/afl")))))))))) | ||
| 643 | ;; According to the Dockerfile, GCC 12 is producing compile errors for some | 657 | ;; According to the Dockerfile, GCC 12 is producing compile errors for some |
| 644 | ;; targets, so explicitly use GCC 11 here. | 658 | ;; targets, so explicitly use GCC 11 here. |
| 645 | (inputs (list gcc-11 gmp python qemu)) | 659 | (inputs (list gcc-11 gmp python qemu-for-aflplusplus)) |
| 646 | (native-inputs (list gcc-11)) | 660 | (native-inputs (list gcc-11)) |
| 647 | (home-page "https://aflplus.plus/") | 661 | (home-page "https://aflplus.plus/") |
| 648 | (description | 662 | (description |
