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

Bug 123664

Summary: x11-drivers/ati-drivers: missing linux-mod_pkg_postrm() calls
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: Current packagesAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED FIXED    
Severity: normal CC: lu_zero
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ati-drivers--fix-postrm.patch

Description TGL 2006-02-21 16:43:21 UTC
This ebuild defines its own pkg_postrm() function without calling the own from linux-mod.eclass. As a consequence, the package is not removed from the module-rebuild database when uninstalled, whereas it was added at postinst time. 

This are the relevant ebuild versions (the ones which call linux-mod_pkg_postinst in pkg_postinst, and thus should really also call linux-mod_pkg_postrm in pkg_postrm):
8.14.13-r3
8.14.13-r5
8.16.20-r1
8.18.6
8.18.6-r1
8.18.8
8.18.8-r1
8.18.8-r2
8.19.10
8.20.8
8.21.7
8.22.5

One line to fix them all:
# for ebuild in *.ebuild ; do grep -q linux-mod_pkg_postinst $ebuild && sed -i -e '/^pkg_postrm()/s:$:\n\tlinux-mod_pkg_postrm:' $ebuild ; done

At the opposite, this version don't need to be changed, because they just do an "update-modules" in postinst and thus don't touch the module-rebuild database at all (is it on purpose btw?):
8.14.13-r2
8.14.13-r4
8.16.20
Comment 1 TGL 2006-02-21 16:44:01 UTC
Created attachment 80390 [details, diff]
ati-drivers--fix-postrm.patch

Just in case you don't like oneliners.
Comment 2 Luca Barbato gentoo-dev 2006-02-22 02:03:56 UTC
fixed,thank you