[Buildroot] [PATCH] package/python-dpkt: remove Python2 only dependency

yegorslists at googlemail.com yegorslists at googlemail.com
Thu Apr 16 05:27:54 UTC 2020


From: Yegor Yefremov <yegorslists at googlemail.com>

python-dpkt supports both Python flavors.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 package/python-dpkt/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/python-dpkt/Config.in b/package/python-dpkt/Config.in
index d8e3388d7e..9bd7a98d26 100644
--- a/package/python-dpkt/Config.in
+++ b/package/python-dpkt/Config.in
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PYTHON_DPKT
 	bool "python-dpkt"
-	depends on BR2_PACKAGE_PYTHON
-	select BR2_PACKAGE_PYTHON_ZLIB
+	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
 	help
 	  Fast, simple packet creation / parsing, with definitions
 	  for the basic TCP/IP protocols.
-- 
2.17.0



More information about the buildroot mailing list