Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 411084 Details for
Bug 559698
eutils.eclass: epatch_user has portage specific code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eutils.eclass.patch
eutils.eclass.patch (text/plain), 1.89 KB, created by
Julian Ospald
on 2015-09-05 19:24:29 UTC
(
hide
)
Description:
eutils.eclass.patch
Filename:
MIME Type:
Creator:
Julian Ospald
Created:
2015-09-05 19:24:29 UTC
Size:
1.89 KB
patch
obsolete
>From d7d40a24591de89d55fe32d286feb237ec677c75 Mon Sep 17 00:00:00 2001 >From: Julian Ospald <hasufell@gentoo.org> >Date: Sat, 5 Sep 2015 12:43:48 +0200 >Subject: [PATCH] eutils.eclass: Allow to configure base patch location for > epatch_user > >This is particularly useful for people who run alternative >package managers and want to control their configuration. > >Github-PR: https://github.com/gentoo/gentoo/pull/69 >--- > eclass/eutils.eclass | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > >diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass >index fecd375..be65960 100644 >--- a/eclass/eutils.eclass >+++ b/eclass/eutils.eclass >@@ -350,6 +350,12 @@ EPATCH_FORCE="no" > # List of patches not to apply. Note this is only file names, > # and not the full path. Globs accepted. > >+# @VARIABLE: EPATCH_USER_SOURCE >+# @DESCRIPTION: >+# Location for user patches, see the epatch_user function. >+# Should be set by the user. Don't set this in ebuilds. >+: ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches} >+ > # @FUNCTION: epatch > # @USAGE: [options] [patches] [dirs of patches] > # @DESCRIPTION: >@@ -697,11 +703,11 @@ epatch_user() { > [[ -e ${applied} ]] && return 2 > > # don't clobber any EPATCH vars that the parent might want >- local EPATCH_SOURCE check base=${PORTAGE_CONFIGROOT%/}/etc/portage/patches >+ local EPATCH_SOURCE check > for check in ${CATEGORY}/{${P}-${PR},${P},${PN}}{,:${SLOT}}; do >- EPATCH_SOURCE=${base}/${CTARGET}/${check} >- [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${CHOST}/${check} >- [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${check} >+ EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${CTARGET}/${check} >+ [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${CHOST}/${check} >+ [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${EPATCH_USER_SOURCE}/${check} > if [[ -d ${EPATCH_SOURCE} ]] ; then > EPATCH_SOURCE=${EPATCH_SOURCE} \ > EPATCH_SUFFIX="patch" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 559698
: 411084