I wanted to try using rpmspec to parse a spec file, but it looks as though the binary we build with rpm-native isn't being relocated properly as it is attempting to read from rpm-native's recipe sysroot which isn't expected to contain any files from rpm-native itself unless you explicitly populate them. Here's some diagnostics from within a devshell for modutils-initscripts (a recipe I selected at random which happened to have rpmspec in its sysroot). ----------------- snip ----------------- root@minos:~/poky/poky/build/tmp/work/core2-64-poky-linux/modutils-initscripts/1.0-r7# which rpm /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/modutils-initscripts/1.0-r7/recipe-sysroot-native/usr/bin/rpm root@minos:~/poky/poky/build/tmp/work/core2-64-poky-linux/modutils-initscripts/1.0-r7# which rpmspec /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/modutils-initscripts/1.0-r7/recipe-sysroot-native/usr/bin/rpmspec root@minos:~/poky/poky/build/tmp/work/core2-64-poky-linux/modutils-initscripts/1.0-r7# rpmspec error: Unable to open /home/paul/poky/poky/build/tmp/work/x86_64-linux/rpm-native/1_4.13.90+gitAUTOINC+a8e51b3bb0-r0/recipe-sysroot-native/usr/lib/rpm/rpmrc for reading: No such file or directory. ----------------- snip -----------------
Patch sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135919.html