mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3: fix PYTHON3_SYMLINK option
@ 2017-06-15  9:33 Philipp Zabel
  0 siblings, 0 replies; only message in thread
From: Philipp Zabel @ 2017-06-15  9:33 UTC (permalink / raw)
  To: ptxdist; +Cc: Philipp Zabel

If the PYTHON3_SYMLINK option is enabled, symlink python3 to
/usr/bin/python, as documented. This conflicts with the PYTHON_SYMLINK
option. Always install the /usr/bin/python3 symlink.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 rules/python3.in   | 3 ++-
 rules/python3.make | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/rules/python3.in b/rules/python3.in
index 33f5c5a7b..49f590dc2 100644
--- a/rules/python3.in
+++ b/rules/python3.in
@@ -56,9 +56,10 @@ config PYTHON3_SSL
 	bool "ssl bindings"
 
 config PYTHON3_SYMLINK
+        depends on !PYTHON_SYMLINK
 	bool
 	prompt "install symbolic link /usr/bin/python"
-	default y
+	default y if !PYTHON_SYMLINK
 
 config PYTHON3_LIBTK
 	bool
diff --git a/rules/python3.make b/rules/python3.make
index 1b8042eb2..0f656f383 100644
--- a/rules/python3.make
+++ b/rules/python3.make
@@ -153,10 +153,11 @@ $(STATEDIR)/python3.targetinstall:
 		*.so *.pyc, */test */tests */__pycache__ $(PYTHON3_SKIP-y))
 
 	@$(call install_copy, python3, 0, 0, 755, -, /usr/bin/python$(PYTHON3_MAJORMINOR))
+	@$(call install_link, python, python$(PYTHON_MAJORMINOR), /usr/bin/python3)
 	@$(call install_lib, python3, 0, 0, 644, libpython$(PYTHON3_MAJORMINOR)m)
 
 ifdef PTXCONF_PYTHON3_SYMLINK
-	@$(call install_link, python3, python$(PYTHON3_MAJORMINOR), /usr/bin/python3)
+	@$(call install_link, python3, python$(PYTHON3_MAJORMINOR), /usr/bin/python)
 endif
 
 	@$(call install_finish, python3)
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-15  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-15  9:33 [ptxdist] [PATCH] python3: fix PYTHON3_SYMLINK option Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox