← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 876101] [NEW] Cross compilation fails

 

Public bug reported:

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

** Affects: mythtv (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in Ubuntu.
https://bugs.launchpad.net/bugs/876101

Title:
  Cross compilation fails

Status in “mythtv” package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/876101/+subscriptions


Follow ups

References