merged.

Bruce

In message: [meta-virtualization][m-c-s][PATCH] mod-wsgi: move to 4.9.0
on 20/12/2021 Jeremy Puhlman wrote:

> Older version of mod-wsgi no longer builds against python 3.10
> 
> Signed-off-by: Jeremy A. Puhlman <[email protected]>
> ---
>  ...ow-PYTHON-values-to-be-passed-via-en.patch | 37 +++++++++----------
>  .../recipes-support/mod-wsgi/mod-wsgi_git.bb  |  4 +-
>  2 files changed, 20 insertions(+), 21 deletions(-)
> 
> diff --git 
> a/meta-openstack/recipes-support/mod-wsgi/files/configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch
>  
> b/meta-openstack/recipes-support/mod-wsgi/files/configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch
> index 4683db0a..79aedffd 100644
> --- 
> a/meta-openstack/recipes-support/mod-wsgi/files/configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch
> +++ 
> b/meta-openstack/recipes-support/mod-wsgi/files/configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch
> @@ -7,28 +7,31 @@ This allows the recipe to specify specific values instead 
> of them
>  being 'discovered' which may lead to host contamination or similar
>  issues.
>  
> +Updated for 4.9.0: Jeremy Puhlman
> +
>  Signed-off-by: Mark Asselstine <[email protected]>
> ----
> +----
>   configure.ac | 41 +++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 41 insertions(+)
>  
> +
>  diff --git a/configure.ac b/configure.ac
> -index 25afe44..b5a9e03 100644
> +index 37a0f86..9b77c7f 100644
>  --- a/configure.ac
>  +++ b/configure.ac
> -@@ -100,26 +100,38 @@ fi
> +@@ -106,26 +106,38 @@ fi
>   
>   AC_SUBST(PYTHON)
>   
>  +if test -z "${PYTHON_VERSION}"; then
>   PYTHON_VERSION=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("VERSION"))'`
>  +fi
>   
>  +if test -z "${PYTHON_LDVERSION}"; then
>   PYTHON_LDVERSION=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("LDVERSION") or "")'`
>  +fi
>   
> @@ -38,7 +41,7 @@ index 25afe44..b5a9e03 100644
>   
>  +if test -z "${PYTHON_INCLUDEPY}"; then
>   CPPFLAGS1=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write("-I" + sysconfig.get_config_var("INCLUDEPY"))'`
>  +else
>  +CPPFLAGS1="${PYTHON_INCLUDEPY}"
> @@ -46,7 +49,7 @@ index 25afe44..b5a9e03 100644
>   
>  +if test -z "${PYTHON_CFLAGS}"; then
>   CPPFLAGS2=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(" ".join(filter(lambda x: x.startswith("-D"), \
>       sysconfig.get_config_var("CFLAGS").split())))'`
>  +else
> @@ -55,13 +58,13 @@ index 25afe44..b5a9e03 100644
>   
>   if test "${ENABLE_EMBEDDED}" != "yes"; then
>   CPPFLAGS3="-DMOD_WSGI_DISABLE_EMBEDDED"
> -@@ -131,22 +143,43 @@ CPPFLAGS="${CPPFLAGS} ${CPPFLAGS1} ${CPPFLAGS2} 
> ${CPPFLAGS3}"
> +@@ -137,22 +149,42 @@ CPPFLAGS="${CPPFLAGS} ${CPPFLAGS1} ${CPPFLAGS2} 
> ${CPPFLAGS3}"
>   
>   AC_SUBST(CPPFLAGS)
>   
>  +if test -z "${PYTHON_LIBDIR}"; then
>   PYTHONLIBDIR=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("LIBDIR"))'`
>  +else
>  +PYTHONLIBDIR="${PYTHON_LIBDIR}"
> @@ -76,22 +79,21 @@ index 25afe44..b5a9e03 100644
>  +fi
>  +if test -z "${PYTHON_FRAMEWORKDIR}"; then
>   PYTHONFRAMEWORKDIR=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORKDIR"))'`
>  +else
>  +PYTHONFRAMEWORKDIR="${PYTHON_FRAMEWORKDIR}"
>  +fi
> -+
>  +if test -z "${PYTHON_FRAMEWORKPREFIX}"; then
>   PYTHONFRAMEWORKPREFIX=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORKPREFIX"))'`
>  +else
>  +PYTHONFRAMEWORKPREFIX="${PYTHON_FRAMEWORKPREFIX}"
>  +fi
>  +if test -z "${PYTHON_FRAMEWORK}"; then
>   PYTHONFRAMEWORK=`${PYTHON} -c 'from sys import stdout; \
> -     from distutils import sysconfig; \
> +     import sysconfig; \
>       stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORK"))'`
>  +else
>  +PYTHONFRAMEWORK="${PYTHON_FRAMEWORK}"
> @@ -99,20 +101,20 @@ index 25afe44..b5a9e03 100644
>   
>   if test "${PYTHON_LDVERSION}" != "${PYTHON_VERSION}"; then
>       PYTHONCFGDIR="${PYTHONCFGDIR}-${PYTHON_LDVERSION}"
> -@@ -170,12 +203,20 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-framework" -o \
> +@@ -180,12 +212,20 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-framework" -o \
>           LDLIBS1="-lpython${PYTHON_VERSION}"
>       fi
>   
>  +    if test -z "${PYTHON_LIBS}"; then
>       LDLIBS2=`${PYTHON} -c 'from sys import stdout; \
> -         from distutils import sysconfig; \
> +         import sysconfig; \
>           stdout.write(sysconfig.get_config_var("LIBS"))'`
>  +    else
>  +    LDLIBS2="${PYTHON_LIBS}"
>  +    fi
>  +    if test -z "${PYTHON_SYSLIBS}"; then
>       LDLIBS3=`${PYTHON} -c 'from sys import stdout; \
> -         from distutils import sysconfig; \
> +         import sysconfig; \
>           stdout.write(sysconfig.get_config_var("SYSLIBS"))'`
>  +    else
>  +    LDLIBS3="${PYTHON_SYSLIBS}"
> @@ -120,6 +122,3 @@ index 25afe44..b5a9e03 100644
>   else
>       LDFLAGS1="-Wl,-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}"
>   
> --- 
> -2.7.4
> -
> diff --git a/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_git.bb 
> b/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_git.bb
> index 79afba81..910bba1b 100644
> --- a/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_git.bb
> +++ b/meta-openstack/recipes-support/mod-wsgi/mod-wsgi_git.bb
> @@ -9,8 +9,8 @@ HOMEPAGE = "https://github.com/GrahamDumpleton/mod_wsgi";
>  LICENSE = "Apache-2.0"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>  
> -SRCREV = "217e80b7436035723b80ff02ee349365e8553dfc"
> -PV = "4.6.8+git${SRCPV}"
> +SRCREV = "df9faf954a1ab6208f45ba6fde90f0b41f605483"
> +PV = "4.9.0+git${SRCPV}"
>  
>  S = "${WORKDIR}/git"
>  
> -- 
> 2.31.1
> 

> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6982): 
https://lists.yoctoproject.org/g/meta-virtualization/message/6982
Mute This Topic: https://lists.yoctoproject.org/mt/87863585/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to