From 535b8a293fbab681837b93f4624a62b59fd06a7e Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 21 Dec 2021 22:18:37 +0100 Subject: [PATCH 1/3] gnu: Add libite. * gnu/packages/linux.scm (libite): New variable. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1e39d3d078..1fe3924ca2 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. ;;; @@ -4869,6 +4870,42 @@ (define-public cpufrequtils 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") (string-append (assoc-ref inputs "which") + "/bin/which")) + (("ls\"") (string-append (assoc-ref inputs "coreutils") + "/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") -- 2.34.0