<?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>5408</bug_id>
          
          <creation_ts>2013-10-29 11:53:08 +0000</creation_ts>
          <short_desc>Runtime package management section refers to DISTRO_FEED_URI variable</short_desc>
          <delta_ts>2014-12-26 14:46:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>1.5.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=2dfaa88ae4760f86dbbdc8b58de7feba25a8014a</bug_file_loc>
          <status_whiteboard>05 November 2013: Docs updated</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Trevor Woerner">trevor.woerner</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>srifenbark</cc>
    
    <cc>twoerner</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38245</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-29 11:53:08 +0000</bug_when>
    <thetext>Section 5.10.5.3.2 refers to setting a DISTRO_FEED_URI variable, however this variable is not used in OE-Core (it is used by meta-oe&apos;s distro-feed-configs recipe which is outside the scope of the Development Manual). This should be replaced with IPK_FEED_URIS which is valid for OE-Core.

(There may be some changes coming in this area in 1.6, see bug 5407 - however, the docs need to be correct in the mean time.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38248</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-29 13:23:33 +0000</bug_when>
    <thetext>Clarification - this section does actually call out distro-feed-configs from meta-oe, so it&apos;s not technically incorrect, but I&apos;m not sure we should be doing that in the manual. People shouldn&apos;t need to be adding meta-oe just to get this basic functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38286</commentid>
    <comment_count>2</comment_count>
    <who name="Trevor Woerner">trevor.woerner</who>
    <bug_when>2013-10-30 00:54:21 +0000</bug_when>
    <thetext>I wanted to experiment with this before submitting any update for the manual
and I can&apos;t seem to get it working.

I updated my conf/local.conf as follows:
1) added &quot;package-management&quot; to EXTRA_IMAGE_FEATURES
2) added the following lines:
IPK_FEED_URIS = &quot;\
        all##http://192.168.7.1/BOARD-dir/all \
        armv5##http://192.168.7.1/BOARD-dir/armv5 \
        &quot;

I did a build (core-image-minimal) and even checked the log file
(tmp/work/qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs)
and found:
    Added all feed with URL http://192.168.7.1/BOARD-dir/all
    Added armv5 feed with URL http://192.168.7.1/BOARD-dir/armv5

But when I run the image and look in /etc/opkg I don&apos;t see any changes.

From what I can understand from the bbclass it looks like this code is
making updates to /etc/opkg/opkg.conf (?). I would have expected it to
make changes to base-feeds.conf.

Any idea what I&apos;m doing wrong?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38325</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Woerner">trevor.woerner</who>
    <bug_when>2013-10-30 22:55:40 +0000</bug_when>
    <thetext>The more I play with this, the more I can&apos;t help think the following
is needed. With this change the target ends up with a non-zero-sized
/etc/opkg/base-feeds.conf which I can then simply do &quot;$opkg update&quot;
and refresh the package repository.

diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index b0805dc..1537af4 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -159,7 +159,7 @@ ipk_insert_feed_uris () {
 echo &quot;Added $feed_name feed with URL $feed_uri&quot;
 
 # insert new feed-sources
-echo &quot;src/gz $feed_name $feed_uri&quot; &gt;&gt; ${IPKGCONF_TARGET}
+echo &quot;src/gz $feed_name $feed_uri&quot; &gt;&gt; ${IMAGE_ROOTFS}/${sysconfdir}/opkg/base-feeds.conf
 done
 
 # Allow to use package deploy directory contents as quick devel-testing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38440</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Woerner">trevor.woerner</who>
    <bug_when>2013-11-02 07:27:29 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; This should be replaced with IPK_FEED_URIS which is valid for
&gt; OE-Core.

Defining IPK_FEED_URIS simply causes some modifications to be made to
${WORKDIR}/opkg.conf. Defining FEED_DEPLOYDIR_BASE_URI, however, causes
files to be created on the target for opkg to use.

Therefore I assume this is what you mean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38442</commentid>
    <comment_count>5</comment_count>
    <who name="Trevor Woerner">trevor.woerner</who>
    <bug_when>2013-11-02 20:16:21 +0000</bug_when>
    <thetext>I have provided the a patch for consideration:
https://lists.yoctoproject.org/pipermail/yocto/2013-November/019177.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38564</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-11-05 17:43:11 +0000</bug_when>
    <thetext>Hi, 

I applied Trevor&apos;s patch to the development manual.  You can see the updated section at http://www.yoctoproject-org/docs/1.6/dev-manual/dev-manual.html#runtime-package-management-target-ipk.

I pushed the fix to both the 1.6 and the dora (1.5.1) branches.  However, the updated text is not available there yet though as I don&apos;t rebuild the 1.5.1 doc set until the end of the day.

Marking the docs as &quot;Done&quot;. 

thanks, 
Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>