mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
recipetool: create: improve extraction of pkg-config / lib deps
* The regexes for PKG_CHECK_MODULES / AC_CHECK_LIB were a bit too strict and thus we were skipping some macros. * Add support for PKG_CHECK_EXISTS * Avoid duplicates in warning on missing pkg-config dependencies * Ignore dependency on musl (since this may come up if it's the selected C library) (From OE-Core rev: c58669fb0977f7f0cb79f252484d5c5ef0dfb7e4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e7bedb91a7
commit
dbe91a3d6a
@@ -383,7 +383,7 @@ class RecipetoolTests(RecipetoolBase):
|
||||
@testcase(1194)
|
||||
def test_recipetool_create_git(self):
|
||||
# Ensure we have the right data in shlibs/pkgdata
|
||||
bitbake('libpng pango libx11 libxext jpeg')
|
||||
bitbake('libpng pango libx11 libxext jpeg libxsettings-client libcheck')
|
||||
# Try adding a recipe
|
||||
tempsrc = os.path.join(self.tempdir, 'srctree')
|
||||
os.makedirs(tempsrc)
|
||||
@@ -397,7 +397,7 @@ class RecipetoolTests(RecipetoolBase):
|
||||
checkvars['S'] = '${WORKDIR}/git'
|
||||
checkvars['PV'] = '1.11+git${SRCPV}'
|
||||
checkvars['SRC_URI'] = srcuri
|
||||
checkvars['DEPENDS'] = set(['libjpeg-turbo', 'libpng', 'libx11', 'libxext', 'pango'])
|
||||
checkvars['DEPENDS'] = set(['libcheck', 'libjpeg-turbo', 'libpng', 'libx11', 'libxsettings-client', 'libxext', 'pango'])
|
||||
inherits = ['autotools', 'pkgconfig']
|
||||
self._test_recipe_contents(recipefile, checkvars, inherits)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user