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

Bug 99378

Summary: x11-base/xorg-x11: stale docs
Product: Gentoo Linux Reporter: Carsten Lohrke (RETIRED) <carlo>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: stale-xorg-docs

Description Carsten Lohrke (RETIRED) gentoo-dev 2005-07-17 17:04:40 UTC
I'm not sure, if this is still a problem, but there's no code dealing with
removal of symlinks in .../doc/$PF in the latest stable ebuild.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-17 17:06:55 UTC
Created attachment 63657 [details]
stale-xorg-docs

output of `tree -p /usr/share/doc/xorg-x11-6.8.*`
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-18 00:16:47 UTC
It probably is. Care to provide a patch?
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-18 02:07:31 UTC
Well, lanius solved this by adding 

pkg_preinst() {
        # cleanups
        rm -fR /usr/share/doc/${PN}*
}

to cups and it's probably a good idea to clean out docs of previous versions as
well. On the other hand putting 

[ -n "${PF}" ] && rm -fR /usr/share/doc/${PF} in pkg_postrm() 

would be a bit more safe. An accidentally empty $PN would not be funny in the
first case.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-21 12:49:39 UTC
better make that

pkg_postrm(){
    [ -n "${PF}" ] && rm -rf ${ROOT}/usr/share/doc/${PF}
}
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-04 15:18:59 UTC
Security fixes only for the monolith now.