]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
recipes: Ensure S is set to a valid directory
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 May 2024 06:53:23 +0000 (07:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 May 2024 11:07:18 +0000 (12:07 +0100)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/recipeutils/recipeutils-test_1.2.bb
meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb
meta/lib/oeqa/selftest/cases/recipeutils.py
meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb
meta/recipes-extended/watchdog/watchdog-config.bb
meta/recipes-kernel/dtc/python3-dtschema-wrapper_2021.10.bb
meta/recipes-support/user-creation/xuser-account_0.1.bb

index c64c46939646ace0ac4d464776c9f9dd08dfe5d0..8b314d396eed181a09d3b4afb59d20eccf711e34 100644 (file)
@@ -6,6 +6,9 @@ LICENSE = "HPND"
 LIC_FILES_CHKSUM = "file://${UNPACKDIR}/somefile;md5=d41d8cd98f00b204e9800998ecf8427e"
 DEPENDS += "zlib"
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI += "file://somefile"
index 5e8761ab554f6fbe44023a7edc1e5cf8ade24958..db674d0efc2ad99c0772fb7fe2a017871e8e0d0e 100644 (file)
@@ -6,6 +6,9 @@ LICENSE = "MIT"
 SRC_URI = "file://testfile.txt"
 INHIBIT_DEFAULT_DEPS = "1"
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 do_compile(){
        echo "testdata" > ${B}/"file with [brackets].txt"
        echo "testdata" > ${B}/"file with (parentheses).txt"
index 2cb4445f81b78d2482e7ecbe3f92a554f92fd75f..99497371724147abaed89ae17a7cd5b1a859c891 100644 (file)
@@ -72,7 +72,7 @@ class RecipeUtilsTests(OESelftestTestCase):
         expected_patch = """
 --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb
 +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb
-@@ -8,6 +8,4 @@
+@@ -11,6 +11,4 @@
  
  BBCLASSEXTEND = "native nativesdk"
  
@@ -97,7 +97,7 @@ class RecipeUtilsTests(OESelftestTestCase):
         expected_patch = """
 --- a/recipes-test/recipeutils/recipeutils-test_1.2.bb
 +++ b/recipes-test/recipeutils/recipeutils-test_1.2.bb
-@@ -8,6 +8,3 @@
+@@ -11,6 +11,3 @@
  
  BBCLASSEXTEND = "native nativesdk"
  
index 4a62ddacd5f2c3ae208b4b77dd336965cdbd00a8..db5a0eb8ce5ceda5522658cdd5495b7c5f894ed1 100644 (file)
@@ -6,6 +6,9 @@ SRC_URI = "file://dropbear_rsa_host_key \
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 INHIBIT_DEFAULT_DEPS = "1"
 
 COMPATIBLE_MACHINE = "^qemu.*$"
index e826a7d4a662f740316247228bcc24135258c231..17151ced5eca8508d9ae606ea739c6a1d3806ba5 100644 (file)
@@ -13,6 +13,9 @@ SRC_URI = " \
     file://watchdog.conf \
 "
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 # The default value is 60 seconds when null.
 WATCHDOG_TIMEOUT ??= ""
 
index 332525f5c9291e0b58a34b5680b98f23e36cc03c..a766b00bef03619ea039a83834e5de80dd73a8a2 100644 (file)
@@ -7,6 +7,9 @@ SRC_URI = "file://dt-doc-validate \
            file://dt-mk-schema \
            file://dt-validate"
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 do_install() {
     install -d ${D}${bindir}/
     install -m 755 ${UNPACKDIR}/dt-doc-validate ${D}${bindir}/
index 2bd3699e74bd5cdb3c3166353ab3298075b0df6a..80a429c6d3364185de3837db3539b318acb27f9f 100644 (file)
@@ -6,6 +6,9 @@ SRC_URI = "file://system-xuser.conf"
 
 inherit allarch useradd
 
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
+
 do_configure() {
     :
 }