Wind River Support Network

HomeDefectsLIN8-6458
Fixed

LIN8-6458 : CLONE - failed to prevent install two same rpm package in system

Created: Apr 17, 2017    Updated: Dec 3, 2018
Resolved Date: Apr 23, 2017
Found In Version: 8.0
Fix Version: 8.0.0.17
Severity: Severe
Applicable for: Wind River Linux 8
Component/s: Build & Config, Userspace

Description

Normally, when we try to install the same rpm in a system, it should show the following error:

/***************************************************************/
root@qemu1:~# rpm -Uvh ntp-tickadj-4.2.8p4-r0.0.corei7_64.rpm 
hrtimer: interrupt took 3752646 ns
Preparing...                ########################################### [100%]
error: Install/Erase problems:
    package ntp-tickadj-4.2.8p4-r0.0.corei7_64 is already installed
/***************************************************************/

But in WRLinux7/8  project, when I tried to install the same rpm pacakge at the same time via the two console, this pckage can be installed into system twice, and it will show:
root@qemu1:~# rpm -q ntp-tickadj
ntp-tickadj-4.2.8p4-r0.0.corei7_64
ntp-tickadj-4.2.8p4-r0.0.corei7_64


Tested on Federa 18, even install them at the same time, it will show eror, and only install one package, how to avoid this kind of issue in our product?

Steps to Reproduce

This issue can be met on WRL7/WRL8, we can reproduce this issue with a qemu project,  start qemu with network enable
make start-target TOPTS="-t -in 1"

and then ssh to qemu via another console

in two console, we install a rpm pckage with the following command at the same time:
rpm -Uvh ntp-tickadj-4.2.8p4-r0.0.corei7_64.rpm


Other Downloads


Live chat
Online