<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11400</bug_id>
          
          <creation_ts>2017-04-21 02:01:40 +0000</creation_ts>
          <short_desc>rpmspec tool not properly relocated for native</short_desc>
          <delta_ts>2017-05-02 06:46:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72749</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-04-21 02:01:40 +0000</bug_when>
    <thetext>I wanted to try using rpmspec to parse a spec file, but it looks as though the binary we build with rpm-native isn&apos;t being relocated properly as it is attempting to read from rpm-native&apos;s recipe sysroot which isn&apos;t expected to contain any files from rpm-native itself unless you explicitly populate them. Here&apos;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 -----------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72757</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-04-21 08:57:06 +0000</bug_when>
    <thetext>Patch sent for review:
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135919.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>