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

Bug 99372

Summary: app-office/scribus: stale doc symlinks, pkg_postrm() needed
Product: Gentoo Linux Reporter: Carsten Lohrke (RETIRED) <carlo>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED FIXED    
Severity: minor CC: rockoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 100742    
Bug Blocks:    

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.