diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 09:37:22 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 09:37:22 +0100 |
| commit | 4f14c628dc805d07fa01f25d054f030c8179c99b (patch) | |
| tree | 900cf7bf548a51430478735299920b64259bf28e | |
| parent | 9e6b9ea4b18defa78b8e1e997e8c834db99a121c (diff) | |
gnu: american-fuzzy-lop: Really build against QEMU 2.3.0.
* gnu/packages/debug.scm (qemu-2.3.0): New variable.
(american-fuzzy-lop): Use it instead of QEMU-HEADLESS.
| -rw-r--r-- | gnu/packages/debug.scm | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index b0988326818..1e0034c1003 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm | |||
| @@ -141,6 +141,24 @@ intended for use by people who discover and report bugs in compilers and other | |||
| 141 | tools that process C/C++ code.") | 141 | tools that process C/C++ code.") |
| 142 | (license ncsa))) | 142 | (license ncsa))) |
| 143 | 143 | ||
| 144 | (define qemu-2.3.0 | ||
| 145 | (package | ||
| 146 | (inherit qemu-headless) | ||
| 147 | (version "2.3.0") | ||
| 148 | (source (origin | ||
| 149 | (method url-fetch) | ||
| 150 | (uri (string-append | ||
| 151 | "http://wiki.qemu-project.org/download/qemu-" | ||
| 152 | version ".tar.bz2")) | ||
| 153 | (sha256 | ||
| 154 | (base32 | ||
| 155 | "120m53c3p28qxmfzllicjzr8syjv6v4d9rsyrgkp7gnmcgvvgfmn")))) | ||
| 156 | (arguments | ||
| 157 | ;; XXX: Disable tests because of GTester's rejection of duplicate test | ||
| 158 | ;; names, which wasn't addressed in this version of QEMU. | ||
| 159 | `(#:tests? #f | ||
| 160 | ,@(package-arguments qemu-headless))))) | ||
| 161 | |||
| 144 | (define-public american-fuzzy-lop | 162 | (define-public american-fuzzy-lop |
| 145 | (let ((machine (match (or (%current-target-system) | 163 | (let ((machine (match (or (%current-target-system) |
| 146 | (%current-system)) | 164 | (%current-system)) |
| @@ -164,11 +182,11 @@ tools that process C/C++ code.") | |||
| 164 | (inputs | 182 | (inputs |
| 165 | `(("custom-qemu" | 183 | `(("custom-qemu" |
| 166 | ;; The afl-qemu tool builds qemu 2.3.0 with a few patches applied. | 184 | ;; The afl-qemu tool builds qemu 2.3.0 with a few patches applied. |
| 167 | ,(package (inherit qemu-headless) | 185 | ,(package (inherit qemu-2.3.0) |
| 168 | (name "afl-qemu") | 186 | (name "afl-qemu") |
| 169 | (inputs | 187 | (inputs |
| 170 | `(("afl-src" ,source) | 188 | `(("afl-src" ,source) |
| 171 | ,@(package-inputs qemu-headless))) | 189 | ,@(package-inputs qemu-2.3.0))) |
| 172 | ;; afl only supports using a single afl-qemu-trace executable, so | 190 | ;; afl only supports using a single afl-qemu-trace executable, so |
| 173 | ;; we only build qemu for the native target. | 191 | ;; we only build qemu for the native target. |
| 174 | (arguments | 192 | (arguments |
| @@ -176,7 +194,7 @@ tools that process C/C++ code.") | |||
| 176 | (list (string-append "--target-list=" ,machine "-linux-user")) | 194 | (list (string-append "--target-list=" ,machine "-linux-user")) |
| 177 | #:modules ((srfi srfi-1) | 195 | #:modules ((srfi srfi-1) |
| 178 | ,@%gnu-build-system-modules) | 196 | ,@%gnu-build-system-modules) |
| 179 | ,@(substitute-keyword-arguments (package-arguments qemu-headless) | 197 | ,@(substitute-keyword-arguments (package-arguments qemu-2.3.0) |
| 180 | ((#:phases qemu-phases) | 198 | ((#:phases qemu-phases) |
| 181 | `(modify-phases ,qemu-phases | 199 | `(modify-phases ,qemu-phases |
| 182 | (add-after | 200 | (add-after |
