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

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From bddfcbb8a4c011ca2fe471f7a4124cd64b5b0f00 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. ---
  12. Makefile.pre.in | 7 -------
  13. 1 file changed, 7 deletions(-)
  14. diff --git a/Makefile.pre.in b/Makefile.pre.in
  15. index beb0837..dedcf61 100644
  16. --- a/Makefile.pre.in
  17. +++ b/Makefile.pre.in
  18. @@ -968,17 +968,10 @@ bininstall: altbininstall
  19. echo "Creating directory $(LIBPC)"; \
  20. $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
  21. fi
  22. - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
  23. - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
  24. - else true; \
  25. - fi
  26. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
  27. -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
  28. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
  29. -rm -f $(DESTDIR)$(BINDIR)/python2-config
  30. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
  31. - -rm -f $(DESTDIR)$(BINDIR)/python-config
  32. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
  33. -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
  34. -rm -f $(DESTDIR)$(LIBPC)/python2.pc
  35. (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)
  36. --
  37. 2.7.4