Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99372 - app-office/scribus: stale doc symlinks, pkg_postrm() needed
Summary: app-office/scribus: 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: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on: 100742
Blocks:
  Show dependency tree
 
Reported: 2005-07-17 16:30 UTC by Carsten Lohrke (RETIRED)
Modified: 2005-09-13 15:35 UTC (History)
1 user (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:30:38 UTC
$ tree /usr/share/doc/scribus-*
/usr/share/doc/scribus-0.7.4-r1
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-0.8
/usr/share/doc/scribus-1.1.5
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-1.1.6
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-1.1.7
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-1.2
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-1.2.2.1
|-- AUTHORS.gz
|-- ChangeLog.gz
|-- README.gz
|-- TODO.gz
`-- html -> /usr/share/scribus/doc
/usr/share/doc/scribus-1.2.2-r1
`-- html -> /usr/share/scribus/doc

7 directories, 4 files
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-20 05:21:40 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 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-21 12:46:57 UTC
better make that


pkg_postrm(){
    [ -n "${PF}" ] && rm -rf ${ROOT}/usr/share/doc/${PF}
}
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-29 15:49:23 UTC
This removes the docs for the *current* version if you just re-emerge it.
Comment 4 Hanno Böck gentoo-dev 2005-09-13 15:35:59 UTC
I've now changed the scribus-ebuild not to symlink the docs, but to move them 
completely to /usr/share/doc. 
This won't remove old stale symlinks, but it will not create new ones.