Patch #841807: Check whether a versioned libpython.so symlink is needed
in altbininstall. Backported to 2.3.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3c3c119..2285646 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -615,7 +615,9 @@
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(BINDIR); \
else \
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
- (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
+ if test libpython$(VERSION)$(SO) != $(INSTSONAME); then \
+ (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
+ fi \
fi; \
else true; \
fi