Re: [SDK] including kernel devsrc to the SDK failes

Måns Zigher <mans.zigher@...>

So it looks like the number of /bin/awk have increased so the patch will fix one problem but there is more to fix. I have a "workaround" even though I am not so sure it is a workaround or not. The problem is fixed adding to kernel-devsrc.bbappend

do_install_append() {
# This fixes the rpm dependency failure on install of kernel-devsrc depending on /bin/awk
cd ${D} || true
for i in $(grep -srI "!/bin/awk" | cut -d":" -f1); do
sed -i -e "s#!/bin/awk#!/usr/bin/env awk#g" $i

The original solution can be found at

The best solution might be to add kernel patches but since the number of /bin/awk have increased I think that this is fine in the kernel universe but a problem in poky universe. So by adding it to kernel-devsrc it will make sure that when the kernel get's tainted in the future it will not break the rpm build. This is a "bug" only when using rpm ipk will not detect it as a problem.

Måns Zigher 

Den tors 25 okt. 2018 kl 13:19 skrev Måns Zigher <mans.zigher@...>:


I am trying to add the kernel devsrc to the SDK but I am getting the following error

Problem: conflicting requests                                        
  - nothing provides /bin/awk needed by kernel-devsrc-1.0-r0.imx8mqevk

I have applied the following patch to try and fix this problem.

I have verified that it was applied and run kernel-devsrc works. The error is from do_populate_sdk and I am suspecting that the problem is related to me using rpm. I believe rpm might be to smart in this case detecting the dependency and resulting dnf from failing when running the task do_populate_sdk. Any suggestion on how to get forward on this error. I would like to run dnf manually to check any dependency of the kernel-devsrc rpm package but cannot figure out how.

Måns Zigher

Join to automatically receive all group messages.