1 |
commit: b8465c4e78e3ba4c13513b50853faa194fb41cb0 |
2 |
Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 26 19:37:08 2016 +0000 |
4 |
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 26 19:37:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8465c4e |
7 |
|
8 |
app-portage/gentoolkit: Revision bump to add patch |
9 |
|
10 |
Add patch to fix compatability with python2.7 and equery changes. |
11 |
This patch fixes Bug 589686 |
12 |
|
13 |
Package-Manager: portage-2.3.0 |
14 |
|
15 |
.../gentoolkit/files/0.3.2-helpers.py-589686.patch | 30 +++++++++ |
16 |
app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild | 77 ++++++++++++++++++++++ |
17 |
2 files changed, 107 insertions(+) |
18 |
|
19 |
diff --git a/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch |
20 |
new file mode 100644 |
21 |
index 0000000..282846c |
22 |
--- /dev/null |
23 |
+++ b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch |
24 |
@@ -0,0 +1,30 @@ |
25 |
+From bc92540f8ce498e8305103619c7085b670ba19b1 Mon Sep 17 00:00:00 2001 |
26 |
+From: Paul Varner <fuzzyray@g.o> |
27 |
+Date: Mon, 25 Jul 2016 13:01:06 -0500 |
28 |
+Subject: Add missing import of io.open when using python2.7 |
29 |
+ |
30 |
+This fixes the traceback when running equery changes with Python 2.7 |
31 |
+ |
32 |
+X-Gentoo-bug: 589686 |
33 |
+X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=589686 |
34 |
+--- |
35 |
+ pym/gentoolkit/helpers.py | 3 +++ |
36 |
+ 1 file changed, 3 insertions(+) |
37 |
+ |
38 |
+diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py |
39 |
+index 0d985b6..8d25393 100644 |
40 |
+--- a/pym/gentoolkit/helpers.py |
41 |
++++ b/pym/gentoolkit/helpers.py |
42 |
+@@ -26,6 +26,9 @@ __docformat__ = 'epytext' |
43 |
+ # ======= |
44 |
+ |
45 |
+ import os |
46 |
++import sys |
47 |
++if sys.hexversion < 0x3000000: |
48 |
++ from io import open |
49 |
+ import re |
50 |
+ from functools import partial |
51 |
+ from itertools import chain |
52 |
+-- |
53 |
+cgit v0.12 |
54 |
+ |
55 |
|
56 |
diff --git a/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild |
57 |
new file mode 100644 |
58 |
index 0000000..75851dd |
59 |
--- /dev/null |
60 |
+++ b/app-portage/gentoolkit/gentoolkit-0.3.2-r1.ebuild |
61 |
@@ -0,0 +1,77 @@ |
62 |
+# Copyright 1999-2016 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+# $Id$ |
65 |
+ |
66 |
+EAPI="6" |
67 |
+ |
68 |
+PYTHON_COMPAT=(python{2_7,3_3,3_4,3_5} pypy) |
69 |
+PYTHON_REQ_USE="xml(+),threads(+)" |
70 |
+ |
71 |
+inherit distutils-r1 |
72 |
+ |
73 |
+DESCRIPTION="Collection of administration scripts for Gentoo" |
74 |
+HOMEPAGE="https://www.gentoo.org/proj/en/portage/tools/index.xml" |
75 |
+SRC_URI="http://dev.gentoo.org/~dolsen/releases/gentoolkit/${P}.tar.gz" |
76 |
+ |
77 |
+LICENSE="GPL-2" |
78 |
+SLOT="0" |
79 |
+IUSE="" |
80 |
+ |
81 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
82 |
+ |
83 |
+DEPEND="sys-apps/portage[${PYTHON_USEDEP}]" |
84 |
+RDEPEND="${DEPEND} |
85 |
+ !<=app-portage/gentoolkit-dev-0.2.7 |
86 |
+ || ( >=sys-apps/coreutils-8.15 app-misc/realpath sys-freebsd/freebsd-bin ) |
87 |
+ sys-apps/gawk |
88 |
+ sys-apps/gentoo-functions |
89 |
+ sys-apps/grep" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}"/${PV}-helpers.py-589686.patch |
93 |
+) |
94 |
+ |
95 |
+python_prepare_all() { |
96 |
+ python_setup |
97 |
+ echo VERSION="${PVR}" "${PYTHON}" setup.py set_version |
98 |
+ VERSION="${PVR}" "${PYTHON}" setup.py set_version |
99 |
+ distutils-r1_python_prepare_all |
100 |
+} |
101 |
+ |
102 |
+python_install_all() { |
103 |
+ distutils-r1_python_install_all |
104 |
+ |
105 |
+ # remove on Gentoo Prefix platforms where it's broken anyway |
106 |
+ if use prefix; then |
107 |
+ elog "The revdep-rebuild command is removed, the preserve-libs" |
108 |
+ elog "feature of portage will handle issues." |
109 |
+ rm "${ED}"/usr/bin/revdep-rebuild* |
110 |
+ rm "${ED}"/usr/share/man/man1/revdep-rebuild.1 |
111 |
+ rm -rf "${ED}"/etc/revdep-rebuild |
112 |
+ rm -rf "${ED}"/var |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst() { |
117 |
+ # Create cache directory for revdep-rebuild |
118 |
+ mkdir -p -m 0755 "${EROOT%/}"/var/cache |
119 |
+ mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild |
120 |
+ |
121 |
+ # Only show the elog information on a new install |
122 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
123 |
+ elog |
124 |
+ elog "For further information on gentoolkit, please read the gentoolkit" |
125 |
+ elog "guide: https://www.gentoo.org/doc/en/gentoolkit.xml" |
126 |
+ elog |
127 |
+ elog "Another alternative to equery is app-portage/portage-utils" |
128 |
+ elog |
129 |
+ elog "Additional tools that may be of interest:" |
130 |
+ elog |
131 |
+ elog " app-admin/eclean-kernel" |
132 |
+ elog " app-portage/diffmask" |
133 |
+ elog " app-portage/flaggie" |
134 |
+ elog " app-portage/install-mask" |
135 |
+ elog " app-portage/portpeek" |
136 |
+ elog " app-portage/smart-live-rebuild" |
137 |
+ fi |
138 |
+} |