Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] V2 opkg 0.1.8: respect to the arch when choose the alternatives
@ 2012-05-31 14:13 Robert Yang
  2012-05-31 14:13 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Yang @ 2012-05-31 14:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

* Changes of V2:
  - Add the test plan and more explanations in the cover letter as Saul suggested.

* Test info (PACKAGE_CLASSES = "package_ipk")
  - Test to make sure the bug has been fixed
    1) bitbake core-image-sato-sdk with MACHINE=qemux86
    2) bitbake core-image-sato with MACHINE=crownbay

    === Test result:
    Without this patch, the xserver-xorg-*_1.11.2-r3_i586.ipk would be
    install to the crownbay's image, this is incorrect since what
    crownbay needs are xserver-xorg*_1.9.3-r1.core2.ipk, the core2 pkgs
    would be installed correctly on crownbay's image. And check
    tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/temp/log.do_rootfs,
    no i586 pkgs should be installed.

  - Test the upgrade (with nothing changed in the feeds)
    # opkg update
    1) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs update

    # opkg upgrade
    2) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs upgrade

    === Test result:
    Nothing to do though there are xserver-xorg-*_1.11.2-r3_i586.ipk
    which have a higher version than the installed
    xserver-xorg*_1.9.3-r1.core2.ipk, becuase the priority of
    i586 is lower than core2 in core2's image.

  - Test the installation
    # opkg remove
    1) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs \
       remove --force-depends xserver-xorg

    # opkg install
    2) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs \
       install xserver-xorg

    === Test result:
    The xserver-xorg_1.9.3-r1_core2.ipk will be installed, the
    reason is the same as the previous one

* More explanations

  This patch only affects it's good_pkg_by_name behaviour, Here are its
  selecting priorities: (From high to low)
  
  1, The pkg set manually
  2, The good_pkg_by_name
  3, The held pkg
  4, Choose the higher arch one
  5, Use the latest one
  
  If of them is matched, then the left ones would be ignored, for
  example, if the first one matches, others would be ignored.
      
  This patch affects the second one(good_by_pkg_name), what it did in
  the past: If there are both core2/pkg-1.0.apk and i586/pkg-1.1.apk
  match, it would use i586/pkg-1.1.apk since its version is higher and
  ignore the arch priorities, but we have set the arch priorities in
  opkg.conf clearly:
  
  arch i586 31
  arch core2 41
  
  What we need is core2/pkg-1.0.apk since we may set the specific pkg
  version for the board (for example, the xorg-server for crownbay), let
  it respect to the arch priorities in such a case.

* Both rpm(fixed) and ipk have the similar issue, dpkg is OK.

* TODO
  - In the following upgrade scene (with pkg changed in the feeds)
    # opkg remove
    1) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs \
       remove --force-depends xserver-xorg
    # Remove xserver-xorg_1.9.3-r1_core2.ipk to make
    # xserver-xorg_1.11.2-r3_i586.ipk install to the image.
    2) mv tmp/deploy/ipk/core2/xserver-xorg_1.9.3-r1_core2.ipk tmp/bak/
    # Run opkg-make-index to re-create the feeds
    3) ./tmp/sysroots/i686-linux/usr/bin/opkg-make-index \
       -r tmp/deploy/ipk/core2/Packages \
       -p tmp/deploy/ipk/core2/Packages \
       -m tmp/deploy/ipk/core2
    # Install xserver-xorg_1.11.2-r3_i586.ipk
    4) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs \
       install xserver-xorg
    # Add xserver-xorg_1.9.3-r1_core2.ipk back to the feeds
    5) mv tmp/bak/xserver-xorg_1.9.3-r1_core2.ipk tmp/deploy/ipk/core2/
    # Run opkg-make-index to re-create the feeds
    6) ./tmp/sysroots/i686-linux/usr/bin/opkg-make-index \
       -r tmp/deploy/ipk/core2/Packages \
       -p tmp/deploy/ipk/core2/Packages \
       -m tmp/deploy/ipk/core2
    # opkg update
    7) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs update
    # opkg upgrade
    8) ./tmp/sysroots/i686-linux/usr/bin/opkg-cl -f \
       /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/opkg.conf \
       -o /path/to/tmp/work/crownbay-poky-linux/core-image-sato-1.0-r0/rootfs upgrade

    Nothing will be done currently, since the opkg_upgrade.c will check
    the version again before really download the pkg and upgrade it,
    I'm not sure whether this is what we need, if we think that it is
    better, I'd like to work on it in another patch. There is another
    way to achieve:
    opkg install --force-downgrade xserver-xorg

    Then the xserver-xorg_1.9.3-r1_core2.ipk will be installed.

