Skip to content

Commit c771d49

Browse files
Volthfpletz
Volth
authored andcommittedFeb 6, 2017
systemtap: 2016-09-16 -> 2017-02-04
1 parent 9beeee2 commit c771d49

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed
 

‎pkgs/development/tools/profiling/systemtap/default.nix

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{ fetchgit, pkgconfig, gettext, runCommand, makeWrapper
2-
, elfutils, kernel, gnumake }:
2+
, elfutils, kernel, gnumake, python2, pythonPackages, binutils }:
33
let
44
## fetchgit info
55
url = git://sourceware.org/git/systemtap.git;
6-
rev = "a10bdceb7c9a7dc52c759288dd2e555afcc5184a";
7-
sha256 = "1kllzfnh4ksis0673rma5psglahl6rvy0xs5v05qkqn6kl7irmg1";
8-
version = "2016-09-16";
6+
rev = "276ed27a3cc64531542ab73bb36bb04784e79bbc";
7+
sha256 = "11967dx3cjs96v3ncfljw0h7blsgg9wm8g9z2270q9a90988g2c2";
8+
version = "2017-02-04";
99

1010
inherit (kernel) stdenv;
1111
inherit (stdenv) lib;
@@ -14,7 +14,13 @@ let
1414
stapBuild = stdenv.mkDerivation {
1515
name = "systemtap-${version}";
1616
src = fetchgit { inherit url rev sha256; };
17-
buildInputs = [ elfutils pkgconfig gettext ];
17+
buildInputs = [ elfutils pkgconfig gettext python2 pythonPackages.setuptools ];
18+
# FIXME: Workaround for bug in kbuild, where quoted -I"/foo" flags would get mangled in out-of-tree kbuild dirs
19+
postPatch = ''
20+
substituteInPlace buildrun.cxx --replace \
21+
'o << "EXTRA_CFLAGS += -I\"" << s.runtime_path << "\"" << endl;' \
22+
'o << "EXTRA_CFLAGS += -I" << s.runtime_path << endl;'
23+
'';
1824
enableParallelBuilding = true;
1925
};
2026

@@ -48,5 +54,5 @@ in runCommand "systemtap-${kernel.version}-${version}" {
4854
rm $out/bin/stap
4955
makeWrapper $stapBuild/bin/stap $out/bin/stap \
5056
--add-flags "-r $kernelBuildDir" \
51-
--prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc elfutils gnumake ]}
57+
--prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc binutils elfutils gnumake ]}
5258
''

0 commit comments

Comments
 (0)
Please sign in to comment.