Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554130 - >=sys-devel/gdb-7.8[python] fails to compile on Darwin
Summary: >=sys-devel/gdb-7.8[python] fails to compile on Darwin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-07 09:37 UTC by Vladimir Smirnov (RETIRED)
Modified: 2015-07-07 20:51 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,3.76 KB, text/plain)
2015-07-07 09:43 UTC, Vladimir Smirnov (RETIRED)
Details
build.log (build.log,183.08 KB, application/octet-stream)
2015-07-07 09:44 UTC, Vladimir Smirnov (RETIRED)
Details
python-macos-prefix.patch (python-macos-prefix-patch,581 bytes, patch)
2015-07-07 14:15 UTC, Vladimir Smirnov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Smirnov (RETIRED) gentoo-dev 2015-07-07 09:37:41 UTC
In gdb-7.7.1.ebuild there was a hack for darwin in src_prepare. It's still needed, otherwise gdb on MacOS won't be able to find python.

Reproducible: Always
Comment 1 Vladimir Smirnov (RETIRED) gentoo-dev 2015-07-07 09:43:52 UTC
Created attachment 406300 [details]
emerge --info
Comment 2 Vladimir Smirnov (RETIRED) gentoo-dev 2015-07-07 09:44:12 UTC
Created attachment 406302 [details]
build.log
Comment 3 SpanKY gentoo-dev 2015-07-07 09:55:00 UTC
i would like to see whatever problem this code is hacking around fixed in the sources instead (as would the upstream devs).  i don't have a Darwin system anymore in order to poke around.
Comment 4 Vladimir Smirnov (RETIRED) gentoo-dev 2015-07-07 14:15:29 UTC
Created attachment 406314 [details, diff]
python-macos-prefix.patch

After some digging, it looks like it's python's bug. In python's ebuild we are already sedding away LINKFORSHARED from the Makefiles, but it's still there for sysconfigdata. gdb uses sysconfigdata to get some variables, including LINKFORSHARED.
Comment 5 Vladimir Smirnov (RETIRED) gentoo-dev 2015-07-07 14:17:43 UTC
(In reply to Vladimir Smirnov from comment #4)
> Created attachment 406314 [details, diff] [details, diff]
> python-macos-prefix.patch
> 
> After some digging, it looks like it's python's bug. In python's ebuild we
> are already sedding away LINKFORSHARED from the Makefiles, but it's still
> there for sysconfigdata. gdb uses sysconfigdata to get some variables,
> including LINKFORSHARED.

I've attached proposed patch for the ebuild (python-macos-prefix.patch). It's only for python 2.7
Comment 6 Guilherme Amadio gentoo-dev 2015-07-07 20:18:23 UTC
(In reply to Vladimir Smirnov from comment #5)
> (In reply to Vladimir Smirnov from comment #4)
> > Created attachment 406314 [details, diff] [details, diff] [details, diff]
> > python-macos-prefix.patch
> > 
> > After some digging, it looks like it's python's bug. In python's ebuild we
> > are already sedding away LINKFORSHARED from the Makefiles, but it's still
> > there for sysconfigdata. gdb uses sysconfigdata to get some variables,
> > including LINKFORSHARED.
> 
> I've attached proposed patch for the ebuild (python-macos-prefix.patch).
> It's only for python 2.7

I tested your patch on Yosemite, and was able to install gdb-7.9.1 after reemerging python.
Comment 7 Fabian Groffen gentoo-dev 2015-07-07 20:23:47 UTC
I'm cooking up a slightly different patch to fix more than just LINKFORSHARED
Comment 8 Fabian Groffen gentoo-dev 2015-07-07 20:51:27 UTC
I committed my extended fix, thanks!