RobertCNelson / linux-dev

MIT License
151 stars 96 forks source link

Scripts do not detect build dependencies well on multiarch/ARM systems #4

Closed mtim closed 12 years ago

mtim commented 12 years ago

Self hosted build on Beagleboard xM for Beaglebone on Ubuntu 12.04 armhf does not pick up installed libraries.
Libraries are under multiarch path which is based on new/strange armhf names. Patch to follow (where did the pull request button go!)

RobertCNelson commented 12 years ago

Please be more specific, which scripts and which errors are currently being shown. (power is currently down at my hosting (home) so i'm unable to ssh into my arm farm for verification..)

Regards,

mtim commented 12 years ago

Patch included https://github.com/mtim/linux-dev/commit/9aa0278e11ee2ffd31d03aa7a7f62eac0434b033 I cannot seem to find how to send a pull request.

mtim commented 12 years ago

Does not detect installed packages. Libraries are in /usr/lib/arm-linux-gnueabihf

mtim commented 12 years ago

Pull request in Issue 4. (Interesting race condition given I tag code by issue number).

RobertCNelson commented 12 years ago

I don't think this fixes the armhf case..

What do you think of something like: https://gist.github.com/2595306

Then we can even cleanup/merge the -i686- -> ARCH="i386" check in the case..

The only one left would be the freebsd case: http://packages.debian.org/search?suite=wheezy&arch=any&mode=exactfilename&searchon=contents&keywords=libncurses.so

Regards,

RobertCNelson commented 12 years ago

Laughs, or this thing of beauty:

if [ ! -f /usr/lib/dpkg-architecture -qDEB_HOST_MULTIARCH/libncurses.so ] ; then

No case, no arch check, it just works every MULTIARCH, (wheezy,oneiric) just need dpkg-dev installed.. http://packages.debian.org/squeeze/dpkg-dev