Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123664 - x11-drivers/ati-drivers: missing linux-mod_pkg_postrm() calls
Summary: x11-drivers/ati-drivers: missing linux-mod_pkg_postrm() calls
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 16:43 UTC by TGL
Modified: 2006-02-22 02:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ati-drivers--fix-postrm.patch (ati-drivers--fix-postrm.patch,4.40 KB, patch)
2006-02-21 16:44 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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