Created attachment 5078 [details] [PATCH] automake: Fix bad path to test-driver The automake patch "Set relative to top_builddir path in Makefile to access" sets the default path of `test-driver` to `$(top_builddir)/$(config_aux_dir)` instead of the normal `$(top_srcdir)/$(config_aux_dir)`. This breaks `check test` for Automake projects in generated images. To reproduce, use core-image-kernel-dev with git added. git clone https://git.kernel.org/pub/scm/linux/kernel/git/kay/libabc.git (cd libabc && ./autogen.sh) mkdir build cd build ../libabc/configure CFLAGS='-g -O0' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib make check /bin/sh: ./build-aux/test-driver: No such file or directory Removing the patch makes the checks complete successfully. The patch should be removed to ensure proper automake behaviour, but that will break some ptests. For instance ptests for attr fail with BEGIN: /usr/lib/attr/ptest /bin/bash: ../attr-2.5.2/build-aux/test-driver: No such file or directory make: *** [Makefile:1502: test/attr.log] Error 127 The attached patch makes automake work in both scenarios, but the proper solution is still to fix the tests and remove the patch.
Turns out ptest only broke for these recipes in oe-core when the patch was removed: * acl * attr * parted * sed * strace They were all easy to fix.
Clearly we want to keep ptests working. Can you send patches for automake as well as the list of broken ptests? Did you also test meta-oe?
If we agree that the automake patch should be removed, I can provide patches for the recipes I had to fix ptest for. I have not looked at PTEST_PROBLEMATIC in oe-core yet. I intend to look at the ptests in meta-openembedded, haven't gotten very far yet.
Ola, The triage team discussed and we think the discussion needs to happen on the email list. Can you get the ball rolling with an RFC patch and/or join the YP tech call on Tuesday perhaps.
Sure, I'll send what I have so far.
merged to master: https://git.openembedded.org/openembedded-core/commit/?id=d21dbafda92263d3e30a5b7d84dd9bb02f855610 Thanks Ola!