Diff python-2.7.15 with a python-2.7.16

/usr/portage/dev-lang/python/python-2.7.16.ebuild 2019-05-10 18:09:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI="6"
......
7 7
inherit autotools flag-o-matic pax-utils python-utils-r1 toolchain-funcs
8 8

  
9 9
MY_P="Python-${PV}"
10
PATCHSET_VERSION="2.7.15"
10
PATCHSET_VERSION="2.7.16"
11 11

  
12 12
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
13 13
HOMEPAGE="https://www.python.org/"
......
16 16

  
17 17
LICENSE="PSF-2"
18 18
SLOT="2.7"
19
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
19
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
20 20
IUSE="-berkdb bluetooth build doc elibc_uclibc examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
21 21

  
22 22
# Do not add a dependency on dev-lang/python to this ebuild.
......
181 181
		dbmliborder+="${dbmliborder:+:}bdb"
182 182
	fi
183 183

  
184
	BUILD_DIR="${WORKDIR}/${CHOST}"
185
	mkdir -p "${BUILD_DIR}" || die
186
	cd "${BUILD_DIR}" || die
187

  
188
	ECONF_SOURCE="${S}" OPT="" \
189
	econf \
190
		--with-fpectl \
191
		--enable-shared \
192
		$(use_enable ipv6) \
193
		$(use_with threads) \
194
		$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
195
		--infodir='${prefix}/share/info' \
196
		--mandir='${prefix}/share/man' \
197
		--with-computed-gotos \
198
		--with-dbmliborder="${dbmliborder}" \
199
		--with-libc="" \
200
		--enable-loadable-sqlite-extensions \
201
		--with-system-expat \
202
		--with-system-ffi \
184
	local myeconfargs=(
185
		# The check is broken on clang, and gives false positive:
186
		# https://bugs.gentoo.org/596798
187
		# (upstream dropped this flag in 3.2a4 anyway)
188
		ac_cv_opt_olimit_ok=no
189

  
190
		--with-fpectl
191
		--enable-shared
192
		$(use_enable ipv6)
193
		$(use_with threads)
194
		$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2")
195
		--infodir='${prefix}/share/info'
196
		--mandir='${prefix}/share/man'
197
		--with-computed-gotos
198
		--with-dbmliborder="${dbmliborder}"
199
		--with-libc=
200
		--enable-loadable-sqlite-extensions
201
		--with-system-expat
202
		--with-system-ffi
203 203
		--without-ensurepip
204
	)
205

  
206
	OPT= econf "${myeconfargs[@]}"
204 207

  
205 208
	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
206 209
		eerror "configure has detected that the sem_open function is broken."
......
213 216
	# Avoid invoking pgen for cross-compiles.
214 217
	touch Include/graminit.h Python/graminit.c
215 218

  
216
	cd "${BUILD_DIR}" || die
217 219
	emake
218 220

  
219 221
	# Work around bug 329499. See also bug 413751 and 457194.
......
231 233
		return
232 234
	fi
233 235

  
234
	cd "${BUILD_DIR}" || die
235

  
236 236
	# Skip failing tests.
237 237
	local skipped_tests="distutils gdb"
238 238

  
......
240 240
		mv "${S}"/Lib/test/test_${test}.py "${T}"
241 241
	done
242 242

  
243
	# bug 660358
244
	local -x COLUMNS=80
245

  
243 246
	# Daylight saving time problem
244 247
	# https://bugs.python.org/issue22067
245 248
	# https://bugs.gentoo.org/610628
......
270 273
src_install() {
271 274
	local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
272 275

  
273
	cd "${BUILD_DIR}" || die
274 276
	emake DESTDIR="${D}" altinstall
275 277

  
276 278
	sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die "sed failed"
Thank you!