Skip to contentSkip to conversation

meta-networking: mbedtls: Remove tag from SRC_URI

PATCH In review Daniel Schultz 6 participants 9 messages Aug 14, 2025 – Aug 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-networking: mbedtls: Remove tag from SRC_URI

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -1
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
            file://run-ptest \
            "
 
Signature · 1 line
2.25.1
#1 lore raw

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Quoted 39 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -2
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
            file://run-ptest \
            "
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118951): https://lists.openembedded.org/g/openembedded-devel/message/118951
Mute This Topic: https://lists.openembedded.org/mt/114709547/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

That error is shown only when ";rev=${PV}" is specified (which is not the case in this recipe) or a layer modifies something. Fetching works for me without this patch just fine.

Quoted 53 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj via lists.openembedded.org
Sent: Friday, August 15, 2025 4:06
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: [oe] [meta-networking][PATCH] meta-networking: mbedtls: Remove tag from SRC_URI

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Quoted 9 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

Review

Quoted 6 lines
---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM =

Quoted 4 lines

index 88b50a406b..a0dc6a689a 100644

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -0
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

Quoted 4 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-

TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = · line 26

Quoted 1 line
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -0
+SRC_URI = "gitsm://github.com/Mbed-

TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \

Quoted 9 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
            file://run-ptest \
            "
 
--

2.25.1

#3 lore raw

we're also using meta-arm and apparently TF-A is also fetching mbedtls. Maybe it's somehow related to that layer?

- Daniel

Quoted 55 lines · Peter

That error is shown only when ";rev=${PV}" is specified (which is not the case in this recipe) or a layer modifies something. Fetching works for me without this patch just fine.

Quoted 52 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj via lists.openembedded.org
Sent: Friday, August 15, 2025 4:06
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: [oe] [meta-networking][PATCH] meta-networking: mbedtls: Remove tag from SRC_URI

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Quoted 8 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

Review

Quoted 6 lines
---
  meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM =

Quoted 4 lines

index 88b50a406b..a0dc6a689a 100644

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -0
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

Quoted 4 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
  SECTION = "libs"
 
  S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-

TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = · line 26

Quoted 1 line
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -0
+SRC_URI = "gitsm://github.com/Mbed-

TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \

Quoted 9 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
             file://run-ptest \
             "
 
--

2.25.1

#4 lore raw
In reply to Khem Raj
Quoted 2 lines · Khem Raj via lists.openembedded.org

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Was this patch meant for scarthgap, where mbedtls got just broken due to this rev vs tag issue?

Quoted 44 lines
Quoted 41 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -2
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
            file://run-ptest \
            "
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118953): https://lists.openembedded.org/g/openembedded-devel/message/118953
Mute This Topic: https://lists.openembedded.org/mt/114709547/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Same as the other proposed patch. I would not take it before there is an explanation of why the issue suddenly appeared. Did something change in scarthgap, or is there a mismatch between the tag and revision?

Alex

Quoted 57 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 2 lines · Khem Raj via lists.openembedded.org

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Was this patch meant for scarthgap, where mbedtls got just broken due to this rev vs tag issue?

Quoted 29 lines
Quoted 26 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -1
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
            file://run-ptest \
            "
 
Quoted 9 lines
Quoted 9 lines

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118958): https://lists.openembedded.org/g/openembedded-devel/message/118958
Mute This Topic: https://lists.openembedded.org/mt/114709547/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw
Quoted 4 lines · Alexander Kanavin

Same as the other proposed patch. I would not take it before there is an explanation of why the issue suddenly appeared. Did something change in scarthgap, or is there a mismatch between the tag and revision?

The tag+revision matching was introduced in walnascar, before that it was either/or. This patch got into scarthgap, which uses this:
https://lists.openembedded.org/g/openembedded-devel/message/118611

Quoted 60 lines

Alex

Quoted 54 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 2 lines · Khem Raj via lists.openembedded.org

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Was this patch meant for scarthgap, where mbedtls got just broken due to this rev vs tag issue?

Quoted 29 lines
Quoted 26 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -1
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 SECTION = "libs"
 
 S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
            file://run-ptest \
            "
 
Quoted 9 lines
Quoted 9 lines

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118958): https://lists.openembedded.org/g/openembedded-devel/message/118958
Mute This Topic: https://lists.openembedded.org/mt/114709547/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
In reply to Khem Raj

Still the same error. I can also see this issue in our nightly builds and they're fetching from scratch.

- Daniel

Quoted 44 lines · Khem Raj

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ? and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Quoted 38 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

---
  meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -2
index 88b50a406b..a0dc6a689a 100644
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
  SECTION = "libs"
 
  S = "${WORKDIR}/git"
-SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \
+SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \
             file://run-ptest \
             "
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118951): https://lists.openembedded.org/g/openembedded-devel/message/118951
Mute This Topic: https://lists.openembedded.org/mt/114709547/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Hello all,

Quoted 3 lines · Daniel Schultz

Still the same error. I can also see this issue in our nightly builds and they're fetching from scratch.

FTR: I've also started to see the same parser error. It was also triggered in the CI first, which is using clean builds and targeting scarthgap LTS.

Tag parameter in SRC_URI actually came with commit:
9fa57a47b3a0 ("mbedtls: upgrade 3.6.3 -> 3.6.3.1") on master as part of recipe upgrade, and unfortunately had no reasonable explanation why this parameter was included...

I've also tried to drop either ;tag= parameter or SRCREV from the recipe, and both options worked to solve the parser issue.

Is there any reasonable explanation why ;tag= parameter is now included?

Quoted 5 lines

- Daniel

Quoted 1 line · Khem Raj

I wonder why it works on autobuilder. Can you try with bitbake -ccleanall ?

I do not think that this would help, as the error comes during parsing stage, which is far before task execution.

Quoted 25 lines
Quoted 13 lines

and see if fetching works. I can see the SRCREV is same as v3.6.4 tag.

Quoted 8 lines · Daniel Schultz via lists.openembedded.org

This recipe uses SRCREV as well as defines a tag in the SRC_URI. Only use SRCREV since this will generate an error.

Fix following error:
[...] FetchError: Fetcher failure: Conflicting revisions (c765c831e5c2a0971410692f92f7a81d6ec65ec2 from SRCREV and v3.6.4 from the url) found, please specify one valid value

Quoted 6 lines

Review

Quoted 6 lines
---
  meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb

Quoted 4 lines

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM =

Quoted 4 lines

index 88b50a406b..a0dc6a689a 100644

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -0
@@ -23,7 +23,7 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

Quoted 19 lines
Quoted 4 lines

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"

Quoted 4 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
  SECTION = "libs"
 
  S = "${WORKDIR}/git"
-SRC_URI =

"gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;tag=v${PV} \

Quoted 1 line

meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb LIC_FILES_CHKSUM = · line 26

Quoted 1 line
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +1 -0
+SRC_URI =

"gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6 \

Quoted 9 lines
Quoted 9 lines
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.4.bb +0 -1
             file://run-ptest \
             "
 
--

2.25.1

-- Andrey