FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 01-29-2012, 10:22 AM
Ulrich Mueller
 
Default Small change for epatch_user() in eutils.eclass

epatch_user() currently looks into <CATEGORY>/<PF|P|PN> subdirectories
of /etc/portage/patches. If the package has no revision, then PF and P
are identical, so there's no way to specify that a patch should only
apply to -r0.

The patch below changes ${PF} to ${P}-${PR}. Behaviour should be
identical for all non-zero revisions. For -r0 it will look in ${P}-r0
first, then in ${P} and ${PN}, as before.

--- eutils.eclass 3 Jan 2012 08:45:36 -0000 1.377
+++ eutils.eclass 29 Jan 2012 11:00:15 -0000
@@ -544,7 +544,7 @@

# don't clobber any EPATCH vars that the parent might want
local EPATCH_SOURCE check base=${PORTAGE_CONFIGROOT%/}/etc/portage/patches
- for check in {${CATEGORY}/${PF},${CATEGORY}/${P},${CATEGORY}/${PN}}; do
+ for check in ${CATEGORY}/{${P}-${PR},${P},${PN}}; do
EPATCH_SOURCE=${base}/${CTARGET}/${check}
[[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${CHOST}/${check}
[[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${check}
 
Old 01-29-2012, 06:16 PM
Mike Frysinger
 
Default Small change for epatch_user() in eutils.eclass

On Sunday 29 January 2012 06:22:02 Ulrich Mueller wrote:
> epatch_user() currently looks into <CATEGORY>/<PF|P|PN> subdirectories
> of /etc/portage/patches. If the package has no revision, then PF and P
> are identical, so there's no way to specify that a patch should only
> apply to -r0.
>
> The patch below changes ${PF} to ${P}-${PR}. Behaviour should be
> identical for all non-zero revisions. For -r0 it will look in ${P}-r0
> first, then in ${P} and ${PN}, as before.

looks fine. gogogogogogogogo.
-mike
 
Old 01-29-2012, 10:10 PM
Duncan
 
Default Small change for epatch_user() in eutils.eclass

Mike Frysinger posted on Sun, 29 Jan 2012 14:16:14 -0500 as excerpted:

> On Sunday 29 January 2012 06:22:02 Ulrich Mueller wrote:
>> epatch_user() currently looks into <CATEGORY>/<PF|P|PN> subdirectories
>> of /etc/portage/patches. If the package has no revision, then PF and P
>> are identical, so there's no way to specify that a patch should only
>> apply to -r0.
>>
>> The patch below changes ${PF} to ${P}-${PR}. Behaviour should be
>> identical for all non-zero revisions. For -r0 it will look in ${P}-r0
>> first, then in ${P} and ${PN}, as before.
>
> looks fine. gogogogogogogogo.

As a user with an epatch_user call in /etc/portage/bashrc, I've run into
this problem myself a time or two, so yes, ++ here too. =:^)

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
 

Thread Tools




All times are GMT. The time now is 01:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org