Ticket #14423: python-2.7.4.p0.diff

File python-2.7.4.p0.diff, 2.1 KB (added by jdemeyer, 8 years ago)
  • SPKG.txt

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1365696895 -7200
    # Node ID ae93fe0fe996b8584907e33f27acb0b5005ef7ac
    # Parent  0a397e576fb77287943cb8060b4c9918ef547d9b
    Trac #14423: Add no_strict_proto.patch
    
    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    6666 * ncurses-issue_14438.patch: Fixes Python issue #14438 (ncurses)
    6767 * disable_print_refs_debug.patch: Remove some unused debug output
    6868   that breaks doctests
    69  
     69 * no_strict_proto.patch: don't add -Wstrict-prototypes compiler flag,
     70   which isn't valid for C++ (but Python uses the same compiler flags
     71   for C and C++)
    7072
    7173== Changelog ==
    7274
    73 === python-2.7.4.p0 (Volker Braun, 7 April 2013)
    74  * Update to latest upstream version
     75=== python-2.7.4.p0 (Volker Braun, Jeroen Demeyer, 11 April 2013)
     76 * Trac #14423: Update to latest upstream version
     77 * Add no_strict_proto.patch
    7578
    7679=== python-2.7.3.p6 (Jeroen Demeyer, 24 March 2013) ===
    7780 * Trac #14265: Compile with -D__C99FEATURES__ on Solaris.
  • new file patches/no_strict_proto.patch

    diff --git a/patches/no_strict_proto.patch b/patches/no_strict_proto.patch
    new file mode 100644
    - +  
     1diff -ru src/configure.ac b/configure.ac
     2--- src/configure.ac    2013-04-06 16:02:41.000000000 +0200
     3+++ b/configure.ac      2013-04-11 18:11:17.947929754 +0200
     4@@ -1047,9 +1047,6 @@
     5 then
     6     case $GCC in
     7     yes)
     8-        if test "$CC" != 'g++' ; then
     9-           STRICT_PROTO="-Wstrict-prototypes"
     10-       fi
     11         # For gcc 4.x we need to use -fwrapv so lets check if its supported
     12         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
     13            WRAP="-fwrapv"
     14diff -ru src/configure b/configure
     15--- src/configure       2013-04-06 16:02:41.000000000 +0200
     16+++ b/configure 2013-04-11 18:11:25.737930322 +0200
     17@@ -5914,9 +5914,6 @@
     18 then
     19     case $GCC in
     20     yes)
     21-        if test "$CC" != 'g++' ; then
     22-           STRICT_PROTO="-Wstrict-prototypes"
     23-       fi
     24         # For gcc 4.x we need to use -fwrapv so lets check if its supported
     25         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
     26            WRAP="-fwrapv"