|
emerge 有个伟大的参数 -O:
--nodeps (-O short option)
Merge specified packages, but don't merge any dependencies.
Note that the build may fail if deps aren't satisfied.
正是这个伟大参数, 使我们复用Gentoo的ebuild库而不损害LFS系统成为可能, 当前前提是你自己处理好所以的依赖关系. (好在.. 大部分的软件包依赖关系并不复杂, 如果遇到依赖关系复杂的软件包, 比如Anjuta, 大家忽视它的存在吧..)
我在LFS里装上Portage后, 然后用emerge安装 lua和Celestia-1.6.0 (如果不用Gentoo的ebuild 库, 大家可以尝试一下这两个包有多讨厌...)
OPSvr ~ #emerge -avtO lua
!!! Problem with sandbox binary. Disabling...
* --tree is broken with --nodeps. Disabling...
These are the packages that would be merged, in order:
[ebuild N ] dev-lang/lua-5.1.4 USE="deprecated readline -static" 212 kB
Total: 1 package (1 new), Size of downloads: 212 kB
Would you like to merge these packages? [Yes/No] y
成功的第一步
解下来是顺利的解包, 打补丁和编译, 因为我已经解决了所有的依赖关系.
然后运行lua..
OPSvr ~ #lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> hello
>> good
stdin:2: '=' expected near 'good'
>
Bingo!!! 大功告成 |
|