Skip to contentSkip to conversation

python-protobuf: disable clean

PATCH In review Ross Burton 2 participants 3 messages Aug 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-protobuf: disable clean

The distutils class does a 'setup.py clean' but this breaks the protobuf build:

| Can't find required file: ../src/google/protobuf/descriptor.proto
| Generating google/protobuf/descriptor_pb2.py...
| ERROR: python3 setup.py build_ext execution failed.

Disable the clean to work around this.

---
 meta-python/recipes-devtools/python/python-protobuf.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-protobuf.inc +2 -0
index 6a0568ae62..421775d394 100644
@@ -25,3 +25,5 @@ RDEPENDS_${PN} += " \
 
 # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools)
 BBCLASSEXTEND = "native"
+
+CLEANBROKEN = "1"
Signature · 1 line
2.11.0
#1 lore raw

Isn't this already covered by:
http://git.openembedded.org/meta-openembedded/commit/?id=19aeaf028f6819e5fa705593d4bcdbf0b98143e0
http://git.openembedded.org/meta-openembedded/commit/?id=e65b1c4ebbbf2174125e7c659b908dd0f46c4509
https://patchwork.openembedded.org/patch/154300/
?

Quoted 35 lines · Ross Burton

The distutils class does a 'setup.py clean' but this breaks the protobuf build:

| Can't find required file: ../src/google/protobuf/descriptor.proto
| Generating google/protobuf/descriptor_pb2.py...
| ERROR: python3 setup.py build_ext execution failed.

Disable the clean to work around this.

---
 meta-python/recipes-devtools/python/python-protobuf.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-protobuf.inc +2 -1
index 6a0568ae62..421775d394 100644
@@ -25,3 +25,5 @@ RDEPENDS_${PN} += " \
 
 # For usage in other recipies when compiling protobuf files (e.g. by
 grpcio-tools)
 BBCLASSEXTEND = "native"
+
+CLEANBROKEN = "1"
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

Erm, yeah, that would be a rebase gone bad.

Thanks for spotting ;)
Ross

Quoted 42 lines · Martin Jansa

Isn't this already covered by:
http://git.openembedded.org/meta-openembedded/commit/?id=19aeaf028f6819e5fa705593d4bcdbf0b98143e0
http://git.openembedded.org/meta-openembedded/commit/?id=e65b1c4ebbbf2174125e7c659b908dd0f46c4509
https://patchwork.openembedded.org/patch/154300/
?

Quoted 35 lines · Ross Burton

The distutils class does a 'setup.py clean' but this breaks the protobuf build:

| Can't find required file: ../src/google/protobuf/descriptor.proto
| Generating google/protobuf/descriptor_pb2.py...
| ERROR: python3 setup.py build_ext execution failed.

Disable the clean to work around this.

---
 meta-python/recipes-devtools/python/python-protobuf.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-protobuf.inc +2 -1
index 6a0568ae62..421775d394 100644
@@ -25,3 +25,5 @@ RDEPENDS_${PN} += " \
 
 # For usage in other recipies when compiling protobuf files (e.g. by
 grpcio-tools)
 BBCLASSEXTEND = "native"
+
+CLEANBROKEN = "1"
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel