it looks like the problem of generated font files being left around after package removal affects more than just xorg fonts, so I'd like to move this function into font.eclass and generalize it so it can be run recursively on /usr/share/fonts during font_pkg_postrm. hopefully this will help prevent things like bug #311923.
Go for it :]
Created attachment 228083 [details, diff] font.eclass.diff i'll apply this in a couple days if no one sees any glaring errors.
Looks good, thanks Ryan :)
You know that the RM itself is commented out?
yes. :P committed.
Reopening, since I have one question: This function removes directories which were created by media-fonts/font-alias: $ qlist media-fonts/font-alias /usr/share/fonts/75dpi/fonts.alias /usr/share/fonts/100dpi/fonts.alias /usr/share/fonts/cyrillic/fonts.alias /usr/share/fonts/misc/fonts.alias /usr/share/doc/font-alias-1.0.2/ChangeLog.bz2 If this aliases are needed then we should not clean them. If we don't need them, then why this package? :)
that was due to bug #249190, but it seems we might need to rethink it.
Created attachment 237345 [details, diff] x-eclasses.diff Remove cleanup_fonts from the xorg eclasses since it's now handled by font.eclass.
Created attachment 237353 [details] font.eclass.diff This should do it. I also documented the function so I don't have to spend another hour trying to remember how the hell this works six months from now.
Applied.