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
Created attachment 80390 [details, diff] ati-drivers--fix-postrm.patch Just in case you don't like oneliners.
fixed,thank you