FS#9790 - davfs2 1.2.2-2, mount -t davfs fails

Attached to Project: Arch Linux
Opened by Julius (metalfan) - Saturday, 08 March 2008, 19:42 GMT
Last edited by Greg (dolby) - Monday, 19 May 2008, 12:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mounting always fails, using the share via cadaver works.

Additional info:
* package version(s)
davfs2 1.2.2-2
* config and/or log files etc.


Steps to reproduce:
mount -t davfs http://localhost:80/dav /tmp/test2



Please enter the username to authenticate with proxy
http or hit enter for none.
Username:
Please enter the username to authenticate with server
http://localhost:80/dav or hit enter for none.
Username:
/sbin/mount.davfs: connection timed out two times;
trying one last time
/sbin/mount.davfs: server temporarily unreachable;
mounting anyway



Solution:

Upgrade to davfs-1.3.0

modified PKGBUILD:
# $Id: PKGBUILD,v 1.9 2008/01/09 16:47:08 thomas Exp $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=davfs2
pkgver=1.3.0
pkgrel=1
pkgdesc="File system driver that allows you to mount a WebDAV server as a local disk drive."
arch=(i686 x86_64)
url="http://dav.sourceforge.net"
license="GPL"
depends=('neon>=0.25.5-6')
backup=(etc/davfs2/davfs2.conf etc/davfs2/secrets)
install=davfs2.install
source=(http://mesh.dl.sourceforge.net/sourceforge/dav/$pkgname-$pkgver.tar.gz
davfs2-neon.patch)
md5sums=('944613c18338630399099601f00fa633'
'a8965a0a689e7ab9f6047736f86e075f')

build() {
cd $startdir/src/$pkgname-$pkgver
# Arch has some users with homedir / by default
# This patch fixes a sanity check that prevents the "user" option
# working if this is the case
#patch -Np1 -i $startdir/src/davfs2-homedir.patch || return 1
#patch -Np1 -i $startdir/src/davfs2-neon.patch || return 1
sed 's|ne_set_request_body_fd64|ne_set_request_body_fd|g' -i src/webdav.c || return 1
dav_user=nobody dav_group=network ./configure --prefix=/usr --sysconfdir=/etc --disable-debug
make || return 1
# Create some dirs
install -d -m755 $startdir/pkg/sbin
make DESTDIR=$startdir/pkg install || return 1

rm -f $startdir/pkg/usr/share/davfs2/{BUGS,COPYING,FAQ,NEWS,TODO,ChangeLog,GPL,README,THANKS}
}

somehow mount.davfs is not linked to /sbin/mount.davfs but instead somewhere int the source dir. dont know why.
but you can correct that and link /usr/sbin/mount.davfs to /sbin/mount.davfs

This task depends upon

Closed by  Greg (dolby)
Monday, 19 May 2008, 12:22 GMT
Reason for closing:  Fixed
Comment by Greg (dolby) - Saturday, 17 May 2008, 08:40 GMT
Since the upgrade to davfs-1.3.0 has been commited, is this fixed?
Comment by Julius (metalfan) - Saturday, 17 May 2008, 09:54 GMT
I don't know what youre asking me. Try it.
Comment by Greg (dolby) - Sunday, 18 May 2008, 23:29 GMT
You said solution is to upgrade to version 1.3.0, which has been in extra for a couple of months now. Do you still have problems?
Comment by Julius (metalfan) - Monday, 19 May 2008, 12:05 GMT
No, thats why i listed a new PKGBUILD below Solution...
Ive switched to sshfs because davfs wasnt able to work with the ms implementation. but yes, the bug report was solved with davfs-1.3.

Loading...