On Oct 16, 2013, at 1:17 PM, Glenn Schmottlach <gschmottl...@gmail.com> wrote:

> I have several questions regarding configuring the OPKG package management 
> support in my target image.
> 
> 1) I'm having difficulty getting the /var/lib/opkg directory to be created 
> and populated with a list of installed packages.
> 
> 2) I can't figure out (e.g. can find no documentation) that describe what the 
> "lists_dir ext /var/lib/opkg" option in the opkg.conf file does. Does this 
> point to where the list of installed packages should be found?
> 
> 3) What is the best/preferred approach (e.g. patch, *bbappend, new recipe, 
> etc...) to tailor or modify the opkg.conf file (specifically the opkg source 
> (src) paths) that are appended to /etc/opkg/opkg.conf file by the 
> opkg-collatoral.bb recipe.
> 
> This is what I have done to prepare my image to include package management:
> 
> 1) My image recipe inherits from core-image
> 
> 2) I've configured ONLINE_PACKAGE_MANAGEMENT = "full" and confirmed that is 
> it set correctly via "bitbake-env -r image-nitrogen6x 
> ONLINE_PACKAGE_MANAGEMENT"
> 
> 3) I've confirmed that IMAGE_FEATURES = "debug-tweaks package-management"
> 
> 4) PACKAGE_CLASSES = "package_ipk" is configured and I see packages in my 
> <project>/build/tmp/deploy/ipk directory
> 
> The target boots fine and I have the appropriate opkg applications installed 
> (e.g. opkg, opkg-cl, opkg-key). I also have the default /etc/opkg/opkg.conf 
> and /etc/opkg/arch.conf installed.
> 
> There is *no* /var/lib/opkg directory and thus "opkg-cl list-installed" 
> returns with an error because the "opkg" directory is missing. If I manually 
> create it the program run successfully but doesn't list anything (which is 
> obvious since it is empty).
> 
> I read this post
> https://lists.yoctoproject.org/pipermail/yocto/2013-June/016324.html
> 
> and confirmed that my setting are correct for IMAGE_FEATURES and 
> ROOT_POSTPROCESS_CMD (= "run_intercept_scriptlets; license_create_manifest;  
> ssh_allow_empty_password;  rootfs_update_timestamp ;")
> 
> Can anyone offer any suggestions, recommendations, or answers to my questions 
> above?
> 

something is not adding up.

either you have "remove_packaging_data_files" in ROOTFS_POSTPROCESS_COMMAND or 
'package-management' is missing in IMAGE_FEATURES

Can you paste output of bitbake -e <yourimage>
somewhere ?

> Thanks for you help . . .
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to