diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-15 07:53:23 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-21 12:08:04 +0100 |
| commit | a5cea4c0b49792408edfe5f68e92900acb860cef (patch) | |
| tree | ab821ffa63d4f496bd93072a9bc00274315a0613 /meta | |
| parent | 992a5dd04ca9dcea66161f74e8db4bcc232752fb (diff) | |
| download | poky-a5cea4c0b49792408edfe5f68e92900acb860cef.tar.gz | |
recipes: Ensure S is set to a valid directory
Several recipes have S pointing at a directory that does not exist.
Set S in these cases to somethig valid making the metadata and
recipe behaviour more consistent.
Tweak one of the QA test diff offsets to match the changed recipe.
(From OE-Core rev: 22f1f5849a9a3bf287dbe8933546e52e39ddc86e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
5 files changed, 14 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipeutils.py b/meta/lib/oeqa/selftest/cases/recipeutils.py index 2cb4445f81..9949737172 100644 --- a/meta/lib/oeqa/selftest/cases/recipeutils.py +++ b/meta/lib/oeqa/selftest/cases/recipeutils.py | |||
| @@ -72,7 +72,7 @@ class RecipeUtilsTests(OESelftestTestCase): | |||
| 72 | expected_patch = """ | 72 | expected_patch = """ |
| 73 | --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb | 73 | --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb |
| 74 | +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb | 74 | +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb |
| 75 | @@ -8,6 +8,4 @@ | 75 | @@ -11,6 +11,4 @@ |
| 76 | 76 | ||
| 77 | BBCLASSEXTEND = "native nativesdk" | 77 | BBCLASSEXTEND = "native nativesdk" |
| 78 | 78 | ||
| @@ -97,7 +97,7 @@ class RecipeUtilsTests(OESelftestTestCase): | |||
| 97 | expected_patch = """ | 97 | expected_patch = """ |
| 98 | --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb | 98 | --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb |
| 99 | +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb | 99 | +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb |
| 100 | @@ -8,6 +8,3 @@ | 100 | @@ -11,6 +11,3 @@ |
| 101 | 101 | ||
| 102 | BBCLASSEXTEND = "native nativesdk" | 102 | BBCLASSEXTEND = "native nativesdk" |
| 103 | 103 | ||
diff --git a/meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb b/meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb index 4a62ddacd5..db5a0eb8ce 100644 --- a/meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb +++ b/meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb | |||
| @@ -6,6 +6,9 @@ SRC_URI = "file://dropbear_rsa_host_key \ | |||
| 6 | LICENSE = "MIT" | 6 | LICENSE = "MIT" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 8 | 8 | ||
| 9 | S = "${WORKDIR}/sources" | ||
| 10 | UNPACKDIR = "${S}" | ||
| 11 | |||
| 9 | INHIBIT_DEFAULT_DEPS = "1" | 12 | INHIBIT_DEFAULT_DEPS = "1" |
| 10 | 13 | ||
| 11 | COMPATIBLE_MACHINE = "^qemu.*$" | 14 | COMPATIBLE_MACHINE = "^qemu.*$" |
diff --git a/meta/recipes-extended/watchdog/watchdog-config.bb b/meta/recipes-extended/watchdog/watchdog-config.bb index e826a7d4a6..17151ced5e 100644 --- a/meta/recipes-extended/watchdog/watchdog-config.bb +++ b/meta/recipes-extended/watchdog/watchdog-config.bb | |||
| @@ -13,6 +13,9 @@ SRC_URI = " \ | |||
| 13 | file://watchdog.conf \ | 13 | file://watchdog.conf \ |
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | S = "${WORKDIR}/sources" | ||
| 17 | UNPACKDIR = "${S}" | ||
| 18 | |||
| 16 | # The default value is 60 seconds when null. | 19 | # The default value is 60 seconds when null. |
| 17 | WATCHDOG_TIMEOUT ??= "" | 20 | WATCHDOG_TIMEOUT ??= "" |
| 18 | 21 | ||
diff --git a/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb index 332525f5c9..a766b00bef 100644 --- a/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb +++ b/meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb | |||
| @@ -7,6 +7,9 @@ SRC_URI = "file://dt-doc-validate \ | |||
| 7 | file://dt-mk-schema \ | 7 | file://dt-mk-schema \ |
| 8 | file://dt-validate" | 8 | file://dt-validate" |
| 9 | 9 | ||
| 10 | S = "${WORKDIR}/sources" | ||
| 11 | UNPACKDIR = "${S}" | ||
| 12 | |||
| 10 | do_install() { | 13 | do_install() { |
| 11 | install -d ${D}${bindir}/ | 14 | install -d ${D}${bindir}/ |
| 12 | install -m 755 ${UNPACKDIR}/dt-doc-validate ${D}${bindir}/ | 15 | install -m 755 ${UNPACKDIR}/dt-doc-validate ${D}${bindir}/ |
diff --git a/meta/recipes-support/user-creation/xuser-account_0.1.bb b/meta/recipes-support/user-creation/xuser-account_0.1.bb index 2bd3699e74..80a429c6d3 100644 --- a/meta/recipes-support/user-creation/xuser-account_0.1.bb +++ b/meta/recipes-support/user-creation/xuser-account_0.1.bb | |||
| @@ -6,6 +6,9 @@ SRC_URI = "file://system-xuser.conf" | |||
| 6 | 6 | ||
| 7 | inherit allarch useradd | 7 | inherit allarch useradd |
| 8 | 8 | ||
| 9 | S = "${WORKDIR}/sources" | ||
| 10 | UNPACKDIR = "${S}" | ||
| 11 | |||
| 9 | do_configure() { | 12 | do_configure() { |
| 10 | : | 13 | : |
| 11 | } | 14 | } |
