To me, that would be just a matter of update-fonts-{scale,alias,dir} - that programs should just read the contents of /etc/X11/fonts/... and create/remove any files in /usr/lib/X11/fonts... in so everything is set up correctly.
dh_installxfonts would not need to do anything except place the files correctly and add a plain call to the corresponding update-fonts-... programm to the postinst/remove scripts. On Tue, May 08, 2001 at 09:34:51PM -0400, Joey Hess wrote: > Branden Robinson wrote: > > On Fri, Apr 27, 2001 at 11:49:25AM -0400, Joey Hess wrote: > > > Well, that's bad. Ok, what in the hell are these > > > /etc/X11/fonts/*/*.alias files, and why have I never heard of them > > > before, and how is their presense/absense affecting debhelper's > > > behavior anyway? > > > > They're in the Debian Policy Manual, and have been for several months. > > Fine, someone else wrote the debhelper x fonts support, so I didn't pay > much attention. > > I've been looking into this bug report, and trying to figure out what is > the correct way to handle removing a font package. It seems tricky: > > /usr/lib/X11/fonts/foo/fonts.{alias,scale} are automatically generated > in the postinst. If there are multiple packages with fonts in foo/, then > when one is removed, its postrm needs to run the same update-fonts-* > commands that it ran in its postinst, to clean up after itself. > > But what if it is the last package to provide fonts in foo/? Or worse, > what if there are other packages still installed that provide fonts > there, but it is the last to provide scalable fonts, or alias files? > Then it seems that its postrm must handle removing the appropriare > foo/fonts.{alias,scale} files, which it can only do after analyzing what > other packages provide such files in /etc/, and determining if this package > is the last one. > > And that seems awefully complex for a postinst. Do update-fonts-* handle any > of this, by any chance? > > An alternative would be for a font package, when removed, to > unconditionally remove foo/fonts.{alias,scale}, and then blindly call > update-fonts-alias and update-fonts-scale. This would require that if > there are no files in /etc/ for a given font directory, those commands > don't write out a fonts.foo file for it, but just exit w/o an error. > > -- > see shy jo > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- -- ______________________________________________________ -- JESUS CHRIST IS LORD! -- To Him, even that machine here has to obey... -- -- _________________________________Norbert "Nobbi" Nemec -- Hindenburgstr. 44 ... D-91054 Erlangen ... Germany -- eMail: <[EMAIL PROTECTED]> Tel: +49-(0)-9131-204180