karo-electronics / meta-karo-distro

Distro Layer for Ka-Ro Yocto BSP for Ka-Ro TX and QS CoMs
https://github.com/karo-electronics/karo-bsp
2 stars 2 forks source link

wpa-supplicant installs files in /run, but it is expected to be empty [empty-dirs] #3

Open leoguiders opened 2 years ago

leoguiders commented 2 years ago

recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend adds the installation of the /run/wpa_supplicant directory which leads to an error during (kirkstone) build:

ERROR: wpa-supplicant-2.10-r0 do_package_qa: QA Issue: wpa-supplicant installs files in /run, but it is expected to be empty [empty-dirs] ERROR: wpa-supplicant-2.10-r0 do_package_qa: Fatal QA errors were found, failing task. ERROR: Logfile of failure stored in: /yocto/tmp/work/armv8a-poky-linux/wpa-supplicant/2.10-r0/temp/log.do_package_qa.4488 ERROR: Task (/yocto/sources/poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb:do_package_qa) failed with exit code '1'

The build runs with the line commented out and when checking out a system running the hardknott release it looks like /run/wpa-supplicant/ is not used but /var/run/wpa-supplicant

EDIT: /var/run is a link to /run so this should not make a difference

Is it safe to remove the line that installs /run/wpa_supplicant ?

leoguiders commented 2 years ago

Disabling the empty-dirs check does seem to fix the problem:

INSANE_SKIP:${PN} += "empty-dirs"

theonlymb commented 2 years ago

Thanks for the hint. We will integrate the "empty-dirs" check fix in upcoming release.