ltp: add support for tirpc and fix build issue
PATCH v4 1/1 ltp: add support for tirpc and fix build issue
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.
---
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(-)
meta/recipes-extended/ltp/ltp_20200930.bb +2 -3
@@ -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}/
Signature · 1 line
2.17.1
Quoted 31 lines · Kory Maincent
Add support to tirpc tests build.
The export of ${prefix} updates all other paths variable and in particularPKG_CONFIG_PATH. This variable beeing updated it could not find the pkgconfig file for tirpc.
Use immediate expansion to avoid ${prefix} export overflows onPKG_CONFIG_PATH.Signed-off-by Kory Maincent <[email protected]>---
Change since v1:
- Use PACKAGECONFIG to enable rpc tests
- Improve ${libdir} and ${incdir} exportChange since v2:
- Improve ${libdir} and ${incdir} exportChange since v3:
- UsePKG_CONFIG_PATHin place of the ${libdir} ${incdir} variable exportmeta/recipes-extended/ltp/ltp_20200930.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)meta/recipes-extended/ltp/ltp_20200930.bb +0
-0@@ -42,14 +42,13 @@ inherit autotools-brokensep pkgconfig TARGET_CC_ARCH += "${LDFLAGS}"
meta/recipes-extended/ltp/ltp_20200930.bb inherit autotools-brokensep pkgconfig · line 52
Quoted 10 lines
meta/recipes-extended/ltp/ltp_20200930.bb +2
-3+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 "
I did queue this for testing however we saw:
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/1639/steps/14/logs/stdio
(and I suspect we'll see the other selftests fail too).
I suspect this is due to hardcoded paths being expanded into PKG_CONFIG_PATH which makes the recipe's sstate depend upon the directory it was built within which is a real problem we need to fix.
Cheers,
Richard