Merge lp://staging/~peter-pearse/ubuntu/natty/python2.6/prop003 into lp://staging/ubuntu/natty/python2.6
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~peter-pearse/ubuntu/natty/python2.6/prop003 |
Merge into: | lp://staging/ubuntu/natty/python2.6 |
Diff against target: |
700 lines (+470/-17) (has conflicts) 4 files modified
debian/changelog (+18/-0) debian/patches/cross.diff (+318/-0) debian/patches/series.in (+1/-0) debian/rules (+133/-17) Text conflict in debian/changelog |
To merge this branch: | bzr merge lp://staging/~peter-pearse/ubuntu/natty/python2.6/prop003 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Review via email:
|
Description of the change
SUPERSEDES https:/
That branch has been left to preserve the review comments.
setup.py:
- Renamed the variable to indicate it's origin
- Set LDFLAGS & CFLAGS for cross builds empty, rather than setting "sysrooted" values
Cross toolchain ASSUMED to cope with location the required headers & libraries
debian/rules
- Replaced the arm test as per review comment
- Added -fPIC for static armel builds. Otherwise the module builds fail with
"relocation R_ARM_THM_
Makefile.pre.in
- dependencies adjusted as per review comments
- unnecessary, e.g. whitespace, changes removed.
Unmerged revisions
- 68. By Peter Pearse
-
* configure.in - Set buggygetaddrinfo for cross builds
* - Add py_cv_has_zd_printf for cross builds.
* Makefile.pre.in - Use BUILDPYTHON where applicable for cross builds.
* setup.py - For cross builds, pass cross toolchain info in python
environment.
* debian/rules - Build a build host python for use during a crossbuild
Adjust the configuration files & make environment
accordingl y
* Modules/Setup.dist - Drop system paths for zlib. - 67. By Peter Pearse
-
configure.in - Set buggygetaddrinfo for cross builds
- Add py_cv_has_zd_printf for cross builds
Makefile.pre.in - Use BUILDPYTHON where applicable for cross builds
setup.py - For cross builds, pass cross toolchain info in python environment
debian/rules - Build a build host python for use during a crossbuild.
- Adjust the configuration files & make environment accordingly.
- Compile static armel objects with -fPIC
+# For armel static objects which will be linked into shared modules HOST_ARCH) ,armel) EXTRAS_ STATIC = CFLAGS="-fPIC $(CONFIG_CFLAGS)"
+# must be built as PIC
+# Note use of CONFIG_CFLAGS to allow CFLAGS entries to be defined elsewhere
+ifeq ($(DEB_
+ CONFIG_
+endif
This is new - and rather surprising actually, as armel is not unique in having this requirement. Nor has python2.6 failed to build with the natty native toolchain. Please dig deeper to find out why this is failing.