Fix libthai (oem-extra-libs) build break 25/10325/3
authorTakashi Matsuzawa <tmatsuzawa@xevo.com>
Sun, 23 Jul 2017 13:19:55 +0000 (22:19 +0900)
committerTakashi Matsuzawa <tmatsuzawa@xevo.com>
Mon, 24 Jul 2017 06:49:22 +0000 (15:49 +0900)
Bug-AGL: SPEC-771

Fix in libdatrie recipe so that libdatrie-native can be properly used to build libthai.

Alternatively EXTRA_OECONF += "--disable-dict" can be added to libthai, but I guess (since I did not add libthai) it is not expected.

Update:

I also needed libdatrie-native dependency in libthai.bb

Update2:

Fix build breaks for imagemagick and protobuf as well

Change-Id: I175a34f321841d6aa1cdabac69c67d590d313043
Signed-off-by: Takashi Matsuzawa <tmatsuzawa@xevo.com>
meta-oem-extra-libs/conf/layer.conf
meta-oem-extra-libs/recipes-support/libdatrie/libdatrie_0.2.9.bb
meta-oem-extra-libs/recipes-support/libthai/libthai_0.1.20.bb

index 8eb09a2..a6c8e2a 100644 (file)
@@ -9,3 +9,7 @@ BBFILE_COLLECTIONS += "oem-extra-libs"
 BBFILE_PATTERN_oem-extra-libs = "^${LAYERDIR}/"
 BBFILE_PRIORITY_oem-extra-libs = "7"
 
+# Fixing build errors
+SECURITY_CFLAGS_pn-imagemagick = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-protobuf = "${SECURITY_NO_PIE_CFLAGS}"
+
index f317eb2..44fd0b4 100755 (executable)
@@ -13,7 +13,7 @@ inherit autotools pkgconfig
 LICENSE = "LGPL-2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
-SRC_URI = "http://linux.thai.net/pub/thailinux/software/libthai/${PN}-${PV}.tar.xz"
+SRC_URI = "http://linux.thai.net/pub/thailinux/software/libthai/${BPN}-${PV}.tar.xz"
 
 SRC_URI[md5sum] = "687624f374e748de81b01399736bb735"
 SRC_URI[sha256sum] = "d980713e7ad8e19cf3b54ee0173782b94332af8e7e4e936dde01d2cd72e1da1d"
@@ -24,5 +24,5 @@ PACKAGES =+ "${PN}1-bin"
 
 FILES_${PN}1-bin += "${bindir}/*"
 
-#BBCLASSEXTEND += "native"
+BBCLASSEXTEND += "native"
 
index ce8dc17..0271da0 100755 (executable)
@@ -1,6 +1,6 @@
 DESCRIPTION = "Thai language support routines"
 LICENSE = "LGPL"
-DEPENDS = "libdatrie"
+DEPENDS = "libdatrie libdatrie-native"
 
 SRC_URI = "http://linux.thai.net/pub/thailinux/software/libthai/${PN}-${PV}.tar.xz"