restrict module DSO symbol exports
This commit is contained in:
parent
4bfd3270fa
commit
c8a7642dcf
11
mod_wsgi-4.5.20-exports.patch
Normal file
11
mod_wsgi-4.5.20-exports.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- mod_wsgi-4.5.20/Makefile.in.exports
|
||||
+++ mod_wsgi-4.5.20/Makefile.in
|
||||
@@ -28,7 +28,7 @@
|
||||
all : src/server/mod_wsgi.la
|
||||
|
||||
src/server/mod_wsgi.la : $(SRCFILES)
|
||||
- $(APXS) -c $(CPPFLAGS) $(CFLAGS) $(SRCFILES) $(LDFLAGS) $(LDLIBS)
|
||||
+ $(APXS) -Wl,-export-symbols-regex -Wl,wsgi_module -c $(CPPFLAGS) $(CFLAGS) $(SRCFILES) $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
$(DESTDIR)$(LIBEXECDIR) :
|
||||
mkdir -p $@
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
Name: mod_wsgi
|
||||
Version: 4.5.20
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A WSGI interface for Python web applications in Apache
|
||||
Group: System Environment/Libraries
|
||||
License: ASL 2.0
|
||||
@ -22,6 +22,7 @@ URL: https://modwsgi.readthedocs.io/
|
||||
Source0: https://github.com/GrahamDumpleton/mod_wsgi/archive/%{version}.tar.gz#/mod_wsgi-%{version}.tar.gz
|
||||
Source1: wsgi.conf
|
||||
Source2: wsgi-python3.conf
|
||||
Patch1: mod_wsgi-4.5.20-exports.patch
|
||||
|
||||
BuildRequires: httpd-devel, python2-devel
|
||||
BuildRequires: python2-sphinx
|
||||
@ -70,6 +71,7 @@ Obsoletes: mod_wsgi < %{version}-%{release}
|
||||
|
||||
%prep
|
||||
%setup -qn %{name}-%{version}
|
||||
%patch1 -p1 -b .exports
|
||||
|
||||
%if 0%{?with_python3} > 0
|
||||
cp -a . %{py3dir}
|
||||
@ -142,6 +144,9 @@ ln -s %{_bindir}/mod_wsgi-express-2 $RPM_BUILD_ROOT%{_bindir}/mod_wsgi-express
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Feb 7 2018 Joe Orton <jorton@redhat.com> - 4.5.20-4
|
||||
- restrict module DSO symbol exports
|
||||
|
||||
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 4.5.20-3
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user