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

Bug 586202

Summary: dev-python/matplotlib-1.5.1: left files in /tmp/xdg/matplotlib
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 567192    

Description Toralf Förster gentoo-dev 2016-06-17 14:57:35 UTC
ms-magpie / # ls -l /tmp/xdg/matplotlib/
total 64
-rw-r--r-- 1 root root 33991 Jun 17 07:17 fontList.cache
-rw-r--r-- 1 root root 25969 Jun 17 07:17 fontList.py3k.cache
drwxr-xr-x 1 root root     0 Jun 17 07:17 tex.cache


shouldn't be here, or ?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 15:03:30 UTC
Can't we drop this thingie to maint-needed? Or maybe to science? ;-P
Comment 2 Toralf Förster gentoo-dev 2016-06-17 15:08:13 UTC
ofc, but "equery meta -m" == manifest.xml should reflect that then too ;)
Comment 3 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-06-17 15:37:30 UTC
Since when is leaving files in /tmp a bug?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 15:40:41 UTC
(In reply to Kristian Fiskerstrand from comment #3)
> Since when is leaving files in /tmp a bug?

Since always. Because:

a. you don't clean up after yourself,

b. you don't respect ${TMPDIR}.
Comment 5 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-06-17 15:48:10 UTC
(In reply to Michał Górny from comment #4)
> (In reply to Kristian Fiskerstrand from comment #3)
> > Since when is leaving files in /tmp a bug?
> 
> Since always. Because:
> 
> a. you don't clean up after yourself,

data in /tmp is not expected to be persistent over reboots (the recommendation is for deletion during boot)

> 
> b. you don't respect ${TMPDIR}.

http://www.pathname.com/fhs/2.2/fhs-3.15.html#:
The /tmp directory must be made available for programs that require temporary files.

Programs must not assume that any files or directories in /tmp are preserved between invocations of the program.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 15:57:47 UTC
(In reply to Kristian Fiskerstrand from comment #5)
> (In reply to Michał Górny from comment #4)
> > (In reply to Kristian Fiskerstrand from comment #3)
> > > Since when is leaving files in /tmp a bug?
> > 
> > Since always. Because:
> > 
> > a. you don't clean up after yourself,
> 
> data in /tmp is not expected to be persistent over reboots (the
> recommendation is for deletion during boot)

How is that relevant? Sometimes reboots happen every few months or so. Do you think it's fine to keep random files in random paths in /tmp for a few months because they will *eventually* be removed? We could as well stop removing anything because *eventually* the HDD will be wiped.

> > 
> > b. you don't respect ${TMPDIR}.
> 
> http://www.pathname.com/fhs/2.2/fhs-3.15.html#:
> The /tmp directory must be made available for programs that require
> temporary files.
> 
> Programs must not assume that any files or directories in /tmp are preserved
> between invocations of the program.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

TMPDIR
This variable shall represent a pathname of a directory made available for programs that need a place to create temporary files.
Comment 7 Toralf Förster gentoo-dev 2016-06-17 16:09:36 UTC
I do have this intentionally set in the tinderbox script :

export XDG_CACHE_HOME=/tmp/xdg              # https://bugs.gentoo.org/show_bug.cgi?id=567192
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 16:20:00 UTC
(In reply to Toralf Förster from comment #7)
> I do have this intentionally set in the tinderbox script :
> 
> export XDG_CACHE_HOME=/tmp/xdg              #
> https://bugs.gentoo.org/show_bug.cgi?id=567192

You could have told this up front. Then it's a matter of ebuild not setting XDG_CACHE_HOME.