Cross compilation fails

Bug #876101 reported by Lars Kruse
6
This bug affects 1 person
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"
         MYTHTV_CONFIGURE_OPTS += --cpu=i686 --enable-mmx --disable-xvmc --enable-vdpau
 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+fixes.20110908.1de0431-0ubuntu1

Revision history for this message
Mario Limonciello (superm1) wrote :

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.

Changed in mythtv (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.