From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] rootfs.py: fix PRE/POSTPROCESS_COMMANDS for rpm and deb
Date: Wed, 24 Sep 2014 09:30:35 +0800 [thread overview]
Message-ID: <54221EBB.8070606@windriver.com> (raw)
In-Reply-To: <4e8cdaffb79ea56a3644ede8af0cacbefd167197.1410257258.git.liezhi.yang@windriver.com>
Ping, I think that we need it since it is a function lost.
// Robert
On 09/09/2014 06:16 PM, Robert Yang wrote:
> The rpm didn't run RPM_PREPROCESS_COMMANDS or RPM_POSTPROCESS_COMMANDS,
> the similar to deb, this patch fix the problem.
>
> And fix a typo:
> DEB_POSTPROCESS_COMMAND -> DEB_POSTPROCESS_COMMANDS
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/lib/oe/rootfs.py | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> index 0424a01..ed2af80 100644
> --- a/meta/lib/oe/rootfs.py
> +++ b/meta/lib/oe/rootfs.py
> @@ -295,10 +295,14 @@ class RpmRootfs(Rootfs):
>
> def _create(self):
> pkgs_to_install = self.manifest.parse_initial_manifest()
> + rpm_pre_process_cmds = self.d.getVar('RPM_PREPROCESS_COMMANDS', True)
> + rpm_post_process_cmds = self.d.getVar('RPM_POSTPROCESS_COMMANDS', True)
>
> # update PM index files
> self.pm.write_index()
>
> + execute_pre_post_process(self.d, rpm_pre_process_cmds)
> +
> self.pm.dump_all_available_pkgs()
>
> if self.inc_rpm_image_gen == "1":
> @@ -320,6 +324,8 @@ class RpmRootfs(Rootfs):
>
> self.pm.install_complementary()
>
> + execute_pre_post_process(self.d, rpm_post_process_cmds)
> +
> self._log_check()
>
> if self.inc_rpm_image_gen == "1":
> @@ -401,6 +407,8 @@ class DpkgRootfs(Rootfs):
>
> def _create(self):
> pkgs_to_install = self.manifest.parse_initial_manifest()
> + deb_pre_process_cmds = self.d.getVar('DEB_PREPROCESS_COMMANDS', True)
> + deb_post_process_cmds = self.d.getVar('DEB_POSTPROCESS_COMMANDS', True)
>
> alt_dir = self.d.expand("${IMAGE_ROOTFS}/var/lib/dpkg/alternatives")
> bb.utils.mkdirhier(alt_dir)
> @@ -408,6 +416,8 @@ class DpkgRootfs(Rootfs):
> # update PM index files
> self.pm.write_index()
>
> + execute_pre_post_process(self.d, deb_pre_process_cmds)
> +
> self.pm.update()
>
> for pkg_type in self.install_order:
> @@ -423,9 +433,11 @@ class DpkgRootfs(Rootfs):
>
> self.pm.run_pre_post_installs()
>
> + execute_pre_post_process(self.d, deb_post_process_cmds)
> +
> @staticmethod
> def _depends_list():
> - return ['DEPLOY_DIR_DEB', 'DEB_SDK_ARCH', 'APTCONF_TARGET', 'APT_ARGS', 'DPKG_ARCH', 'DEB_PREPROCESS_COMMANDS', 'DEB_POSTPROCESS_COMMAND']
> + return ['DEPLOY_DIR_DEB', 'DEB_SDK_ARCH', 'APTCONF_TARGET', 'APT_ARGS', 'DPKG_ARCH', 'DEB_PREPROCESS_COMMANDS', 'DEB_POSTPROCESS_COMMANDS']
>
> def _get_delayed_postinsts(self):
> pkg_list = []
>
next prev parent reply other threads:[~2014-09-24 1:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 10:16 [PATCH 0/1] rootfs.py: fix PRE/POSTPROCESS_COMMANDS for rpm and deb Robert Yang
2014-09-09 10:16 ` [PATCH 1/1] " Robert Yang
2014-09-24 1:30 ` Robert Yang [this message]
2014-09-24 10:46 ` Burton, Ross
2014-09-24 14:07 ` Robert Yang
2014-10-20 6:26 ` Robert Yang
2014-10-20 8:05 ` Laurentiu Palcu
2014-10-20 8:11 ` Laurentiu Palcu
-- strict thread matches above, loose matches on Subject: below --
2015-07-28 3:10 [PATCH 0/1] " Robert Yang
2015-07-28 3:10 ` [PATCH 1/1] " Robert Yang
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=54221EBB.8070606@windriver.com \
--to=liezhi.yang@windriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.