Bug 11400 - rpmspec tool not properly relocated for native
Summary: rpmspec tool not properly relocated for native
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.3 M4
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-04-21 02:01 UTC by Paul Eggleton
Modified: 2017-05-02 06:46 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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