[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
38/79: gnu: Add klee-uclibc.
From: |
guix-commits |
Subject: |
38/79: gnu: Add klee-uclibc. |
Date: |
Sun, 21 Jul 2024 09:59:45 -0400 (EDT) |
lilyp pushed a commit to branch gnome-team
in repository guix.
commit 3bdaa223b363b6986baa4bfa11f629f6ba974bba
Author: Sören Tempel <soeren@soeren-tempel.net>
AuthorDate: Mon Jul 8 09:44:25 2024 +0200
gnu: Add klee-uclibc.
* gnu/packages/check.scm (klee-uclibc): New variable.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
gnu/packages/check.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 1ed0ad9c98..44cf069b00 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -88,6 +88,7 @@
#:use-module (gnu packages guile)
#:use-module (gnu packages guile-xyz)
#:use-module (gnu packages maths)
+ #:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -990,6 +991,63 @@ macros for defining tests, grouping them into suites, and
providing a test
runner. It is quite unopinionated with most of its features being optional.")
(license license:isc)))
+(define-public klee-uclibc
+ (let ((commit "955d502cc1f0688e82348304b053ad787056c754"))
+ (package
+ (name "klee-uclibc")
+ (version (git-version "20230612" "0" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/klee/klee-uclibc")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12fnr5mq80cxwvv09gi844mi31jgi8067swagxnlxlhxj4mi125j"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ;upstream uClibc tests do not work in the fork
+ #:strip-directories '() ;only ships a static library, so don't strip
anything.
+ #:phases (modify-phases %standard-phases
+ ;; Disable locales as these would have to be downloaded and
+ ;; shouldn't really be needed for symbolic execution
either.
+ (add-after 'unpack 'patch-config
+ (lambda _
+ (substitute* "klee-premade-configs/x86_64/config"
+ (("UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y")
+ "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=n")
+ (("UCLIBC_PREGENERATED_LOCALE_DATA=y")
+ "UCLIBC_PREGENERATED_LOCALE_DATA=n")
+ (("UCLIBC_HAS_LOCALE=y")
+ "UCLIBC_HAS_LOCALE=n")
+ (("UCLIBC_HAS_XLOCALE=y")
+ "UCLIBC_HAS_XLOCALE=n"))))
+
+ ;; Upstream uses a custom non-GNU configure script written
+ ;; in Python, replace the default configure phase
accordingly.
+ (replace 'configure
+ (lambda _
+ (invoke "./configure" "--make-llvm-lib"
+ "--enable-release")))
+
+ ;; Custom install phase to only install the libc.a file
manually.
+ ;; This is the only file which is used/needed by KLEE
itself.
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (install-file "lib/libc.a"
+ (string-append (assoc-ref outputs "out")
+ "/lib/klee")))))))
+ ;; ncurses is only needed for the `make menuconfig` interface.
+ (native-inputs (list clang-13 llvm-13 python ncurses))
+ (synopsis "Variant of uClibc tailored to symbolic execution")
+ (description
+ "Modified version of uClibc for symbolic execution of
+Unix userland software. This library can only be used in conjunction
+with the @code{klee} package.")
+ (home-page "https://klee-se.org/")
+ (license license:lgpl2.1))))
+
(define-public klee
(package
(name "klee")
- 16/79: gnu: m2-planet: Fix supported systems., (continued)
- 16/79: gnu: m2-planet: Fix supported systems., guix-commits, 2024/07/21
- 10/79: gnu: miniflux: Enable all tests., guix-commits, 2024/07/21
- 14/79: gnu: xarchiver: Update to 0.5.4.23., guix-commits, 2024/07/21
- 09/79: gnu: miniflux: Adjust indentation., guix-commits, 2024/07/21
- 25/79: gnu: xrdp: update to 0.10.0., guix-commits, 2024/07/21
- 13/79: gnu: ncdu-1: Update to 1.20., guix-commits, 2024/07/21
- 31/79: gnu: python-colorlog: Use new style., guix-commits, 2024/07/21
- 17/79: gnu: python-dolfin-adjoint: Fix indentation., guix-commits, 2024/07/21
- 06/79: gnu: Add go-github-com-go-webauthn-x., guix-commits, 2024/07/21
- 36/79: gnu: lollypop: Update to 1.4.40., guix-commits, 2024/07/21
- 38/79: gnu: Add klee-uclibc.,
guix-commits <=
- 39/79: gnu: klee: Build with klee-uclibc support., guix-commits, 2024/07/21
- 41/79: gnu: tracker-miners: Update to 3.7.3., guix-commits, 2024/07/21
- 42/79: gnu: baobab: Update to 46.0., guix-commits, 2024/07/21
- 53/79: gnu: gnome-clocks: Update to 46.0., guix-commits, 2024/07/21
- 51/79: gnu: gnome-calendar: Update to 46.1., guix-commits, 2024/07/21
- 54/79: gnu: Add gtk-frdp-for-gnome-connections., guix-commits, 2024/07/21
- 55/79: gnu: gnome-connections: Update to 46.0., guix-commits, 2024/07/21
- 58/79: gnu: gnome-console: Update to 46.0., guix-commits, 2024/07/21
- 37/79: gnu: lollypop: Update package style., guix-commits, 2024/07/21
- 45/79: gnu: epiphany: Update to 46.2., guix-commits, 2024/07/21