<?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>5666</bug_id>
          
          <creation_ts>2013-12-13 17:40:30 +0000</creation_ts>
          <short_desc>opkg doesn&apos;t use run-postinsts</short_desc>
          <delta_ts>2014-04-07 13:52:23 +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>deployment</component>
          <version>1.5</version>
          <rep_platform>All</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>enhancement</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>bluelightning</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>39400</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-12-13 17:40:30 +0000</bug_when>
    <thetext>run-postinsts isn&apos;t used in the case where opkg is the package manager and the package manager is to be installed on the host.

Given that this is introducing a different codepath when dpkg/rpm/opkg-without-package-manager all use run-postinsts, we should evaluate removing the first-boot-postinstall code from opkg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41015</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-03-10 07:20:33 +0000</bug_when>
    <thetext>Patches merged:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5159ddcb62682e1b7e63a20a9218ea96e3fe10a2
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cd1195b6fede2005506600bd431a66d4c454d4b9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41368</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-03-18 13:41:31 +0000</bug_when>
    <thetext>It seems that package-management is not present in IMAGE_FEATURES when building postinstalls.

Also this is related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=5972</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41383</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-03-18 16:06:59 +0000</bug_when>
    <thetext>I was testing IMAGE_FEATURES in run-postinsts recipe which is not quite right... All my tests were done with core-image-minimal which was hiding the problem because I was adding package-management to IMAGE_FEATURES in local.conf and was available to run-postinsts during compilation.

I have a fix already in tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41935</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-03-31 07:12:48 +0000</bug_when>
    <thetext>Fixed the old solution and created a more generic run-postinsts script:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cbefaa3e3160aed390722b301e909f72b22dbbb8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42338</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-04-07 13:52:23 +0000</bug_when>
    <thetext>Verified on master branch.
Commit ID:bb66113bde5361b869dce2bdaece5b938f077ea8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>