Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] package_rpm.bbclass: fix incremental rpm image generation
@ 2012-09-05 14:54 Robert Yang
  2012-09-05 14:54 ` [PATCH 1/1] " Robert Yang
  2012-09-10 15:40 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-09-05 14:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

Test info:
# With INC_RPM_IMAGE_GEN = "1"
$ bitbake core-image-sato-sdk core-image-sato core-image-minimal \
	package-index meta-toolchain-sdk
# Build 3 times.
#
# Modified some packages and rebuild it, the incremental image
# generation works well.

# Without INC_RPM_IMAGE_GEN = "1"
$ bitbake core-image-sato-sdk core-image-sato core-image-minimal \
	package-index meta-toolchain-sdk

// Robert

The following changes since commit 99c85ba93075a1aff789cafabbacf42e6a93bd32:

  build-appliance-image: Update to latest poky master (2012-09-04 18:04:40 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/rpm_inc
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/rpm_inc

Robert Yang (1):
  package_rpm.bbclass: fix incremental rpm image generation

 meta/classes/package_rpm.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] package_rpm.bbclass: fix incremental rpm image generation
  2012-09-05 14:54 [PATCH 0/1] package_rpm.bbclass: fix incremental rpm image generation Robert Yang
@ 2012-09-05 14:54 ` Robert Yang
  2012-09-10 15:40 ` [PATCH 0/1] " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-09-05 14:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

* Check ${target_rootfs}/etc/passwd rather than
  ${target_rootfs}${rpmlibdir} to make sure that it has been previously
  installed.

* Remove the "--nodeps" when incremental image generation, it should
  take care of the dependencies. Still use "--replacefiles --replacepkgs" in
  case there are conflicts.

[YOCTO #3047]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/package_rpm.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 742f292..b2b8cee 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -191,7 +191,7 @@ rpm_update_pkg () {
 
         # Attempt to install the incremental pkgs
         if [ -s $installdir/incremental.manifest ]; then
-            rpm_common_comand --nodeps --replacefiles --replacepkgs \
+            rpm_common_comand --replacefiles --replacepkgs \
                -Uvh $installdir/incremental.manifest
         fi
     else
@@ -517,7 +517,7 @@ EOF
 			${target_rootfs}/install/original_solution_sorted.manifest > \
 			${target_rootfs}/install/diff.manifest
 		mv ${target_rootfs}/install/diff.manifest ${target_rootfs}/install/total_solution.manifest
-	elif [ "${INC_RPM_IMAGE_GEN}" = "1" -a -d "${target_rootfs}${rpmlibdir}" ]; then
+	elif [ "${INC_RPM_IMAGE_GEN}" = "1" -a -f "${target_rootfs}/etc/passwd" ]; then
 		echo "Skipping pre install due to existing image"
 	else
 		# RPM is special. It can't handle dependencies and preinstall scripts correctly. Its
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] package_rpm.bbclass: fix incremental rpm image generation
  2012-09-05 14:54 [PATCH 0/1] package_rpm.bbclass: fix incremental rpm image generation Robert Yang
  2012-09-05 14:54 ` [PATCH 1/1] " Robert Yang
@ 2012-09-10 15:40 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-09-10 15:40 UTC (permalink / raw)
  To: Robert Yang; +Cc: Zhenfeng.Zhao, openembedded-core

On 09/05/2012 07:54 AM, Robert Yang wrote:
> Test info:
> # With INC_RPM_IMAGE_GEN = "1"
> $ bitbake core-image-sato-sdk core-image-sato core-image-minimal \
> 	package-index meta-toolchain-sdk
> # Build 3 times.
> #
> # Modified some packages and rebuild it, the incremental image
> # generation works well.
>
> # Without INC_RPM_IMAGE_GEN = "1"
> $ bitbake core-image-sato-sdk core-image-sato core-image-minimal \
> 	package-index meta-toolchain-sdk
>
> // Robert
>
> The following changes since commit 99c85ba93075a1aff789cafabbacf42e6a93bd32:
>
>    build-appliance-image: Update to latest poky master (2012-09-04 18:04:40 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib robert/rpm_inc
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/rpm_inc
>
> Robert Yang (1):
>    package_rpm.bbclass: fix incremental rpm image generation
>
>   meta/classes/package_rpm.bbclass |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
Merged into OE-Core

Thanks
	Sau!

>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-10 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 14:54 [PATCH 0/1] package_rpm.bbclass: fix incremental rpm image generation Robert Yang
2012-09-05 14:54 ` [PATCH 1/1] " Robert Yang
2012-09-10 15:40 ` [PATCH 0/1] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox