* [gentoo-dev] Small change for epatch_user() in eutils.eclass
@ 2012-01-29 11:22 Ulrich Mueller
2012-01-29 19:16 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2012-01-29 11:22 UTC (permalink / raw
To: gentoo-dev
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}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Small change for epatch_user() in eutils.eclass
2012-01-29 11:22 [gentoo-dev] Small change for epatch_user() in eutils.eclass Ulrich Mueller
@ 2012-01-29 19:16 ` Mike Frysinger
2012-01-29 23:10 ` [gentoo-dev] " Duncan
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2012-01-29 19:16 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 526 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-dev] Re: Small change for epatch_user() in eutils.eclass
2012-01-29 19:16 ` Mike Frysinger
@ 2012-01-29 23:10 ` Duncan
0 siblings, 0 replies; 3+ messages in thread
From: Duncan @ 2012-01-29 23:10 UTC (permalink / raw
To: gentoo-dev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-29 23:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-29 11:22 [gentoo-dev] Small change for epatch_user() in eutils.eclass Ulrich Mueller
2012-01-29 19:16 ` Mike Frysinger
2012-01-29 23:10 ` [gentoo-dev] " Duncan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox