Bug 11400

Summary: rpmspec tool not properly relocated for native
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2017-04-21 02:01:40 UTC
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 -----------------
Comment 1 Alexander Kanavin 2017-04-21 08:57:06 UTC
Patch sent for review:
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135919.html