[oe] [RFC] BogoFeeds reloaded

Paul Sokolovsky pmiscml at gmail.com
Wed Dec 19 11:32:08 UTC 2007


Hello openembedded-devel,

  After the ipk deploy dirs were split to be per-arch, there was a
long discussion that people want to use deploy dir as the feed
directly as it is awfully practical, and that they are not advised to
do that due to various second-rate issues, so such usage should be
called "bogofeed".

  This month should have most of it:
http://projects.linuxtogo.org/pipermail/openembedded-devel/2007-March/thread.html#1658


  There were even patches posted, but they all were questionable as
either they tried to make per-arch vs flat layout configurable, which
could lead to behavior discrepancies in the future, or tried to do
some post-processing, like copying hundreds of megabytes around, while
the very first argument while deploy dir layout could be changed under
people's feet was that even in the case of flat layout, some
post-processing was required to get production-quality feed, and that
postprocessing can be well made outside of OE (hello Makefiles).

  Then, it all died off, with different people adopting different
solutions well suiting exactly them, as usual.

  Well, using deploy dir as feed directly is still demolishfully
practical, and clearing off my tree for NY, I'd finally want to offer
the solution I've been using since then. Unlike solutions cited, it
doesn't try to warp world to get familiar flat look, instead it
rejoices 3D and sails on it, all in 6 lines, why I think it could
finally get into.

--- classes/image.bbclass       57e9ee07875e7423b6e199df2c69e55bdcdb8a69
+++ classes/image.bbclass       a5d924355c51d4ef706a5c60d520aa4dde64d764
@@ -125,6 +125,13 @@ insert_feed_uris () {
                # insert new feed-sources
                echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/ipkg/${feed_name}-feed.conf
        done
+
+       if [ -n "${FEED_LOCAL_BASE_URI}" ]; then
+           for arch in ${PACKAGE_ARCHS}
+           do
+               echo "src/gz local-$arch ${LOCAL_FEED_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/ipkg/local-$arch-feed.conf
+           done
+       fi
 }
 
So, you set FEED_LOCAL_BASE_URI to the root of deploy dir as exported
by Apache, and - voila - you get nice collection of per-arch local feeds in
the image.


-- 
Best regards,
 Paul                          mailto:pmiscml at gmail.com





More information about the Openembedded-devel mailing list