All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Xu, Dongxiao" <dongxiao.xu@intel.com>
To: Mark Hatle <mark.hatle@windriver.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: RPM multilib package installation issue
Date: Sat, 3 Sep 2011 08:49:17 +0800	[thread overview]
Message-ID: <D5AB6E638E5A3E4B8F4406B113A5A19A12D73C624F@shsmsx501.ccr.corp.intel.com> (raw)
In-Reply-To: <4E60F024.4030000@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 2607 bytes --]

Hi Mark,

> -----Original Message-----
> From: Mark Hatle [mailto:mark.hatle@windriver.com]
> Sent: Friday, September 02, 2011 11:03 PM
> To: Xu, Dongxiao
> Cc: Richard Purdie (richard.purdie@linuxfoundation.org);
> yocto@yoctoproject.org
> Subject: Re: RPM multilib package installation issue
> 
> On 9/2/11 2:33 AM, Xu, Dongxiao wrote:
> > Hi Mark and Richard,
> >
> > I am trying to setup a RPM multilib system that, it is a qemux86-64
> > base image with MULTILIB_IMAGE_INSTALL = "lib32-connman-gnome". With
> > several fixes, the build can pass.
> >
> > However in run time testing I met a problem that, for those libraries
> > whose base/multilib versions packages will be both built out (like
> > libgtk, it has "libgtk-2.0-2.22.1-r2.x86_64.rpm" and
> > "libgtk-2.0-2.22.1-r2.x86.rpm"), the rpm will only installs the lib32 version of
> it.
> 
> During filesystem construction the system uses dependencies to decide what
> to install.  If you build a 32-bit connman-gnome and it requires other 32-bit
> libraries the dependency scanner will either pick them up and install them, or
> error due to missing dependencies.
> 
> In the manual case you would use "rpm -Uhv <path>" manually specifying which
> one you want.  RPM will detect a multilib package and will allow installation of
> both versions.  (Note always use rpm -U and not rpm -i..  rpm -i just blindly
> installs the software with no checking if an existing version exists.)

In our poky system, I saw we use some command to generate install_solution.manifest, and then use "rpm -Uvh" to install them.

I attached my install_solution.manifest here. From the list we saw that some libraries are only installed once. For example the db, both 32bit and 64 bit are needed, however only 32bit is installed (libgtk is another example). 

Thanks,
Dongxiao

> 
> > Therefore one question is, if there are two rpm packages with the same
> > PN, PV, PR, but different architecture (like our multilib case), then
> > we run command "rpm -ivh libgtk", which version of libgtk will be
> > installed? Or does rpm have any parameter to force installing them
> > both? Actually multilib requires to install them both with certain order.
> 
> No specific order should be necessary on a multilib system.  As long as the end
> dependencies are satisfied the resulting filesystem will work.  (Exceptions to
> this are when there are pre and post install scripts that have their own unique
> dependencies.. but those are not the normal case for OE-Core/Yocto.)
> 
> --Mark
> 
> > Thanks, Dongxiao
> >


[-- Attachment #2: install_solution.manifest --]
[-- Type: application/x-ms-manifest, Size: 33773 bytes --]

      parent reply	other threads:[~2011-09-03  0:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  7:33 RPM multilib package installation issue Xu, Dongxiao
2011-09-02 15:03 ` Mark Hatle
2011-09-02 15:40   ` McClintock Matthew-B29882
2011-09-02 15:48     ` Mark Hatle
2011-09-02 16:24       ` McClintock Matthew-B29882
2011-09-02 17:09         ` Mark Hatle
2011-09-02 18:36           ` McClintock Matthew-B29882
2011-09-02 18:56             ` Mark Hatle
2011-09-02 19:29               ` McClintock Matthew-B29882
2011-09-02 19:40                 ` McClintock Matthew-B29882
2011-09-03  0:49   ` Xu, Dongxiao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D5AB6E638E5A3E4B8F4406B113A5A19A12D73C624F@shsmsx501.ccr.corp.intel.com \
    --to=dongxiao.xu@intel.com \
    --cc=mark.hatle@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.