<?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>9073</bug_id>
          
          <creation_ts>2016-02-06 09:35:14 +0000</creation_ts>
          <short_desc>When local path for src/gz is provided and temp directory is also provided opkg creates mutiple copies of debian packages</short_desc>
          <delta_ts>2016-05-31 22:39:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>unspecified</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ankur Tank">artfri2</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58699</commentid>
    <comment_count>0</comment_count>
    <who name="Ankur Tank">artfri2</who>
    <bug_when>2016-02-06 09:35:14 +0000</bug_when>
    <thetext>We are using Am335x based custom board, with
-256MB RAM
-4 GB flash
/etc/opkg.conf file contents are as follows,

----------------------------
src/gz repo file:///home/ ---

dest ram /tmp 
lists_dir ext /var/opkg-lists 
option overlay_root /overlay
-------------------------------- 
opkg version : opkg version 0.1.8

For updating firmware in the device we are doing following,

1. Transfer debian(s) packages to /home folder through web-gui(web-server running on the board).
2. After debian(s) are transferred install it using opkg,

Now debian(s) are already present in the /home directory and its max size can be 500MB

if below command is used to install the downloaded debians,
opkg -f /etc/opkg.conf -d ram install packageName

package debian first copied to /tmp/opkg-xxx/ and extracted there and then installed


As /tmp is mounted on tmpfs (RAM=256MB) opkg-cl install fails when debian was bigger ~200MB.
 
so I used another approach of proving tmp_dir(/var/tmp --&gt; on flash) as follows,
opkg -f /etc/opkg.conf -d ram -t /var/tmp packageName


Now it works but problem is time to install the package is more, because

During installation again debian is copied from /home(eMMC with ext4 filesystem) to /var/tmp/opkg-xxx (eMMC with ext4 filesystem) and then extracted and then installation happens,

This process is increasing installation time.

Considering /home and /var/tmp being on the same filesystem if direct debian extraction happens to /var/tmp/opkg-xxxx it would save time to install debian using opkg.

This could be time saving feature when local path is used for src/gz installation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62553</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-05-31 22:39:15 +0000</bug_when>
    <thetext>Functionality already provided by cache_local_files config option.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>