From 46660479af172748816004aec62a39821ed030ac Mon Sep 17 00:00:00 2001 From: richardyu-ms Date: Wed, 11 Jan 2023 04:25:48 +0000 Subject: [PATCH] fix thrift 014 dependent issue in armhf --- src/thrift_0_14_1/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/thrift_0_14_1/Makefile b/src/thrift_0_14_1/Makefile index 02f44ea1202a..431959a9422a 100644 --- a/src/thrift_0_14_1/Makefile +++ b/src/thrift_0_14_1/Makefile @@ -20,10 +20,16 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : tar -xvzf ./thrift_$(THRIFT_VERSION).tar.gz if [ -f thrift.patch/series ]; then pushd thrift-$(THRIFT_VERSION) && QUILT_PATCHES=../thrift.patch quilt push -a; [ -d .pc ] && rm -rf .pc; popd; fi + if [ $(CONFIGURED_ARCH) == armhf ]; then + alias python=python3 + fi pushd thrift-$(THRIFT_VERSION) DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -d -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR) popd mv $(DERIVED_TARGETS) $* $(DEST)/ + if [ $(CONFIGURED_ARCH) == armhf ]; then + unalias python + fi $(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)