From 10f87fae94007eda6532fd814b04bdb5fa500348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= Date: Tue, 8 Jun 2021 17:42:24 +0200 Subject: [PATCH] Resolves: #1969555 - remove rpath --- mod_wsgi-4.7.1-remove-rpath.patch | 20 ++++++++++++++++++++ mod_wsgi.spec | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 mod_wsgi-4.7.1-remove-rpath.patch diff --git a/mod_wsgi-4.7.1-remove-rpath.patch b/mod_wsgi-4.7.1-remove-rpath.patch new file mode 100644 index 0000000..3996382 --- /dev/null +++ b/mod_wsgi-4.7.1-remove-rpath.patch @@ -0,0 +1,20 @@ +diff --git a/setup.py b/setup.py +index bf272ba..824957d 100644 +--- a/setup.py ++++ b/setup.py +@@ -465,15 +465,6 @@ EXTRA_COMPILE_FLAGS = (EXTRA_INCLUDES + CPPFLAGS + EXTRA_CPPFLAGS + + CFLAGS + EXTRA_CFLAGS + APR_INCLUDES + APU_INCLUDES) + EXTRA_LINK_ARGS = PYTHON_LDFLAGS + PYTHON_LDLIBS + +-# Force adding of LD_RUN_PATH for platforms that may need it. +- +-if os.name != 'nt': +- LD_RUN_PATH = os.environ.get('LD_RUN_PATH', '') +- LD_RUN_PATH += ':%s:%s' % (PYTHON_LIBDIR, PYTHON_CFGDIR) +- LD_RUN_PATH = LD_RUN_PATH.lstrip(':') +- +- os.environ['LD_RUN_PATH'] = LD_RUN_PATH +- + # On MacOS X, recent versions of Apple's Apache do not support compiling + # Apache modules with a target older than 10.8. This is because it + # screws up Apache APR % formats for apr_time_t, which breaks daemon diff --git a/mod_wsgi.spec b/mod_wsgi.spec index ad92f1f..a462e06 100644 --- a/mod_wsgi.spec +++ b/mod_wsgi.spec @@ -21,7 +21,7 @@ Name: mod_wsgi Version: 4.7.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A WSGI interface for Python web applications in Apache License: ASL 2.0 URL: https://modwsgi.readthedocs.io/ @@ -29,6 +29,7 @@ Source0: https://github.com/GrahamDumpleton/mod_wsgi/archive/%{version}.t Source1: wsgi.conf Source2: wsgi-python3.conf Patch1: mod_wsgi-4.5.20-exports.patch +Patch2: mod_wsgi-4.7.1-remove-rpath.patch BuildRequires: make BuildRequires: httpd-devel @@ -163,6 +164,9 @@ ln -s %{_bindir}/mod_wsgi-express-2 $RPM_BUILD_ROOT%{_bindir}/mod_wsgi-express %endif %changelog +* Tue Jun 08 2021 Luboš Uhliarik - 4.7.1-6 +- Resolves: #1969555 - remove rpath + * Fri Apr 16 2021 Mohan Boddu - 4.7.1-5 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937