projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a686cff
)
python3: Point /usr/bin/python to python3 if python is not selected
author
Maxime Ripard
<maxime.ripard@free-electrons.com>
Fri, 18 Jan 2013 04:06:12 +0000
(
04:06
+0000)
committer
Peter Korsgaard
<jacmet@sunsite.dk>
Sun, 20 Jan 2013 20:30:26 +0000
(21:30 +0100)
Fixes #5702
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/python3/python3.mk
patch
|
blob
|
history
diff --git
a/package/python3/python3.mk
b/package/python3/python3.mk
index bcd83eaf697f4383fd17bf9c5d2ec302e5048726..0d54162e8563037910d0fac1b58d06f68931af17 100644
(file)
--- 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))