// Robert

The following changes since commit 363424cdc78cafa278008f973c2b4288297ebf8c:

  image.bbclass: Ensure ${S} is cleaned at the start of rootfs generation (2012-05-25 11:28:00 +0100)

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

Robert Yang (1):
  opkg 0.1.8: respect to the arch when choose the alternatives

 .../opkg/opkg/respect-to-arch.patch                |   47 ++++++++++++++++++++
 meta/recipes-devtools/opkg/opkg_0.1.8.bb           |    3 +-
 meta/recipes-devtools/opkg/opkg_svn.bb             |    3 +-
 3 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/opkg/opkg/respect-to-arch.patch




^ permalink raw reply	[flat|nested] 26+ messages in thread
* [PATCH 0/1] opkg 0.1.8: respect to the arch when choose the alternatives
@ 2012-05-25 10:02 Robert Yang
  2012-05-25 10:02 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 26+ messages in thread
From: Robert Yang @ 2012-05-25 10:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

The following changes since commit 6558abda67956e4fab1304b0cdf03c65f18fabd5:

  qemu: disable vnc-jpeg compression (2012-05-24 08:53:57 +0100)

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

Robert Yang (1):
  opkg 0.1.8: respect to the arch when choose the alternatives

 .../opkg/opkg/respect-to-arch.patch                |   47 ++++++++++++++++++++
 meta/recipes-devtools/opkg/opkg_0.1.8.bb           |    1 +
 meta/recipes-devtools/opkg/opkg_svn.bb             |    1 +
 3 files changed, 49 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-devtools/opkg/opkg/respect-to-arch.patch




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

end of thread, other threads:[~2012-06-04 14:49 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 14:13 [PATCH 0/1] V2 opkg 0.1.8: respect to the arch when choose the alternatives Robert Yang
2012-05-31 14:13 ` [PATCH 1/1] " Robert Yang
2012-05-31 15:01   ` Koen Kooi
2012-06-01  0:23     ` Robert Yang
2012-06-01  8:17     ` Richard Purdie
2012-06-01  9:04       ` Koen Kooi
2012-06-01 10:02         ` Richard Purdie
2012-06-01 10:35           ` Koen Kooi
2012-06-04  9:31             ` Robert Yang
2012-06-04 10:39               ` Martin Jansa
2012-06-04 14:38                 ` Koen Kooi
  -- strict thread matches above, loose matches on Subject: below --
2012-05-25 10:02 [PATCH 0/1] " Robert Yang
2012-05-25 10:02 ` [PATCH 1/1] " Robert Yang
2012-05-25 11:19   ` Koen Kooi
2012-05-25 11:30     ` Martin Jansa
2012-05-25 14:09       ` Richard Purdie
2012-05-26  2:47       ` Robert Yang
2012-05-26  2:54         ` Robert Yang
2012-05-26  6:28         ` Martin Jansa
2012-05-26  8:07           ` Koen Kooi
2012-05-26  8:47             ` Robert Yang
2012-05-26  8:15           ` Robert Yang
2012-05-26  8:19             ` Martin Jansa
2012-05-26  8:35               ` Robert Yang
2012-05-26  8:42                 ` Martin Jansa
2012-05-26  2:25     ` Robert Yang
2012-05-26  5:24   ` Robert Yang

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