summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/mod-wsgi/files
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-04-08 11:50:02 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-10 14:38:55 -0400
commitd3fa3dfc30ecf000aefd23619208fdc992780670 (patch)
tree08e9a21ca4e38c0aaf137859bc0287564b9e6cca /meta-openstack/recipes-support/mod-wsgi/files
parenta40bba49410de349ce9a408554c5edb229abcd53 (diff)
downloadmeta-cloud-services-d3fa3dfc30ecf000aefd23619208fdc992780670.tar.gz
Package mod_wsgi
openstack-dashboard uses mod_wsgi to interface with apache Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/mod-wsgi/files')
-rw-r--r--meta-openstack/recipes-support/mod-wsgi/files/configure_var.patch100
1 files changed, 100 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/mod-wsgi/files/configure_var.patch b/meta-openstack/recipes-support/mod-wsgi/files/configure_var.patch
new file mode 100644
index 0000000..0f2c883
--- /dev/null
+++ b/meta-openstack/recipes-support/mod-wsgi/files/configure_var.patch
@@ -0,0 +1,100 @@
1---
2 configure.ac | 39 +++++++++++++++++++++++++++++++++++++++
3 1 file changed, 39 insertions(+)
4
5--- a/configure.ac
6+++ b/configure.ac
7@@ -73,18 +73,28 @@
8
9 AC_SUBST(PYTHON)
10
11+if test -z "${PYTHON_VERSION}"; then
12 PYTHON_VERSION=`${PYTHON} -c 'from sys import stdout; \
13 from distutils import sysconfig; \
14 stdout.write((sysconfig.get_config_var("VERSION")))'`
15+fi
16
17+if test -z "${PYTHON_INCLUDEPY}"; then
18 CPPFLAGS1=`${PYTHON} -c 'from sys import stdout; \
19 from distutils import sysconfig; \
20 stdout.write("-I" + sysconfig.get_config_var("INCLUDEPY"))'`
21+else
22+CPPFLAGS1="${PYTHON_INCLUDEPY}"
23+fi
24
25+if test -z "${PYTHON_CFLAGS}"; then
26 CPPFLAGS2=`${PYTHON} -c 'from sys import stdout; \
27 from distutils import sysconfig; \
28 stdout.write(" ".join(filter(lambda x: x.startswith("-D"), \
29 sysconfig.get_config_var("CFLAGS").split())))'`
30+else
31+CPPFLAGS2="${PYTHON_CFLAGS}"
32+fi
33
34 if test "${ENABLE_EMBEDDED}" != "yes"; then
35 CPPFLAGS3="-DMOD_WSGI_DISABLE_EMBEDDED"
36@@ -96,22 +106,43 @@
37
38 AC_SUBST(CPPFLAGS)
39
40+if test -z "${PYTHON_LIBDIR}"; then
41 PYTHONLIBDIR=`${PYTHON} -c 'from sys import stdout; \
42 from distutils import sysconfig; \
43 stdout.write(sysconfig.get_config_var("LIBDIR"))'`
44+else
45+PYTHONLIBDIR="${PYTHON_LIBDIR}"
46+fi
47+if test -z "${PYTHON_CFGDIR}"; then
48 PYTHONCFGDIR=`${PYTHON} -c 'from sys import stdout; \
49 import distutils.sysconfig; \
50 stdout.write(distutils.sysconfig.get_python_lib(plat_specific=1, \
51 standard_lib=1) +"/config")'`
52+else
53+PYTHONCFGDIR="${PYTHON_CFGDIR}"
54+fi
55+if test -z "${PYTHON_FRAMEWORKDIR}"; then
56 PYTHONFRAMEWORKDIR=`${PYTHON} -c 'from sys import stdout; \
57 from distutils import sysconfig; \
58 stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORKDIR"))'`
59+else
60+PYTHONFRAMEWORKDIR="${PYTHON_FRAMEWORKDIR}"
61+fi
62+
63+if test -z "${PYTHON_FRAMEWORKPREFIX}"; then
64 PYTHONFRAMEWORKPREFIX=`${PYTHON} -c 'from sys import stdout; \
65 from distutils import sysconfig; \
66 stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORKPREFIX"))'`
67+else
68+PYTHONFRAMEWORKPREFIX="${PYTHON_FRAMEWORKPREFIX}"
69+fi
70+if test -z "${PYTHON_FRAMEWORK}"; then
71 PYTHONFRAMEWORK=`${PYTHON} -c 'from sys import stdout; \
72 from distutils import sysconfig; \
73 stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORK"))'`
74+else
75+PYTHONFRAMEWORK="${PYTHON_FRAMEWORK}"
76+fi
77
78 if test "${PYTHONFRAMEWORKDIR}" = "no-framework" -o \
79 "${ENABLE_FRAMEWORK}" != "yes"; then
80@@ -119,12 +150,20 @@
81 LDFLAGS2="-L${PYTHONCFGDIR}"
82
83 LDLIBS1="-lpython${PYTHON_VERSION}"
84+ if test -z "${PYTHON_LIBS}"; then
85 LDLIBS2=`${PYTHON} -c 'from sys import stdout; \
86 from distutils import sysconfig; \
87 stdout.write(sysconfig.get_config_var("LIBS"))'`
88+ else
89+ LDLIBS3="${PYTHON_LIBS}"
90+ fi
91+ if test -z "${PYTHON_SYSLIBS}"; then
92 LDLIBS3=`${PYTHON} -c 'from sys import stdout; \
93 from distutils import sysconfig; \
94 stdout.write(sysconfig.get_config_var("SYSLIBS"))'`
95+ else
96+ LDLIBS3="${PYTHON_SYSLIBS}"
97+ fi
98 else
99 LDFLAGS1="-Wl,-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}"
100