All of lore.kernel.org
 help / color / mirror / Atom feed
* unable to create softlink for precompilied libraries
@ 2017-04-06  8:08 chandrasekhar c
  2017-04-06  8:37 ` Fabien Lahoudere
  0 siblings, 1 reply; 7+ messages in thread
From: chandrasekhar c @ 2017-04-06  8:08 UTC (permalink / raw)
  To: yocto

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

Hi, I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create  soft links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it didn't create any link file.Below is my recipe do_install_append() {         install -d ${D}${libdir}/         install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2         ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so         install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success         ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success         ln -sf libMSOComm.so.1 ${D}${libdir}/libMSOComm.so //This is not happening}
Can any one tell me a solution for this. 
Thanks and Regards,Chandrasekhar

[-- Attachment #2: Type: text/html, Size: 1865 bytes --]

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

* Re: unable to create softlink for precompilied libraries
  2017-04-06  8:08 unable to create softlink for precompilied libraries chandrasekhar c
@ 2017-04-06  8:37 ` Fabien Lahoudere
  2017-04-06  9:01   ` chandrasekhar c
  0 siblings, 1 reply; 7+ messages in thread
From: Fabien Lahoudere @ 2017-04-06  8:37 UTC (permalink / raw)
  To: yocto

On Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:
> Hi, 
> I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create  soft
> links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it
> didn't create any link file.
> Below is my recipe
>  
> do_install_append() {
>          install -d ${D}${libdir}/
>          install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2
>          ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
>          install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success
>          ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success
>          ln -sf libMSOComm.so.1 ${D}${libdir}/libMSOComm.so //This is not happening
> }
> Can any one tell me a solution for this.

Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?


>  
> Thanks and Regards,
> Chandrasekhar


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

* Re: unable to create softlink for precompilied libraries
  2017-04-06  8:37 ` Fabien Lahoudere
@ 2017-04-06  9:01   ` chandrasekhar c
  2017-04-06  9:16     ` chandrasekhar c
  0 siblings, 1 reply; 7+ messages in thread
From: chandrasekhar c @ 2017-04-06  9:01 UTC (permalink / raw)
  To: Fabien Lahoudere ; +Cc: yocto

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

Hi ,No, I will do the changes and let you know the result.Regards,ChandrasekharFrom: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530To: yocto@yoctoproject.orgSubject: Re: [yocto] unable to create softlink for precompilied librariesOn Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:> Hi,  > I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create   soft> links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it> didn't create any link file.> Below is my recipe>  > do_install_append() {>                   install -d ${D}${libdir}/>                 install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so>                 install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success>                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening> }> Can any one tell me a solution for this.Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?>  > Thanks and Regards,> Chandrasekhar--_______________________________________________yocto mailing listyocto@yoctoproject.orghttps://lists.yoctoproject.org/listinfo/yocto

