diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-09 14:25:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 10:30:39 +0000 |
commit | 618b2ce5cadcbbffa106f1b0df61414ee05a5f04 (patch) | |
tree | 641bff0a89601e9796bcec63f7b22055d18b87e7 /meta/recipes-extended/ltp/ltp_20210121.bb | |
parent | 7c8a944c47c1ed1dc4a30ca80ab228c7be17dcce (diff) | |
download | poky-618b2ce5cadcbbffa106f1b0df61414ee05a5f04.tar.gz |
ltp: Fix libswapon issue properly
Replace the libswapon reproducibility workaround with the solution
preferred by upstream.
(From OE-Core rev: 5fc7d4a4c428d5be7103d8e9345d23038dae4247)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp_20210121.bb')
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20210121.bb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20210121.bb b/meta/recipes-extended/ltp/ltp_20210121.bb index 5fe1a4f012..f58ca2eb2c 100644 --- a/meta/recipes-extended/ltp/ltp_20210121.bb +++ b/meta/recipes-extended/ltp/ltp_20210121.bb | |||
@@ -41,6 +41,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
41 | file://determinism.patch \ | 41 | file://determinism.patch \ |
42 | file://0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch \ | 42 | file://0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch \ |
43 | file://0002-Makefile-Avoid-wildcard-determinism-issues.patch \ | 43 | file://0002-Makefile-Avoid-wildcard-determinism-issues.patch \ |
44 | file://0003-syscalls-swapon-swapoff-Move-common-library-to-libs.patch \ | ||
44 | " | 45 | " |
45 | 46 | ||
46 | S = "${WORKDIR}/git" | 47 | S = "${WORKDIR}/git" |
@@ -58,14 +59,6 @@ EXTRA_OECONF = " --with-realtime-testsuite --with-open-posix-testsuite " | |||
58 | # ltp network/rpc test cases ftbfs when libtirpc is found | 59 | # ltp network/rpc test cases ftbfs when libtirpc is found |
59 | EXTRA_OECONF += " --without-tirpc " | 60 | EXTRA_OECONF += " --without-tirpc " |
60 | 61 | ||
61 | do_compile_prepend() { | ||
62 | # Reported at http://lists.linux.it/pipermail/ltp/2021-March/021274.html | ||
63 | # Avoid a race over construction of libswapon.o which is built by swapon and swapoff | ||
64 | # but the object differs depending upon which one built it | ||
65 | # ("../swapon/libswapon.c" vs "libswapon.c" references) | ||
66 | make -C ${B}/testcases/kernel/syscalls/swapon/ | ||
67 | } | ||
68 | |||
69 | do_install(){ | 62 | do_install(){ |
70 | install -d ${D}${prefix}/ | 63 | install -d ${D}${prefix}/ |
71 | oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install | 64 | oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install |