On Wed, Nov 21, 2012 at 9:46 AM, Helmut Jarausch <jarau...@igpm.rwth-aachen.de> wrote: > On 11/21/2012 09:38:26 AM, Adam Carter wrote: >> >> It looks like i have hit this gcc 4.7 build bug: >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53113 >> >> Theres a patch attached to the bug i'd like to apply. Unfortunately the >> gcc >> 4.7.2 ebuild doesnt have "epatch_user", so i need to take the other >> approach listed in the handbook. It suggests i use a custom environment >> but >> i dont understand how i would apply a patch by setting an environment >> variable. Can anyone explain? >> > > Please have a look at > > http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=6 > > /etc/portage/patches > > Helmut. >
This requires the ebuild to use epatch_user. Adam, I don't it is possible to use the 'evn' file to patch an ebuild. Either edit the ebuild directly and add your patch or open a bug asking the toolchain maintainers to add epatch_user to gcc. But I have to say, it is easier if you just edit the ebuild, add the epatch_user line there, run ebuild digest and then place your patch in /etc/portage/patches. You should then be able to build gcc just fine. -- Regards, Markos Chandras / Gentoo Linux Developer / Key ID: B4AFF2C2