]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
nettle: inherit lib_package
authorRoss Burton <ross.burton@arm.com>
Thu, 8 Jun 2023 11:59:16 +0000 (12:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Jun 2023 12:53:46 +0000 (13:53 +0100)
Nettle is primarily a library that ships some tools, so inherit the
lib_package class to package the tools in nettle-bin, and add a
dependency on it to nettle-ptest.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nettle/nettle_3.8.1.bb

index 184023e40310d34bca4b616e9b3fde26cfdd8d8c..92cc966dbbad103fa0d2946ee1dde49b77949dab 100644 (file)
@@ -24,7 +24,7 @@ SRC_URI[sha256sum] = "364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd
 
 UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar"
 
-inherit autotools ptest multilib_header
+inherit autotools ptest multilib_header lib_package
 
 EXTRA_AUTORECONF += "--exclude=aclocal"
 
@@ -53,4 +53,6 @@ do_install_ptest() {
         sed -i -e 's|../examples/|./|g' ${D}${PTEST_PATH}/testsuite/*-test
 }
 
+RDEPENDS:${PN}-ptest += "${PN}-bin"
+
 BBCLASSEXTEND = "native nativesdk"