Package Details: kernelshark-git 1.0.r0.gf97e28a-1

Git Clone URL: https://aur.archlinux.org/kernelshark-git.git (read-only)
Package Base: kernelshark-git
Description: GUI frontend for trace-cmd based Linux kernel Ftrace captures
Upstream URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
Keywords: debug ftrace kernel syscall system trace
Licenses: GPL2
Conflicts: kernelshark
Provides: kernelshark
Submitter: troyengel
Maintainer: troyengel
Last Packager: troyengel
Votes: 2
Popularity: 1.291471
First Submitted: 2019-07-27 14:52
Last Updated: 2019-07-27 14:52

Latest Comments

xzz53 commented on 2019-09-22 22:59

On second thought, why not just build it in two steps, like

make
make gui doc

?

This way we'll avoid the race condition and preserve parallelism where it does no harm.

troyengel commented on 2019-09-22 20:17

@xzz53 - you have most likely uncommented MAKEFLAGS="-j2" in your /etc/makepkg.conf -- upstream does not support a parallel build at this time; their Makefile compiles a local copy of trace-cmd first which creates the libraries it's looking for in a subdirectory, then it compiles the C++ on top of those local libraries. (alternately, you can try editing this PKGBUILD and set make -j1 to override your global setting, that should also work)

Edit: just saw your edit, or we could also negate the makeflags as you outline, that might have other side effects if someone has other unrelated flags in place I think, same idea though)

xzz53 commented on 2019-09-22 19:37

Hi! kernelshark-git package fails to build for me. trace-cmd-git package is installed. Makepkg log is linked below: https://pastebin.com/BgFDpUVy

UPD: Looks like the issue is related to a race condition in make (I have MAKEFLAGS="-j5" in /etc/makepkg.conf). The following patch seems to fix the issue:

diff --git a/PKGBUILD b/PKGBUILD
index bcb451f..c941344 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ makedepends=('asciidoc' 'extra-cmake-modules' 'doxygen' 'json-c' 'libxmu'
              'swig')
 provides=('kernelshark')
 conflicts=('kernelshark')
+options=('!makeflags')
 source=(
   "git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git"
 )