open-plc-utils: new package
[buildroot-gz.git] / package / python / 011-remove-python-symlink.patch
blobb0548c31df48d992a6cf901d3d17f0cf81a96a5f
1 Remove the python symlink install rules.
3 The python symlink installation will be handled by Buildroot itself, because
4 Buildroot needs to control to what python interpreter (python2 or python3) the
5 python symlink points to.
7 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
9 Index: b/Makefile.pre.in
10 ===================================================================
11 --- a/Makefile.pre.in
12 +++ b/Makefile.pre.in
13 @@ -890,17 +890,10 @@
14 # $(PYTHON) -> python2 -> python$(VERSION))
15 # Also create equivalent chains for other installed files
16 bininstall: altbininstall
17 - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
18 - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
19 - else true; \
20 - fi
21 - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
22 -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
23 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
24 -rm -f $(DESTDIR)$(BINDIR)/python2-config
25 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
26 - -rm -f $(DESTDIR)$(BINDIR)/python-config
27 - (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
28 -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
29 -rm -f $(DESTDIR)$(LIBPC)/python2.pc
30 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)