Skip to contentSkip to conversation

protobuf: fix SRC_URI by removing branch

PATCH In review George McCollister 3 participants 6 messages May 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 protobuf: fix SRC_URI by removing branch

The 3.4.x branch was removed upstream but the commit referenced in SRC_REV is the 3.4.1 release and is still available:
https://github.com/google/protobuf/releases/tag/v3.4.1

Drop branch=3.4.x from SRC_URI and use commit specified in SRC_REV from the master branch.

---

v2:
- Correct commit message.

 meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb +1 -1
index fae7c18a1..fe28f475a 100644
@@ -18,7 +18,7 @@ SRCREV = "b04e5cba356212e4e8c66c61bbe0c3a20537c5b9"
 
 PV = "3.4.1+git${SRCPV}"
 
-SRC_URI = "git://github.com/google/protobuf.git;branch=3.4.x"
+SRC_URI = "git://github.com/google/protobuf.git"
 
 EXTRA_OECONF += " --with-protoc=echo"
 
Signature · 1 line
2.11.0
#1 lore raw

Can you try this patch with

Bitbake -cleanall recipe

And bake it again

Quoted 34 lines · George McCollister

The 3.4.x branch was removed upstream but the commit referenced in SRC_REV is the 3.4.1 release and is still available:
https://github.com/google/protobuf/releases/tag/v3.4.1

Drop branch=3.4.x from SRC_URI and use commit specified in SRC_REV from the master branch.

---

v2:
- Correct commit message.

 meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb +1 -2
index fae7c18a1..fe28f475a 100644
@@ -18,7 +18,7 @@ SRCREV = "b04e5cba356212e4e8c66c61bbe0c3a20537c5b9"
 
 PV = "3.4.1+git${SRCPV}"
 
-SRC_URI = "git://github.com/google/protobuf.git;branch=3.4.x"
+SRC_URI = "git://github.com/google/protobuf.git"
 
 EXTRA_OECONF += " --with-protoc=echo"
 
--

2.11.0

#2 lore raw
Quoted 5 lines · Khem Raj

Can you try this patch with

Bitbake -cleanall recipe

And bake it again

bitbake -c cleanall protobuf
bitbake protobuf

Works fine for me with the patch applied. Did you run into a problem or have a concern?

Quoted 38 lines
Quoted 34 lines · George McCollister

The 3.4.x branch was removed upstream but the commit referenced in SRC_REV is the 3.4.1 release and is still available:
https://github.com/google/protobuf/releases/tag/v3.4.1

Drop branch=3.4.x from SRC_URI and use commit specified in SRC_REV from the master branch.

---

v2:
- Correct commit message.

 meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb +1 -2
index fae7c18a1..fe28f475a 100644
@@ -18,7 +18,7 @@ SRCREV = "b04e5cba356212e4e8c66c61bbe0c3a20537c5b9"
 
 PV = "3.4.1+git${SRCPV}"
 
-SRC_URI = "git://github.com/google/protobuf.git;branch=3.4.x"
+SRC_URI = "git://github.com/google/protobuf.git"
 
 EXTRA_OECONF += " --with-protoc=echo"
 
--

2.11.0

#3 lore raw
Quoted 5 lines · George McCollister
Quoted 4 lines · Khem Raj

Can you try this patch with

Bitbake -cleanall recipe

Quoted 8 lines
Quoted 1 line

And bake it again

bitbake -c cleanall protobuf
bitbake protobuf

Works fine for me with the patch applied. Did you run into a problem or have a concern?

yes my concern was that your local git repo for protobuf might have some commits which might not be available in upstream repo. So checking out a fresh copy from upstreaming and building it is required.

#4 lore raw

FWIW: I've checked it in fresh checkout with "git branch -a --contains" shown before.

Quoted 25 lines · Khem Raj
Quoted 5 lines · George McCollister
Quoted 4 lines · Khem Raj

Can you try this patch with

Bitbake -cleanall recipe

Quoted 8 lines
Quoted 1 line

And bake it again

bitbake -c cleanall protobuf
bitbake protobuf

Works fine for me with the patch applied. Did you run into a problem or have a concern?

yes my concern was that your local git repo for protobuf might have some commits which might not be available in upstream repo. So checking out a fresh copy from upstreaming and building it is required. --
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw

ok thanks for confirming

Quoted 29 lines · Martin Jansa

FWIW: I've checked it in fresh checkout with "git branch -a --contains" shown before.

Quoted 25 lines · Khem Raj
Quoted 5 lines · George McCollister
Quoted 4 lines · Khem Raj

Can you try this patch with

Bitbake -cleanall recipe

Quoted 8 lines
Quoted 1 line

And bake it again

bitbake -c cleanall protobuf
bitbake protobuf

Works fine for me with the patch applied. Did you run into a problem or have a concern?

yes my concern was that your local git repo for protobuf might have some commits which might not be available in upstream repo. So checking out a fresh copy from upstreaming and building it is required. --
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel