From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 09FE01381F3 for ; Wed, 21 Nov 2012 10:19:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66FB9E027D; Wed, 21 Nov 2012 10:19:02 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6107221C01A for ; Wed, 21 Nov 2012 10:17:47 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id za17so4739073obc.40 for ; Wed, 21 Nov 2012 02:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=vh9RBWLpaJJFslzY8UFNM4djhWWuB4aoBUiznDzPTb0=; b=xzZMXZVG6a9qJmU2zFljsBVoOqjppLdohBo9kzPQELXrEVh/5uf0K0zCKxAK+/rj5l 2GQxno7t0dl16tFcA12/PUoaTf4hXUi8fa6Il5vOps+O0Z5/Vswr9+sw0syj6yX4P5Bl Daq/7+diT7wF6KU/gOJFDTsAQzYvIaNoQECs3LAwFQz/pDwE8jzjNNdkPaMhi/35T/M7 p5XO7UWrA88yPyUla92nN6fPU8Fz2Ym4yXN/DH4HcSgC8VMJUVjWXGfjOOBVSN0sNlQt zovnkojlSrqxAqQFOWS1d0TXKZ3pwWlZB39ZGrmQTpO8E2BfJlg+6KxUAD00ip2nlOLz SrOg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.182.124.98 with SMTP id mh2mr2688965obb.88.1353493066573; Wed, 21 Nov 2012 02:17:46 -0800 (PST) Sender: markos.chandras@gmail.com Received: by 10.76.28.169 with HTTP; Wed, 21 Nov 2012 02:17:46 -0800 (PST) In-Reply-To: <1353491203.6018.1@numa-i> References: <1353491203.6018.1@numa-i> Date: Wed, 21 Nov 2012 10:17:46 +0000 X-Google-Sender-Auth: zOXXdo_vWyqFF3Fakv4IFun0kIw Message-ID: Subject: Re: [gentoo-user] Adding an extra patch to an ebuild From: Markos Chandras To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: acec3a5d-1f8d-4ab3-9c0a-7fe247cba178 X-Archives-Hash: 84c5f142db39a2db368998ea0b893509 On Wed, Nov 21, 2012 at 9:46 AM, Helmut Jarausch 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