[thud,4/4] openjpeg: fix build for multilib

Submitted by Andreas Müller on Dec. 28, 2018, 3:17 p.m. | Patch ID: 157474

Details

Message ID 20181228151713.19266-5-schnitzeltony@gmail.com
State Thud Next
Delegated to: Armin Kuster
Headers show

Commit Message

Andreas Müller Dec. 28, 2018, 3:17 p.m.
| ERROR: openjpeg-2.3.0-r0 do_package: QA Issue: openjpeg: Files/directories were installed but not shipped in any package:
|   /usr/lib/libopenjp2.a
|   /usr/lib/libopenjp2.so
|   /usr/lib/libopenjp2.so.2.3.0
|   /usr/lib/libopenjp2.so.7
|   /usr/lib/cmake
|   /usr/lib/pkgconfig
|   /usr/lib/cmake/openjpeg-2.3
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGConfig.cmake
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGTargets.cmake
|   /usr/lib/cmake/openjpeg-2.3/OpenJPEGTargets-noconfig.cmake
|   /usr/lib/pkgconfig/libopenjp2.pc

* Addresses [1]
* Build tested with poppler in multilib and non-multilib environment

(From master: a96e6d71)

[1] https://github.com/openembedded/meta-openembedded/issues/103

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-graphics/openjpeg/openjpeg_2.3.0.bb | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-graphics/openjpeg/openjpeg_2.3.0.bb b/meta-oe/recipes-graphics/openjpeg/openjpeg_2.3.0.bb
index c50d55e4b..d30ff4825 100644
--- a/meta-oe/recipes-graphics/openjpeg/openjpeg_2.3.0.bb
+++ b/meta-oe/recipes-graphics/openjpeg/openjpeg_2.3.0.bb
@@ -14,3 +14,6 @@  SRCREV = "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
 S = "${WORKDIR}/git"
 
 inherit cmake
+
+# for multilib
+EXTRA_OECMAKE += "-DOPENJPEG_INSTALL_LIB_DIR=${@d.getVar('baselib').replace('/', '')}"