Merge lp://staging/~peter-pearse/ubuntu/natty/python2.7/prop001 into lp://staging/ubuntu/natty/python2.7
Proposed by
Peter Pearse
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~peter-pearse/ubuntu/natty/python2.7/prop001 |
Merge into: | lp://staging/ubuntu/natty/python2.7 |
Diff against target: |
582 lines (+344/-16) 4 files modified
debian/changelog (+6/-0) debian/patches/cross.diff (+201/-0) debian/patches/series.in (+1/-0) debian/rules (+136/-16) |
To merge this branch: | bzr merge lp://staging/~peter-pearse/ubuntu/natty/python2.7/prop001 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Review via email:
|
Description of the change
debian/rules patched to build a host python for use during the build, remove some symbols not produced for arm, use the Makefile changes below.
Makefile.pre.in patched to use the newly made build host python and pgen where necessary by using the new variables HOSTPYTHON, HOSTPGEN.
setup.py patched to test fro CROSS_COMPILE.
To post a comment you must log in.
Unmerged revisions
- 27. By Peter Pearse
-
Modify to allow cross building
------------- This line and the following will be ignored --------------
dded:
debian/patches/ cross.diff
modified:
debian/changelog
debian/patches/ series. in
debian/rules
+diff -Nru py/Modules/ makesetup py_patched/ Modules/ makesetup makesetup 2011-02-01 13:13:16.000000000 +0000 Modules/ makesetup 2011-02-02 10:17:05.000000000 +0000 %$OBJS% " >>$sedf
+--- py/Modules/
++++ py_patched/
+@@ -281,7 +281,7 @@
+ -) ;;
+ *) <email address hidden>.$$"
+ trap 'rm -f $sedf' 0 1 2 3
+- printf "1i\\" >$sedf
++ echo "1i\\" >$sedf
+ str="# Generated automatically from $makepre by makesetup."
+ echo "$str" >>$sedf
+ echo "s%_MODOBJS_
Why this change? printf is a standard command, part of coreutils.
stamps/ stamp-build- debug: stamps/ stamp-configure -debug BUILD_GNU_ TYPE),$ (DEB_HOST_ GNU_TYPE) ) stamp-build- debug
dh_testdir
- $(MAKE) $(NJOBS) -C $(buildd_debug)
+ifeq ($(DEB_
+ $(MAKE) $(NJOBS) -C $(buildd_debug) $(CROSS)
+endif
touch stamps/
Same question as for python2.6: why disabling the debug build?
+ifneq ($(DEB_ BUILD_GNU_ TYPE),$ (DEB_HOST_ GNU_TYPE) ) configure_ args += \ $(DEB_HOST_ GNU_TYPE) _args = LDFLAGS= -L/usr/ $(DEB_HOST_ GNU_TYPE) /lib _args =
+ common_
+ --host=
+ cross_configure
+else
+ cross_configure
+endif
+
Same comments as for python2.6
+ifeq ($(DEB_ HOST_ARCH) ,armel) FLOAT_REPR" freedtoa@ Base/ {next;} ; \ strtod@ Base/ {next;} ; \ libpython. symbols > tmp; \ libpython. symbols
+ @echo "$(DEB_HOST_ARCH) defines PY_NO_SHORT_
+ nawk ' \
+ $$0 ~ /_Py_dg_dtoa@Base/ {next;} ; \
+ $$0 ~ /_Py_dg_
+ $$0 ~ /_Py_dg_
+ {print $$0 ; }; ' debian/
+ mv tmp debian/
+endif
+
nawk is not guaranteed to be installed in a build environment, only awk. Please run this as 'awk' instead. (What's the difference between the two names)?
+else dependency in the cross-compilation case /usr/share/ binfmts/ $(PVER)
+ : # self-build-
+ python debian/mkbinfmt.py $(PVER) \
+ > $(d_min)
+endif
Same comment as for python2.6