All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't add shared libraries into final image
@ 2014-07-01 15:24 Pierre Yves MORDRET
  2014-07-01 15:46 ` Nicolas Dechesne
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Yves MORDRET @ 2014-07-01 15:24 UTC (permalink / raw)
  To: yocto

Hello guys,

I'm in front of an issue that I really don't understand. I wrote a quite simple recipe to integrate an RPM package.
At the end of compilation/install/packaging/rootfs, I saw my shared libraries were not part of the final image.
I understood quickly after checking  FILES_${PN}-dev. Since my shared libraries are .so (and not .so.X) , all of them fall into -dev package.

Thus I naively add FILES_${PN} + =" ${libdir}/lib*.so " into my recipe ... I was sure this would solve my issue, but don't .
Instead my shared libraries still remain in -dev package.

Does anyone can't tell me why ? or point me out my mistake ?

Thanks in advance.






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

* Re: Can't add shared libraries into final image
  2014-07-01 15:24 Can't add shared libraries into final image Pierre Yves MORDRET
@ 2014-07-01 15:46 ` Nicolas Dechesne
  2014-07-01 16:05   ` Pierre Yves MORDRET
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Dechesne @ 2014-07-01 15:46 UTC (permalink / raw)
  To: Pierre Yves MORDRET; +Cc: yocto

On Tue, Jul 1, 2014 at 5:24 PM, Pierre Yves MORDRET
<pierre-yves.mordret@st.com> wrote:
> I'm in front of an issue that I really don't understand. I wrote a quite simple recipe to integrate an RPM package.
> At the end of compilation/install/packaging/rootfs, I saw my shared libraries were not part of the final image.
> I understood quickly after checking  FILES_${PN}-dev. Since my shared libraries are .so (and not .so.X) , all of them fall into -dev package.
>
> Thus I naively add FILES_${PN} + =" ${libdir}/lib*.so " into my recipe ... I was sure this would solve my issue, but don't .
> Instead my shared libraries still remain in -dev package.
>
> Does anyone can't tell me why ? or point me out my mistake ?

The -dev package is processed first during the packaging, so even
though you try to add the .so in the main package, the files will be
packaged in -dev first. you need to make sure that the .so are not
pulled into the -dev package:

FILES_SOLIBSDEV = ""
FILES_${PN} += "${libdir}/*.so"


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

* Re: Can't add shared libraries into final image
  2014-07-01 15:46 ` Nicolas Dechesne
@ 2014-07-01 16:05   ` Pierre Yves MORDRET
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Yves MORDRET @ 2014-07-01 16:05 UTC (permalink / raw)
  To: yocto

Thanks Nicolas

You're right. Now if you don't know ... 


> -----Original Message-----
> From: Nicolas Dechesne [mailto:nicolas.dechesne@linaro.org]
> Sent: mardi 1 juillet 2014 17:47
> To: Pierre Yves MORDRET
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Can't add shared libraries into final image
> 
> On Tue, Jul 1, 2014 at 5:24 PM, Pierre Yves MORDRET <pierre-
> yves.mordret@st.com> wrote:
> > I'm in front of an issue that I really don't understand. I wrote a quite simple
> recipe to integrate an RPM package.
> > At the end of compilation/install/packaging/rootfs, I saw my shared
> libraries were not part of the final image.
> > I understood quickly after checking  FILES_${PN}-dev. Since my shared
> libraries are .so (and not .so.X) , all of them fall into -dev package.
> >
> > Thus I naively add FILES_${PN} + =" ${libdir}/lib*.so " into my recipe ... I was
> sure this would solve my issue, but don't .
> > Instead my shared libraries still remain in -dev package.
> >
> > Does anyone can't tell me why ? or point me out my mistake ?
> 
> The -dev package is processed first during the packaging, so even though you
> try to add the .so in the main package, the files will be packaged in -dev first.
> you need to make sure that the .so are not pulled into the -dev package:
> 
> FILES_SOLIBSDEV = ""
> FILES_${PN} += "${libdir}/*.so"

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

end of thread, other threads:[~2014-07-01 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 15:24 Can't add shared libraries into final image Pierre Yves MORDRET
2014-07-01 15:46 ` Nicolas Dechesne
2014-07-01 16:05   ` Pierre Yves MORDRET

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.