-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernelshark: init at 0.9.8 & trace-cmd: 2.6 -> 2.8.3 #60367
kernelshark: init at 0.9.8 & trace-cmd: 2.6 -> 2.8.3 #60367
Conversation
When I read about it on phoronix, I thought it would be cool to have it here but since there is no release yet, I wonder when to merge. Did they announce a release date yet ? |
56db710
to
d3c2b37
Compare
|
||
MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"; | ||
|
||
buildPhase = "make trace-cmd libs doc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use
buildFlags = [ "trace-cmd" "libs" "doc" ];
Overriding phases like this breaks hooks and other features of the generic builder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to build with either buildFlags
, makeFlags
or buildTargets
set to [ "trace-cmd" "libs" "doc" ];
but all resulted in a failing build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be caused by generic builder adding SHELL
variable:
nixpkgs/pkgs/stdenv/generic/setup.sh
Line 1027 in 9dd1bbc
SHELL=$SHELL |
Which is extremely weird, since the makefiles do not seem to refer to SHELL
. And even weider, the linking error is from not finding a symbol that is in the same file:
/nix/store/1kl6ms8x56iyhylb2r83lq7j3jbnix7w-binutils-2.31.1/bin/ld: /build/trace-cmd-a8faf36/tracecmd/trace-record.o: in function `reset_event_pid':
/build/trace-cmd-a8faf36/tracecmd/trace-record.c:3850: undefined reference to `add_event_pid'
collect2: error: ld returned 1 exit status
|
||
GUI_INSTALL = $(HTML_INSTALL) $(IMGS_INSTALL) | ||
|
||
-install: $(MAN1_INSTALL) $(MAN5_INSTALL) $(GUI_INSTALL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why split the targets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the trace-cmd
package I only want to install the man pages and not the documentation for kernelshark ($(GUI_INSTALL)
) so I added the install_man
target.
d3c2b37
to
988f080
Compare
@GrahamcOfBorg build trace-cmd kernelshark |
@teto no, I don't think they announced a release date yet. The reason I packaged it is that I want to try this out. Merging would allow other nixpkgs-unstable users to also try this out. However I do wonder myself what our policy is of packaging unreleased software in nixpkgs-unstable. |
988f080
to
1827749
Compare
@jtojnar could you do another review please? |
I reported the Makefile patches upstream. Hopefully they get merged so we don't have to maintain them. |
1827749
to
f0c5684
Compare
f0c5684
to
585de35
Compare
@GrahamcOfBorg build trace-cmd kernelshark |
b8bfc5c
to
c9c8950
Compare
@GrahamcOfBorg build trace-cmd kernelshark |
Motivation for this change
https://www.phoronix.com/scan.php?page=news_item&px=KernelShark-1.0-Soon
Note that the
kernelshark-1.0
has not been released yet. This packages the latest git revision.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)