|
|
发表于 2008-11-15 20:32:45
|
显示全部楼层
Post by druggo;1908620
ebuild /path/to/the/ebuild unpack
do something
ebuild /path/to/the/ebuild compile
ebuild /path/to/the/ebuild install
ebuild /path/to/the/ebuild qmerge
ebuild /path/to/the/ebuild clean
看来我的解决方法很业余,上面的方法的才是正解,至于楼主在8楼的尝试为什么不行,是因为你选的包不对, 楼主用的包是x11-libs/qt-4.4.2,但是 x11-libs/qt-4.4.2只是一个虚拟的包,它是没有代码的,它只是依赖于一大堆包,主要的是x11-libs/qt-core-4.4.2,所以unpack之后当然是找不到代码的。
运行emerge -pv qt 得到以下输出:
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] x11-libs/qt-core-4.4.2 USE="qt3support ssl -debug -doc -glib -pch" 102,858 kB
[ebuild N ] x11-libs/qt-sql-4.4.2 USE="qt3support sqlite -debug -firebird -mysql -odbc -pch -postgres" 0 kB
[ebuild N ] x11-libs/qt-dbus-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-script-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-xmlpatterns-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-test-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-gui-4.4.2 USE="accessibility cups dbus qt3support -debug -glib -mng -nas -nis -pch -tiff -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild N ] x11-libs/qt-qt3support-4.4.2 USE="accessibility -debug -pch" 0 kB
[ebuild N ] x11-libs/qt-webkit-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-opengl-4.4.2 USE="qt3support -debug -pch" 0 kB
[ebuild N ] x11-libs/qt-svg-4.4.2 USE="-debug -pch" 0 kB
[ebuild N ] x11-libs/qt-assistant-4.4.2 USE="webkit -debug -pch" 0 kB
[ebuild N ] x11-libs/qt-4.4.2 USE="dbus opengl -qt3support" 0 kB
Total: 13 packages (13 new), Size of downloads: 102,858 kB
可以看到,很多包都是0 kB的,只有 x11-libs/qt-core-4.4.2 是102,858 kB。也就是说只有这个包才是真正的包,解压这个包才可能看到代码。 |
|