Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374579 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-lang/python/python-2.7.2-r1.ebuild (-1 / +10 lines)
Lines 148-153 Link Here
148
		Modules/getpath.c \
148
		Modules/getpath.c \
149
		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
149
		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
150
150
151
	#Linux-3 compat. Bug #374579 (upstream issue12571)
152
	cp -r ${S}/Lib/plat-linux2 ${S}/Lib/plat-linux3 || die "copy plat-linux failed"
153
151
	eautoreconf
154
	eautoreconf
152
}
155
}
153
156
Lines 325-332 Link Here
325
	newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT} || die "newinitd failed"
328
	newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT} || die "newinitd failed"
326
329
327
	#Linux-3 compat. Bug #374579 (upstream issue12571)
330
	#Linux-3 compat. Bug #374579 (upstream issue12571)
328
	cp -r "${ED}$(python_get_libdir)/plat-linux2" \
331
	if [ -d "${ED}$(python_get_libdir)/plat-linux2" ];then
332
		cp -r "${ED}$(python_get_libdir)/plat-linux2" \
329
			"${ED}$(python_get_libdir)/plat-linux3" || die "copy plat-linux failed"
333
			"${ED}$(python_get_libdir)/plat-linux3" || die "copy plat-linux failed"
334
	else
335
		cp -r "${ED}$(python_get_libdir)/plat-linux3" \
336
			"${ED}$(python_get_libdir)/plat-linux2" || die "copy plat-linux failed"
337
	fi
338
330
339
331
	sed \
340
	sed \
332
		-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
341
		-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \

Return to bug 374579