Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102542 - net-fs/davfs2-0.2.4: mount.davfs tries to create PID file under $PORTAGE_TMPDIR, where the package has been compiled
Summary: net-fs/davfs2-0.2.4: mount.davfs tries to create PID file under $PORTAGE_TMPD...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-14 14:20 UTC by Alexander Skwar
Modified: 2005-08-15 12:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2005-08-14 14:20:47 UTC
[ebuild   R   ] net-fs/davfs2-0.2.4  -debug -socks5 +ssl 0 kB

[23:06:46 alexander@server:~] $ mount /home/alexander/GMX
/sbin/mount.davfs: Could not open pid-file
[23:07:22 alexander@server:~] $ grep /home/alexander/GMX /etc/fstab
mediacenter.gmx.net     /home/alexander/GMX     davfs   user,noauto     0 0
[23:07:38 alexander@server:~] $ grep mediacenter.gmx.net ~/.davfs2/secrets
mediacenter.gmx.net     <BenutzerNummer>  <Kennwort>

As you can see, mount.davfs fails with an error message. Running "strace -f" on
it, reveals:

[pid 15477]
open("/Gentoo/Portage/build/portage/davfs2-0.2.4/image//var/lib/davfs0.pid",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
[pid 15477] write(2, "/sbin/mount.davfs: ", 19/sbin/mount.davfs: ) = 19
[pid 15477] write(2, "Could not open pid-file", 23Could not open pid-file) = 23


In the first line you can see, that mount.davfs tries to create/open
"/Gentoo/Portage/build/portage/davfs2-0.2.4/image//var/lib/davfs0.pid". That
fails, obviously. This "/Gentoo/Portage/build/portage/davfs2-0.2.4/image/" is
where package got "installed" during emerge.


[20:42:01 alexander@server:~] $ emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-ck5.013.reiser4.nfsv4.inotify.tun.coda.gk i686)
=================================================================
System uname: 2.6.12-ck5.013.reiser4.nfsv4.inotify.tun.coda.gk i686 AMD
Athlon(tm) XP 2000+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acl alsa apache2 apm arts artswrappersuid async avi
bash-completion bluetooth bonobo calendar cdda cddb cdparanoia cdr cdrom codecs
crypt cscope css cups dbus divx4linux dvdread encode esd ethereal exif fam fbcon
fbdev ffmpeg fftw firefox flash foomaticdb ftp gd gdbm gif gimp gimpprint gmail
gnokii gnome gphoto2 gpm gs gstreamer gtk gtk2 guile hal hpn iconv idn
imagemagick imap imlib java javascript jpeg kde kdeenablefinal kdexdeltas libwww
logitech-mouse logrotate lufsusermount lzw lzw-tiff mad maildir matroska matrox
mbox mime mmap mmx mng mozdevelop moznocompose moznoirc mozp3p mozsvg mp3 mpeg
mplayer ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel nobeanutils
nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j
nooro nopop3d noregexp norhino noxalan noxerces offensive ofx ogg oggvorbis
opengl oss pam parse-clocks pcntl pcre pda pdflib perl pic pie png posix ppds
python qemu-fast qt quicktime quotes rdesktop readline real recode samba sasl
shared slang sockets speex spell sse ssl svg symlink sysvipc tcltk tcpd theora
tidy tiff truetype truetype-fonts type1-fonts unicode usb usepackagedmakefiles
vcd videos vim vim-pager vim-with-x vorbis wmf wsconvert x11vnc xchattext xfs
xine xml2 xmms xv xvid zlib video_cards_matrox linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Comment 1 Michael Mauch 2005-08-15 10:38:35 UTC
Are you sure you are not using an old version of mount.davfs?
/usr/share/doc/davfs2-0.2.4/NEWS.gz has a line:

- pid files have moved to /var/run/mount.davfs

# strings /usr/sbin/mount.davfs|grep var
/var/run/mount.davfs
Comment 2 Michael Mauch 2005-08-15 10:44:09 UTC
Oops, and please do

  chmod 1774 /var/run/mount.davfs
  chown root:users /var/run/mount.davfs

(see /usr/share/doc/davfs2-0.2.4/README.gz). The ebuild patch
http://bugs.gentoo.org/attachment.cgi?id=65882 attached to bug 102440 does that
automatically.
Comment 3 Alexander Skwar 2005-08-15 12:54:07 UTC
Oh, seems you're right. I used an old version of net-fs/davfs2-0.2.4.

What I never understand - why don't "they" increment the release number as soon
as something's changed? Obviously, an early davfs2-0.2.4 is not equal to a
current davfs2-0.2.4. That's bad. If there's a change, a release should be made,
ie. davfs2-0.2.4-r1. This way, updates would work :(