summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@gmail.com>2014-12-10 08:00:43 +0200
committerV3n3RiX <venerix@gmail.com>2014-12-10 08:00:43 +0200
commit8559bdd9dfa6174faccd666efea74d081ea393ca (patch)
treebbfcee929a909f70056c8efab21ee31a33c0a9cd
parent3ae1eec3036d56cac91daef45b3a6589cc26f481 (diff)
fix gentoolkit multiple portageq envvar portdir is deprecated warnings
-rw-r--r--app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch12
-rw-r--r--app-portage/gentoolkit/gentoolkit-0.3.0.9-r2.ebuild1
2 files changed, 13 insertions, 0 deletions
diff --git a/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch b/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
new file mode 100644
index 00000000..892b378f
--- /dev/null
+++ b/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
@@ -0,0 +1,12 @@
+diff -Nur a/bin/euse b/bin/euse
+--- a/bin/euse 2014-02-11 20:53:30.000000000 +0200
++++ b/bin/euse 2014-12-10 07:53:36.876716157 +0200
+@@ -720,7 +720,7 @@
+ # Use a subshell so we don't have to protect the variables in
+ # the current scope
+ (
+- eval $(portageq envvar -v PORTDIR)
++ : ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}
+ echo "${PORTDIR}"
+ )
+ } # }}}
diff --git a/app-portage/gentoolkit/gentoolkit-0.3.0.9-r2.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.0.9-r2.ebuild
index 938b4c8c..3ead12a9 100644
--- a/app-portage/gentoolkit/gentoolkit-0.3.0.9-r2.ebuild
+++ b/app-portage/gentoolkit/gentoolkit-0.3.0.9-r2.ebuild
@@ -33,6 +33,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-equery-508114.patch
"${FILESDIR}"/${PV}-equery-strip-XXXFLAGS.patch
"${FILESDIR}"/${PV}-revdep-rebuild-526400.patch
+ "${FILESDIR}"/${PV}-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
)
python_prepare_all() {