Thanks, After making the change we have full capability of the RPM's.

-----Original Message-----
From: Paul Eggleton [mailto:paul.eggle...@linux.intel.com] 
Sent: Monday, March 16, 2015 15:11
To: Bipnesh, Abhinav (Abhinav)
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Bitbake recipe Post install script not executed once the 
package is installed

On Monday 16 March 2015 05:15:45 Bipnesh, Abhinav wrote:
> Paul Eggleton wrote:
> > Bipnesh, Abhinav wrote:
> > > One thing to add here is we are running Busybox on which I am 
> > > trying to perform the installation.
> > 
> > That shouldn't matter.
>
> The reason for asking this is due to this answer on stackoverflow 
> (https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com
> _a_11316251_570200&d=AwICAg&c=BFpWQw8bsuKpl1SgiZH64Q&r=geJ1wB7xRIMmteYB2Fo8esL32BOWvwP1HmY0YuLEB4E&m=3v6rslo9h7RdN7fAdn8K7aQYKRYZdvG8YgVmT3arGY0&s=2ESTlCCwEHbdcR5fQqv27_TGvdTyzrfg94BThGnW7ys&e=
>  ) and also the mailing list of busybox says this "The busybox rpm command is 
> more "rpm2cpio --install"
> than anything else.  It doesn't support pre or post scripts, doesn't 
> maintain a repository...
> 
> (https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.busybox.net_pipermail_busybox_2006-2DNovember_059507.html&d=AwICAg&c=BFpWQw8bsuKpl1SgiZH64Q&r=geJ1wB7xRIMmteYB2Fo8esL32BOWvwP1HmY0YuLEB4E&m=3v6rslo9h7RdN7fAdn8K7aQYKRYZdvG8YgVmT3arGY0&s=rpVq1l6w6gj_m3trsHWQXRF4kpaBtiK48jGytQkjvyI&e=
>  )"
> 
> Also the rpm command didn't list -e or other such option which I can 
> see on other distribution. Below is sample output # rpm BusyBox 
> v1.22.1 (2015-03-03 14:40:56 IST) multi-call binary.
> 
> Usage: rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm
> 
> Please note that simple echo command is also not working for which I 
> expect to echo the output on the console during the installation process.

Oh, well, there's your problem then - I wasn't aware busybox even had an rpm 
command; clearly that will not work if you expect postinstall scripts to be 
executed because as you say it does not support them. We don't enable busybox's 
rpm command out of the box, so I can only assume you have enabled it
- if you do want full RPM I suggest you disable it (CONFIG_RPM should not be 
set in busybox's config) and ensure IMAGE_FEATURES contains "package- 
management" so that the proper rpm utility gets installed.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to