Cross compilation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I just tried to cross-compile mythtv-frontend for the "armhf" architecture (via "dpkg-buildpackage -b -aarmhf"). Sadly the resulting package contained i386 binaries.
The problem seems to be caused by the following lines in debian/rules:
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifeq "$(DEB_BUILD_ARCH)" "i386"
endif
This code is doomed to fail under any cross-compile situation since it uses the host architecture (not the target architecture).
Instead of using "dpkg-architecture" it would be probably better to use the environment variable "DEB_BUILD_ARCH". But I don't know if this would be the proper approach.
Please ignore this bug report if cross compilation is not supposed to be a goal for Ubuntu packages.
cheers,
Lars
Build environment:
- Ubuntu Oneiric on i386
- mythtv 0.24.0+
It's not currently a goal, but that doesn't mean we're not open to fixing the packages such that it could work for you. Feel free to propose a patch for inclusion. As long as it doesn't break building for all the architectures that we currently support on the Ubuntu archive, I don't see why we couldn't consider it.