<?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>4814</bug_id>
          
          <creation_ts>2013-07-04 11:50:55 +0000</creation_ts>
          <short_desc>rpm is broken on 1.5 M2 RC1 lsb images</short_desc>
          <delta_ts>2013-10-01 14:27:04 +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>devtools / tool chain</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</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>34327</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-04 11:50:55 +0000</bug_when>
    <thetext>master:eaa5df34af42b6a37f6506847d0f3ef6ba0d298a

1) boot qemux86-64 core-image-lsb-sdk image
2) issue commands:
&quot;
root@qemux86-64:~# rpm -e mc
error: package mc is not installed
root@qemux86-64:~# which mc
/usr/bin/mc
root@qemux86-64:~# rpm -qa
root@qemux86-64:~#
&quot;

Notice: - mc is not detected as installed even though it is on the image and works
- &apos;rpm -qa&apos; has no output

NOTE: Tested for BSP and QEMU targets on core-image-lsb-sdk images (ex: qemux86-64, jasperforest, sugarbay)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34417</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-07-09 07:54:46 +0000</bug_when>
    <thetext>I think this should be assigned to another person since Bogdan is no longer working on the Yocto project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34494</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-07-11 02:52:19 +0000</bug_when>
    <thetext>I attempted to reproduce this issue with core-image-basic.  The package manager and related files were there as expected in my configuration.

Looking at the code, if the system is configured without &apos;package-management&apos; enabled in IMAGES_FEATURES, then the RPM database and related smart database will be erased.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34511</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-11 11:53:11 +0000</bug_when>
    <thetext>Previously, only core-image-minimal will remove he packaging data files.

Now the logic has changed, if package-management is not in &apos;IMAGE_FEATURES&apos;, the packaging data files will be deleted.

commit 1ce182e79e6c588de4ca372587c0797bc0cb7e80
Author: Laurentiu Palcu &lt;laurentiu.palcu@intel.com&gt;
Date:   Tue May 21 14:27:49 2013 +0300

    image.bbclass: remove unneeded files from the image
    
    This patch creates a new function, rootfs_remove_unneeded(), that will
    be called after rootfs_*_do_rootfs is called and which will handle
    delayed postinstalls in a generic fashion, for all backends in the same
    way.


Adding &apos;package-management&apos; to core-image-lsb will do the fix.

LSB does require a package manager available.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34625</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-17 04:57:17 +0000</bug_when>
    <thetext>merged into poky/master: a8cd0fcf05e8eaf2af3d2346b5b46ac9f2d8dadc

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=c66228663177896458488eb058af4cd17a272424</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37422</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 14:27:04 +0000</bug_when>
    <thetext>This issue is not present in latest 1.5 M5 RC5 build. Setting to VERIFIED for:
poky master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>