python-011-remove-python-symlink.patch 1.3 KB

1234567891011121314151617181920212223242526272829
  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. diff -purN a/Makefile.pre.in b/Makefile.pre.in
  7. --- a/Makefile.pre.in 2014-03-02 17:56:56.529132499 +0100
  8. +++ b/Makefile.pre.in 2014-03-02 19:24:02.346491849 +0100
  9. @@ -857,17 +857,10 @@ $(DESTSHARED):
  10. # $(PYTHON) -> python2 -> python$(VERSION))
  11. # Also create equivalent chains for other installed files
  12. bininstall: altbininstall
  13. - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
  14. - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
  15. - else true; \
  16. - fi
  17. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
  18. -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
  19. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
  20. -rm -f $(DESTDIR)$(BINDIR)/python2-config
  21. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
  22. - -rm -f $(DESTDIR)$(BINDIR)/python-config
  23. - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
  24. -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
  25. -rm -f $(DESTDIR)$(LIBPC)/python2.pc
  26. (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)