Skip to contentSkip to conversation

libgles-omap3-5.01.01.01: add .ver and .list files

PATCH In review Aymeric Dumaz 2 participants 4 messages Aug 15, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgles-omap3-5.01.01.01: add .ver and .list files

When libraries don't have a SONAME in their section, their name aren't added in the .list/.ver files generated during do_package.
Other recipes are able to build against them but are not able to find them afterwards, leading to missing dependencies.

This patch add the files that would be created if the SONAME was present.

---
 .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.list          | 9 +++++++++
 .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver           | 1 +
 recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb             | 9 +++++++++
 3 files changed, 19 insertions(+)
 create mode 100644 recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list
 create mode 100644 recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver
recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list new file +9 -0
new file mode 100644
index 0000000..7221e9a
@@ -0,0 +1,9 @@
+libEGL.so
+libGLES_CM.so
+libGLESv2.so
+libglslcompiler.so
+libIMGegl.so
+libpvr2d.so
+libsrv_init.so
+libsrv_um.so
+libusc.so
recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver new file +1 -0
new file mode 100644
index 0000000..e81ca08
@@ -0,0 +1 @@
+5.01.01.01
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb +9 -0
index 0b1b8ca..26de4a6 100644
@@ -40,6 +40,8 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports
            file://cputype \
            file://rc.pvr \
            file://99-bufferclass.rules  \
+           file://${PN}.list \
+           file://${PN}.ver \
 "
 
 SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
@@ -48,3 +50,10 @@ SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
 S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
 
 LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
+
+# HACK! The libraries don't have a SONAME, so other packages will link to them
+# but Yocto won't be able to find this package as a dependency afterwards.
+package_do_shlibs_append () {
+    base_filename = "${WORKDIR}/${PN}"
+    os.system("cp -f {0}.list {0}.ver ${SHLIBSWORKDIR}".format(base_filename))
+}
Signature · 1 line
1.9.1
#1 lore raw

Aymeric,

Quoted 73 lines · Aymeric Dumaz

When libraries don't have a SONAME in their section, their name aren't added in
the .list/.ver files generated during do_package.
Other recipes are able to build against them but are not able to find them afterwards, leading to missing dependencies.

This patch add the files that would be created if the SONAME was present.

---
 .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.list          | 9
+++++++++
 .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver           | 1 +
 recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb             | 9
+++++++++
 3 files changed, 19 insertions(+)
 create mode 100644
recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list
 create mode 100644

recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver

diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list new file mode 100644
index 0000000..7221e9a

recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list new file +9 -0
@@ -0,0 +1,9 @@
+libEGL.so
+libGLES_CM.so
+libGLESv2.so
+libglslcompiler.so
+libIMGegl.so
+libpvr2d.so
+libsrv_init.so
+libsrv_um.so
+libusc.so

diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver new file mode 100644
index 0000000..e81ca08

recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver new file +1 -0
@@ -0,0 +1 @@
+5.01.01.01
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb +0 -0
index 0b1b8ca..26de4a6 100644
@@ -40,6 +40,8 @@ SRC_URI = "

http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports

            file://cputype \
            file://rc.pvr \
            file://99-bufferclass.rules  \
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb +4 -0
+           file://${PN}.list \
+           file://${PN}.ver \
 "
 
 SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
@@ -48,3 +50,10 @@ SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
 S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
 
 LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
+
+# HACK! The libraries don't have a SONAME, so other packages will link to

them

recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb +4 -0
+# but Yocto won't be able to find this package as a dependency afterwards.
+package_do_shlibs_append () {
+    base_filename = "${WORKDIR}/${PN}"
+    os.system("cp -f {0}.list {0}.ver
Quoted 3 lines

${SHLIBSWORKDIR}".format(base_filename))
+}

Just for curiosity.
To have libgles-omap3 installed on the image, with Qt5 stuff, I had to explicit add it on the IMAGE_INSTALL. This patch should fix it, is it correct?

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br
<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

#2 lore raw

2014-08-15 19:01 GMT+02:00 Diego Sueiro <[email protected]>:

Quoted 2 lines

Aymeric,

Hello Diego,

Quoted 15 lines
Quoted 10 lines · Aymeric Dumaz

When libraries don't have a SONAME in their section, their name aren't added in
the .list/.ver files generated during do_package.
Other recipes are able to build against them but are not able to find them afterwards, leading to missing dependencies.

This patch add the files that would be created if the SONAME was present.

Quoted 8 lines

Just for curiosity.
To have libgles-omap3 installed on the image, with Qt5 stuff, I had to explicit add it on the IMAGE_INSTALL. This patch should fix it, is it correct?

Regards,

When you add libgles-omap3 on the IMAGE_INSTALL, with the right flags Qt 5 is compiled against it.
The problem is when you run "bitbake meta-toolchain-qt5", the resulting toolchain doesn't have the libgles-omap3 libraries included.
If you look on the qtbase do_package log, you can see that:

NOTE: Couldn't find shared library provider for libGLESv2.so, used by files:
[...]

This is because for each library, Yocto will add the library name (coming from the SONAME) to the .list/.ver files of the corresponding package. Because for some reason those proprietary libraries don't have a SONAME, Yocto fails to do so.

This patch is not 100% perfect, because files from others PACKAGES will produce similar errors, for example:

DEBUG: calculating shlib requirements for libgles-omap3-es5
NOTE: Couldn't find shared library provider for libIMGegl.so, used by files:
[...]

But at least it permits other packages like qtbase to find the libgles-omap3 dependency, so that it will be included in the sysroot.
I made patches for oe-core (see [1] and [2]), if this is accepted it will be possible to handle more gracefully with the ASSUME_SONAME variable.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-August/095726.html
[2] http://lists.openembedded.org/pipermail/openembedded-core/2014-August/095727.html

Quoted 8 lines

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br

/*long live rock 'n roll*/

A message that is not in the archive (sent off-list or not yet received): CAESSzZxi=yuR8uLeMD3b3MQ1jOiqqix4KAQEEyxCXgCv4CVcCg@mail.gmail.com

#4 lore raw

Aymeric,

Thanks for the explanation.

Regards,

--
*dS
Diego Sueiro
sent from mobile.
Em 15/08/2014 19:40, "Aymeric Dumaz" <[email protected]> escreveu:

Quoted 79 lines

2014-08-15 19:01 GMT+02:00 Diego Sueiro <[email protected]>:

Quoted 2 lines

Aymeric,

Hello Diego,

Quoted 8 lines
Quoted 5 lines · Aymeric Dumaz

When libraries don't have a SONAME in their section, their name aren't added in
the .list/.ver files generated during do_package.
Other recipes are able to build against them but are not able to find

them

Quoted 3 lines
Quoted 3 lines

afterwards, leading to missing dependencies.

This patch add the files that would be created if the SONAME was

present.

Quoted 4 lines
Quoted 2 lines
Quoted 8 lines

Just for curiosity.
To have libgles-omap3 installed on the image, with Qt5 stuff, I had to explicit add it on the IMAGE_INSTALL. This patch should fix it, is it correct?

Regards,

When you add libgles-omap3 on the IMAGE_INSTALL, with the right flags Qt 5 is
compiled against it.
The problem is when you run "bitbake meta-toolchain-qt5", the resulting toolchain doesn't have the libgles-omap3 libraries included. If you look on the qtbase do_package log, you can see that:

NOTE: Couldn't find shared library provider for libGLESv2.so, used by files:
[...]

This is because for each library, Yocto will add the library name (coming from
the SONAME) to the .list/.ver files of the corresponding package. Because for some reason those proprietary libraries don't have a SONAME, Yocto
fails to do so.

This patch is not 100% perfect, because files from others PACKAGES will produce
similar errors, for example:

DEBUG: calculating shlib requirements for libgles-omap3-es5
NOTE: Couldn't find shared library provider for libIMGegl.so, used by files:
[...]

But at least it permits other packages like qtbase to find the libgles-omap3
dependency, so that it will be included in the sysroot.
I made patches for oe-core (see [1] and [2]), if this is accepted it will be
possible to handle more gracefully with the ASSUME_SONAME variable.

[1]
http://lists.openembedded.org/pipermail/openembedded-core/2014-August/095726.html
[2]
http://lists.openembedded.org/pipermail/openembedded-core/2014-August/095727.html

Quoted 8 lines

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br

/*long live rock 'n roll*/