gnu: c-reduce: Update to 2.10.0-0.31e855e.

* gnu/packages/debug.scm (c-reduce): Update to 2.10.0-0.31e855e.
[inputs]: Replace llvm-9 by llvm-18 ; clang-9 by clang-18.

Change-Id: I00ea28cde580dd18224aec2da54082400364d00f
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Nicolas Graves 2025-07-19 14:54:24 +02:00 committed by Andreas Enge
parent a7a0a7bf80
commit 234505067a
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -130,55 +130,57 @@ program to exhibit a bug.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public c-reduce (define-public c-reduce
(package (let ((commit "31e855e290970cba0286e5032971509c0e7c0a80")
(name "c-reduce") (revision "0"))
(version "2.10.0") (package
(source (name "c-reduce")
(origin (version (git-version "2.10.0" revision commit))
(method git-fetch) (source
(uri (git-reference (origin
(url "https://github.com/csmith-project/creduce") (method git-fetch)
(commit (string-append "creduce-" version)))) (uri (git-reference
(file-name (git-file-name name version)) (url "https://github.com/csmith-project/creduce")
(sha256 (commit commit)))
(base32 "0ygzn32mzqn02wslaw1gwgx498mvfgpgkgir3pp1mgd3k18l3pqr")))) (file-name (git-file-name name version))
(build-system gnu-build-system) (sha256
(arguments (base32 "1yd3wvnkj7qgn2jj5byp58p3qq04w5d6agagrkgi5z5gb6z4qyqk"))))
(list (build-system gnu-build-system)
#:phases (arguments
#~(modify-phases %standard-phases (list
(replace 'check #:phases
(lambda _ #~(modify-phases %standard-phases
(with-directory-excursion "tests" (replace 'check
;; Running all tests can take a looong time, and tests 4 and 5 (lambda _
;; require frama-c or kcc. So run just one for sanity. (with-directory-excursion "tests"
(invoke "./run_tests" "1")))) ;; Running all tests can take a looong time, and tests 4 and 5
(add-after 'install 'set-load-paths ;; require frama-c or kcc. So run just one for sanity.
(lambda _ (invoke "./run_tests" "1"))))
;; Tell creduce where to find the perl modules it needs. (add-after 'install 'set-load-paths
(wrap-program (string-append #$output "/bin/creduce") (lambda _
`("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))) ;; Tell creduce where to find the perl modules it needs.
(native-inputs (list flex)) (wrap-program (string-append #$output "/bin/creduce")
(inputs (list astyle `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))))))
bash-minimal ;for wrap-program (native-inputs (list flex))
llvm-9 (inputs (list astyle
clang-9 bash-minimal ;for wrap-program
indent llvm-18
perl clang-18
perl-exporter-lite indent
perl-file-which perl
perl-getopt-tabular perl-exporter-lite
perl-regexp-common perl-file-which
perl-term-readkey)) perl-getopt-tabular
(home-page "https://embed.cs.utah.edu/creduce") perl-regexp-common
(synopsis "Reducer for interesting code") perl-term-readkey))
(description (home-page "https://embed.cs.utah.edu/creduce")
"C-Reduce is a tool that takes a large C or C++ program that has a (synopsis "Reducer for interesting code")
(description
"C-Reduce is a tool that takes a large C or C++ program that has a
property of interest (such as triggering a compiler bug) and automatically property of interest (such as triggering a compiler bug) and automatically
produces a much smaller C/C++ program that has the same property. It is produces a much smaller C/C++ program that has the same property. It is
intended for use by people who discover and report bugs in compilers and other intended for use by people who discover and report bugs in compilers and other
tools that process C/C++ code.") tools that process C/C++ code.")
(license license:ncsa))) (license license:ncsa))))
(define-public cppdap (define-public cppdap
(package (package