diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2019-09-13 07:49:10 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-16 23:02:44 +0100 |
| commit | 9654327307f5ab8970a63d71c6d36538e89b497f (patch) | |
| tree | 95495803a6328df773892bda1d59e5a362c1ae0f | |
| parent | bc66b2f45ade2c63cfd14d5388f6ca0905a23bb0 (diff) | |
| download | poky-9654327307f5ab8970a63d71c6d36538e89b497f.tar.gz | |
glibc-testsuite: SkipRecipe if libc is not glibc
To prevent issues with parsing or dependencies, limit this recipe to use
only when the libc is glibc (and libc-locale is glibc-locale).
(From OE-Core rev: 88849a0652f1a9cffd5c1b5caae2878b3a438273)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/glibc/glibc-testsuite_2.30.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.30.bb b/meta/recipes-core/glibc/glibc-testsuite_2.30.bb index 64fa8d87df..657fd4dbc1 100644 --- a/meta/recipes-core/glibc/glibc-testsuite_2.30.bb +++ b/meta/recipes-core/glibc/glibc-testsuite_2.30.bb | |||
| @@ -8,6 +8,13 @@ PROVIDES = "" | |||
| 8 | # setup depends | 8 | # setup depends |
| 9 | INHIBIT_DEFAULT_DEPS = "" | 9 | INHIBIT_DEFAULT_DEPS = "" |
| 10 | 10 | ||
| 11 | python () { | ||
| 12 | libc = d.getVar("PREFERRED_PROVIDER_virtual/libc") | ||
| 13 | libclocale = d.getVar("PREFERRED_PROVIDER_virtual/libc-locale") | ||
| 14 | if libc != "glibc" or libclocale != "glibc-locale": | ||
| 15 | raise bb.parse.SkipRecipe("glibc-testsuite requires that virtual/libc is glibc") | ||
| 16 | } | ||
| 17 | |||
| 11 | DEPENDS += "glibc-locale libgcc gcc-runtime" | 18 | DEPENDS += "glibc-locale libgcc gcc-runtime" |
| 12 | 19 | ||
| 13 | # remove the initial depends | 20 | # remove the initial depends |
