Unverified Commit 9672f8a7 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents ff8952ad 7de6d04e
Loading
Loading
Loading
Loading
+18 −3
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
, xmlto
, docbook_xml_dtd_45
, docbook_xsl
, coreutils
, valgrind
, sourceHighlight
, meson
@@ -15,17 +14,27 @@
, bison
, ninja
, cunit
, gitUpdater
, fetchpatch
}:

stdenv.mkDerivation rec {
  pname = "libtracefs";
  version = "1.7.0";
  version = "1.8.1";

  src = fetchzip {
    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 = ''
    chmod +x samples/extract-example.sh
    patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in
@@ -52,6 +61,12 @@ stdenv.mkDerivation rec {
  doCheck = true;
  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; {
    description = "Linux kernel trace file system library";
    mainProgram = "sqlhist";