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

Collapse All | Expand All

(-)python-2.6.2.ebuild.old (+18 lines)
Lines 66-71 Link Here
66
66
67
	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
67
	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}"
68
68
69
	if tc-is-cross-compiler ; then
70
		# Change setup.py to respect the SYSROOT environment variable
71
		epatch "${FILESDIR}"/python-2.6-cross-setup-sysroot.patch
72
	fi
73
74
	# This fixes the compilation and makes ctypes avaible.
75
	epatch "${FILESDIR}"/python-2.6-enable-ctypes-cross-build.patch
76
	# Add a libdirname to enable python cross-compiling and add a user specifyable libdir
77
	epatch "${FILESDIR}"/python-2.5.2-cross-Makefile.pre.in.patch
78
	# Make distutils cross-compile aware
79
	epatch "${FILESDIR}"/python-2.5.2-cross-distutils-build_ext.patch
80
	epatch "${FILESDIR}"/python-2.6-cross-distutils-sysconfig.patch
81
	epatch "${FILESDIR}"/python-2.5.2-cross-distutils-install.patch
82
69
	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
83
	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
70
		Lib/distutils/command/install.py \
84
		Lib/distutils/command/install.py \
71
		Lib/distutils/sysconfig.py \
85
		Lib/distutils/sysconfig.py \
Lines 146-151 Link Here
146
		mv python hostpython
160
		mv python hostpython
147
		mv Parser/pgen Parser/hostpgen
161
		mv Parser/pgen Parser/hostpgen
148
		make distclean
162
		make distclean
163
		# Ugly fix, hostpython require few modules to pass test_unicode.py test
164
		cp -v /usr/lib/python2.6/lib-dynload/unicodedata.so Modules/.
165
		cp -v /usr/lib/python2.6/lib-dynload/time.so Modules/.
166
		cp -v /usr/lib/python2.6/lib-dynload/math.so Modules/.
149
		sed -i \
167
		sed -i \
150
			-e '/^HOSTPYTHON/s:=.*:=./hostpython:' \
168
			-e '/^HOSTPYTHON/s:=.*:=./hostpython:' \
151
			-e '/^HOSTPGEN/s:=.*:=./Parser/hostpgen:' \
169
			-e '/^HOSTPGEN/s:=.*:=./Parser/hostpgen:' \

Return to bug 268887