public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/subversion] f43: - mod_dav_svn: inherit DavBasePath setting from mod_dav
@ 2026-10-16 11:06 Joe Orton
0 siblings, 0 replies; only message in thread
From: Joe Orton @ 2026-10-16 11:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/subversion
Branch : f43
Commit : 0039cf9cbac58bcc60a1cbd3b4476984370c0079
Author : Joe Orton <jorton@redhat.com>
Date : 2025-11-17T15:38:18+00:00
Stats : +62/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/subversion/c/0039cf9cbac58bcc60a1cbd3b4476984370c0079?branch=f43
Log:
- mod_dav_svn: inherit DavBasePath setting from mod_dav
---
diff --git a/subversion-1.14.5-davgetpath.patch b/subversion-1.14.5-davgetpath.patch
new file mode 100644
index 0000000..8cb4774
--- /dev/null
+++ b/subversion-1.14.5-davgetpath.patch
@@ -0,0 +1,58 @@
+From e56243a0a9068d2a7fa3c84d2f73c002aaa401ee Mon Sep 17 00:00:00 2001
+From: Joe Orton <jorton@redhat.com>
+Date: Fri, 7 Feb 2025 11:52:42 +0000
+Subject: [PATCH 1/2] mod_dav_svn: Use mod_dav's DAVBasePath setting to
+ determine the repository root path, allowing SVN to be configured via
+ LocationMatch like:
+
+ <LocationMatch ^/repos/svn(.*)>
+ DAV svn
+ SVNParentPath /srv/repos
+ DAVBasePath /repos
+ </LocationMatch>
+
+by mapping URL path "/repos/svnfoo" to the filesystem path of
+"/srv/repos/svnfoo". This partially addresses issues like SVN-4790
+(with minimal added complexity), though does not provide as much
+flexibility as discussed in SVN-2679.
+
+* subversion/mod_dav_svn/mod_dav_svn.c
+ (dav_svn__get_root_dir): Retrieve and return the setting from
+ DavBasePath via dav_get_base_path() where that API is available
+ and DavBasePath is configured.
+ (dav_svn__translate_name): Use dav_svn__get_root_dir() to determine
+ the repos root for the same reason.
+---
+ subversion/mod_dav_svn/mod_dav_svn.c | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/subversion/mod_dav_svn/mod_dav_svn.c b/subversion/mod_dav_svn/mod_dav_svn.c
+index 72f4470f62624..9b13134f33545 100644
+--- a/subversion/mod_dav_svn/mod_dav_svn.c
++++ b/subversion/mod_dav_svn/mod_dav_svn.c
+@@ -781,6 +781,15 @@ const char *
+ dav_svn__get_root_dir(request_rec *r)
+ {
+ dir_conf_t *conf;
++#if AP_MODULE_MAGIC_AT_LEAST(20120211, 139)
++ const char *base;
++
++ /* Inherit the root path from mod_dav's DavBasePath iff configured
++ where e.g. LocationMatch is used for the repos. */
++ base = dav_get_base_path(r);
++ if (base)
++ return base;
++#endif
+
+ conf = ap_get_module_config(r->per_dir_config, &dav_svn_module);
+ return conf->root_dir;
+@@ -1225,7 +1234,7 @@ static int dav_svn__translate_name(request_rec *r)
+ else
+ {
+ /* Retrieve path to repo and within repo for the request */
+- dav_error *err = dav_svn_split_uri(r, r->uri, conf->root_dir,
++ dav_error *err = dav_svn_split_uri(r, r->uri, dav_svn__get_root_dir(r),
+ &ignore_cleaned_uri,
+ &ignore_had_slash, &repos_basename,
+ &ignore_relative_path, &repos_path);
+
diff --git a/subversion.spec b/subversion.spec
index ab4c76e..b31454c 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -65,6 +65,8 @@ Patch8: subversion-1.14.3-zlib-ng.patch
Patch9: subversion-1.14.5-progenv.patch
# Fix tests with Python 3.14, https://github.com/apache/subversion/pull/30
Patch10: subversion-1.14.5-python314.patch
+# https://github.com/apache/subversion/pull/28
+Patch11: subversion-1.14.5-davgetpath.patch
BuildRequires: make
BuildRequires: libxcrypt-devel
BuildRequires: autoconf, libtool, texinfo, which, gcc, gcc-c++
@@ -170,9 +172,9 @@ passwords in the KDE Wallet.
%package -n mod_dav_svn
Summary: Apache httpd module for Subversion server
-Requires: httpd-mmn = %{_httpd_mmn}
+%{?!_httpd_requires: Requires: httpd-mmn = %{_httpd_mmn}}
Requires: subversion-libs%{?_isa} = %{version}-%{release}
-BuildRequires: httpd-devel >= 2.0.45
+BuildRequires: httpd-devel >= 2.4.63-4
%description -n mod_dav_svn
The mod_dav_svn package allows access to a Subversion repository
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 11:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 11:06 [rpms/subversion] f43: - mod_dav_svn: inherit DavBasePath setting from mod_dav Joe Orton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox