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

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