← Back to team overview

kernel-packages team mailing list archive

[Bug 1564208] Re: fix for linux_tools when cross-compiling

 

** Tags added: patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1564208

Title:
  fix for linux_tools when cross-compiling

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  When cross-compiling with do_tools,  dh_shlibdeps needs to be told to
  look in /usr/<target>/lib otherwise it will fail the build.

  I am cross-building in ubuntu-xenial.git (master) on x86_64 for an
  armhf target:

           archtriple=arm-linux-gnueabihf
           flavour=generic
           dpkg-architecture -t $archtriple -c fakeroot \
                  debian/rules \
                  binary-$flavour binary-perarch \
                  AUTOBUILD=true \
                  abi_suffix= \
                  do_linux_tools=true \
                  do_tools=true \
                  do_tools_usbip=false \
                  do_tools_cpupower=false \
                  do_tools_perf=true \
                  do_tools_x86=false

  This will fail later with errors like:
    dh_shlibdeps -plinux-headers-4.4.0-15-generic
    arm-linux-gnueabihf-objdump: .../asn1_compiler: File format not recognized
    arm-linux-gnueabihf-objdump: .../extract-cert: File format not recognized

  I have had success with a fix that adds a -l option to dh_shlibdeps as
  per manual pages. (See attached patch)

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


References