Re: default font "fixed" in xorg 7.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Dvorák wrote:
I have compared the fonts-base packages from FC5 and devel and they
differ only in content of the font files (*.pcf.gz). So something must
be changed in the xorg-x11-server package and I have found a note in the
changelog for version 1.1.1-10.fc6 (revision 1.130 from July 26):
"- Fix default font path to match the config file we used to generate"
http://cvs.fedora.redhat.com/viewcvs/rpms/xorg-x11-server/devel/xorg-x11-server.spec?rev=1.165&view=log

Could someone explain the consequences of this change to me?
I recently updated the fonts packages to fix a cosmetic issue when uninstalling:

   http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197208

The change was to change lines of the form

   if [ "$1" = "0" ]; then

to

   if [ "$1" = "0" -a -d %{_x11fontdir}/misc ]; then

in the %postun sections, so the script is only run when the font directory in question exists. The change looks good to me, but maybe I'm missing something. It definitely sounds related to the problem you're seeing.

But doesn't the situation without the %{_x11fontdir}/misc directory
mean, that there was not any fonts.dir (or any other) file created in
this directory normally during the postinstall script? That the
uninstall process will remove all files (*.pcf.gz and fonts.alias) and
also the misc directory? For example when postinstall script failed?

The change above only affects the uninstall case where we're really uninstalling the package (as opposed to uninstalling as part of an upgrade). The script in the if-case is run after uninstalling to update the fonts.dir. The change makes sure that we don't run mkfontdir if the uninstall actually removed that directory. Some font packages share a font directory (such as the misc directory) so uninstalling a font package doesn't necessarily remove the directory, in which case we need to regenerate fonts.dir.

Kristian

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux