[yocto] .rpm packaging weirdness of dynamic libraries

Hans Beckérus hans.beckerus at gmail.com
Thu May 23 08:44:07 PDT 2013


Coming to think of it, since the .so requirement is only applicable to
small subset of our libraries, I guess we could make an init script
that creates the .so soft links according to what is currently the
latest version on the system. Otherwise we would need to update the
software doing dlopen() every time the library major version is
stepped. Since that software is not under our complete control that
could end up very difficult.

Otherwise, I fully agree that the .so files should not really be
needed if only ld is involved. Why can not things just be simple ;)

Hans

On Thu, May 23, 2013 at 5:25 PM, Hans Beckérus <hans.beckerus at gmail.com> wrote:
> On Thu, May 23, 2013 at 4:55 PM, Burton, Ross <ross.burton at intel.com> wrote:
>> On 23 May 2013 15:50, Hans Beckérus <hans.beckerus at gmail.com> wrote:
>>> But in the rpm, the libs are packaged incorrectly (or at least not as expected)
>>
>> There (should) also be a linx-dev package, that contains the .so
>> symlinks.  .so symlink files are only needed at compilation time for
>> properly versioned libraries.
>>
>> Ross
> Well, yes and no ;) If I look in /lib there are plenty of libraries
> that comes with .so files so it seems they are needed in some cases,
> right? Also, since part of our system software is doing loading of
> dynamic libraries themselves using dlopen() it is *very* hard to
> enforce removal of .so files since that piece of software does not
> know what particular version of the library it should use. It should
> load whatever .so points to, most commonly the latest version. So, is
> there some way for us to make sure .so files are also part of the
> .rpm? we do not wish to install the -dev variant since it also
> pollutes the system with a lot of other not needed stuff. Since /lib
> is having a lot of of .so files it must be possible, or?
> Actually, I have never seen a system that does not include also the
> .so files? Not even embedded ones. They are only soft links so
> flash/ram/disk space is not really an issue here.
>
> Hans
>
>
> On Thu, May 23, 2013 at 4:55 PM, Burton, Ross <ross.burton at intel.com> wrote:
>> On 23 May 2013 15:50, Hans Beckérus <hans.beckerus at gmail.com> wrote:
>>> But in the rpm, the libs are packaged incorrectly (or at least not as expected)
>>
>> There (should) also be a linx-dev package, that contains the .so
>> symlinks.  .so symlink files are only needed at compilation time for
>> properly versioned libraries.
>>
>> Ross



More information about the yocto mailing list