From 917db36435d1a427e39f5b9fe9756e6b7db9e276 Mon Sep 17 00:00:00 2001 From: zitingguo-ms Date: Sat, 26 Nov 2022 14:39:04 +0800 Subject: [PATCH] [Cherry-pick] Add build target to build thrift 0.14.1 for python2 (#12828) * add build target thrift 014 for python2 (#12790) Signed-off-by: richardyu-ms Signed-off-by: richardyu-ms * readd target PYTHON_THRIFT_0_14_1 Signed-off-by: zitingguo-ms Signed-off-by: richardyu-ms Signed-off-by: zitingguo-ms Co-authored-by: Richard.Yu --- rules/thrift_0_14_1.mk | 3 +++ src/thrift_0_14_1/Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a/rules/thrift_0_14_1.mk b/rules/thrift_0_14_1.mk index 3717eec6b6..6fc0d05c14 100644 --- a/rules/thrift_0_14_1.mk +++ b/rules/thrift_0_14_1.mk @@ -13,5 +13,8 @@ $(eval $(call add_derived_package,$(LIBTHRIFT_0_14_1),$(LIBTHRIFT_0_14_1_DEV))) PYTHON3_THRIFT_0_14_1 = python3-thrift_$(THRIFT_0_14_1_VERSION)_$(CONFIGURED_ARCH).deb $(eval $(call add_derived_package,$(LIBTHRIFT_0_14_1),$(PYTHON3_THRIFT_0_14_1))) +PYTHON_THRIFT_0_14_1 = python-thrift_$(THRIFT_0_14_1_VERSION)_$(CONFIGURED_ARCH).deb +$(eval $(call add_derived_package,$(LIBTHRIFT_0_14_1),$(PYTHON_THRIFT_0_14_1))) + THRIFT_0_14_1_COMPILER = thrift-compiler_$(THRIFT_0_14_1_VERSION)_$(CONFIGURED_ARCH).deb $(eval $(call add_derived_package,$(LIBTHRIFT_0_14_1),$(THRIFT_0_14_1_COMPILER))) diff --git a/src/thrift_0_14_1/Makefile b/src/thrift_0_14_1/Makefile index 081aff3f34..02f44ea120 100644 --- a/src/thrift_0_14_1/Makefile +++ b/src/thrift_0_14_1/Makefile @@ -7,6 +7,7 @@ THRIFT_VERSION = 0.14.1 MAIN_TARGET = libthrift0_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb DERIVED_TARGETS = libthrift-dev_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \ python3-thrift_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \ + python-thrift_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \ thrift-compiler_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb THRIFT_LINK_PRE = https://archive.apache.org/dist/thrift