Skip to content

Commit 64a1f26

Browse files
kkang-wrsrware
authored andcommitted
Fix parse errors caused by SRC_URI
It fails to parse the recipes which use `tag` option in SRC_URI, such as | ERROR: ExpansionError during parsing meta-iot-cloud/recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c_git.bb | | The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue] Remove the option `tag` and SRC_URI and add SRCREV for each recipe to fix the errors. Signed-off-by: Kai Kang <[email protected]>
1 parent 6bf105d commit 64a1f26

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

recipes-azure/azure-iot-sdk-c/azure-iot-sdk-c_git.bb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ LICENSE = "MIT"
55
LIC_FILES_CHKSUM = "file://LICENSE;md5=4283671594edec4c13aeb073c219237a"
66

77
SRC_URI = "\
8-
git://github.com/Azure/azure-iot-sdk-c.git;protocol=https;branch=main;tag=LTS_03_2024 \
8+
git://github.com/Azure/azure-iot-sdk-c.git;protocol=https;branch=main \
99
"
1010

11+
SRCREV = "09d4e9ca46d1facea7d6d0c7ac13e56edd0a715f"
12+
1113
PV = "1.13.0+git${SRCPV}"
1214

1315
include ${BPN}.inc

recipes-connectivity/rclone/rclone_1.66.0.bb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ inherit go-mod
1515
GO_IMPORT = "github.com/rclone/rclone"
1616
GO_INSTALL = "${GO_IMPORT}"
1717

18-
SRC_URI = "git://${GO_IMPORT}.git;branch=master;protocol=https;tag=v${PV}"
18+
SRC_URI = "git://${GO_IMPORT}.git;branch=master;protocol=https"
1919

20+
SRCREV = "b6013a5e689ff4ff8a869aa262c9d04d454f5a71"

recipes-devtools/python/python3-libcst_1.3.1.bb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ require ${BPN}-crates.inc
1515
PR = "r0"
1616

1717
SRC_URI += "\
18-
git://github.com/Instagram/LibCST.git;protocol=https;branch=main;tag=v${PV} \
18+
git://github.com/Instagram/LibCST.git;protocol=https;branch=main \
1919
"
2020

21+
SRCREV = "9f54920d9d32a519aa1702485ed56c55d8189a0c"
22+
2123
S = "${WORKDIR}/git"
2224

recipes-google-cloud/google-cloud-cpp/google-cloud-cpp_2.23.0.bb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ LICENSE = "Apache-2.0"
55
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
66

77
SRC_URI = "\
8-
git://github.com/googleapis/google-cloud-cpp.git;protocol=https;branch=main;tag=v${PV} \
8+
git://github.com/googleapis/google-cloud-cpp.git;protocol=https;branch=main \
99
file://0001-Remove-compiler-flags-from-build-info.patch \
1010
"
1111

12+
SRCREV = "60768edc006fcdf97bb01c604d04cd47ccec668b"
13+
1214
include ${BPN}.inc
1315

recipes-support/crc32c/crc32c_1.1.2.bb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ inherit cmake
99
PR = "r0"
1010

1111
SRC_URI = "\
12-
git://github.com/google/crc32c.git;protocol=https;branch=main;tag=${PV} \
12+
git://github.com/google/crc32c.git;protocol=https;branch=main \
1313
"
1414

15+
SRCREV = "02e65f4fd3065d27b2e29324800ca6d04df16126"
16+
1517
S = "${WORKDIR}/git"
1618

1719
EXTRA_OECMAKE += "\
@@ -22,4 +24,3 @@ EXTRA_OECMAKE += "\
2224
"
2325

2426
BBCLASSEXTEND = "native nativesdk"
25-

recipes-support/nlohmann-json/nlohmann-json_3.11.3.bb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ inherit cmake pkgconfig
99
PR = "r0"
1010

1111
SRC_URI = "\
12-
git://github.com/nlohmann/json.git;protocol=https;branch=master;tag=v${PV} \
12+
git://github.com/nlohmann/json.git;protocol=https;branch=master \
1313
"
1414

15+
SRCREV = "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03"
16+
1517
S = "${WORKDIR}/git"
1618

1719
ALLOW_EMPTY:${PN} = "1"

0 commit comments

Comments
 (0)