karchive: fix native recipe to use native dependencies

When using inherit native, native.bbclass will not automatically change
dependencies to their -native versions. Due to this, non-native
dependencies will be set for karchive-native.

This patch fixes that by using BBCLASSEXTEND instead, which will
automatically convert dependencies to their -native variants.

See
https://docs.yoctoproject.org/4.0.8/singleindex.html#term-BBCLASSEXTEND
This commit is contained in:
Haakon Drews
2023-04-27 16:26:29 +02:00
committed by Andreas Müller
parent 7f9d6f335b
commit a2a96dfd0b
3 changed files with 19 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
require ${BPN}.inc
inherit native

View File

@@ -1,3 +1,20 @@
require ${BPN}.inc
SUMMARY = "Qt 5 addon providing access to numerous types of archives"
LICENSE = "BSD-2-Clause & LGPL-2.0-or-later"
LIC_FILES_CHKSUM = " \
file://LICENSES/BSD-2-Clause.txt;md5=63d6ee386b8aaba70b1bf15a79ca50f2 \
file://LICENSES/LGPL-2.0-or-later.txt;md5=6d2d9952d88b50a51a5c73dc431d06c7 \
"
inherit kde-kf5
DEPENDS += "bzip2 xz zlib"
BBCLASSEXTEND = "native nativesdk"
DEPENDS:append:class-target = " ${BPN}-native"
DEPENDS:append:class-nativesdk = " ${BPN}-native"
PV = "${KF5_VERSION}"
SRC_URI[sha256sum] = "571957caf8304344ef3d5b47092be96563e1526d4a1d70abf04ebcc38dd495fc"
EXTRA_OECMAKE += "-DBUILD_TESTING=OFF"
DEPENDS += "${BPN}-native"

View File

@@ -1,15 +0,0 @@
SUMMARY = "Qt 5 addon providing access to numerous types of archives"
LICENSE = "BSD-2-Clause & LGPL-2.0-or-later"
LIC_FILES_CHKSUM = " \
file://LICENSES/BSD-2-Clause.txt;md5=63d6ee386b8aaba70b1bf15a79ca50f2 \
file://LICENSES/LGPL-2.0-or-later.txt;md5=6d2d9952d88b50a51a5c73dc431d06c7 \
"
inherit kde-kf5
DEPENDS += "bzip2 xz zlib"
PV = "${KF5_VERSION}"
SRC_URI[sha256sum] = "571957caf8304344ef3d5b47092be96563e1526d4a1d70abf04ebcc38dd495fc"
EXTRA_OECMAKE += "-DBUILD_TESTING=OFF"