* [gentoo-dev] Dealing with /var/cache on unmerge
@ 2006-06-10 0:25 Andrew Ross
2006-06-10 9:48 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Ross @ 2006-06-10 0:25 UTC (permalink / raw
To: gentoo-dev
Apologies if this has been addressed previously, but my searches of the
Gentoo website, devmanual, forums, and mailing list archives didn't turn
up anything definitive.
Is there any sort of policy covering how an ebuild should deal with
/var/cache during unmerge?
The devmanual pages for pkg_prerm (http://tinyurl.com/huh7n) and
pkg_postrm (http://tinyurl.com/f5b7o) are the closest I've come to an
answer, but I don't consider deletion of the cache dir to be the same as
updating it.
I've looked at a few ebuilds in the tree (including samba and squid) and
they seem to leave in place any cache files created during normal
execution of the package in question.
This means that after an unmerge the sysadmin needs to go and clean out
/var/cache/whatever.
During ebuild development and testing, I can see why one might want the
cache files to remain, so unconditional cleaning of /var/cache is out of
the question. However, removing of cache files could be controlled by a
FEATURE (eg. keepcache - unless that implies the retention of cache
files from the original merge a la keepwork and keeptemp).
A similar issue exists with log files, but I'd expect them to occupy
less space than caches, and generally be considered more useful (since
they can't be regenerated). If they were to be dealt with, perhaps
portage could have a purge option that removes all traces of a package
from the system - including log and cache files (it looks like temp
files should already be cleaned out by the ebuild).
Of course, the general opinion might be that management of /var/cache is
outside the scope of portage, and best left to the sysadmin (and/or an
separate automated tool), although the FHS doesn't specify either way
(http://tinyurl.com/26gpd). That's fine with me, but I think it's good
to have this on record in the mailing list archives, and perhaps in the
devmanual as well.
Cheers
Andrew
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Dealing with /var/cache on unmerge
2006-06-10 0:25 [gentoo-dev] Dealing with /var/cache on unmerge Andrew Ross
@ 2006-06-10 9:48 ` Mike Frysinger
2006-06-10 11:17 ` Daniel Drake
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2006-06-10 9:48 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
On Friday 09 June 2006 20:25, Andrew Ross wrote:
> Apologies if this has been addressed previously,
i dont believe it has ever come up before
> Is there any sort of policy covering how an ebuild should deal with
> /var/cache during unmerge?
maybe give ebuilds a way to maintain a list of files that portage should nuke
when unmerging the package ...
> A similar issue exists with log files, but I'd expect them to occupy
> less space than caches, and generally be considered more useful (since
> they can't be regenerated). If they were to be dealt with, perhaps
> portage could have a purge option that removes all traces of a package
> from the system - including log and cache files (it looks like temp
> files should already be cleaned out by the ebuild).
i'm not so sure ... i'd guess that the large majority of packages do logging
with syslog() and there really is no way to bind <logfile name> to <package>
sanely for all system loggers out there
however, logs that a daemon itself generates/maintains rather than using the
system logger would fall into this discussion
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Dealing with /var/cache on unmerge
2006-06-10 9:48 ` Mike Frysinger
@ 2006-06-10 11:17 ` Daniel Drake
2006-06-11 9:01 ` Jakub Moc
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2006-06-10 11:17 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger wrote:
> maybe give ebuilds a way to maintain a list of files that portage should nuke
> when unmerging the package ...
Something similar to this would be useful for kernel ebuilds, as simply
unmerging kernel source will leave a load of temporary and object files
on the filesystem.
Daniel
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Dealing with /var/cache on unmerge
2006-06-10 11:17 ` Daniel Drake
@ 2006-06-11 9:01 ` Jakub Moc
2006-06-11 10:29 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Moc @ 2006-06-11 9:01 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
Daniel Drake wrote:
> Mike Frysinger wrote:
>> maybe give ebuilds a way to maintain a list of files that portage
>> should nuke when unmerging the package ...
>
> Something similar to this would be useful for kernel ebuilds, as simply
> unmerging kernel source will leave a load of temporary and object files
> on the filesystem.
>
> Daniel
Already been there and got removed, because it broke emerge -e world for
ebuilds that need configured kernel to compile.
--
Best regards,
Jakub Moc
mailto:jakub@gentoo.org
GPG signature:
http://subkeys.pgp.net:11371/pks/lookup?op=get&search=0xCEBA3D9E
Primary key fingerprint: D2D7 933C 9BA1 C95B 2C95 B30F 8717 D5FD CEBA 3D9E
... still no signature ;)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Dealing with /var/cache on unmerge
2006-06-11 9:01 ` Jakub Moc
@ 2006-06-11 10:29 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2006-06-11 10:29 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]
On Sunday 11 June 2006 05:01, Jakub Moc wrote:
> Daniel Drake wrote:
> > Mike Frysinger wrote:
> >> maybe give ebuilds a way to maintain a list of files that portage
> >> should nuke when unmerging the package ...
> >
> > Something similar to this would be useful for kernel ebuilds, as simply
> > unmerging kernel source will leave a load of temporary and object files
> > on the filesystem.
>
> Already been there and got removed, because it broke emerge -e world for
> ebuilds that need configured kernel to compile.
that isnt a bug
you cant assume the kernel sources that were just dropped into place match
exactly the compiled objects in the same tree
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-11 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-10 0:25 [gentoo-dev] Dealing with /var/cache on unmerge Andrew Ross
2006-06-10 9:48 ` Mike Frysinger
2006-06-10 11:17 ` Daniel Drake
2006-06-11 9:01 ` Jakub Moc
2006-06-11 10:29 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox