add cmake-extra-sanity.bbclass: error out do_install if /usr//usr is found in image

add inherit in kde-base.bbclass

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2015-02-09 13:19:07 +01:00
parent 9053b025e0
commit c6db426021
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
do_install_append() {
# avoid strange prefixing seen often
old_dir=`pwd`
cd ${D}
if grep -qr 'usr\/\/usr' ; then
bbfatal 'usr//usr found in ${PN} - check sources for PREFIX or better CMAKE_INSTALL_PREFIX!'
fi
cd $old_dir
}

View File

@@ -6,7 +6,7 @@ KDE_BRANCH ?= "master"
SRC_URI = "git://anongit.kde.org/${BPN};protocol=git;branch=${KDE_BRANCH}"
# extra-cmake-modules cause dependent to check for python
inherit cmake_qt5 pythonnative
inherit cmake_qt5 cmake-extra-sanity pythonnative
FILES_${PN} += "${libdir}/plugins/kf5 ${datadir}/kf5"
FILES_${PN}-dev += "${libdir}/cmake"