From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/2] rootfs.py: Respect OPKGLIBDIR variable
Date: Thu, 23 Mar 2017 13:21:00 +0100 [thread overview]
Message-ID: <20170323122100.GC3293@jama> (raw)
In-Reply-To: <3d7e2a0b6f99a996eb981c0fb64a9954247002d2.1490265213.git.Martin.Jansa@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]
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@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@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
next prev parent reply other threads:[~2017-03-23 12:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-23 10:34 [PATCH 0/2] Debugfs fixes with different than default OPKGLIBDIR Martin Jansa
2017-03-23 10:34 ` [PATCH 1/2] rootfs.py: Respect OPKGLIBDIR variable Martin Jansa
2017-03-23 12:21 ` Martin Jansa [this message]
[not found] ` <cover.1490271643.git.Martin.Jansa@gmail.com>
2017-03-23 12:21 ` [PATCHv2 " Martin Jansa
2017-03-23 10:34 ` [PATCH 2/2] package_manager.py: respect OPKGLIBDIR Martin Jansa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170323122100.GC3293@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox