1 |
commit: dd445b3181973262fa41a591286ec101c9cf486a |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 18 22:22:31 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 18 22:41:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd445b31 |
7 |
|
8 |
app-emulation/cloud-init: 18.4-r1 → 18.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
12 |
|
13 |
app-emulation/cloud-init/Manifest | 1 + |
14 |
app-emulation/cloud-init/cloud-init-18.5.ebuild | 90 ++++++++++++++++++++++ |
15 |
.../files/18.5-fix-invalid-string-format.patch | 46 +++++++++++ |
16 |
3 files changed, 137 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest |
19 |
index 6a289ecfa8c..4f2aa6f1599 100644 |
20 |
--- a/app-emulation/cloud-init/Manifest |
21 |
+++ b/app-emulation/cloud-init/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST cloud-init-17.2.tar.gz 810821 BLAKE2B df1a7c1ed1fc48a7801a53bd89839d963debca6abf7f892d61bf7ec9222ab33bf78221e65d79028e0445cac4c5fe1e0c1620d49aea26c036ee17933d9c1893f5 SHA512 ad1c7f6ca9762b70a1f06a6b538032a7de0c5371fd792260d5959df113f4f51509d184b2207ffa23b41f395c1903d551d66aaf2a2ad60af3594cf1f18d1e4a38 |
24 |
DIST cloud-init-18.4.tar.gz 965112 BLAKE2B 2879aafedea877e4e406a5e837d100ba65e40c62660621f606e7a189af7b1ec8d98ba2c02ae5d253a0b4587502d3a636dec5c2772c968a9037b47e62a05656b4 SHA512 730aca6406f652f55afc2dd50c49eb6708584e0a96715606bcba05cb7f40e47c256faff1f9748f04674a8f941ec9435801c9ed2ac79adec8a6ef167d6b195103 |
25 |
+DIST cloud-init-18.5.tar.gz 990381 BLAKE2B 0dbbd5b2402d3a7742c46f8a37b0ea31f40ac16bdbfe49dca0056ab8f90c47dbf26e6d3f40f34275caf5102d0b9b8be4e2c28bfc2276e85a5aad11af20b08979 SHA512 f89ee636922e33b5b2dcb5230763404fbeee148e28b8f61bf5b2f1f07000f960f9d38545dfb7bcbe9afb8253f77d66c94b39e9a159715b44a440a7cbe1fe1aeb |
26 |
|
27 |
diff --git a/app-emulation/cloud-init/cloud-init-18.5.ebuild b/app-emulation/cloud-init/cloud-init-18.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c4ff15cbfd9 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/cloud-init/cloud-init-18.5.ebuild |
32 |
@@ -0,0 +1,90 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Cloud instance initialisation magic" |
42 |
+HOMEPAGE="https://launchpad.net/cloud-init" |
43 |
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="test" |
49 |
+ |
50 |
+CDEPEND=" |
51 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
52 |
+ dev-python/oauthlib[${PYTHON_USEDEP}] |
53 |
+ dev-python/pyserial[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
55 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
56 |
+ dev-python/requests[${PYTHON_USEDEP}] |
57 |
+ dev-python/jsonpatch[${PYTHON_USEDEP}] |
58 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
59 |
+ dev-python/six[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+DEPEND=" |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ test? ( |
64 |
+ ${CDEPEND} |
65 |
+ >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
66 |
+ dev-python/mock[${PYTHON_USEDEP}] |
67 |
+ dev-python/nose[${PYTHON_USEDEP}] |
68 |
+ dev-python/unittest2[${PYTHON_USEDEP}] |
69 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
70 |
+ dev-python/contextlib2[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+RDEPEND=" |
74 |
+ ${CDEPEND} |
75 |
+ net-analyzer/macchanger |
76 |
+ sys-apps/iproute2 |
77 |
+ sys-fs/growpart |
78 |
+ virtual/logger |
79 |
+" |
80 |
+ |
81 |
+PATCHES=( |
82 |
+ # Fix Gentoo support |
83 |
+ # https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777 |
84 |
+ "${FILESDIR}"/${PN}-18.4-fix-packages-module.patch |
85 |
+ "${FILESDIR}"/${PN}-18.4-gentoo-support-upstream-templates.patch |
86 |
+ "${FILESDIR}"/18.4-fix-filename-for-storing-locale.patch |
87 |
+ "${FILESDIR}"/18.4-fix-update_package_sources-function.patch |
88 |
+ "${FILESDIR}"/18.4-add-support-for-package_upgrade.patch |
89 |
+ # From master |
90 |
+ "${FILESDIR}"/${PV}-fix-invalid-string-format.patch |
91 |
+) |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ # Fix location of documentation installation |
95 |
+ sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
96 |
+ distutils-r1_src_prepare |
97 |
+} |
98 |
+ |
99 |
+python_test() { |
100 |
+ # Do not use Makefile target as it does not setup environment correclty |
101 |
+ esetup.py nosetests -v --where cloudinit --where tests/unittests || die |
102 |
+} |
103 |
+ |
104 |
+python_install() { |
105 |
+ distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
106 |
+} |
107 |
+ |
108 |
+python_install_all() { |
109 |
+ keepdir /etc/cloud |
110 |
+ |
111 |
+ distutils-r1_python_install_all |
112 |
+ |
113 |
+ # installs as non-executable |
114 |
+ chmod +x "${D}"/etc/init.d/* |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ elog "cloud-init-local needs to be run in the boot runlevel because it" |
119 |
+ elog "modifies services in the default runlevel. When a runlevel is started" |
120 |
+ elog "it is cached, so modifications that happen to the current runlevel" |
121 |
+ elog "while you are in it are not acted upon." |
122 |
+} |
123 |
|
124 |
diff --git a/app-emulation/cloud-init/files/18.5-fix-invalid-string-format.patch b/app-emulation/cloud-init/files/18.5-fix-invalid-string-format.patch |
125 |
new file mode 100644 |
126 |
index 00000000000..42030f57dc4 |
127 |
--- /dev/null |
128 |
+++ b/app-emulation/cloud-init/files/18.5-fix-invalid-string-format.patch |
129 |
@@ -0,0 +1,46 @@ |
130 |
+From 5b065316113b97aadb43e63cc31bb8639f6a6376 Mon Sep 17 00:00:00 2001 |
131 |
+From: Scott Moser <smoser@××××××.com> |
132 |
+Date: Fri, 14 Dec 2018 03:24:26 +0000 |
133 |
+Subject: [PATCH] Update to pylint 2.2.2. |
134 |
+ |
135 |
+The tip-pylint tox target correctly reported the invalid use of |
136 |
+string formatting. The change here is to: |
137 |
+ |
138 |
+a.) Fix the error that was caught. |
139 |
+b.) move to pylint 2.2.2 for the default 'pylint' target. |
140 |
+--- |
141 |
+ cloudinit/sources/DataSourceAzure.py | 4 ++-- |
142 |
+ tox.ini | 2 +- |
143 |
+ 2 files changed, 3 insertions(+), 3 deletions(-) |
144 |
+ |
145 |
+diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py |
146 |
+index e076d5dc..46efca4a 100644 |
147 |
+--- a/cloudinit/sources/DataSourceAzure.py |
148 |
++++ b/cloudinit/sources/DataSourceAzure.py |
149 |
+@@ -980,8 +980,8 @@ def read_azure_ovf(contents): |
150 |
+ raise NonAzureDataSource("No LinuxProvisioningConfigurationSet") |
151 |
+ if len(lpcs_nodes) > 1: |
152 |
+ raise BrokenAzureDataSource("found '%d' %ss" % |
153 |
+- ("LinuxProvisioningConfigurationSet", |
154 |
+- len(lpcs_nodes))) |
155 |
++ (len(lpcs_nodes), |
156 |
++ "LinuxProvisioningConfigurationSet")) |
157 |
+ lpcs = lpcs_nodes[0] |
158 |
+ |
159 |
+ if not lpcs.hasChildNodes(): |
160 |
+diff --git a/tox.ini b/tox.ini |
161 |
+index 2fb3209d..d983348b 100644 |
162 |
+--- a/tox.ini |
163 |
++++ b/tox.ini |
164 |
+@@ -21,7 +21,7 @@ setenv = |
165 |
+ basepython = python3 |
166 |
+ deps = |
167 |
+ # requirements |
168 |
+- pylint==1.8.1 |
169 |
++ pylint==2.2.2 |
170 |
+ # test-requirements because unit tests are now present in cloudinit tree |
171 |
+ -r{toxinidir}/test-requirements.txt |
172 |
+ commands = {envpython} -m pylint {posargs:cloudinit tests tools} |
173 |
+-- |
174 |
+2.20.0 |
175 |
+ |