python-2.7-009-python-symlink.patch 971 B

12345678910111213141516171819202122232425
  1. Use a symlink between python and pythonVERSION
  2. By default, a hard link is used between /usr/bin/python and
  3. /usr/bin/pythonVERSION. Using hard links for such things is fairly
  4. uncommon, so let's make a symbolic link instead.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. Makefile.pre.in | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. Index: Python-2.7.2/Makefile.pre.in
  10. ===================================================================
  11. --- Python-2.7.2.orig/Makefile.pre.in
  12. +++ Python-2.7.2/Makefile.pre.in
  13. @@ -796,7 +796,7 @@
  14. then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
  15. else true; \
  16. fi
  17. - (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
  18. + (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) $(PYTHON))
  19. -rm -f $(DESTDIR)$(BINDIR)/python-config
  20. (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
  21. -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)