* Fix svn:mergeinfo diff parser bug when parsing forward merges * Fix redirected URL handling with file externals * swig-rb: Fix uses of 'File.exist?', deprecated since Ruby 2.1 * Build: Fix uses of deprecated Python APIs * Build: Retain ability to build SWIG Python 2 bindings * Fix reading WC lock status with svn_wc_status2_t * JavaHL: Add @Deprecated to silence compiler warnings * JavaHL: Fix crash in case of null message in getMessage * Fix build breakage of release tarballs by installed swig * Add regression test for issue #4711 "invalid xml file" * swig-py: Fix building with SWIG 4.1.0 (r1904167) * Makefile.in: Fix cleaning of __pycache__ dirs and *.pyc * swig-py: Avoid deprecated options to SWIG >= 4.1.0 (r1904198, r1904287) * swig-py: Use sysconfig to allow building with Python 3.12 * INSTALL: Document not to use SVN with APR 1.7.3 on Windows * Fix test suite broken by syntax error when --enable-sasl * swig-py: Fix issues #4916, #4917, #4918 (r1912500 et al) * swig-py: Improve error when no external diff (r1912724, -743, issue #1778) * autogen.sh: Fix building when Python is not named "python" - drop ruby32-fixes.patch, swig4.patch: upstream/obsolete - rebase all patches to -p1 to be able to switch to autosetup - add swig4.patch for better support with SWIG 4.x (bsc#1209110) - add ruby32-fixes.patch (https://svn.apache.org/viewvc?view=revision&revision=1904472) * fix-javahl-test.patch- rpm output /usr/lib/tmpfiles.d/svnserve.conf:1: Line references path below * Reject bad PUT before CHECKOUT in v1 HTTP protocol OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=364
88 lines
4.0 KiB
Diff
88 lines
4.0 KiB
Diff
Prevent the linker from adding an rpath to shared libraries. Original
|
|
patch by David Kimdon <dwhedon@debian.org>. The basic theory is:
|
|
|
|
- Split the $(LINK) makefile macro into $(LINK) and $(LINK_LIB).
|
|
- Comment out LD_RUN_PATH in the Perl makefiles.
|
|
- Use libtool instead of apxs to install the apache modules.
|
|
libtool relinks without rpath in this case, apxs obviously doesn't.
|
|
|
|
---
|
|
Makefile.in | 12 +++++++-----
|
|
build.conf | 4 ++--
|
|
build/generator/gen_base.py | 3 ++-
|
|
3 files changed, 11 insertions(+), 8 deletions(-)
|
|
|
|
Index: subversion-1.14.3/Makefile.in
|
|
===================================================================
|
|
--- subversion-1.14.3.orig/Makefile.in
|
|
+++ subversion-1.14.3/Makefile.in
|
|
@@ -272,10 +272,10 @@ TEST_SHLIB_VAR_SWIG_RB=\
|
|
COMPILE_SVNXX = $(LT_COMPILE_CXX) $(SVNXX_INCLUDES) -o $@ -c
|
|
COMPILE_SVNXX_TEST = $(LT_COMPILE_CXX) $(SVNXX_INCLUDES) $(BOOST_TEST_CPPFLAGS) -o $@ -c
|
|
|
|
-LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(libdir)
|
|
-LINK_LIB = $(LINK) $(LT_SO_VERSION)
|
|
-LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS) -rpath $(libdir)
|
|
-LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION)
|
|
+LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
|
|
+LINK_LIB = $(LINK) $(LT_SO_VERSION) -rpath $(libdir)
|
|
+LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
|
+LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION) -rpath $(libdir)
|
|
LINK_SVNXX_TEST = $(LINK_CXX) $(BOOST_TEST_LDFLAGS)
|
|
|
|
# special link rule for mod_dav_svn
|
|
@@ -883,7 +883,9 @@ $(SWIG_PL_DIR)/native/Makefile.PL: $(SWI
|
|
./config.status subversion/bindings/swig/perl/native/Makefile.PL
|
|
|
|
$(SWIG_PL_DIR)/native/Makefile: libsvn_swig_perl $(SWIG_PL_DIR)/native/Makefile.PL
|
|
- cd $(SWIG_PL_DIR)/native; $(SWIG_PL_PERL) Makefile.PL PREFIX=$(prefix)
|
|
+ cd $(SWIG_PL_DIR)/native; \
|
|
+ $(SWIG_PL_PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; \
|
|
+ sed -i -e '/^LD_RUN_PATH/s/^/#/' Makefile Makefile.[a-z]*
|
|
|
|
# There is a "readlink -f" command on some systems for the same purpose,
|
|
# but it's not as portable (e.g. Mac OS X doesn't have it). These should
|
|
Index: subversion-1.14.3/build.conf
|
|
===================================================================
|
|
--- subversion-1.14.3.orig/build.conf
|
|
+++ subversion-1.14.3/build.conf
|
|
@@ -573,7 +573,7 @@ lang = python
|
|
path = subversion/bindings/swig/python/libsvn_swig_py
|
|
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr
|
|
apriconv apr python swig
|
|
-link-cmd = $(LINK)
|
|
+link-cmd = $(LINK_LIB) $(SWIG_PY_LIBS)
|
|
install = swig-py-lib
|
|
# need special build rule to include -DSWIGPYTHON
|
|
compile-cmd = $(COMPILE_SWIG_PY)
|
|
@@ -599,7 +599,7 @@ type = swig_lib
|
|
lang = ruby
|
|
path = subversion/bindings/swig/ruby/libsvn_swig_ruby
|
|
libs = libsvn_client libsvn_wc libsvn_delta libsvn_subr apriconv apr ruby swig
|
|
-link-cmd = $(LINK) $(SWIG_RB_LIBS)
|
|
+link-cmd = $(LINK_LIB) $(SWIG_RB_LIBS)
|
|
install = swig-rb-lib
|
|
# need special build rule to include
|
|
compile-cmd = $(COMPILE_SWIG_RB)
|
|
Index: subversion-1.14.3/build/generator/gen_base.py
|
|
===================================================================
|
|
--- subversion-1.14.3.orig/build/generator/gen_base.py
|
|
+++ subversion-1.14.3/build/generator/gen_base.py
|
|
@@ -600,7 +600,7 @@ class TargetLinked(Target):
|
|
self.install = options.get('install')
|
|
self.compile_cmd = options.get('compile-cmd')
|
|
self.sources = options.get('sources', '*.c *.cpp')
|
|
- self.link_cmd = options.get('link-cmd', '$(LINK)')
|
|
+ self.link_cmd = options.get('link-cmd', '$(LINK_LIB)')
|
|
|
|
self.external_lib = options.get('external-lib')
|
|
self.external_project = options.get('external-project')
|
|
@@ -654,6 +654,7 @@ class TargetExe(TargetLinked):
|
|
extmap = self.gen_obj._extension_map
|
|
self.objext = extmap['exe', 'object']
|
|
self.filename = build_path_join(self.path, name + extmap['exe', 'target'])
|
|
+ self.link_cmd = '$(LINK)'
|
|
|
|
self.manpages = options.get('manpages', '')
|
|
self.testing = options.get('testing')
|