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:
9
classes/cmake-extra-sanity.bbclass
Normal file
9
classes/cmake-extra-sanity.bbclass
Normal 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
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user