LinuxSir.cn,穿越时空的Linuxsir!

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

emerge升级qt-3.3.6遇到的奇怪问题,有没有兄弟遇到……

[复制链接]
发表于 2006-11-13 20:59:59 | 显示全部楼层 |阅读模式
这几天qt3提示有升级,结果每次升级的时候都会出现问题:

  1. GentooLinux ~ # emerge -av =x11-libs/qt-3.3.6-r4

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

  3. Calculating dependencies... done!
  4. [ebuild R ] x11-libs/qt-3.3.6-r4 USE="cups gif opengl -debug -doc -examples -firebird -immqt -immqt-bc -ipv6 -mysql -nas -nis -odbc -pertty% -postgres -risky% -sqlite -xinerama" 38 kB [4]

  5. Total size of downloads: 38 kB
复制代码


但是系统总是试图去找一个 /usr/portage/distfiles/qt-x11-free-qt-copy-20060605-3.3.6.patch.bz2 的文件,然后就提示找不到,无法emerge。

怎么看怎么觉得不对,这个文件似乎不符合命名规则,于是查看原始的ebuild:

  1. # Copyright 1999-2006 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-3.3.6-r4.ebuild,v 1.10 2006/11/06 10:59:32 eroyf Exp $

  4. inherit eutils flag-o-matic toolchain-funcs

  5. SRCTYPE="free"
  6. DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework."
  7. HOMEPAGE="http://www.trolltech.com/"

  8. IMMQT_P="qt-x11-immodule-unified-qt3.3.6-20060317-gentoo"

  9. SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.bz2
  10. immqt? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )
  11. immqt-bc? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )"
  12. LICENSE="|| ( QPL-1.0 GPL-2 )"
复制代码


看来问题应该在${PV}这里,系统认为qt-3.3.6-r4的${PV}应该是qt-copy-20060605-3.3.6.patch,而不是3.3.6。

ftp://ftp.trolltech.com/qt/source/ 里查询原始文件,验证了之前的想法,正确的文件似乎应该是:qt-x11-free-3.3.6.tar.bz2。

于是想是不是在ebuild里强行设置PV="3.3.6",结果查询了《ebuild how to》,发现不行:

Variables

The first part of every ebuild file is made up of a number of variables. They fall under 3 categories (and are marked below):

READ: variables you can utilize but never set
MUST: variables you must always set
OPT: variables that you should set

Variable Usage Description
PV READ The version of the package.


就是说PV这个变量,是variables you can utilize but never set的。

看来只有把${PV}强制改成3.3.6再试试能不能emerge了。

问题出现原因研究中。

不知道理解上有没有问题?也不知道有没有兄弟遇到过,是如何解决的?谢过先了:)
发表于 2006-11-13 23:25:47 | 显示全部楼层
http://snigel.no-ip.com/~nxsty/l ... 605-3.3.6.patch.bz2
确实需要它
估计是no-ip.com域的域名解析不了
不过从ebuild我也看不出哪里指定了要下载这个东西。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-13 23:55:55 | 显示全部楼层
恩,我也连不上这个地方。又查了一些东西,然后又equery了qt-3.3.6的use,发现其实没有它想增加的这两个:-pertty% -risky%

然后再
  1. GentooLinux ~ # find / -name qt-3.3.6-r4.*
  2. /var/db/pkg/x11-libs/qt-3.3.6-r4/qt-3.3.6-r4.ebuild
  3. /usr/portage/x11-libs/qt/qt-3.3.6-r4.ebuild
  4. /usr/portage/local/layman/xeffects/x11-libs/qt/.svn/text-base/qt-3.3.6-r4.ebuild.svn-base
  5. /usr/portage/local/layman/xeffects/x11-libs/qt/.svn/prop-base/qt-3.3.6-r4.ebuild.svn-base
  6. /usr/portage/local/layman/xeffects/x11-libs/qt/.svn/props/qt-3.3.6-r4.ebuild.svn-work
  7. /usr/portage/local/layman/xeffects/x11-libs/qt/.svn/wcprops/qt-3.3.6-r4.ebuild.svn-work
  8. /usr/portage/local/layman/xeffects/x11-libs/qt/qt-3.3.6-r4.ebuild
复制代码


查了一下/usr/portage/local/layman/xeffects/x11-libs/qt/qt-3.3.6-r4.ebuild

看到里面是这样:

  1. SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.bz2
  2.         http://snigel.no-ip.com/~nxsty/linux/qt-x11-${SRCTYPE}-qt-copy-${QT_COPY_SNAP}-${PV}.patch.bz2
  3.         immqt? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )
  4.         immqt-bc? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )"
  5. LICENSE="|| ( QPL-1.0 GPL-2 )"

  6. SLOT="3"
  7. KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86 ~x86-fbsd"
  8. IUSE="cups debug doc examples firebird gif ipv6 mysql nas nis odbc opengl postgres sqlite xinerama immqt immqt-bc risky pertty"
复制代码


所以这个大概是xeffect里面的qt-3.3.6的问题,而本身portage里的是不存在这个问题的,大概这也是bugs和forums里面搜索不到的原因……

查了一下似乎这个qt-copy比官方portage里的好一些,既然这样就等什么时候no-ip.com那个地址能解析了再搞吧,反正现在不加 newuse参数也不会动这个包。

谢谢版主的热心答复:)
回复 支持 反对

使用道具 举报

发表于 2006-11-14 00:33:29 | 显示全部楼层
有问题么?
qt-copy是kde的人patch过的qt,bugfix+性能优化(号称)

不想要的话,{PV}不能改,但是SRC_URI里面完全可以不要这些变量,直接写

qt-x11-free-3.3.6.....
回复 支持 反对

使用道具 举报

发表于 2006-11-14 01:36:34 | 显示全部楼层
我忘记了,呵呵
我也是刚刚layman -a了xeffects
portage里的qt是没有这个东西的
我可以连,
你直接用ip试试
snigel.no-ip.com (81.226.250.213)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-14 08:07:31 | 显示全部楼层
好,回去用IP直连,谢谢各位热心帮助:)
回复 支持 反对

使用道具 举报

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

本版积分规则

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