← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 876101] Re: Cross compilation fails

 

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

** Changed in: mythtv (Ubuntu)
   Importance: Undecided => Wishlist

-- 
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:
  Triaged

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


References