|
|
我用的ACCEPT_KEYWORDS="~amd64",最近emerge world的时候gdl-python升级到2.19.1-r1,依赖它的包是gdl2.24.0,编译的时候出错:
………………
gdl.c:1837: warning: implicit declaration of function ‘gdl_icons_get_uri_icon’
gdl.c:1837: warning: assignment makes pointer from integer without a cast
gdl.c: In function ‘_wrap_gdl_icons_get_mime_icon’:
gdl.c:1853: warning: implicit declaration of function ‘gdl_icons_get_mime_icon’
gdl.c:1853: warning: assignment makes pointer from integer without a cast
gdl.c: In function ‘pygdl_register_classes’:
gdl.c:2117: error: ‘GDL_TYPE_ICONS’ undeclared (first use in this function)
gdl.c:2117: error: (Each undeclared identifier is reported only once
gdl.c:2117: error: for each function it appears in.)
make[2]: *** [gdl.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-python/gdl-python-2.19.1-r1/wor
k/gnome-python-extras-2.19.1/gdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-python/gdl-python-2.19.1-r1/work/gnome-python-extras-2.19.1'
make: *** [all] Error 2
*
* ERROR: dev-python/gdl-python-2.19.1-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3398: Called gnome2_src_compile
* environment, line 2586: Called die
* The specific snippet of code:
* emake || die "compile failure"
* The die message:
* compile failure
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-python/gdl-python-2.19.1-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/gdl-python-2.19.1-r1/temp/environment'.
*
google了没有类似情况,但是发现gdl-python加了gdl-python-2.19.1-gdlicons.patch这个补丁,跟出错信息好似有关联,一看补丁,写着:
#include <pygtk/pygtk.h>
#include <gdl/gdl-dock.h>
#include <gdl/libgdltypebuiltins.h>
-#include <gdl/gdl-icons.h>
#ifndef HAVE_GDL_0_7
# include <gdl/gdl-dock-bar.h>
#endif
跟出错信息的最后几行关系大了,看补丁介绍,写着:
Fix build failure with recent gdl
(Portage version: 2.2_rc15/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64)
既然是用到2.19.1的补丁,我的2.19.1-r1说不定已经fix了这个bug了,决定去掉这个补丁再编译,修改gdl-python-2.19.1-r1.ebuild,把src_unpack() 中的:
# Fix build failure with recent gdl
#epatch "${FILESDIR}/${P}-gdlicons.patch"
注释掉,然后:
ebuild gdl-python-2.19.1-r1.ebuild digest
最后emerge world通过编译。
大家觉得我需要汇报吗?这是个bug吗? |
|