[Python-modules-commits] r29006 - in packages/mod-wsgi/trunk/debian (2 files)

fgeyer at users.alioth.debian.org fgeyer at users.alioth.debian.org
Wed May 21 17:50:47 UTC 2014


    Date: Wednesday, May 21, 2014 @ 17:50:46
  Author: fgeyer
Revision: 29006

Refresh python-config.patch.

Modified:
  packages/mod-wsgi/trunk/debian/changelog
  packages/mod-wsgi/trunk/debian/patches/python-config.patch

Modified: packages/mod-wsgi/trunk/debian/changelog
===================================================================
--- packages/mod-wsgi/trunk/debian/changelog	2014-05-21 17:50:18 UTC (rev 29005)
+++ packages/mod-wsgi/trunk/debian/changelog	2014-05-21 17:50:46 UTC (rev 29006)
@@ -3,6 +3,7 @@
   * New upstream release.
     - Fixes CVE-2014-0240: Local privilege escalation when using daemon mode.
   * Drop fix_crash_daemon_mode.patch, applied upstream.
+  * Refresh python-config.patch.
 
  -- Felix Geyer <fgeyer at debian.org>  Wed, 21 May 2014 19:35:23 +0200
 

Modified: packages/mod-wsgi/trunk/debian/patches/python-config.patch
===================================================================
--- packages/mod-wsgi/trunk/debian/patches/python-config.patch	2014-05-21 17:50:18 UTC (rev 29005)
+++ packages/mod-wsgi/trunk/debian/patches/python-config.patch	2014-05-21 17:50:46 UTC (rev 29006)
@@ -6,9 +6,9 @@
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -77,14 +77,8 @@
-     from distutils import sysconfig; \
-     stdout.write((sysconfig.get_config_var("VERSION")))'`
+@@ -103,14 +103,8 @@
+     PYTHON_LDVERSION=${PYTHON_VERSION}
+ fi
  
 -CPPFLAGS1=`${PYTHON} -c 'from sys import stdout; \
 -    from distutils import sysconfig; \
@@ -23,16 +23,28 @@
  
  if test "${ENABLE_EMBEDDED}" != "yes"; then
  CPPFLAGS3="-DMOD_WSGI_DISABLE_EMBEDDED"
-@@ -113,32 +106,8 @@
-     from distutils import sysconfig; \
-     stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORK"))'`
+@@ -143,45 +137,8 @@
+     PYTHONCFGDIR="${PYTHONCFGDIR}-${PYTHON_LDVERSION}"
+ fi
  
 -if test "${PYTHONFRAMEWORKDIR}" = "no-framework" -o \
 -        "${ENABLE_FRAMEWORK}" != "yes"; then
 -    LDFLAGS1="-L${PYTHONLIBDIR}"
 -    LDFLAGS2="-L${PYTHONCFGDIR}"
 -
--    LDLIBS1="-lpython${PYTHON_VERSION}"
+-    LDLIBS1="-lpython${PYTHON_LDVERSION}"
+-
+-    # MacOS X seems to be broken and doesn't use ABIFLAGS suffix
+-    # so add a check to try and work out what we need to do.
+-
+-    if test -f "${PYTHONLIBDIR}/libpython${PYTHON_VERSION}.a"; then
+-        LDLIBS1="-lpython${PYTHON_VERSION}"
+-    fi
+-
+-    if test -f "${PYTHONCFGDIR}/libpython${PYTHON_VERSION}.a"; then
+-        LDLIBS1="-lpython${PYTHON_VERSION}"
+-    fi
+-
 -    LDLIBS2=`${PYTHON} -c 'from sys import stdout; \
 -        from distutils import sysconfig; \
 -        stdout.write(sysconfig.get_config_var("LIBS"))'`
@@ -47,7 +59,8 @@
 -    LDFLAGS2=`${PYTHON} -c "from sys import stdout; \
 -        from distutils import sysconfig; \
 -        stdout.write(sysconfig.get_config_var(
--        \"LINKFORSHARED\").replace(\"${STRING}\", ''))"`
+-        \"LINKFORSHARED\").replace(\"${STRING}\", ''))" | \
+-        sed -e 's/-Wl,-stack_size,[[0-9]]*//'`
 -
 -    LDLIBS1=`${PYTHON} -c 'from sys import stdout; \
 -        from distutils import sysconfig; \
@@ -58,7 +71,7 @@
  
  CFLAGS1=""
  for arg in ${CFLAGS}
-@@ -157,8 +125,8 @@
+@@ -200,8 +157,8 @@
  fi
  
  CFLAGS="${CFLAGS1} ${CFLAGS2}"




More information about the Python-modules-commits mailing list