From 62948cb62e230e1206a44de7eabd23e80ee2dfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 25 Apr 2018 12:17:19 +0200 Subject: [PATCH] d/rules: check for accidental perf linkage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with libraries that are not GPL-2-only compatible, fix previously typoed variable, and add build-dep on libiberty-dev for CPLUS demangling. Signed-off-by: Fabian Grünbichler --- debian/control.in | 1 + debian/rules | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/control.in b/debian/control.in index 2fadf9c..fd4b49e 100644 --- a/debian/control.in +++ b/debian/control.in @@ -7,6 +7,7 @@ Build-Depends: asciidoc, bison, flex, gcc-6 (>= 6.3.0-18+deb9u1), + libiberty-dev, libssl-dev, lintian, sed, diff --git a/debian/rules b/debian/rules index 1d8a5ef..55b20fc 100755 --- a/debian/rules +++ b/debian/rules @@ -124,7 +124,10 @@ binary: install touch $@ .tools_compile_mark: .compile_mark - ${MAKE} -C ${KERNEL_SRC}/tools/perf prefix=/usr HAVE_CPLUS_DEMANGLE=1 NO_LIBPYTHON=1 NO_LIBPERL=1 NO_LIBCRYPTO=1 PYTHON=python2.7 + ${MAKE} -C ${KERNEL_SRC}/tools/perf prefix=/usr HAVE_NO_LIBBFD=1 HAVE_CPLUS_DEMANGLE_SUPPORT=1 NO_LIBPYTHON=1 NO_LIBPERL=1 NO_LIBCRYPTO=1 PYTHON=python2.7 + echo "checking GPL-2 only perf binary for library linkage with incompatible licenses.." + ! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibbfd' + ! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibcrypto' ${MAKE} -C ${KERNEL_SRC}/tools/perf man # contained in linux-base rm -f ${KERNEL_SRC}/tools/perf/Documentation/perf.1