From 416e5fac062df6bcd5bb2872004c750714c7980e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 4 Aug 2022 22:41:56 +0200 Subject: [PATCH] package/gcnano-binaries: set Version: field in .pc files All .pc files have a Version field set to #VERSION#, which needs to be replaced, otherwise packages checking the version of OpenGL ES, EGL, GBM, etc. will fail. For example: Dependency gbm found: NO unknown version, but need: ['>=17.1.0'] Such problems have been seen with both libepoxy and SDL2. The version 21.1.1 is chosen because it matches what the Yocto recipe is doing for this package: https://github.com/STMicroelectronics/meta-st-stm32mp/blob/kirkstone/recipes-graphics/gcnano-userland/gcnano-userland.inc#L42 Signed-off-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- package/gcnano-binaries/gcnano-binaries.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcnano-binaries/gcnano-binaries.mk b/package/gcnano-binaries/gcnano-binaries.mk index ce9b24cc3a..d9c47bf64e 100644 --- a/package/gcnano-binaries/gcnano-binaries.mk +++ b/package/gcnano-binaries/gcnano-binaries.mk @@ -60,7 +60,7 @@ define GCNANO_BINARIES_INSTALL ln -sf gbm/gbm.h $(1)/usr/include/gbm.h cd $(@D)/$(GCNANO_BINARIES_USERLAND_SUBDIR)/pkgconfig/ ; \ for file in *.pc ; do \ - sed -e "s|#PREFIX#|/usr|" $$file > $$file.temp ; \ + sed -e "s|#PREFIX#|/usr|" -e "s|#VERSION#|21.1.1|" $$file > $$file.temp ; \ $(INSTALL) -D -m 0644 $$file.temp $(1)/usr/lib/pkgconfig/$$file ; \ done endef