From 9976b37f86b03007efad8bb73e0fbd42e17add35 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 18 Jan 2013 04:06:12 +0000 Subject: [PATCH] python3: Point /usr/bin/python to python3 if python is not selected Fixes #5702 Signed-off-by: Maxime Ripard Acked-by: Samuel Martin Signed-off-by: Peter Korsgaard --- package/python3/python3.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index bcd83eaf69..0d54162e85 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -148,5 +148,12 @@ PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_REMOVE_USELESS_FILES PYTHON3_AUTORECONF = YES +define PYTHON3_INSTALL_SYMLINK + ln -fs python3 $(TARGET_DIR)/usr/bin/python +endef + +ifneq ($(BR2_PACKAGE_PYTHON),y) +PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_INSTALL_SYMLINK +endif $(eval $(autotools-package)) $(eval $(host-autotools-package)) -- 2.30.2