OpenBSD编译问题

OpenBSD的安装、升级、更新等日常问题。

版主: chenjun天地乾坤

回复
chang
钛 Ti
帖子: 26
注册时间: 2011-03-17 9:10

OpenBSD编译问题

帖子 chang » 2012-02-09 9:59

在学习编译OpenBSD对于用户岛的概念很不明白?请教

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: OpenBSD编译问题

帖子 leo » 2012-02-12 0:31

我的理解,内核以外的工具或文件。

chang
钛 Ti
帖子: 26
注册时间: 2011-03-17 9:10

回复: OpenBSD编译问题

帖子 chang » 2012-02-13 10:17

嗯,谢了,可能就是这个,回头再查查资料

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: OpenBSD编译问题

帖子 acheng » 2012-02-15 10:59

我也是作以上的理解。源码包src.tar.gz 中的东东应该都是属于userland,而sys.tar.gz (或srcsys.tar.gz)则对应内核。

头像
unreal
银 Ag
帖子: 1080
注册时间: 2010-06-07 18:52

回复: OpenBSD编译问题

帖子 unreal » 2012-02-15 17:02

userland 必须要编译么?有什么明显的好处呢?我那机器慢啊,从来只编译 kernel ,以后可能内核也懒得编译了。
勤能補拙 Just do it now!

chang
钛 Ti
帖子: 26
注册时间: 2011-03-17 9:10

回复: OpenBSD编译问题

帖子 chang » 2012-02-16 16:40

unreal 写了:userland 必须要编译么?有什么明显的好处呢?我那机器慢啊,从来只编译 kernel ,以后可能内核也懒得编译了。
因为某些原因需要定制一下BSD

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

回复: OpenBSD编译问题

帖子 acheng » 2012-02-17 10:23

FAQ中说OpenBSD的内核和userland是一个整体,编译内核时应该也要编译userland。尤其是编译自定义内核的时候,如果自己不确定是否自己的改动会影响到userland,那也就只能听从FAQ的建议了。
Keeping Things in Sync

It is important to understand that OpenBSD is an Operating System, intended to be taken as a whole, not a kernel with a bunch of utilities stuck on. You must make sure your kernel, "userland" (the supporting utilities and files) and ports tree are all in sync, or unpleasant things will happen. Said another way (because people just keep making the error), you can not run brand new ports on a month old system, or rebuild a kernel from -current source and expect it to work properly with a -release userland. Yes, this does mean you need to upgrade your system if you want to run a new program which was added to the ports tree today. Sorry, but again, OpenBSD has limited resources available.

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: OpenBSD编译问题

帖子 none » 2012-03-01 0:26

反正我是有一项是必须要编译的,就是locale的zh_CN.eucCN和zh_CN.GB18030,不过我也发觉好像各版本的zh_CN.xx都是通用的,可以拷贝,而且也发现OB很早就支持中文locale了,太简单了。。。

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

回复: OpenBSD编译问题

帖子 f5b » 2012-03-01 15:18

none 写了:反正我是有一项是必须要编译的,就是locale的zh_CN.eucCN和zh_CN.GB18030,不过我也发觉好像各版本的zh_CN.xx都是通用的,可以拷贝,而且也发现OB很早就支持中文locale了,太简单了。。。

中文locale支持关键文档
http://www.openbsd.org/faq/faq10.html#locales

http://www.openbsd.org/cgi-bin/cvsweb/s ... e/Makefile
LOCALES += zh_CN.UTF-8
LOCALESRC_zh_CN.UTF-8 = en_US.UTF-8
也就是说zh_CN.UTF-8 = en_US.UTF-8

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: OpenBSD编译问题

帖子 none » 2012-03-01 21:15

f5b 写了:中文locale支持关键文档
http://www.openbsd.org/faq/faq10.html#locales

http://www.openbsd.org/cgi-bin/cvsweb/s ... e/Makefile
LOCALES += zh_CN.UTF-8
LOCALESRC_zh_CN.UTF-8 = en_US.UTF-8
也就是说zh_CN.UTF-8 = en_US.UTF-8
我知道UTF-8通用,但由于以前大量的工作都是gbk或gb2312,所以还是要加上这些环境。切换也容易,特定用户用特定的编码,哈哈哈
以前听说高版本ob才支持中文locale,现在回过头看,3.x就已经支持了,ob真不错,呵呵

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 25 访客