Merge pull request #238223 from wentasah/tracing-update

trace-cmd + libraries: update

authored by

Franz Pletz and committed by
GitHub
b3f5bcf0 5224f298

+43 -36
+12 -17
pkgs/os-specific/linux/libtraceevent/default.nix
··· 1 - { lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, coreutils }: 2 3 stdenv.mkDerivation rec { 4 pname = "libtraceevent"; 5 - version = "1.6.2"; 6 7 src = fetchgit { 8 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git"; 9 rev = "libtraceevent-${version}"; 10 - sha256 = "sha256-iLy2rEKn0UJguRcY/W8RvUq7uX+snQojb/cXOmMsjwc="; 11 }; 12 13 - # Don't build and install html documentation 14 postPatch = '' 15 - sed -i -e '/^all:/ s/html//' -e '/^install:/ s/install-html//' Documentation/Makefile 16 - substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd 17 ''; 18 19 - outputs = [ "out" "dev" "devman" ]; 20 - enableParallelBuilding = true; 21 - nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ]; 22 - makeFlags = [ 23 - "prefix=${placeholder "out"}" 24 - "doc" # build docs 25 - ]; 26 - installFlags = [ 27 - "pkgconfig_dir=${placeholder "out"}/lib/pkgconfig" 28 - "doc-install" 29 - ]; 30 31 meta = with lib; { 32 description = "Linux kernel trace event library";
··· 1 + { lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, meson, ninja, cunit }: 2 3 stdenv.mkDerivation rec { 4 pname = "libtraceevent"; 5 + version = "1.7.3"; 6 7 src = fetchgit { 8 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git"; 9 rev = "libtraceevent-${version}"; 10 + sha256 = "sha256-poF+Cqcdj0KIgEJWW7XDAlRLz2/Egi948s1M24ETvBo="; 11 }; 12 13 postPatch = '' 14 + chmod +x Documentation/install-docs.sh.in 15 + patchShebangs --build check-manpages.sh Documentation/install-docs.sh.in 16 ''; 17 18 + outputs = [ "out" "dev" "devman" "doc" ]; 19 + nativeBuildInputs = [ meson ninja pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ]; 20 + 21 + ninjaFlags = [ "all" "docs" ]; 22 + 23 + doCheck = true; 24 + checkInputs = [ cunit ]; 25 26 meta = with lib; { 27 description = "Linux kernel trace event library";
+27 -15
pkgs/os-specific/linux/libtracefs/default.nix
··· 8 , docbook_xml_dtd_45 9 , docbook_xsl 10 , coreutils 11 - , which 12 , valgrind 13 , sourceHighlight 14 }: 15 16 stdenv.mkDerivation rec { 17 pname = "libtracefs"; 18 - version = "1.6.4"; 19 20 src = fetchgit { 21 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git"; 22 rev = "libtracefs-${version}"; 23 - sha256 = "sha256-fWop0EMkoVulLBzU7q8x1IhMtdnEJ89wMz0cz964F6s="; 24 }; 25 26 postPatch = '' 27 - substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd 28 - patchShebangs check-manpages.sh 29 ''; 30 31 outputs = [ "out" "dev" "devman" "doc" ]; 32 - enableParallelBuilding = true; 33 - nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl which valgrind sourceHighlight ]; 34 - buildInputs = [ libtraceevent ]; 35 - makeFlags = [ 36 - "prefix=${placeholder "out"}" 37 - "doc" # build docs 38 - ]; 39 - installFlags = [ 40 - "pkgconfig_dir=${placeholder "out"}/lib/pkgconfig" 41 - "install_doc" 42 ]; 43 44 meta = with lib; { 45 description = "Linux kernel trace file system library";
··· 8 , docbook_xml_dtd_45 9 , docbook_xsl 10 , coreutils 11 , valgrind 12 , sourceHighlight 13 + , meson 14 + , flex 15 + , bison 16 + , ninja 17 + , cunit 18 }: 19 20 stdenv.mkDerivation rec { 21 pname = "libtracefs"; 22 + version = "1.7.0"; 23 24 src = fetchgit { 25 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git"; 26 rev = "libtracefs-${version}"; 27 + sha256 = "sha256-64eXFFdnZHHf4C3vbADtPuIMsfJ85VZ6t8A1gIc1CW0="; 28 }; 29 30 postPatch = '' 31 + chmod +x samples/extract-example.sh 32 + patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in 33 ''; 34 35 outputs = [ "out" "dev" "devman" "doc" ]; 36 + nativeBuildInputs = [ 37 + meson 38 + ninja 39 + pkg-config 40 + asciidoc 41 + xmlto 42 + docbook_xml_dtd_45 43 + docbook_xsl 44 + valgrind 45 + sourceHighlight 46 + flex 47 + bison 48 ]; 49 + buildInputs = [ libtraceevent ]; 50 + 51 + ninjaFlags = [ "all" "docs" ]; 52 + 53 + doCheck = true; 54 + checkInputs = [ cunit ]; 55 56 meta = with lib; { 57 description = "Linux kernel trace file system library";
+4 -4
pkgs/os-specific/linux/trace-cmd/default.nix
··· 1 { lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libtraceevent, libtracefs, zstd, sourceHighlight }: 2 stdenv.mkDerivation rec { 3 pname = "trace-cmd"; 4 - version = "3.1.6"; 5 6 src = fetchgit { 7 url = "https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/"; 8 rev = "trace-cmd-v${version}"; 9 - sha256 = "sha256-qjfeomeExjsx/6XrUaGm5szbL7XVlekGd4Hsuncv8NY="; 10 }; 11 12 # Don't build and install html documentation ··· 20 21 buildInputs = [ libtraceevent libtracefs zstd ]; 22 23 - outputs = [ "out" "lib" "dev" "man" ]; 24 25 MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"; 26 ··· 59 homepage = "https://www.trace-cmd.org/"; 60 license = with licenses; [ lgpl21Only gpl2Only ]; 61 platforms = platforms.linux; 62 - maintainers = with maintainers; [ thoughtpolice basvandijk ]; 63 }; 64 }
··· 1 { lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libtraceevent, libtracefs, zstd, sourceHighlight }: 2 stdenv.mkDerivation rec { 3 pname = "trace-cmd"; 4 + version = "3.2"; 5 6 src = fetchgit { 7 url = "https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/"; 8 rev = "trace-cmd-v${version}"; 9 + sha256 = "sha256-KlykIYF4uy1phgWRG5j76FJqgO7XhNnyrTDVTs8YOXY="; 10 }; 11 12 # Don't build and install html documentation ··· 20 21 buildInputs = [ libtraceevent libtracefs zstd ]; 22 23 + outputs = [ "out" "lib" "dev" "man" "devman" ]; 24 25 MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"; 26 ··· 59 homepage = "https://www.trace-cmd.org/"; 60 license = with licenses; [ lgpl21Only gpl2Only ]; 61 platforms = platforms.linux; 62 + maintainers = with maintainers; [ thoughtpolice basvandijk wentasah ]; 63 }; 64 }