Archlinux 2012.09.07发布及近期几个更新问题

自8月4号那次更新后,我再也没有更新。所以啊,这次我又是大更新。
按规矩,先上官网看看行情。

netcfg-2.8.9 drops deprecated rc.conf compatibility
2012-08-11 - Florian Pritz
Users of netcfg should configure all interfaces in /etc/conf.d/netcfg rather than /etc/rc.conf.

Fontconfig 2.10.1 update - manual intervention required
2012-09-06 - Andreas Radke
The fontconfig 2.10.1 update overwrites symlinks created by the former package version. These symlinks need to be removed before the update:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
rm /etc/fonts/conf.d/20-unhint-small-vera.conf  
rm /etc/fonts/conf.d/20-fix-globaladvance.conf  
rm /etc/fonts/conf.d/29-replace-bitmap-fonts.conf  
rm /etc/fonts/conf.d/30-metric-aliases.conf  
rm /etc/fonts/conf.d/30-urw-aliases.conf  
rm /etc/fonts/conf.d/40-nonlatin.conf  
rm /etc/fonts/conf.d/45-latin.conf  
rm /etc/fonts/conf.d/49-sansserif.conf  
rm /etc/fonts/conf.d/50-user.conf  
rm /etc/fonts/conf.d/51-local.conf  
rm /etc/fonts/conf.d/60-latin.conf  
rm /etc/fonts/conf.d/65-fonts-persian.conf  
rm /etc/fonts/conf.d/65-nonlatin.conf  
rm /etc/fonts/conf.d/69-unifont.conf  
rm /etc/fonts/conf.d/80-delicious.conf  
rm /etc/fonts/conf.d/90-synthetic.conf  
pacman -Sy fontconfig
Main systemwide configuration should be done by symlinks (especially for autohinting, sub-pixel and lcdfilter):

cd /etc/fonts/conf.d  
ln -s ../conf.avail/XX-foo.conf
Also check Font Configuration and Fonts.

做完这些工具后,再更新:
pacman -Syu
就不会出错。


关于更新了fontconfig以后的warning的问题
安装了最新的fontconfig以后会出现如下警告(如果你安装了wqy字体):

updating font cache... Fontconfig warning: "/etc/fonts/conf.d/44-wqy-microhei.conf", line 6: Having multiple values in isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/conf.d/65-wqy-zenhei.conf", line 11: Having multiple values in isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/conf.d/85-wqy-bitmapsong.conf", line 33: Having multiple values in isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/conf.d/85-wqy-bitmapsong.conf", line 55: Having multiple values in isn't supported and may not works as expected
done.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.

更正方法是把:

1
2
3
4
5
<test qual=”any” name=”family”>
<string>WenQuanYi Micro Hei</string>
<string>文泉驿微米黑</string>
<string>文泉驿微米黑</string>
</test>

改成

1
2
3
4
5
6
7
8
9
<test qual=”any” name=”family”>
<string>WenQuanYi Micro Hei</string>
</test>
<test qual=”any” name=”family”>
<string>文泉驿微米黑</string>
</test>
<test qual=”any” name=”family”>
<string>文泉驿微米黑</string>
</test>

这种形式。(蛋痛不?),然后再fc-cache -f 会发现不再提示这个warning信息了。
关于

Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.

@依云 :消除这个 deprecated 的警告的正确方法是把配置文件移到 ~/.config/fontconfig/fonts.conf。

更多
4 Responses Post a comment
  1. Krup

    Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.
    终于在这里找到解决这个错误了。

  2. 依云

    XML 就是蛋疼 :-(
    PS: 消除那个 deprecated 的警告的正确方法是把配置文件移到 ~/.config/fontconfig/fonts.conf。

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS