libtracefs: 1.7.0 -> 1.8.1 + other updates (#332184)

This commit is contained in:
Sandro 2024-09-03 21:54:41 +02:00 committed by GitHub
commit 9672f8a700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,6 @@
, xmlto , xmlto
, docbook_xml_dtd_45 , docbook_xml_dtd_45
, docbook_xsl , docbook_xsl
, coreutils
, valgrind , valgrind
, sourceHighlight , sourceHighlight
, meson , meson
@ -15,17 +14,27 @@
, bison , bison
, ninja , ninja
, cunit , cunit
, gitUpdater
, fetchpatch
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libtracefs"; pname = "libtracefs";
version = "1.7.0"; version = "1.8.1";
src = fetchzip { src = fetchzip {
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-libtracefs-${version}.tar.gz"; url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-libtracefs-${version}.tar.gz";
hash = "sha256-64eXFFdnZHHf4C3vbADtPuIMsfJ85VZ6t8A1gIc1CW0="; hash = "sha256-2UiEgY4mQRLpWah+2rVfPiiUYBSSzRAy5gOv4YELQFQ=";
}; };
patches = [
(fetchpatch {
name = "add-missing-documentation-to-meson-build.patch";
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/patch/?id=4cbebed79b1fe933367e298ea7ddef694b9f98d0";
hash = "sha256-tSaR0wpxrm50IyMgMoUCcHBB9r8lQQZZYGru6Znre50=";
})
];
postPatch = '' postPatch = ''
chmod +x samples/extract-example.sh chmod +x samples/extract-example.sh
patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in
@ -52,6 +61,12 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
checkInputs = [ cunit ]; checkInputs = [ cunit ];
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git";
rev-prefix = "libtracefs-";
};
meta = with lib; { meta = with lib; {
description = "Linux kernel trace file system library"; description = "Linux kernel trace file system library";
mainProgram = "sqlhist"; mainProgram = "sqlhist";