From 4ea4db5f8a3c863ceb19da90ff55d66b8a5648c7 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 21 Dec 2021 22:18:37 +0100 Subject: gnu: Add libite. * gnu/packages/linux.scm (libite): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/linux.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f008aa24f7..6f41a7fcf0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -59,6 +59,7 @@ ;;; Copyright © 2021 Josselin Poiret ;;; Copyright © 2021 Olivier Dion ;;; Copyright © 2021 Solene Rapenne +;;; Copyright © 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -4865,6 +4866,43 @@ information, and set the CPU frequency if supported, using the cpufreq capabilities of the Linux kernel.") (license license:gpl2))) +(define-public libite + (package + (name "libite") + (version "2.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/troglobit/libite") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14i0q0nxns6g4zh86zdqy97dwljkqdr5l85ammljzccsrijg9m8v")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key inputs #:allow-other-keys) + ;; replace paths to the executables + (substitute* "test/which.c" + (("/usr/bin/which") + (search-input-file inputs "/bin/which")) + (("ls\"") + (string-append + (search-input-file inputs "/bin/ls") "\""))) + ;; create pidfile in /tmp instead of /var + (substitute* "test/pidfile.c" (("/var/tmp") "/tmp"))))))) + (native-inputs (list autoconf automake libtool which)) + (synopsis "Missing pieces in GNU libc") + (description "This package provides many of the missing pieces in GNU libc. +Most notably the string functions: strlcpy(3), strlcat(3) and the highly +useful *BSD sys/queue.h and sys/tree.h API's") + (home-page "https://troglobit.com/projects/libite/") + (license license:expat))) + (define-public libraw1394 (package (name "libraw1394") -- cgit v1.2.3