0010-Remove-the-python-symlink-install-rules.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 706d62599fb3c3cb9b9941364aaf4a1ef4ebd276 Mon Sep 17 00:00:00 2001
  2. From: Samuel Martin <s.martin49@gmail.com>
  3. Date: Tue, 7 Mar 2017 22:23:58 +0100
  4. Subject: [PATCH] Remove the python symlink install rules
  5. The python symlink installation will be handled by Buildroot itself,
  6. because Buildroot needs to control to what python interpreter (python2
  7. or python3) the python symlink points to.
  8. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  9. [Bernd: rebased against version 2.7.12.]
  10. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  11. [Peter: update for 2.7.16]
  12. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  13. ---
  14. Makefile.pre.in | 7 -------
  15. 1 file changed, 7 deletions(-)
  16. diff --git a/Makefile.pre.in b/Makefile.pre.in
  17. index 727a92af42..37b2ff3a5f 100644
  18. --- a/Makefile.pre.in
  19. +++ b/Makefile.pre.in
  20. @@ -978,17 +978,10 @@ bininstall: altbininstall
  21. echo "Creating directory $(LIBPC)"; \
  22. $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
  23. fi
  24. - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
  25. - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
  26. - else true; \
  27. - fi
  28. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
  29. -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
  30. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
  31. -rm -f $(DESTDIR)$(BINDIR)/python2-config
  32. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
  33. - -rm -f $(DESTDIR)$(BINDIR)/python-config
  34. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
  35. -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
  36. -rm -f $(DESTDIR)$(LIBPC)/python2.pc
  37. (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)
  38. --
  39. 2.11.0