Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
最精简有效的 glibc locales 设定
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
dragonlinux
n00b
n00b


Joined: 21 Nov 2006
Posts: 16

PostPosted: Fri Nov 24, 2006 9:31 pm    Post subject: Reply with quote

17 Apr 2006; Mike Frysinger <vapier@gentoo.org> glibc-2.4-r2.ebuild:
Kill USE=userlocales and replace with Debian locale-gen #22565.


I try your way but I always got :
#echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
# emerge -pv sys-libs/glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-libs/glibc-2.4-r4 USE="nls nptl nptlonly -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB

Total size of downloads: 0 kB

so does it mean the compiling changed? it will compile according to locale.gen?
Back to top
View user's profile Send private message
i13m
n00b
n00b


Joined: 26 Jun 2003
Posts: 46
Location: UK / China PR

PostPosted: Sat Nov 25, 2006 2:02 am    Post subject: Reply with quote

我记得好几个版本以前,安装glibc的时候,它会把所有locale都安装上,不管能用的上还是用不上的. 但后来呢,glibc会根据用户的需要去选择要安装那些locale. 好比我用zh_CN.UTF-8的话,就不用特地去安装一些我不需要的locale,像it_*,fr_*.

glibc开始支持自定的locale的时候,用户要先把自己需要的locale设定并且放在/etc/locale.build(好像是这个文件),然后当emerge -av glibc的时候,相应的locale会在emerge的过程中产生处. 但前提是要使用userlocales这个glibc's flag, 否则的话glibc还是会生成所有的locale. 此方法可以参照: http://gentoo-wiki.com/HOWTO_Optimise_glibc

而最近的一次的glibc升级呢(具体时间忘记了), 用户可以在安装完glibc这个过程后,使用locale-gen这个命令去生成自己所需要的locale. 前提是要设定好/etc/locale.gen这个文件.

简单的来说,以前如果想要生成特定locale的时候,需要emerge glibc一次.而现在呢,只需要运行一个locale-gen命令就可以了.

在我的记忆中这样来的,如果有错误的话请指出.
Back to top
View user's profile Send private message
r0bertz
Retired Dev
Retired Dev


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Mon Nov 27, 2006 5:01 am    Post subject: Reply with quote

i13m wrote:
我记得好几个版本以前,安装glibc的时候,它会把所有locale都安装上,不管能用的上还是用不上的. 但后来呢,glibc会根据用户的需要去选择要安装那些locale. 好比我用zh_CN.UTF-8的话,就不用特地去安装一些我不需要的locale,像it_*,fr_*.

glibc开始支持自定的locale的时候,用户要先把自己需要的locale设定并且放在/etc/locale.build(好像是这个文件),然后当emerge -av glibc的时候,相应的locale会在emerge的过程中产生处. 但前提是要使用userlocales这个glibc's flag, 否则的话glibc还是会生成所有的locale. 此方法可以参照: http://gentoo-wiki.com/HOWTO_Optimise_glibc

而最近的一次的glibc升级呢(具体时间忘记了), 用户可以在安装完glibc这个过程后,使用locale-gen这个命令去生成自己所需要的locale. 前提是要设定好/etc/locale.gen这个文件.

简单的来说,以前如果想要生成特定locale的时候,需要emerge glibc一次.而现在呢,只需要运行一个locale-gen命令就可以了.

在我的记忆中这样来的,如果有错误的话请指出.

没看你的上一帖么?
17 Apr 2006; Mike Frysinger <vapier@gentoo.org> glibc-2.4-r2.ebuild:
Kill USE=userlocales and replace with Debian locale-gen #22565.
_________________
Zhang Le, Robert
http://zhangle.is-a-geek.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum