ports/164583: [PATCH] devel/subversion: chown: /home/svn/repos/dav: No such file or directory error occurs when SVNSERVE_WRAPPER, MOD_DAV_SVN and WITH_REPOSITORY_CREATION options are enabled at the same time
TAKATSU Tomonari
tota at FreeBSD.org
Sat Jan 28 18:20:12 UTC 2012
>Number: 164583
>Category: ports
>Synopsis: [PATCH] devel/subversion: chown: /home/svn/repos/dav: No such file or directory error occurs when SVNSERVE_WRAPPER, MOD_DAV_SVN and WITH_REPOSITORY_CREATION options are enabled at the same time
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 28 18:20:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: TAKATSU Tomonari
>Release: FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
none (private)
>Environment:
System: FreeBSD photon.local.lan 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
"chown: No such file or directory" error occurs when installing with
SVNSERVE_WRAPPER, MOD_DAV_SVN and WITH_REPOSITORY_CREATION options.
Port maintainer (lev at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
# cd /usr/ports/devel/subversion
# make config
# make showconfig
===> The following configuration options are available for subversion-1.7.2:
P4_STYLE_MARKERS=on "Perforce-style conflict markers"
ENHANCED_KEYWORD=on "Enhanced svn:keyword support"
FREEBSD_TEMPLATE=on "FreeBSD Project log template"
MOD_DAV_SVN=on "mod_dav_svn module for Apache 2.X"
NEON=on "WebDAV/Delta-V repo access module (neon)"
SERF=on "WebDAV/Delta-V repo access module (serf)"
SASL=on "SASL2 authorization support"
BDB=off "Berkeley DB (4 or 5) repository backend"
MAINTAINER_DEBUG=off "Build debug version"
SVNSERVE_WRAPPER=on "Enable svnserve wrapper"
SVNAUTHZ_VALIDATE=off "install svnauthz-validate"
STATIC=off "Build static version (no shared libs)"
GNOME_KEYRING=off "Build with GNOME Keyring auth support"
KDE_KWALLET=off "Build with KDE KWallet auth support"
BOOK=off "Install the Subversion Book"
===> Use 'make config' to modify these settings
# make WITH_REPOSITORY_CREATION=yes install
(snip)
===> Installing rc.d startup script(s)
/usr/local/sbin/apxs -e -S LIBEXECDIR=/usr/local/libexec/apache22 -a -n dav_svn /usr/local/libexec/apache22/mod_dav_svn.so
[activating module `dav_svn' in /usr/local/etc/apache22/httpd.conf]
/usr/local/sbin/apxs -e -S LIBEXECDIR=/usr/local/libexec/apache22 -a -n authz_svn /usr/local/libexec/apache22/mod_authz_svn.so
[activating module `authz_svn' in /usr/local/etc/apache22/httpd.conf]
cd /usr/ports/devel/subversion/work/subversion-1.7.2/tools ; /usr/bin/tar --exclude '*.in' -cf - * | /usr/bin/tar -C /usr/local/share/subversion -xf -
/bin/mkdir -p /usr/local/share/doc/subversion
for f in BUGS CHANGES COMMITTERS INSTALL README; do install -o root -g wheel -m 444 /usr/ports/devel/subversion/work/subversion-1.7.2/$f /usr/local/share/doc/subversion; done
You already have a group "www", so I will use it.
You already have a user "www", so I will use it.
chown: /home/svn/repos/dav: No such file or directory
*** Error code 1
Stop in /usr/ports/devel/subversion.
*** Error code 1
Stop in /usr/ports/devel/subversion.
#
>Fix:
--- subversion-1.7.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/subversion/Makefile,v
retrieving revision 1.139
diff -u -u -r1.139 Makefile
--- Makefile 16 Oct 2011 21:01:42 -0000 1.139
+++ Makefile 28 Jan 2012 17:37:38 -0000
@@ -243,7 +243,10 @@
repository: _mkrepos
-_SVNGRPFILES= dav db locks locks/db.lock locks/db-logs.lock
+_SVNGRPFILES= db locks locks/db.lock locks/db-logs.lock
+.if defined(WITH_MOD_DAV_SVN)
+_SVNGRPFILES+= dav
+.endif
SVNGRPFILES= ${_SVNGRPFILES:S,^,${SVNREPOS}/,}
_mkrepos: .USE
@@ -277,6 +280,9 @@
@${MKDIR} ${SVNREPOS}
@${PREFIX}/bin/svnadmin create --fs-type ${SVNFSTYPE} ${SVNREPOS}
.if defined(WITH_SVNSERVE_WRAPPER)
+.if defined(WITH_MOD_DAV_SVN)
+ @${MKDIR} ${SVNREPOS}/dav
+.endif
@${CHOWN} ${SVNUSER}:${SVNGROUP} ${SVNGRPFILES}
@${CHMOD} g+w ${SVNGRPFILES}
@for i in ${SVNREPOS}/db/* ; do \
--- subversion-1.7.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list