Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto fido ->morty update dnsmasq NO GNU_HASH

Tags:

So, I was given the task to upgrade our yocto based system from fido to morty. I have very little experience with yocto, I have been struggling with it and trying to understand it for almost a week now. I have managed to fix some issues, but now I'm facing a problem when trying to build the image:

dnsmasq-2.68-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/oe/.../dnsmasq/2.68-r0/packages-split/dnsmasq/usr/bin/dnsmasq'

I have looked online for a solution and I did find a way to suppress the error by adding:

INSANE_SKIP_${PN} = "ldflags"

in the recipe.

However I don't believe this is the 'correct' way to do it, and I had it on another recipe, that had the same problem. I also found that someone had similar issue and rearranging packages did the trick, but I don't know how to do that.

So my question is: Is it bad idea to just add the insane_skip to all recipes that have this issue and if so how can it be fixed?

like image 591
Ou Tsei Avatar asked Jun 12 '17 08:06

Ou Tsei


1 Answers

You'd likely benefit from having a look at the dnsmasq recipe in meta-oe.

Your problem is that dnsmasq doesn't respect the LDFLAGS variable out of the box. Try adding:

EXTRA_OEMAKE_append = " 'LDFLAGS=${LDFLAGS}'"

to your recipe. (See the recipe in the linked URL).

like image 132
Anders Avatar answered Oct 04 '22 16:10

Anders