Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99375 - net-fs/samba: stale doc symlinks, pkg_postrm() needed
Summary: net-fs/samba: stale doc symlinks, pkg_postrm() needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 197423 (view as bug list)
Depends on: 100742
Blocks:
  Show dependency tree
 
Reported: 2005-07-17 16:38 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-10-31 20:38 UTC (History)
2 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 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-17 16:38:52 UTC
$ 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
...
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-20 05:21:33 UTC
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.
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2005-07-20 06:16:37 UTC
done. thanks
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-21 12:46:08 UTC
the fix for the fix...


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


Sorry!
Comment 4 Christian Andreetta (RETIRED) gentoo-dev 2005-07-22 02:17:18 UTC
fixing fix fixed :-)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-07-29 15:48:36 UTC
Reopened, this removes the docs for the *current* version if you just re-emerge it.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2005-08-01 04:49:14 UTC
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}
}

Comment 7 Christian Andreetta (RETIRED) gentoo-dev 2005-08-03 07:02:49 UTC
latest pkg_postrm in cvs
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-10-31 14:29:46 UTC
*** Bug 197423 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-31 14:33:25 UTC
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.
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2007-10-31 20:38:21 UTC
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.