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
Created attachment 406300 [details] emerge --info
Created attachment 406302 [details] build.log
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.
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.
(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
(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.
I'm cooking up a slightly different patch to fix more than just LINKFORSHARED
I committed my extended fix, thanks!