Diff python-3.6.13_p4 with a python-3.7.10_p3

/usr/portage/dev-lang/python/python-3.7.10_p3.ebuild 2021-05-07 02:39:00.000000000 +0300
22 22

  
23 23
LICENSE="PSF-2"
24 24
SLOT="${PYVER}/${PYVER}m"
25
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
26
IUSE="bluetooth build examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl test +threads tk wininst +xml"
25
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
26
IUSE="bluetooth build examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl test tk wininst +xml"
27 27
RESTRICT="!test? ( test )"
28 28

  
29 29
# Do not add a dependency on dev-lang/python to this ebuild.
......
34 34
RDEPEND="app-arch/bzip2:=
35 35
	app-arch/xz-utils:=
36 36
	dev-libs/libffi:=
37
	sys-apps/util-linux:=
37 38
	>=sys-libs/zlib-1.1.3:=
38 39
	virtual/libcrypt:=
39 40
	virtual/libintl
......
82 83
	default
83 84

  
84 85
	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
85
		Lib/distutils/command/install.py \
86
		Lib/distutils/sysconfig.py \
87
		Lib/site.py \
88
		Lib/sysconfig.py \
89
		Lib/test/test_site.py \
90
		Makefile.pre.in \
91
		Modules/Setup.dist \
92
		Modules/getpath.c \
93
		configure.ac \
94 86
		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
95 87

  
96 88
	# force correct number of jobs
......
139 131
	# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
140 132
	tc-export CXX
141 133

  
134
	# Fix implicit declarations on cross and prefix builds. Bug #674070.
135
	use ncurses && append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw
136

  
142 137
	local dbmliborder
143 138
	if use gdbm; then
144 139
		dbmliborder+="${dbmliborder:+:}gdbm"
......
150 145
		# a chance for users rebuilding python before glibc
151 146
		ac_cv_header_stropts_h=no
152 147

  
153
		--with-fpectl
154 148
		--enable-shared
155 149
		$(use_enable ipv6)
156
		$(use_with threads)
157 150
		--infodir='${prefix}/share/info'
158 151
		--mandir='${prefix}/share/man'
159 152
		--with-computed-gotos
......
167 160

  
168 161
	OPT="" econf "${myeconfargs[@]}"
169 162

  
170
	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
163
	if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
171 164
		eerror "configure has detected that the sem_open function is broken."
172 165
		eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
173 166
		die "Broken sem_open function (bug 496328)"
......
197 190
	fi
198 191

  
199 192
	# Skip failing tests.
200
	local skipped_tests="gdb faulthandler"
193
	local skipped_tests="gdb"
201 194

  
202 195
	for test in ${skipped_tests}; do
203 196
		mv "${S}"/Lib/test/test_${test}.py "${T}"
......
223 216
	done
224 217

  
225 218
	elog "If you would like to run them, you may:"
226
	elog "cd '${EPREFIX}/usr/$(get_libdir)/python${PYVER}/test'"
219
	elog "cd '${EPREFIX}/usr/lib/python${PYVER}/test'"
227 220
	elog "and run the tests separately."
228 221

  
229 222
	if [[ ${result} -ne 0 ]]; then
......
232 225
}
233 226

  
234 227
src_install() {
235
	local libdir=${ED}/usr/$(get_libdir)/python${PYVER}
228
	local libdir=${ED}/usr/lib/python${PYVER}
236 229

  
237 230
	emake DESTDIR="${D}" altinstall
238 231

  
......
270 263
	use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
271 264
	use tk || rm -r "${ED}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
272 265

  
273
	use threads || rm -r "${libdir}/multiprocessing" || die
274 266
	use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die
275 267

  
276 268
	dodoc Misc/{ACKS,HISTORY,NEWS}
Thank you!