Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/salt/, app-admin/salt/files/
Date: Mon, 01 Feb 2016 22:57:39
Message-Id: 1454367440.83246d9d02d04037649f9ae3fad7fbab861ade15.chutzpah@gentoo
1 commit: 83246d9d02d04037649f9ae3fad7fbab861ade15
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 22:57:20 2016 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 22:57:20 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83246d9d
7
8 app-admin/salt: version bump to 2015.8.5
9
10 Package-Manager: portage-2.2.27
11
12 app-admin/salt/Manifest | 1 +
13 .../salt/files/salt-2015.8.4-boto-vpc-test.patch | 13 ++
14 app-admin/salt/salt-2015.8.4.ebuild | 134 +++++++++++++++++++++
15 3 files changed, 148 insertions(+)
16
17 diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest
18 index 1454c32..8b81b69 100644
19 --- a/app-admin/salt/Manifest
20 +++ b/app-admin/salt/Manifest
21 @@ -1,3 +1,4 @@
22 DIST salt-2015.5.8.tar.gz 5741097 SHA256 07c3eb054ef214c17481fed1262a5e4fd3c429df3058b504eb2cfc36ce4ad2fc SHA512 969cfdfb82f40957d1fa923a4640596cd08529eb9159527365094a3ab0d3e5ad6ff023eea34ad3b1328102f5d03ec8bf7da0958c77dfaee058f5e361a3dc395a WHIRLPOOL bf6960fe18c5181253d428ae678ed3f2e8203cbfcf0d7105d19ac5c6ce1d3c7acdf131062cfca255839c95bfa8f692f6463c9b7d41ad62d80c7a738b758bad71
23 DIST salt-2015.5.9.tar.gz 5689839 SHA256 71e1c31ebe73edf17b43afcee7de689bb39cc6e97742cd0e110386106fa3fc5b SHA512 389fa09e2e89bb0631f5a2f1d7ef363f8b3a260d466cd7b5fdf7bfc296f5fb64fa355dc56a401df326cefe43e63904061db4fc01a3b5c1cd54fa34ee102a6ad9 WHIRLPOOL 094350e78b96c2633dedb2c4ab0caa959a634e84bf2e92145880eec883ec076765c8b897c873e8f601325a69e7e3fe139163eec45fc6daa109edbd9a884b0dc2
24 DIST salt-2015.8.3.tar.gz 6757678 SHA256 2e9a262789b018f3443513105c0c6ae98934c9bc105a04cf9e5c073ef706218a SHA512 18a2c63d5e54d09468189450557974e47f87d8b7dde52beaae678120da1da1e7aecfff18cf0fdfb63a11cd5f6bab102c229462f0afe5e3e858c0c467761c7121 WHIRLPOOL 5f1e1562904aecf97027688adbe9a2eb1b910065e52a2e20e7bad67fc4e91660e3e1e04612ee3b18d9632f3ff782837336cf1a5d85d771b67071422a3cea9861
25 +DIST salt-2015.8.4.tar.gz 6874756 SHA256 8a21a02e53a6ef9b6dad4145c70225b7ff17bbb4a436a131c7e32d42b428cf48 SHA512 07c7e68b5667e8310bda9733706cbd1d8402ce6886300065ca4b618dccfbf65aaf79aba3d34d87ccda453811f589f13b8da3599eae70c865b19e3d0da5a100d3 WHIRLPOOL 70f5dfcdccacc0592c2af178caa1f979a7b17c409ad3a5c67d96fc5140d592e9cb876c1b15087c6c06c6e81e15d403f6e3dad86f44883e73399d49d59e8f6ad5
26
27 diff --git a/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch b/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch
28 new file mode 100644
29 index 0000000..ca18f47
30 --- /dev/null
31 +++ b/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch
32 @@ -0,0 +1,13 @@
33 +diff --git a/tests/unit/modules/boto_vpc_test.py b/tests/unit/modules/boto_vpc_test.py
34 +index 0768790..bb89d47 100644
35 +--- a/tests/unit/modules/boto_vpc_test.py
36 ++++ b/tests/unit/modules/boto_vpc_test.py
37 +@@ -493,7 +493,7 @@ class BotoVpcTestCase(BotoVpcTestCaseBase, BotoVpcTestCaseMixin):
38 +
39 + vpc_properties = dict(id=vpc.id,
40 + cidr_block=six.text_type(cidr_block),
41 +- is_default=False,
42 ++ is_default=None,
43 + state=u'available',
44 + tags={u'Name': u'test', u'test': u'testvalue'},
45 + dhcp_options_id=u'dopt-7a8b9c2d',
46
47 diff --git a/app-admin/salt/salt-2015.8.4.ebuild b/app-admin/salt/salt-2015.8.4.ebuild
48 new file mode 100644
49 index 0000000..669ea91
50 --- /dev/null
51 +++ b/app-admin/salt/salt-2015.8.4.ebuild
52 @@ -0,0 +1,134 @@
53 +# Copyright 1999-2016 Gentoo Foundation
54 +# Distributed under the terms of the GNU General Public License v2
55 +# $Id$
56 +
57 +EAPI=5
58 +PYTHON_COMPAT=(python2_7)
59 +
60 +inherit eutils systemd distutils-r1
61 +
62 +DESCRIPTION="Salt is a remote execution and configuration manager"
63 +HOMEPAGE="http://saltstack.org/"
64 +
65 +if [[ ${PV} == 9999* ]]; then
66 + inherit git-r3
67 + EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
68 + EGIT_BRANCH="develop"
69 + SRC_URI=""
70 + KEYWORDS=""
71 +else
72 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
73 + KEYWORDS="~x86 ~amd64"
74 +fi
75 +
76 +LICENSE="Apache-2.0"
77 +SLOT="0"
78 +IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
79 +IUSE+=" openssl profile redis selinux test timelib raet +zeromq vim-syntax"
80 +
81 +RDEPEND="sys-apps/pciutils
82 + dev-python/jinja[${PYTHON_USEDEP}]
83 + >=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
84 + dev-python/pyyaml[${PYTHON_USEDEP}]
85 + dev-python/markupsafe[${PYTHON_USEDEP}]
86 + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
87 + dev-python/setuptools[${PYTHON_USEDEP}]
88 + >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
89 + virtual/python-futures[${PYTHON_USEDEP}]
90 + libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
91 + mako? ( dev-python/mako[${PYTHON_USEDEP}] )
92 + ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
93 + openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
94 + libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
95 + openssl? (
96 + dev-libs/openssl:*[-bindist]
97 + dev-python/pyopenssl[${PYTHON_USEDEP}]
98 + )
99 + raet? (
100 + >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
101 + >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
102 + >=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
103 + )
104 + zeromq? (
105 + >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
106 + >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
107 + )
108 + cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
109 + mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
110 + keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
111 + mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
112 + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
113 + selinux? ( sec-policy/selinux-salt )
114 + timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
115 + nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
116 + neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
117 + gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
118 + profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
119 + vim-syntax? ( app-vim/salt-vim )"
120 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
121 + test? (
122 + dev-python/pip[${PYTHON_USEDEP}]
123 + dev-python/virtualenv[${PYTHON_USEDEP}]
124 + dev-python/mock[${PYTHON_USEDEP}]
125 + dev-python/timelib[${PYTHON_USEDEP}]
126 + >=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
127 + >=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
128 + >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
129 + ${RDEPEND}
130 + )"
131 +
132 +DOCS=(README.rst AUTHORS)
133 +
134 +REQUIRED_USE="|| ( raet zeromq )"
135 +
136 +PATCHES=(
137 + "${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
138 + "${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
139 + "${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
140 + "${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
141 + "${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
142 + "${FILESDIR}/${PN}-2015.8.4-boto-vpc-test.patch"
143 +)
144 +
145 +python_prepare() {
146 + # this test fails because it trys to "pip install distribute"
147 + rm tests/unit/{modules,states}/zcbuildout_test.py \
148 + tests/unit/modules/{rh_ip,win_network,random_org}_test.py
149 +}
150 +
151 +python_install_all() {
152 + local svc
153 + USE_SETUPTOOLS=1 distutils-r1_python_install_all
154 +
155 + for svc in minion master syndic api; do
156 + newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
157 + newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
158 + systemd_dounit "${FILESDIR}"/salt-${svc}.service
159 + done
160 +
161 + insinto /etc/${PN}
162 + doins -r conf/*
163 +}
164 +
165 +python_test() {
166 + local tempdir
167 + # testsuite likes lots of files
168 + ulimit -n 3072
169 +
170 + # ${T} is too long a path for the tests to work
171 + tempdir="$(mktemp -dup /tmp salt-XXX)"
172 + mkdir "${T}/$(basename "${tempdir}")"
173 +
174 + (
175 + cleanup() { rm -f "${tempdir}"; }
176 + trap cleanup EXIT
177 +
178 + addwrite "${tempdir}"
179 + ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
180 +
181 + USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
182 + ${EPYTHON} tests/runtests.py \
183 + --unit-tests --no-report --verbose
184 +
185 + ) || die "testing failed"
186 +}