[-- Attachment #2: Type: text/html, Size: 2485 bytes --]

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

* Re: unable to create softlink for precompilied libraries
  2017-04-06  9:01   ` chandrasekhar c
@ 2017-04-06  9:16     ` chandrasekhar c
  2017-04-06  9:51       ` Fabien Lahoudere
  2017-04-06 13:47       ` Khem Raj
  0 siblings, 2 replies; 7+ messages in thread
From: chandrasekhar c @ 2017-04-06  9:16 UTC (permalink / raw)
  To: chandrasekhar c ; +Cc: yocto

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

Hi,I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is presentThanks ChandraFrom: chandrasekhar c <chandrasekhar@evolute-sys.com>Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530To: "Fabien Lahoudere " <fabien.lahoudere@collabora.co.uk>Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>Subject: Re: [yocto] unable to create softlink for precompilied librariesHi ,No, I will do the changes and let you know the result.Regards,ChandrasekharFrom: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530To: yocto@yoctoproject.orgSubject: Re: [yocto] unable to create softlink for precompilied librariesOn Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:> Hi,  > I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create   soft> links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it> didn't create any link file.> Below is my recipe>  > do_install_append() {>                   install -d ${D}${libdir}/>                 install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so>                 install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is success>                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening> }> Can any one tell me a solution for this.Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?>  > Thanks and Regards,> Chandrasekhar--_______________________________________________yocto mailing listyocto@yoctoproject.orghttps://lists.yoctoproject.org/listinfo/yocto --_______________________________________________yocto mailing listyocto@yoctoproject.orghttps://lists.yoctoproject.org/listinfo/yocto

[-- Attachment #2: Type: text/html, Size: 3353 bytes --]

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

* Re: unable to create softlink for precompilied libraries
  2017-04-06  9:16     ` chandrasekhar c
@ 2017-04-06  9:51       ` Fabien Lahoudere
  2017-04-06 13:47       ` Khem Raj
  1 sibling, 0 replies; 7+ messages in thread
From: Fabien Lahoudere @ 2017-04-06  9:51 UTC (permalink / raw)
  To: chandrasekhar c; +Cc: yocto

Can you check that the file is installed in image folder and in package in the WORKDIR of your
recipe?

On Thu, 2017-04-06 at 09:16 +0000, chandrasekhar c wrote:
> Hi,
> I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my recipe still the issue is
> present
> 
> Thanks 
> Chandra
> 
> From: chandrasekhar c <chandrasekhar@evolute-sys.com>
> Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
> To: "Fabien Lahoudere " <fabien.lahoudere@collabora.co.uk>
> Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
> Subject: Re: [yocto] unable to create softlink for precompilied libraries
> 
> Hi ,
> No, I will do the changes and let you know the result.
> 
> Regards,
> Chandrasekhar
> 
> From: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] unable to create softlink for precompilied libraries
> 
> On Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:
> > Hi,  
> > I have a third party precompilied libraries. I erota a recipe to copy to rootfs and create  
> soft
> > links for the same. After doing bitbake it didnt throw any errors, but when I check th rootfs it
> > didn't create any link file.
> > Below is my recipe
> >  
> > do_install_append() {
> >                   install -d ${D}${libdir}/
> >                 install -m 0777 ${S}/libMSO.so.1.2 ${D}${libdir}/libMSO.so.1.2
> >                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
> >                 install -m 0777 ${S}/libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1.2 //This is
> success
> >                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1 //This is success
> >                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This is not happening
> > }
> > Can any one tell me a solution for this.
> 
> Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?
> 
> 
> >  
> > Thanks and Regards,
> > Chandrasekhar
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

* Re: unable to create softlink for precompilied libraries
  2017-04-06  9:16     ` chandrasekhar c
  2017-04-06  9:51       ` Fabien Lahoudere
@ 2017-04-06 13:47       ` Khem Raj
  2017-04-07 11:34         ` Chandrasekhar S
  1 sibling, 1 reply; 7+ messages in thread
From: Khem Raj @ 2017-04-06 13:47 UTC (permalink / raw)
  To: chandrasekhar c; +Cc: yocto

On Thu, Apr 6, 2017 at 2:16 AM, chandrasekhar c
<chandrasekhar@evolute-sys.com> wrote:
> Hi,
> I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in my
> recipe still the issue is present
>

that may not be enough. .so are treated as symlinks and shoved into
-dev packages by default. if you need unversioned libraries then you
have to let the system know that its not a dev library symlink

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

> Thanks
> Chandra
>
> From: chandrasekhar c <chandrasekhar@evolute-sys.com>
> Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
> To: "Fabien Lahoudere " <fabien.lahoudere@collabora.co.uk>
> Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
>
> Subject: Re: [yocto] unable to create softlink for precompilied libraries
>
> Hi ,
> No, I will do the changes and let you know the result.
>
> Regards,
> Chandrasekhar
>
> From: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] unable to create softlink for precompilied libraries
>
> On Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:
>> Hi,
>> I have a third party precompilied libraries. I erota a recipe to copy to
>> rootfs and create   soft
>> links for the same. After doing bitbake it didnt throw any errors, but
>> when I check th rootfs it
>> didn't create any link file.
>> Below is my recipe
>>
>> do_install_append() {
>>                   install -d ${D}${libdir}/
>>                 install -m 0777 ${S}/libMSO.so.1.2
>> ${D}${libdir}/libMSO.so.1.2
>>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
>>                 install -m 0777 ${S}/libMSOComm.so.1.2
>> ${D}${libdir}/libMSOComm.so.1.2 //This is success
>>                 ln -sf libMSOComm.so.1.2 ${D}${libdir}/libMSOComm.so.1
>> //This is success
>>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so //This
>> is not happening
>> }
>> Can any one tell me a solution for this.
>
> Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?
>
>
>>
>> Thanks and Regards,
>> Chandrasekhar
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto --
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


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

* Re: unable to create softlink for precompilied libraries
  2017-04-06 13:47       ` Khem Raj
@ 2017-04-07 11:34         ` Chandrasekhar S
  0 siblings, 0 replies; 7+ messages in thread
From: Chandrasekhar S @ 2017-04-07 11:34 UTC (permalink / raw)
  To: 'Khem Raj'; +Cc: yocto

Thank you Khem, it worked.

Regards,
Chandrasekhar

-----Original Message-----
From: Khem Raj [mailto:raj.khem@gmail.com] 
Sent: Thursday, April 06, 2017 7:18 PM
To: chandrasekhar c <chandrasekhar@evolute-sys.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] unable to create softlink for precompilied libraries

On Thu, Apr 6, 2017 at 2:16 AM, chandrasekhar c <chandrasekhar@evolute-sys.com> wrote:
> Hi,
> I have added this FILES_${PN} += " ${libdir}/libMSOComm.so " line in 
> my recipe still the issue is present
>

that may not be enough. .so are treated as symlinks and shoved into -dev packages by default. if you need unversioned libraries then you have to let the system know that its not a dev library symlink

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

> Thanks
> Chandra
>
> From: chandrasekhar c <chandrasekhar@evolute-sys.com>
> Sent: Thu, 6 Apr 2017 14:39:04 GMT+0530
> To: "Fabien Lahoudere " <fabien.lahoudere@collabora.co.uk>
> Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
>
> Subject: Re: [yocto] unable to create softlink for precompilied 
> libraries
>
> Hi ,
> No, I will do the changes and let you know the result.
>
> Regards,
> Chandrasekhar
>
> From: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> Sent: Thu, 6 Apr 2017 14:10:30 GMT+0530
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] unable to create softlink for precompilied 
> libraries
>
> On Thu, 2017-04-06 at 08:08 +0000, chandrasekhar c wrote:
>> Hi,
>> I have a third party precompilied libraries. I erota a recipe to copy to
>> rootfs and create   soft
>> links for the same. After doing bitbake it didnt throw any errors, 
>> but when I check th rootfs it didn't create any link file.
>> Below is my recipe
>>
>> do_install_append() {
>>                   install -d ${D}${libdir}/
>>                 install -m 0777 ${S}/libMSO.so.1.2
>> ${D}${libdir}/libMSO.so.1.2
>>                 ln -sf libMSO.so.1.2 ${D}${libdir}/libMSO.so
>>                 install -m 0777 ${S}/libMSOComm.so.1.2
>> ${D}${libdir}/libMSOComm.so.1.2 //This is success
>>                 ln -sf libMSOComm.so.1.2 
>> ${D}${libdir}/libMSOComm.so.1 //This is success
>>                 ln -sf libMSOComm.so.1  ${D}${libdir}/libMSOComm.so 
>> //This is not happening } Can any one tell me a solution for this.
>
> Did you ship it with FILES_${PN} += " ${libdir}/libMSOComm.so " ?
>
>
>>
>> Thanks and Regards,
>> Chandrasekhar
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto --
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



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

end of thread, other threads:[~2017-04-07 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06  8:08 unable to create softlink for precompilied libraries chandrasekhar c
2017-04-06  8:37 ` Fabien Lahoudere
2017-04-06  9:01   ` chandrasekhar c
2017-04-06  9:16     ` chandrasekhar c
2017-04-06  9:51       ` Fabien Lahoudere
2017-04-06 13:47       ` Khem Raj
2017-04-07 11:34         ` Chandrasekhar S

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.