[OE-core] [PATCH 1/2] rootfs.py: Respect OPKGLIBDIR variable

Martin Jansa martin.jansa at gmail.com
Thu Mar 23 12:21:00 UTC 2017


On Thu, Mar 23, 2017 at 11:34:22AM +0100, Martin Jansa wrote:
> * when OPKGLIBDIR doesn't have the default /var/lib value it will
>   silently fail to copy package database from normal rootfs to debugfs
>   rootfs and then when trying to install *-dbg complimentary packages
>   it won't install anything, because installed_pkgs.txt file generated
>   from debugfs is empty
> 
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  meta/lib/oe/rootfs.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> index 5e1c09762a..068b784c51 100644
> --- a/meta/lib/oe/rootfs.py
> +++ b/meta/lib/oe/rootfs.py
> @@ -946,7 +946,9 @@ class OpkgRootfs(DpkgOpkgRootfs):
>          if self.progress_reporter:
>              self.progress_reporter.next_stage()
>  
> -        self._setup_dbg_rootfs(['/var/lib/opkg'])
> +        opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True)

I can drop True here, v2 coming.

> +        opkg_dir = os.path.join(opkg_lib_dir, 'opkg')
> +        self._setup_dbg_rootfs([opkg_dir])
>  
>          execute_pre_post_process(self.d, opkg_post_process_cmds)
>  
> -- 
> 2.12.0
> 

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170323/cc457daa/attachment-0002.sig>


More information about the Openembedded-core mailing list