All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][m-c-s][PATCH] mod-wsgi: move to 4.9.0
@ 2021-12-20 19:27 Jeremy A. Puhlman
  2021-12-21  1:52 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy A. Puhlman @ 2021-12-20 19:27 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Jeremy A. Puhlman

Older version of mod-wsgi no longer builds against python 3.10

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
 ...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 <mark.asselstine@windriver.com>
----
+----
  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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-virtualization][m-c-s][PATCH] mod-wsgi: move to 4.9.0
  2021-12-20 19:27 [meta-virtualization][m-c-s][PATCH] mod-wsgi: move to 4.9.0 Jeremy A. Puhlman
@ 2021-12-21  1:52 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2021-12-21  1:52 UTC (permalink / raw)
  To: Jeremy Puhlman; +Cc: meta-virtualization

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 <jpuhlman@mvista.com>
> ---
>  ...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 <mark.asselstine@windriver.com>
> ----
> +----
>   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 (#6981): https://lists.yoctoproject.org/g/meta-virtualization/message/6981
> Mute This Topic: https://lists.yoctoproject.org/mt/87863585/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-21  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 19:27 [meta-virtualization][m-c-s][PATCH] mod-wsgi: move to 4.9.0 Jeremy A. Puhlman
2021-12-21  1:52 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.