restrict symbols exposed by DSOs built for httpd
This commit is contained in:
parent
6f08804ca4
commit
51ac7213d5
24
subversion-1.14.2-modsyms.patch
Normal file
24
subversion-1.14.2-modsyms.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
Don't expose private symbols for the Apache modules DSO.
|
||||||
|
|
||||||
|
--- subversion-1.14.2/build/generator/gen_base.py.modsyms
|
||||||
|
+++ subversion-1.14.2/build/generator/gen_base.py
|
||||||
|
@@ -727,13 +727,17 @@
|
||||||
|
def __init__(self, name, options, gen_obj):
|
||||||
|
TargetLib.__init__(self, name, options, gen_obj)
|
||||||
|
|
||||||
|
+ if name[:4] != "mod_":
|
||||||
|
+ raise Exception("Apache module targets must be named mod_*")
|
||||||
|
+
|
||||||
|
tfile = name + self.gen_obj._extension_map['lib', 'target']
|
||||||
|
self.filename = build_path_join(self.path, tfile)
|
||||||
|
|
||||||
|
+ modname = name[4:] + '_module'
|
||||||
|
# we have a custom linking rule
|
||||||
|
### hmm. this is Makefile-specific
|
||||||
|
self.compile_cmd = '$(COMPILE_APACHE_MOD)'
|
||||||
|
- self.link_cmd = '$(LINK_APACHE_MOD)'
|
||||||
|
+ self.link_cmd = '$(LINK_APACHE_MOD) -export-symbols-regex ' + modname
|
||||||
|
|
||||||
|
class TargetSharedOnlyLib(TargetLib):
|
||||||
|
|
@ -63,7 +63,7 @@
|
|||||||
Summary: A Modern Concurrent Version Control System
|
Summary: A Modern Concurrent Version Control System
|
||||||
Name: subversion
|
Name: subversion
|
||||||
Version: 1.14.2
|
Version: 1.14.2
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://subversion.apache.org/
|
URL: https://subversion.apache.org/
|
||||||
Source0: https://downloads.apache.org/subversion/subversion-%{version}.tar.bz2
|
Source0: https://downloads.apache.org/subversion/subversion-%{version}.tar.bz2
|
||||||
@ -84,7 +84,7 @@ Patch8: subversion-1.14.1-python-3.11-build.patch
|
|||||||
Patch9: subversion-1.14.2-swig-py-Fix-conditionals-by-SWIG-version-and-by-Pyth.patch
|
Patch9: subversion-1.14.2-swig-py-Fix-conditionals-by-SWIG-version-and-by-Pyth.patch
|
||||||
Patch10: subversion-1.14.2-ruby32-remove-deprecated-api.patch
|
Patch10: subversion-1.14.2-ruby32-remove-deprecated-api.patch
|
||||||
Patch11: subversion-ruby-c99.patch
|
Patch11: subversion-ruby-c99.patch
|
||||||
|
Patch12: subversion-1.14.2-modsyms.patch
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: autoconf, libtool, texinfo, which, gcc, gcc-c++
|
BuildRequires: autoconf, libtool, texinfo, which, gcc, gcc-c++
|
||||||
BuildRequires: swig >= 1.3.24, gettext
|
BuildRequires: swig >= 1.3.24, gettext
|
||||||
@ -251,6 +251,7 @@ This package includes supplementary tools for use with Subversion.
|
|||||||
%patch9 -p1 -b .swigfix
|
%patch9 -p1 -b .swigfix
|
||||||
%patch10 -p0 -b .ruby32
|
%patch10 -p0 -b .ruby32
|
||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
|
%patch12 -p1 -b .modsyms
|
||||||
|
|
||||||
:
|
:
|
||||||
: === Building:
|
: === Building:
|
||||||
@ -591,6 +592,9 @@ make check-javahl
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 8 2023 Joe Orton <jorton@redhat.com> - 1.14.2-21
|
||||||
|
- restrict symbols exposed by DSOs built for httpd
|
||||||
|
|
||||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-20
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-20
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user