Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14287 - cvs 1.11.5 - tries to open temp files in /var/tmp/portage tree
Summary: cvs 1.11.5 - tries to open temp files in /var/tmp/portage tree
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
: 14324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-21 06:51 UTC by D Wollmann
Modified: 2003-02-04 19:42 UTC (History)
3 users (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 D Wollmann 2003-01-21 06:51:33 UTC
Example:

$ cvs commit -m checkpoint
cvs commit: Examining .
Checking in tkextractvis;
/var/lib/cvs/perl/tkextractvis/tkextractvis,v  <--  tkextractvis
cvs [commit aborted]: Failed to create temporary file: Permission denied

strace shows that cvs is attempting to open the temporary file in the directory
in which it was configured and built:

open("/var/tmp/portage/cvs-1.11.5/temp/cvs6ZSQcd", O_RDWR|O_CREAT|O_EXCL, 0600)
= -1 EACCES (Permission denied)
Comment 1 YAMAKURA Makoto 2003-01-21 09:44:36 UTC
Hi,

cvs-1.11.5 has a configure option '--with-tmpdir'.
Adding it to econf will fix the problem.

  econf --with-tmpdir=/tmp || die

thanks,
Comment 2 Shane Hyde 2003-01-21 18:18:12 UTC
*** Bug 14324 has been marked as a duplicate of this bug. ***
Comment 3 J Robert Ray 2003-01-21 19:59:24 UTC
I committed a new ebuild that sets tmpdir to /tmp, but this directory may not be
the best choice for all people.  Perhaps there is a better solution?
Comment 4 D Wollmann 2003-01-21 20:29:52 UTC
The cvs server should probably continue using the same temporary directory as in
previous versions, unless there's an easy-to-maintain customization method that
could be added to the ebuild.

Looking at the cvs manual, it appears that the server gets the temp directory
from the environment variables:

TMPDIR
TMP
TEMP

No /etc/cvsrc? That's a shame.

and the client gets the temp directory from either the command line,
environment, or ~/.cvsrc?

Could you drop a NNcvs file in /etc/env.d to allow customization of the
temporary directory for the server?
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-01-22 04:43:22 UTC
Probably setting a sane default (/tmp) at compile time is a good idea anyway.
The /var/tmp/portage location is bad in any case. Of course setting TMP is
allways a good idea anyway. (Of course you are free to set it yourself)
Comment 6 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-22 05:29:03 UTC
-r1 fixed this bug.