All of lore.kernel.org
 help / color / mirror / Atom feed
* Adam YH Lee : libgles-omap3: fix RPM compatibility by faking hardcoded deps
@ 2016-02-08 17:30 Arago Project git
  0 siblings, 0 replies; 2+ messages in thread
From: Arago Project git @ 2016-02-08 17:30 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: fido
Commit: 12c24dbe939a635ad9993a6eb273e0ec65e6fa72
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=12c24dbe939a635ad9993a6eb273e0ec65e6fa72

Author: Adam YH Lee <adam.yh.lee@gmail.com>
Date:   Wed Oct 14 00:00:27 2015 +0000

libgles-omap3: fix RPM compatibility by faking hardcoded deps

When RPM is used as the packaging type, rootfs will fail because RPM, by
design, check for file level dependency. Here one of the shared objects
(libpvrEWS_REMWSEGL.so) has dependency on ld-linux.so.3 and libews.so.

It is unclear why meta-ti requires ld-linux.so.3, which is a dynamic
loader for soft-float arch. Hence I fake the existence here.

Signed-off-by: Adam YH Lee <adam.yh.lee@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-graphics/libgles/libgles-omap3-no-x.inc |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3-no-x.inc b/recipes-graphics/libgles/libgles-omap3-no-x.inc
index 13418ad..7681a26 100644
--- a/recipes-graphics/libgles/libgles-omap3-no-x.inc
+++ b/recipes-graphics/libgles/libgles-omap3-no-x.inc
@@ -188,6 +188,9 @@ do_install () {
 	install -d ${D}${sysconfdir}/udev/rules.d
 	install -m 0644 ${WORKDIR}/99-bufferclass.rules ${D}${sysconfdir}/udev/rules.d/
 
+	touch ${D}${libdir}/ES5.0/ld-linux.so.3
+	touch ${D}${libdir}/ES5.0/ld-linux.so.3\(GLIBC_2.4\)
+	cp -pPR ${S}/gfx_rel_es5.x/libews.so ${D}${libdir}/ES5.0/
 }
 
 PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests"
@@ -209,6 +212,7 @@ PRIVATE_LIBS_${PN}-es9 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
 
 
 RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"
+RPROVIDES_${PN}-es5 += "ld-linux.so.3 ld-linux.so.3(GLIBC_2.4) libews.so"
 
 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
 FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
@@ -330,3 +334,8 @@ rm -f $D${sysconfdir}/powervr-esrev
 pkg_postinst_${PN}-linuxfbwsegl() {
 rm -f $D${sysconfdir}/powervr-esrev
 }
+
+pkg_postinst_${PN}-es5() {
+rm -f $D${libdir}/ES5.0/ld-linux.so.3*
+rm -f $D${libdir}/ES5.0/libews.so
+}



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

* Adam YH Lee : libgles-omap3: fix RPM compatibility by faking hardcoded deps
@ 2016-02-08 17:30 Arago Project git
  0 siblings, 0 replies; 2+ messages in thread
From: Arago Project git @ 2016-02-08 17:30 UTC (permalink / raw)
  To: meta-ti

Module: meta-ti
Branch: master
Commit: 65739cbc43bf68800b87329e7e680d74ab2d8335
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=65739cbc43bf68800b87329e7e680d74ab2d8335

Author: Adam YH Lee <adam.yh.lee@gmail.com>
Date:   Wed Oct 14 00:00:27 2015 +0000

libgles-omap3: fix RPM compatibility by faking hardcoded deps

When RPM is used as the packaging type, rootfs will fail because RPM, by
design, check for file level dependency. Here one of the shared objects
(libpvrEWS_REMWSEGL.so) has dependency on ld-linux.so.3 and libews.so.

It is unclear why meta-ti requires ld-linux.so.3, which is a dynamic
loader for soft-float arch. Hence I fake the existence here.

Signed-off-by: Adam YH Lee <adam.yh.lee@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---

 recipes-graphics/libgles/libgles-omap3-no-x.inc |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3-no-x.inc b/recipes-graphics/libgles/libgles-omap3-no-x.inc
index 13418ad..7681a26 100644
--- a/recipes-graphics/libgles/libgles-omap3-no-x.inc
+++ b/recipes-graphics/libgles/libgles-omap3-no-x.inc
@@ -188,6 +188,9 @@ do_install () {
 	install -d ${D}${sysconfdir}/udev/rules.d
 	install -m 0644 ${WORKDIR}/99-bufferclass.rules ${D}${sysconfdir}/udev/rules.d/
 
+	touch ${D}${libdir}/ES5.0/ld-linux.so.3
+	touch ${D}${libdir}/ES5.0/ld-linux.so.3\(GLIBC_2.4\)
+	cp -pPR ${S}/gfx_rel_es5.x/libews.so ${D}${libdir}/ES5.0/
 }
 
 PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests"
@@ -209,6 +212,7 @@ PRIVATE_LIBS_${PN}-es9 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
 
 
 RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"
+RPROVIDES_${PN}-es5 += "ld-linux.so.3 ld-linux.so.3(GLIBC_2.4) libews.so"
 
 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
 FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
@@ -330,3 +334,8 @@ rm -f $D${sysconfdir}/powervr-esrev
 pkg_postinst_${PN}-linuxfbwsegl() {
 rm -f $D${sysconfdir}/powervr-esrev
 }
+
+pkg_postinst_${PN}-es5() {
+rm -f $D${libdir}/ES5.0/ld-linux.so.3*
+rm -f $D${libdir}/ES5.0/libews.so
+}



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

end of thread, other threads:[~2016-02-08 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-08 17:30 Adam YH Lee : libgles-omap3: fix RPM compatibility by faking hardcoded deps Arago Project git
2016-02-08 17:30 Arago Project git

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.