* updated ktuberling (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / python / python2 / no-python-symlinks.patch
blobec45afd757e2346fd95ed1cdd814ccad759efe45
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/python2/no-python-symlinks.patch
5 # Copyright (C) 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- Python-2.7.18/Makefile.pre.in.vanilla 2021-02-23 15:20:00.661452356 +0000
18 +++ Python-2.7.18/Makefile.pre.in 2021-02-23 15:25:39.753450598 +0000
19 @@ -978,17 +978,10 @@
20 echo "Creating directory $(LIBPC)"; \
21 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
23 - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
24 - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
25 - else true; \
26 - fi
27 - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
28 -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
29 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
30 -rm -f $(DESTDIR)$(BINDIR)/python2-config
31 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
32 - -rm -f $(DESTDIR)$(BINDIR)/python-config
33 - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
34 -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
35 -rm -f $(DESTDIR)$(LIBPC)/python2.pc
36 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)