Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 450772

Summary: sys-devel/llvm-9999 - subversion: can't fetch to /var/portage/distfiles/svn-src/llvm/trunk from http://llvm.org/svn/llvm-project/llvm/trunk when DISTDIR is on nfs
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: [OLD] DevelopmentAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED INVALID    
Severity: normal CC: dev-portage, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Capricelli 2013-01-07 22:53:31 UTC
I often use live ebuild, without any problem, but i don't seem to manage to install the live llvm ebuild. It might be because of svn, as i think this is the first live ebuild i try to install that is based on svn. Others are usually using git/hg.

Using :
system : ~amd64 up to date
dev-vcs/subversion : 1.7.7
portage : 2.1.11.38

Reproducible: Always




 * Package:    sys-devel/llvm-9999
 * Repository: gentoo
 * Maintainer: voyageur@gentoo.org mgorny@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux libffi userland_GNU vim-syntax
 * FEATURES:   sandbox userpriv
 * subversion check out start -->
 *      repository: http://llvm.org/svn/llvm-project/llvm/trunk
svn: E200033: database is locked, executing statement 'PRAGMA synchronous=OFF;PRAGMA recursive_triggers=ON;'
 * ERROR: sys-devel/llvm-9999 failed (unpack phase):
 *   subversion: can't fetch to /var/portage/distfiles/svn-src/llvm/trunk from http://llvm.org/svn/llvm-project/llvm/trunk.
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_unpack
 *   environment, line 5157:  Called subversion_src_unpack
 *   environment, line 5474:  Called subversion_fetch
 *   environment, line 5369:  Called die
 * The specific snippet of code:
 *               ${ESVN_FETCH_CMD} ${options} "${repo_uri}" || die "${ESVN}: can't fetch to ${wc_path} from ${repo_uri}.";
 *
Comment 1 Thomas Capricelli 2013-01-09 19:43:43 UTC
Ok, here's an information that i think is rather important : my distfiles is mounted through nfs (v3), it is shared by all computers on the local network.

if i unmount it, making portage use a the local disk instead, then it works.

So i guess the bug is now something around "svn live ebuild fail to checkout on nfs-mounted distfiles"
Comment 2 Zac Medico gentoo-dev 2013-03-20 18:03:49 UTC
Maybe you don't have locking properly configured for your nfs mount?

Someone reported that enabling the nfslock service solved a similar problem here:

http://mail-archives.apache.org/mod_mbox/subversion-dev/201302.mbox/%3C20130221134631.GW27780@ted.stsp.name%3E
Comment 3 Thomas Capricelli 2013-03-20 22:32:44 UTC
@zac

Good hint!
Lock was configured and i thought it was working. using the very useful python code from http://naf-lhcb.physi.uni-heidelberg.de/index.php?q=node/52
i can confirm locking was broken on my setup.

Once fixed (on the server, i had ALL:ALL in hosts.deny, which requires ALL:localhost in hosts.allow, even though all nfs/lock stuff was already allowed), the previous python code does work, and i can indeed emerge svn-based live ebuild from nfs.

As such, i close this bug as invalid, this is not gentoo's fault :)

Thanks again for the hint.