Skip to contentSkip to conversation

cantarell-fonts: add inherit pkgconfig to get pkgconfig dependency

PATCH In review Cody P Schafer 2 participants 2 messages Nov 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cantarell-fonts: add inherit pkgconfig to get pkgconfig dependency

Without this, do_configure can fail with:

	| ../git/configure: line 2381: syntax error near unexpected token `0.19'
	| ../git/configure: line 2381: `PKG_PROG_PKG_CONFIG(0.19)'

If pkgconfig-native happens to be added to the sysroot too late.

---
 meta/recipes-graphics/cantarell-fonts/cantarell-fonts_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/cantarell-fonts/cantarell-fonts_git.bb +1 -1
index e3e4cde..c71ab11 100644
@@ -18,7 +18,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!0\.13)(?!0\.10\.1)\d+\.\d+(\.\d+)+)"
 
 S = "${WORKDIR}/git"
 
-inherit autotools allarch fontcache
+inherit autotools allarch fontcache pkgconfig
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[fontforge] = "--enable-source-rebuild=yes,--enable-source-rebuild=no,fontforge-native"
Signature · 1 line
2.10.2
#1 lore raw
Quoted 8 lines · Cody P Schafer

Without this, do_configure can fail with:

| ../git/configure: line 2381: syntax error near unexpected token
`0.19'

        | ../git/configure: line 2381: `PKG_PROG_PKG_CONFIG(0.19)'

If pkgconfig-native happens to be added to the sysroot too late.

Looking at upstream's configure there's no reason why it calls that macro, so you could submit a patch to remove that line upstream and then just bump the SRCREV.

Ross