011-remove-python-symlink.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. Remove the python symlink install rules.
  2. The python symlink installation will be handled by Buildroot itself, because
  3. Buildroot needs to control to what python interpreter (python2 or python3) the
  4. python symlink points to.
  5. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  6. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  7. (rebased against version 2.7.12)
  8. Index: b/Makefile.pre.in
  9. ===================================================================
  10. --- a/Makefile.pre.in
  11. +++ b/Makefile.pre.in
  12. @@ -974,17 +974,10 @@
  13. echo "Creating directory $(LIBPC)"; \
  14. $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
  15. fi
  16. - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
  17. - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
  18. - else true; \
  19. - fi
  20. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
  21. -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
  22. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
  23. -rm -f $(DESTDIR)$(BINDIR)/python2-config
  24. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
  25. - -rm -f $(DESTDIR)$(BINDIR)/python-config
  26. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
  27. -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
  28. -rm -f $(DESTDIR)$(LIBPC)/python2.pc
  29. (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)