diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-09-02 08:50:48 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-09-02 08:52:22 -0400 |
| commit | 448deee2b73914e094f22684e2d38637502cd4f0 (patch) | |
| tree | dc16465bf4626c315e27415016829701a8455a88 /gnu | |
| parent | 3e866e24f05e7e60cbd56a6240cdd2efede6eb4c (diff) | |
gnu: phoronix-test-suite: Address FSDG problems.
Fixes <https://issues.guix.gnu.org/56900>.
* gnu/packages/benchmark.scm (phoronix-test-suite) [source]: Add a snippet to
mark mis-licensed test profiles as non-free.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/benchmark.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index 1b036e9bd47..5cd7ae113f8 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm | |||
| @@ -281,6 +281,53 @@ file metadata operations that can be performed per second.") | |||
| 281 | (method url-fetch) | 281 | (method url-fetch) |
| 282 | (uri (string-append "https://phoronix-test-suite.com/releases/" | 282 | (uri (string-append "https://phoronix-test-suite.com/releases/" |
| 283 | name "-" version ".tar.gz")) | 283 | name "-" version ".tar.gz")) |
| 284 | (modules '((guix build utils) | ||
| 285 | (ice-9 ftw) | ||
| 286 | (ice-9 regex) | ||
| 287 | (srfi srfi-26))) | ||
| 288 | (snippet | ||
| 289 | '(begin | ||
| 290 | ;; Many test profiles have their license identified as "Free", | ||
| 291 | ;; while they are in fact non-free (see: | ||
| 292 | ;; https://github.com/phoronix-test-suite/phoronix-test-suite/issues/667). | ||
| 293 | (define problems ;see: | ||
| 294 | '("bioshock-infinite-1" ;mis-licensed as free | ||
| 295 | "firefox" ;not FSDG-compliant | ||
| 296 | "dirt-rally" ;mis-licensed as free | ||
| 297 | "dirt-showdown" ;mis-licensed as free | ||
| 298 | "dota2" ;mis-licensed as free | ||
| 299 | "dow3" ;mis-licensed as free | ||
| 300 | "etqw-demo" ;mis-licensed as free | ||
| 301 | "f12015" ;mis-licensed as free | ||
| 302 | "f12017" ;mis-licensed as free | ||
| 303 | "geexlab" ;mis-licensed as free | ||
| 304 | "gfxbench" ;mis-licensed as free | ||
| 305 | "gnupg" ;downloads ubuntu image | ||
| 306 | "hitman-1" ;mis-licensed as free | ||
| 307 | "hl2lostcoast" ;mis-licensed as free | ||
| 308 | "linux" ;contains blobs | ||
| 309 | "madmax" ;mis-licensed as free | ||
| 310 | "metro" ;mis-licensed as free | ||
| 311 | "minion" ;mis-licensed as free | ||
| 312 | "sam2017" ;mis-licensed as free | ||
| 313 | "talos-principle" ;mis-licensed as free | ||
| 314 | "tomb-raider" ;mis-licensed as free | ||
| 315 | "tf2" ;mis-licensed as free | ||
| 316 | "ue4" ;mis-licensed as free | ||
| 317 | "unigine" ;mis-licensed as free | ||
| 318 | "ut2004")) ;mis-licensed as free | ||
| 319 | |||
| 320 | (define rx (format #f "(~a)" (string-join problems "|"))) | ||
| 321 | |||
| 322 | (define (mark-as-non-free directory) | ||
| 323 | (format #t "Marking ~s as non-free...~%" directory) | ||
| 324 | (substitute* (find-files directory "^(test|suite)-definition.xml$") | ||
| 325 | (("Free") | ||
| 326 | "Non-free"))) | ||
| 327 | |||
| 328 | (with-directory-excursion "ob-cache/test-profiles/pts" | ||
| 329 | (for-each (cut mark-as-non-free <>) | ||
| 330 | (scandir "." (cut string-match rx <>)))))) | ||
| 284 | (sha256 | 331 | (sha256 |
| 285 | (base32 | 332 | (base32 |
| 286 | "105shk78jy46nwj6vnlmgp3y3lv9klar3dmcgasy4bslm4l2wx2b")) | 333 | "105shk78jy46nwj6vnlmgp3y3lv9klar3dmcgasy4bslm4l2wx2b")) |
