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

Collapse All | Expand All

(-)a/dev-lang/python/python-2.5.1-r2.ebuild (-16 / +8 lines)
Lines 62-72 src_unpack() { Link Here
62
	cd "${S}"
62
	cd "${S}"
63
63
64
	if tc-is-cross-compiler ; then
64
	if tc-is-cross-compiler ; then
65
		[[ $(python -V) != ${PV} ]] && \
65
		[[ "$(python -V 2>&1)" != "Python ${PV}" ]] && \
66
			die "Crosscompiling requires the same host and build versions."
66
			die "Crosscompiling requires the same host and build versions."
67
	else
67
		epatch ${FILESDIR}/python-2.4.4-test-cross.patch || \
68
		rm "${WORKDIR}/${PV}"/*_all_crosscompile.patch
68
			die "cross patch failed"
69
	fi
69
		epatch ${FILESDIR}/python-2.5.1-cross.patch || \
70
			die "cross patch failed"
71
		export ac_cv_printf_zd_format=no
72
	fi
73
	rm "${WORKDIR}/${PV}"/*_all_crosscompile.patch
70
74
71
	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
75
	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
72
	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
76
	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
Lines 144-161 src_compile() { Link Here
144
148
145
	src_configure
149
	src_configure
146
150
147
	if tc-is-cross-compiler ; then
148
		OPT="-O1" CFLAGS="" LDFLAGS="" CC="" \
149
		./configure --with-cxx=no || die "cross-configure failed"
150
		emake python Parser/pgen || die "cross-make failed"
151
		mv python hostpython
152
		mv Parser/pgen Parser/hostpgen
153
		make distclean
154
		sed -i \
155
			-e '/^HOSTPYTHON/s:=.*:=./hostpython:' \
156
			-e '/^HOSTPGEN/s:=.*:=./Parser/hostpgen:' \
157
			Makefile.pre.in || die
158
	fi
159
151
160
	# export CXX so it ends up in /usr/lib/python2.x/config/Makefile
152
	# export CXX so it ends up in /usr/lib/python2.x/config/Makefile
161
	tc-export CXX
153
	tc-export CXX

Return to bug 184308