Skip to contentSkip to conversation

Fix runtime error with generated OPKG feeds

RFC PATCH New Joshua Lock 1 participant 2 messages Aug 11, 2015

lore
Share & tools
lore
#0 lore raw

cover Fix runtime error with generated OPKG feeds

When playing around with automatically generated opkg feeds I noticed that we're inserting a feed pointing to the root of ${DEPLOY_DIR}/ipk - however for my builds that directory doesn't include a Packages.gz resulting in opkg printing an error.

The following patch removes the code which inserts that feed entry.

Cheers,

Joshua

The following changes since commit 5094354a2811825e6d60963f03959daa349cab23:

bind: upgrade to 9.10.2-p3 (2015-08-09 15:14:32 -0700)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib joshuagl/opkg
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=joshuagl/opkg

Joshua Lock (1):
lib/oe/package_manager: fix opkg feed generation

 meta/lib/oe/package_manager.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
Signature · 1 line
2.1.4
#1 lore raw

RFC PATCH 1/1 lib/oe/package_manager: fix opkg feed generation

The insert_feed_uris() method of OpkgPM was creating an initial entry in the feeds list which pointed to the root of the ipk directory, however the on-device package manager can't consume this feed resulting in runtime errors - therefore we remove the code to generate that initial feed uri.

---
 meta/lib/oe/package_manager.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta/lib/oe/package_manager.py +1 -4
index 55b8ab0..2ab1d78 100644
@@ -1343,13 +1343,10 @@ class OpkgPM(PackageManager):
         with open(rootfs_config, "w+") as config_file:
             uri_iterator = 0
             for uri in self.feed_uris.split():
-                config_file.write("src/gz url-%d %s/ipk\n" %
-                                  (uri_iterator, uri))
-
                 for arch in self.pkg_archs.split():
                     if not os.path.exists(os.path.join(self.deploy_dir, arch)):
                         continue
-                    bb.note('Note: adding opkg channel url-%s-%d (%s)' %
+                    bb.note('Note: adding opkg feed url-%s-%d (%s)' %
                         (arch, uri_iterator, uri))
 
                     config_file.write("src/gz uri-%s-%d %s/ipk/%s\n" %
Signature · 1 line
2.1.4