Add support to tirpc tests build.
The export of ${prefix} updates all other paths variable and
in particular PKG_CONFIG_PATH. This variable beeing updated it could
not find the pkgconfig file for tirpc.
Use immediate expansion to avoid ${prefix} export overflows on
PKG_CONFIG_PATH.

Signed-off-by: Kory Maincent <[email protected]>
---

Change since v1:
 - Use PACKAGECONFIG to enable rpc tests
 - Improve ${libdir} and ${incdir} export

Change since v2:
 - Improve ${libdir} and ${incdir} export

Change since v3:
 - Use PKG_CONFIG_PATH in place of the ${libdir} ${incdir} variable export

 meta/recipes-extended/ltp/ltp_20200930.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/ltp/ltp_20200930.bb 
b/meta/recipes-extended/ltp/ltp_20200930.bb
index 7acf15b360..1a9c05a7e4 100644
--- a/meta/recipes-extended/ltp/ltp_20200930.bb
+++ b/meta/recipes-extended/ltp/ltp_20200930.bb
@@ -42,14 +42,13 @@ inherit autotools-brokensep pkgconfig
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
+PKG_CONFIG_PATH := "${PKG_CONFIG_PATH}"
 export prefix = "/opt/${PN}"
-export exec_prefix = "/opt/${PN}"
 
 PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl,"
+PACKAGECONFIG[rpc] = "--with-tirpc, --without-tirpc, virtual/librpc,"
 EXTRA_AUTORECONF += "-I ${S}/testcases/realtime/m4"
 EXTRA_OECONF = " --with-realtime-testsuite --with-open-posix-testsuite "
-# ltp network/rpc test cases ftbfs when libtirpc is found
-EXTRA_OECONF += " --without-tirpc "
 
 do_install(){
     install -d ${D}${prefix}/
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#145884): 
https://lists.openembedded.org/g/openembedded-core/message/145884
Mute This Topic: https://lists.openembedded.org/mt/79080756/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to