$ tree /usr/share/doc/samba-* /usr/share/doc/samba-2.2.5 `-- using_samba -> /usr/share/swat/using_samba /usr/share/doc/samba-2.2.5-r1 `-- using_samba -> /usr/share/swat/using_samba /usr/share/doc/samba-2.2.7 `-- using_samba -> /usr/share/swat/using_samba /usr/share/doc/samba-2.2.7a `-- using_samba -> /usr/share/swat/using_samba /usr/share/doc/samba-2.2.8 `-- using_samba -> /usr/share/swat/using_samba /usr/share/doc/samba-3.0.10 |-- COPYING.gz |-- Manifest.gz ...
proposed fix: pkg_postrm(){ [ -n "${PF}" ] && rm -rf /usr/share/doc/${PF} } This doesn't clean up stale directories of previous versions, but is as safe as possible, imho.
done. thanks
the fix for the fix... pkg_postrm(){ [ -n "${PF}" ] && rm -rf ${ROOT}/usr/share/doc/${PF} } Sorry!
fixing fix fixed :-)
Reopened, this removes the docs for the *current* version if you just re-emerge it.
Mmh... objections to something like this? (this of course relies on portage correctly removing the ${ROOT}/usr/lib/${PN}/* files) pkg_postrm(){ [[ -n "${PF}" && ! -f ${ROOT}/usr/lib/${PN}/en.msg ]] && \ rm -rf ${ROOT}/usr/share/doc/${PF} }
latest pkg_postrm in cvs
*** Bug 197423 has been marked as a duplicate of this bug. ***
Broken once again w/ 3.0.26a at least; seriously I'd rather live with completely harmless stale symlinks; the whole 'fix' should be removed from the ebuild. Pretty likely completely redundant w/ FEATURES="unmerge-orphans" these days anyway.
Ok, I removed the broken fix. Really don't think that it's still needed anyway. Didn't do a revision bump, so please just wait a couple of hours, then re-emerge. In case you're not using 3.0.26a, please wait a few days until we begin to stabilize it. Thanks.