]> git.proxmox.com Git - pve-kernel.git/commitdiff
d/rules: check for accidental perf linkage
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 25 Apr 2018 10:17:19 +0000 (12:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Apr 2018 12:05:31 +0000 (14:05 +0200)
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 <f.gruenbichler@proxmox.com>
debian/control.in
debian/rules

index 2fadf9c44ca95880713a0be2044b6cb185bbcd19..fd4b49e0e021e6a8ab46d05e25a09d8fec926f83 100644 (file)
@@ -7,6 +7,7 @@ Build-Depends: asciidoc,
                bison,
                flex,
                gcc-6 (>= 6.3.0-18+deb9u1),
+               libiberty-dev,
                libssl-dev,
                lintian,
                sed,
index 1d8a5ef3d9572d751a6cb8e988bb5261834a9ca3..55b20fc8c278bd4832fed72bca105de36e1262b2 100755 (executable)
@@ -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