-diff -urN subversion-0.33.1.org/subversion/bindings/swig/perl/Makefile.PL subversion-0.33.1/subversion/bindings/swig/perl/Makefile.PL
---- subversion-0.33.1.org/subversion/bindings/swig/perl/Makefile.PL 2003-11-30 10:35:26.391367742 +0100
-+++ subversion-0.33.1/subversion/bindings/swig/perl/Makefile.PL 2003-11-30 10:37:38.074975507 +0100
-@@ -2,14 +2,17 @@
- use ExtUtils::MakeMaker;
+--- subversion-1.14.2/Makefile.in.orig 2022-07-14 22:54:57.153438576 +0200
++++ subversion-1.14.2/Makefile.in 2022-07-15 16:38:46.332821294 +0200
+@@ -881,7 +881,7 @@ $(SWIG_PL_DIR)/native/Makefile.PL: $(SWI
+ ./config.status subversion/bindings/swig/perl/native/Makefile.PL
- my @modules = qw/client delta fs ra repos wc/;
-+my @ldpaths = ('../.libs', map {"../../../libsvn_$_/.libs"} (@modules, qw/diff subr/));
- my @ldmodules = map {"-lsvn_$_-1"} (@modules, qw/subr/);
+ $(SWIG_PL_DIR)/native/Makefile: libsvn_swig_perl $(SWIG_PL_DIR)/native/Makefile.PL
+- cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix)
++ cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor
- my $apr_config = $ENV{APR_CONFIG} || '/usr/local/lib/apache2/apr-config';
- $apr_config = 'apr-config' unless -e $apr_config;
-
-+my $apr_shlib_path_var = `$apr_config --shlib-path-var`;
- my $apr_cflags = `$apr_config --includes`;
--my $apr_ldflags = `$apr_config --cflags --libs`;
-+my $apr_ldflags = `$apr_config --cflags --link-ld --libs`;
-
-+chomp $apr_shlib_path_var;
- chomp $apr_cflags;
- chomp $apr_ldflags;
-
-@@ -19,7 +22,7 @@
- ' -I.. -I../../../include -g'),
- OBJECT => q/$(O_FILES)/,
- dynamic_lib => {
-- OTHERLDFLAGS => join(' ', $apr_ldflags, '-L/usr/local/lib',
-+ OTHERLDFLAGS => join(' ', $apr_ldflags, (map {"-L$_"} @ldpaths),
- @ldmodules, '-lsvn_swig_perl-1',
- `swig -perl -ldflags`),
- },
-@@ -66,6 +69,7 @@
- (map {"\nsvn_$_.c : ../svn_$_.i ra_plugin.hi ra_reporter.hi delta_editor.hi\n".
- "\tswig -c -nopm -perl -I.. -I../../../include $apr_cflags -module SVN::_".main::perlish($_)." -o svn_$_.c ../svn_$_.i\n"}
- @modules),
--
-+ "\nFULLPERLRUN=$apr_shlib_path_var=",join(':',@ldpaths),
-+ " \$(FULLPERL)\n",
- );
- }
+ # 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