LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 837|回复: 4

wine-doors安装不上

[复制链接]
发表于 2010-6-7 12:24:57 | 显示全部楼层 |阅读模式
EI Office不错,但有的时候总觉得还是有点遗憾。所以想wine一个office,看了版上精华,可是第一步就不成功。wine-doors不能emerge。

具体错误信息:

>>> Install wine-doors-0.1.3 into /var/tmp/portage/app-emulation/wine-doors-0.1.3/image/ category app-emulation
python2.6 setup.py install --root=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/ --no-compile --temp=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/                                                                                       
Traceback (most recent call last):                                                                                          
  File "setup.py", line 103, in <module>                                                                                    
    if os.environ['USER'] == "root":                                                                                         
  File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__                                                           
    raise KeyError(key)                                                                                                      
KeyError: 'USER'                                                                                                            
* ERROR: app-emulation/wine-doors-0.1.3 failed:                                                                             
*   Installation failed                                                                                                     
*                                                                                                                           
* Call stack:                                                                                                               
*     ebuild.sh, line   54:  Called src_install                                                                             
*   environment, line 3313:  Called distutils_src_install '--temp=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/'   
*   environment, line 1037:  Called die                                                                                    
* The specific snippet of code:                                                                                             
*           "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed";                                                                                                                  
*                                                                                                                           
* If you need support, post the output of 'emerge --info =app-emulation/wine-doors-0.1.3',
* the complete build log and the output of 'emerge -pqv =app-emulation/wine-doors-0.1.3'.
* The complete build log is located at '/var/tmp/portage/app-emulation/wine-doors-0.1.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-doors-0.1.3/temp/environment'.
* S: '/var/tmp/portage/app-emulation/wine-doors-0.1.3/work/wine-doors-0.1.3'

>>> Failed to emerge app-emulation/wine-doors-0.1.3, Log file:

>>>  '/var/tmp/portage/app-emulation/wine-doors-0.1.3/temp/build.log'

* Messages for package app-emulation/wine-doors-0.1.3:

* ERROR: app-emulation/wine-doors-0.1.3 failed:
*   Installation failed
*
* Call stack:
*     ebuild.sh, line   54:  Called src_install
*   environment, line 3313:  Called distutils_src_install '--temp=/var/tmp/portage/app-emulation/wine-doors-0.1.3/image/'
*   environment, line 1037:  Called die
* The specific snippet of code:
*           "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed";
*
* If you need support, post the output of 'emerge --info =app-emulation/wine-doors-0.1.3',
* the complete build log and the output of 'emerge -pqv =app-emulation/wine-doors-0.1.3'.
* The complete build log is located at '/var/tmp/portage/app-emulation/wine-doors-0.1.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/wine-doors-0.1.3/temp/environment'.
* S: '/var/tmp/portage/app-emulation/wine-doors-0.1.3/work/wine-doors-0.1.3'

* GNU info directory index is up-to-date.


请问如何解决?
发表于 2010-6-7 15:59:43 | 显示全部楼层
在bugs.gentoo.org上有两个bugs,也分别有对应的ebuild来解决。合并以后的ebuild应该是这样的: 把src_install() {}函数改为:

        export USER=root
        distutils_src_install --temp="${D}"
        mv -f ${D}{/usr,}/etc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-7 22:36:34 | 显示全部楼层
谢谢答复!

不过我没有理解如何解决。请问bugs.gentoo.org上具体解决方案在什么地方?
如果可以的话,顺便说一下如何找到这个修改方案的?
回复 支持 反对

使用道具 举报

发表于 2010-6-8 23:19:48 | 显示全部楼层
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header:

  4. EAPI=3

  5. inherit distutils

  6. DESCRIPTION="Wine-doors is a package manager for wine."
  7. HOMEPAGE="http://www.wine-doors.org"
  8. SRC_URI="http://www.wine-doors.org/releases/${P}.tar.gz"

  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE=""

  13. DEPEND="dev-python/pycairo
  14.         dev-python/pygtk
  15.         dev-python/librsvg-python
  16.         gnome-base/libglade
  17.         dev-libs/libxml2[python]
  18.         app-pda/orange
  19.         app-arch/cabextract
  20.         app-emulation/wine"
  21. RDEPEND="${DEPEND}
  22.         dev-python/gconf-python"

  23. src_compile() {
  24.         einfo "nothing to compile"
  25. }

  26. src_install() {
  27.         export USER=root
  28.         distutils_src_install --temp="${D}"
  29.         mv -f ${D}{/usr,}/etc
  30. }

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-10 15:48:13 | 显示全部楼层
谢谢指导,第一次要弄ebuild,能否再告诉我,这个文件所在目录和文件名是什么?

自己搜索了一下,步骤如下:
(1)/usr/portage/app-emulation/wine-doors
(2)参考楼上,修改wine-doors-0.1.3.ebuild为
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header:
  4. EAPI=3
  5. inherit distutils
  6. DESCRIPTION="Wine-doors is a package manager for wine."
  7. HOMEPAGE="http://www.wine-doors.org"
  8. SRC_URI="http://www.wine-doors.org/releases/${P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE=""
  13. DEPEND="dev-python/pycairo
  14.         dev-python/pygtk
  15.         dev-python/librsvg-python
  16.         gnome-base/libglade
  17.         dev-libs/libxml2[python]
  18.         app-pda/orange
  19.         app-arch/cabextract
  20.         app-emulation/wine"
  21. RDEPEND="${DEPEND}
  22.         dev-python/gconf-python"
  23. src_compile() {
  24.         einfo "nothing to compile"
  25. }
  26. src_install() {
  27.         export USER=root
  28.         distutils_src_install --temp="${D}"
  29.         mv -f ${D}{/usr,}/etc
  30. }
复制代码
(3) ebuild wine*.ebuild digest
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表