Gentoo Archives: gentoo-alt

From: Junqi Hu <junqihu@××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Problem with dev-python/pygtk in Mac OS X 10.8
Date: Tue, 18 Sep 2012 06:06:20
Message-Id: 3E4FABCE-F25A-4C2C-883A-B5164AA408DA@me.com
In Reply to: Re: [gentoo-alt] Problem with dev-python/pygtk in Mac OS X 10.8 by Konstantin Tokarev
1 On 2012-8-30, at 下午8:21, Konstantin Tokarev <annulen@××××××.ru> wrote:
2
3 >
4 >
5 > 30.08.2012, 12:12, "Junqi Hu" <junqihu@××.com>:
6 >> Hi, all.
7 >>
8 >> The compiling procedure of dev-python/pygtk is broken when I install elogviewer by gentoo-prefix.
9 >> I attache the build.log of this ebuild.
10 >>
11 >> Any hint?
12 >
13 >
14 >> /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:409: error: stray '@' in program
15 >
16 > Seems like your GTK pulls in NSObjCRuntime.h into pure C code. It should either be compiled as Objective C,
17 > or you should rebuild GTK for X11 instead of aqua.
18 >
19 > --
20 > Regards,
21 > Konstantin
22 >
23
24
25 thank you.
26
27 I have changed the USE in make.conf as follows:
28
29 USE="X -aqua cjk emacs gtk -minimal nls -kde -qt -qt4 unicode"
30
31 in order to build applications with X11.
32
33 Now, elogviewer has been emerged successfully. However, there is some bug when running elogviewer:
34
35 $ elogviewer
36 /Users/junqihu/Gentoo/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
37 warnings.warn(str(e), _gtk.Warning)
38 Traceback (most recent call last):
39 File "/Users/junqihu/Gentoo/usr/bin/elogviewer", line 596, in <module>
40 main(sys.argv[1:])
41 File "/Users/junqihu/Gentoo/usr/bin/elogviewer", line 584, in main
42 os.chdir("/var/log/portage")
43 OSError: [Errno 2] No such file or directory: '/var/log/portage'
44 It is obvious that the ebuild of elogviewer should be modified
45 ---
46 Best regards,
47
48 Junqi Hu
49 junqihu@××.com

Replies

Subject Author
Re: [gentoo-alt] Problem with dev-python/pygtk in Mac OS X 10.8 Konstantin Tokarev <annulen@××××××.ru>