-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-ac_fixes.patch
More file actions
49 lines (46 loc) · 1.98 KB
/
Copy pathpython-ac_fixes.patch
File metadata and controls
49 lines (46 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff -urNp -x '*.orig' Python-2.7.18.org/Makefile.pre.in Python-2.7.18/Makefile.pre.in
--- Python-2.7.18.org/Makefile.pre.in 2020-04-19 23:13:39.000000000 +0200
+++ Python-2.7.18/Makefile.pre.in 2021-09-26 12:34:28.007790961 +0200
@@ -1030,14 +1030,12 @@ altmaninstall:
fi; \
done
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
- $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
+ $(DESTDIR)$(MANDIR)/man1/python.1
# Install the unversioned manual pages
maninstall: altmaninstall
-rm -f $(DESTDIR)$(MANDIR)/man1/python2.1
- (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python2.1)
- -rm -f $(DESTDIR)$(MANDIR)/man1/python.1
- (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python2.1 python.1)
+ (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python.1 python2.1)
# Install the library
PLATDIR= @PLATDIR@
@@ -1180,7 +1178,7 @@ $(srcdir)/Lib/$(PLATDIR):
python-config: $(srcdir)/Misc/python-config.in
# Substitution happens here, as the completely-expanded BINDIR
# is not available in configure
- sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
+ sed -e "s,@EXENAME@,$(BINDIR)/python$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
# Install the include files
INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
diff -urNp -x '*.orig' Python-2.7.18.org/configure.ac Python-2.7.18/configure.ac
--- Python-2.7.18.org/configure.ac 2020-04-19 23:13:39.000000000 +0200
+++ Python-2.7.18/configure.ac 2021-09-26 12:34:28.007790961 +0200
@@ -1090,13 +1090,13 @@ then
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# debug builds.
- OPT="-g -O0 -Wall $STRICT_PROTO"
+ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
else
- OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
+ OPT="-g $WRAP $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
fi
;;
*)
- OPT="-O3 -Wall $STRICT_PROTO"
+ OPT="$CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
;;
esac
case $ac_sys_system in