Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] lsbtest: add option --ignoreos to rpm install command
@ 2017-04-21  4:15 Dengke Du
  2017-04-21  4:15 ` [PATCH 1/1] " Dengke Du
  0 siblings, 1 reply; 2+ messages in thread
From: Dengke Du @ 2017-04-21  4:15 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 55a53f53263ff4bf7bd6d0c454c464e595e11e4c:

  build-appliance-image: Update to master head revision (2017-04-20 08:16:46 +0100)

are available in the git repository at:

  https://github.com/DengkeDu/openembedded-core.git dengke/LSB_Test
  https://github.com//tree/dengke/LSB_Test

Dengke Du (1):
  lsbtest: add option --ignoreos to rpm install command

 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.4



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

* [PATCH 1/1] lsbtest: add option --ignoreos to rpm install command
  2017-04-21  4:15 [PATCH 0/1] lsbtest: add option --ignoreos to rpm install command Dengke Du
@ 2017-04-21  4:15 ` Dengke Du
  0 siblings, 0 replies; 2+ messages in thread
From: Dengke Du @ 2017-04-21  4:15 UTC (permalink / raw)
  To: openembedded-core

After change to the rpm4, the rpm packages in lsbtest, such as:

    lsb-setup-4.1.0-1.noarch.rpm
    lsb-dist-checker-5.0.0.1-1.x86_64.rpm
    ......
    lsb-cmdchk-5.0.3-1.x86_64.rpm

When install above rpm packages, the error log appears:

    package lsb-setup-4.1.0-1.noarch is intended for a different operating system
    ......

So we should add option "--ignoreos" to the rpm install command in LSB_Test.sh
in ./meta/recipes-extended/lsb/lsbtest directory. In this way we can make sure
the correct installation of those rpm packages.

The YOCTO bug #11224 didn't create logs, this is because the above test rpm
packages didn't install.

[YOCTO #11224]

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index c31a3eb..0eb2793 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -252,8 +252,8 @@ LSB_STOP_CMD="/opt/lsb/test/manager/bin/dist-checker-stop.pl"
 
 PLATFORM_FILE="/etc/rpm/platform"
 
-RPM_INSTALL_CMD="rpm --quiet --nodeps --replacepkgs --nosignature -i"
-RPM_INSTALL_CMD_NOSCRIPTS="rpm --quiet --nodeps --replacepkgs --noscripts --nosignature -i"
+RPM_INSTALL_CMD="rpm --quiet --nodeps --replacepkgs --nosignature -i --ignoreos"
+RPM_INSTALL_CMD_NOSCRIPTS="rpm --quiet --nodeps --replacepkgs --noscripts --nosignature -i --ignoreos"
 
 # If the lsb has been started, stop it first.
 if [ -x ${LSB_STOP_CMD} ]
-- 
2.7.4



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

end of thread, other threads:[~2017-04-21  4:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21  4:15 [PATCH 0/1] lsbtest: add option --ignoreos to rpm install command Dengke Du
2017-04-21  4:15 ` [PATCH 1/1] " Dengke Du

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