Skip to contentSkip to conversation

python-protobuf: update dependencies

PATCH New Alexey Roslyakov 3 participants 3 messages Oct 23, 2017 – Nov 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-protobuf: update dependencies

Since version 3.0.0 protobuf is compatible with Python3, remove Python2-only dependency.

It depends on python-six now, add this missing dependency.

---
Changes v1 -> v2:
- just remove "depends on BR2_PACKAGE_PYTHON" (suggested by Yegor)

---
 package/python-protobuf/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-protobuf/Config.in +1 -1
index 68523e9c60..607fe48c2a 100644
@@ -1,9 +1,9 @@
 config BR2_PACKAGE_PYTHON_PROTOBUF
 	bool "python-protobuf"
-	depends on BR2_PACKAGE_PYTHON
 	# host-protobuf only builds on certain architectures
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	depends on BR2_HOST_GCC_AT_LEAST_4_5 # host-protobuf
+	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  Python implementation of the Google Protocol Buffers.
 
Signature · 1 line
2.13.6
#1 lore raw

PATCH v2 1/1 python-protobuf: update dependencies

Quoted 6 lines · Alexey Roslyakov

Since version 3.0.0 protobuf is compatible with Python3, remove Python2-only dependency.

It depends on python-six now, add this missing dependency.

Quoted 26 lines

---
Changes v1 -> v2:
- just remove "depends on BR2_PACKAGE_PYTHON" (suggested by Yegor)

---
 package/python-protobuf/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-protobuf/Config.in +1 -2
index 68523e9c60..607fe48c2a 100644
@@ -1,9 +1,9 @@
 config BR2_PACKAGE_PYTHON_PROTOBUF
        bool "python-protobuf"
-       depends on BR2_PACKAGE_PYTHON
        # host-protobuf only builds on certain architectures
        depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        depends on BR2_HOST_GCC_AT_LEAST_4_5 # host-protobuf
+       select BR2_PACKAGE_PYTHON_SIX # runtime
        help
          Python implementation of the Google Protocol Buffers.
 
--

2.13.6

#2 lore raw

PATCH v2 1/1 python-protobuf: update dependencies

In reply to Alexey Roslyakov
Quoted 6 lines · Alexey Roslyakov

Since version 3.0.0 protobuf is compatible with Python3, remove Python2-only dependency.

It depends on python-six now, add this missing dependency.

Applied to master, thanks.

Regards,
Arnout

Quoted 24 lines

---
Changes v1 -> v2:
- just remove "depends on BR2_PACKAGE_PYTHON" (suggested by Yegor)

---
 package/python-protobuf/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-protobuf/Config.in +1 -1
index 68523e9c60..607fe48c2a 100644
@@ -1,9 +1,9 @@
 config BR2_PACKAGE_PYTHON_PROTOBUF
 	bool "python-protobuf"
-	depends on BR2_PACKAGE_PYTHON
 	# host-protobuf only builds on certain architectures
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	depends on BR2_HOST_GCC_AT_LEAST_4_5 # host-protobuf
+	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  Python implementation of the Google Protocol Buffers.
 
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF