[Lluís Vilanova] > The poor man's solution is to do as you suggested. If perf's configuration is > insufficient, barf at the user and exit, but do not return any error code.
Yeah. Something along these lines, perhaps: diff --git a/debian/rules b/debian/rules index d1b0777..87c1f89 100755 --- a/debian/rules +++ b/debian/rules @@ -32,7 +32,11 @@ override_dh_install: $(RM) $(DESTDIR)/usr/share/coz-profiler/viewer/lib/science/LICENSE.txt override_dh_auto_test: - $(MAKE) check + if [ $(cat /proc/sys/kernel/perf_event_paranoid) -le 2 ] ; then \ + $(MAKE) check; \ + else \ + echo error: "; \ + fi override_dh_auto_build: dh_auto_build -- CC=cc CXX=c++ GIT=true I have not tested the change, as I am unable to build the package from git now. It fail because there is no upstream tag and pristine-tar content for the latest upstream changes imported into the git repository. -- Happy hacking Petter Reinholdtsen