Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370079 - dev-python/pygtk-2.24.0-r1 compilation fails with Objective-C header
Summary: dev-python/pygtk-2.24.0-r1 compilation fails with Objective-C header
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-05 06:39 UTC by MATSUI Tetsushi
Modified: 2017-03-16 01:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pygtk-2.24.0-use-objective-c-for-quartz.patch (pygtk-2.24.0-use-objective-c-for-quartz.patch,1.04 KB, patch)
2011-06-05 06:40 UTC, MATSUI Tetsushi
Details | Diff
ebuild (pygtk-2.24.0-r1.ebuild,2.58 KB, text/plain)
2011-06-05 06:41 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2011-06-05 06:39:39 UTC
On OS X, with gtk+ supporting quartz, pygtk-2.24.0 fails to compile due to Objective-C framework header included without specifying -xobjective-c.

The first place of the error in the log looks like:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8,
                 from /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10,
                 from /Users/tetsushi/Gentoo/usr/include/gtk-2.0/gdk/gdkquartz.h:24,
                 from ./gdk.override:41:
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:189: error: stray '@' in program

The problem is already discussed in
https://bugzilla.gnome.org/show_bug.cgi?id=646743

The attachments will be a patch from the URL above and a modified ebuild.
Comment 1 MATSUI Tetsushi 2011-06-05 06:40:34 UTC
Created attachment 275855 [details, diff]
pygtk-2.24.0-use-objective-c-for-quartz.patch
Comment 2 MATSUI Tetsushi 2011-06-05 06:41:23 UTC
Created attachment 275857 [details]
ebuild
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-06 10:45:43 UTC
Could you report this problem to upstream?
Comment 4 MATSUI Tetsushi 2011-06-06 13:07:18 UTC
(In reply to comment #3)
> Could you report this problem to upstream?

Please read my report carefully.

> The problem is already discussed in
> https://bugzilla.gnome.org/show_bug.cgi?id=646743


I think we can expect the issue WILL be fixed in upstream.
But, currently we DO need patching.
Comment 5 Naohiro Aota gentoo-dev 2011-08-06 16:28:19 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Could you report this problem to upstream?
> 
> Please read my report carefully.
> 
> > The problem is already discussed in
> > https://bugzilla.gnome.org/show_bug.cgi?id=646743

I've reported patched and unpatched build log and working demo with the patch to the upstream bug. It now get fixed in upstream Git 

http://git.gnome.org/browse/pygtk/commit/?id=f655433394b10ccea585f54f38a9531304b4b084
http://git.gnome.org/browse/pygtk/commit/?id=bb95948271a2db1df1343b94451e0f5a90442bfd

Prefix team,

Could you apply the attached patch until next version come out? Though there are two commits in upstream Git, the latter patch was applied to fix the former patch's typo. The attached patch here already has the fix, so just applying the patch is enough.
Comment 6 Fabian Groffen gentoo-dev 2011-08-07 09:18:39 UTC
@naota:
pygtk is not in our tree, and python people forbid us to commit to their ebuilds.
Comment 7 Naohiro Aota gentoo-dev 2011-08-10 12:06:14 UTC
(In reply to comment #6)
> @naota:
> pygtk is not in our tree, and python people forbid us to commit to their
> ebuilds.

ah, I was thinking it's in prefix tree...
hm, would it be possible to import the package in prefix and fix it in the tree?

# actually, it get fixed in my local overlay, so I'm not so hasting ...
Comment 8 Fabian Groffen gentoo-dev 2011-08-28 09:42:45 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > @naota:
> > pygtk is not in our tree, and python people forbid us to commit to their
> > ebuilds.
> 
> ah, I was thinking it's in prefix tree...
> hm, would it be possible to import the package in prefix and fix it in the
> tree?

no we should just hope that the python people are a bit more liberal these days.

@python: would you please consider adding the upstream(ed) patches to resolve this issue, or allow us to add them?
Comment 9 Guilherme Amadio gentoo-dev 2017-03-16 01:38:32 UTC
Fixed with https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45de86a213440aaf9e5cdee8c88e35d67d7778c1

commit 45de86a213440aaf9e5cdee8c88e35d67d7778c1
Author: Guilherme Amadio <amadio@gentoo.org>
Date:   Tue Mar 14 10:07:01 2017 -0300

    dev-python/pygtk: Fix build on macOS, bugs 370079 and 400843