]> git.pld-linux.org Git - packages/python.git/blob - python-ac_fixes.patch
- updated ac_fixes patch to accept autoconf 2.65+, not just only 2.65
[packages/python.git] / python-ac_fixes.patch
1 diff -Nur Python-2.5.2.orig/configure.in Python-2.5.2/configure.in
2 --- Python-2.5.2.orig/configure.in      2008-02-13 19:17:17.000000000 +0000
3 +++ Python-2.5.2/configure.in   2008-02-26 09:43:17.000000000 +0000
4 @@ -767,13 +767,13 @@
5             if test "$Py_DEBUG" = 'true' ; then
6                 # Optimization messes up debuggers, so turn it off for
7                 # debug builds.
8 -               OPT="-g -O0 -Wall $STRICT_PROTO"
9 +               OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
10             else
11 -               OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
12 +               OPT="-g $WRAP $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
13             fi
14             ;;
15         *)
16 -           OPT="-O3 -Wall $STRICT_PROTO"
17 +           OPT="$CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
18             ;;
19         esac
20         case $ac_sys_system in
21 --- Python-2.7/Makefile.pre.in~ 2010-04-12 02:10:46.000000000 +0200
22 +++ Python-2.7/Makefile.pre.in  2010-07-05 20:04:00.942224202 +0200
23 @@ -831,7 +831,7 @@
24                 fi; \
25         done
26         $(INSTALL_DATA) $(srcdir)/Misc/python.man \
27 -               $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
28 +               $(DESTDIR)$(MANDIR)/man1/python.1
29  
30  # Install the library
31  PLATDIR=       plat-$(MACHDEP)
32 @@ -953,7 +953,7 @@
33  python-config: $(srcdir)/Misc/python-config.in
34         # Substitution happens here, as the completely-expanded BINDIR
35         # is not available in configure
36 -       sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
37 +       sed -e "s,@EXENAME@,$(BINDIR)/python$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
38  
39  # Install the include files
40  INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
41 --- Python-2.7/configure.in.orig        2010-07-09 10:02:40.053393415 +0200
42 +++ Python-2.7/configure.in     2010-07-09 20:22:36.345392577 +0200
43 @@ -5,14 +5,7 @@
44  # Set VERSION so we only need to edit in one place (i.e., here)
45  m4_define(PYTHON_VERSION, 2.7)
46  
47 -dnl Some m4 magic to ensure that the configure script is generated
48 -dnl by the correct autoconf version.
49 -m4_define([version_required],
50 -[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [$1]), 0,
51 -       [],
52 -       [m4_fatal([Autoconf version $1 is required for Python], 63)])
53 -])
54 -version_required(2.65)
55 +AC_PREREQ([2.65])
56  
57  AC_REVISION($Revision$)
58  AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
This page took 0.081758 seconds and 3 git commands to generate.