From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-133317-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RiRTq-0006SR-P2 for garchives@archives.gentoo.org; Wed, 04 Jan 2012 14:06:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC9D521C164; Wed, 4 Jan 2012 14:05:51 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 8B1FDE04D2 for <gentoo-user@lists.gentoo.org>; Wed, 4 Jan 2012 14:03:54 +0000 (UTC) Received: by ghrr19 with SMTP id r19so7039930ghr.40 for <gentoo-user@lists.gentoo.org>; Wed, 04 Jan 2012 06:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=oTg1TSYEcZHyk169HEV5tY7dwdxrzqUpsP8QRls4j70=; b=Ny//Fc7g41mzUVJ6WfQd7ROeQiXC2rQ1a1ATGs81a1k2xbBPwA9G8WbPKdqQIyLb4U K28V5W7u2FtWy0CFrkyqckxY3IbnauyKoqNa49sCUCzmG9zQsl6zuS89y+W4LS2aEqJe 2lHmxFX17DnKMw6PCKaaKMjGvrZ07m9K4X/TQ= Received: by 10.101.61.5 with SMTP id o5mr22661552ank.37.1325685834015; Wed, 04 Jan 2012 06:03:54 -0800 (PST) Received: from [192.168.0.100] (71-14-190-93.dhcp.stls.mo.charter.com. [71.14.190.93]) by mx.google.com with ESMTPS id d8sm102580111ang.2.2012.01.04.06.03.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jan 2012 06:03:52 -0800 (PST) Sender: Paul Hartman <paul.hartman@gmail.com> Message-ID: <4F045C47.3000009@gmail.com> Date: Wed, 04 Jan 2012 08:03:51 -0600 From: Paul Hartman <paul.hartman+gentoo@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111221 Thunderbird/8.0 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Automatic picking up the patches from /etc/portage/patches References: <20120104154704.f26a777f.v_2e@ukr.net> In-Reply-To: <20120104154704.f26a777f.v_2e@ukr.net> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2560bc84-6525-4697-81cb-0354b601d6ca X-Archives-Hash: e4d90bd2549482ea1ad5abe3a6544eed On 01/04/2012 07:47 AM, v_2e@ukr.net wrote: > Hello! > I have noticed that with portage version changes its behaviour > regarding the automatic patch catching (from /etc/portage/patches, for > example) also changes. Some previous versions of portage did apply the > patches from that directory while the most recent one does not. > > I consider this auto-patching feature quite useful and would like to > use it, but currently I don't know how to do that. > And also, is portage supposed to pick the patches up automatically or > not in general? They are only picked up if the ebuild specifically calls epatch_user function. However, you can define this in your /etc/portage/bashrc to have appended to all ebuilds (who don't already define this function): post_src_prepare() { epatch_user } then it will call it after it does its normal patching... For example, I dropped a patch from BGO for xloadimage to make it build against new libtiff into /etc/portage/patches/media-gfx/xloadimage-4.1-r11 and emerge, I see this in emerge output: >>> Preparing source in /var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ... * Applying xloadimage-4.1-gentoo-r1.diff ... [ ok ] * Applying xloadimage-4.1-zio-shell-meta-char.diff ... [ ok ] * Applying xloadimage-4.1-endif.patch ... [ ok ] * Applying xloadimage-4.1-include-errno_h.patch ... [ ok ] * Applying xloadimage-gentoo.patch ... [ ok ] * Applying xloadimage-4.1-unaligned-access.patch ... [ ok ] * Applying xloadimage-4.1-ldflags_and_exit.patch ... [ ok ] * Applying xloadimage-4.1-libpng15.patch ... [ ok ] * Applying xloadimage-4.1-bracket.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] >>> Source prepared. * Applying user patches from /etc/portage/patches//media-gfx/xloadimage-4.1-r11 ... * xloadimage-4.1-tiff.patch ... [ ok ] * Done with patching >>> Configuring source in /var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ...