All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Fix uim recipe's problems
@ 2017-08-08  0:59 Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target Yusuke Mitsuki
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

I tried to Input Japanese via uim+anthy. However seems uim recipe is not maintained.
It has some problems.
I fixed recipes in order to Input Japanese via uim+anthy.


Yusuke Mitsuki (6):
  anthy: Added libanthy-dev to PROVIDES_class-terget     uim: Added
    libanthy-dev to DEPENDS_class-target
  uim: Modified the order of package definition.
  uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy
  uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common.
  uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk.
  uim: Fixed a problem that an immodule.cache is not updated
    appropriately when uim-gtk2.0 or uim-gtk3 was installed.

 meta-oe/recipes-support/anthy/anthy_9100h.bb |  1 +
 meta-oe/recipes-support/uim/uim_1.8.6.bb     | 59 +++++++++++-----------------
 2 files changed, 23 insertions(+), 37 deletions(-)

-- 
2.7.4



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

* [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08  3:48   ` Khem Raj
  2017-08-08  0:59 ` [PATCH 2/6] uim: Modified the order of package definition Yusuke Mitsuki
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

anthy.h could not found at confiugre of uim.
Dependency broke since it began to use recipes-sysroot.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
 meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb b/meta-oe/recipes-support/anthy/anthy_9100h.bb
index a65d324..c507ad7 100644
--- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
+++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] = "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
 
 DEPENDS_class-target = "anthy-native"
 RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"
 
 inherit autotools pkgconfig
 
diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index ed846b9..4cb7b62 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
 SRC_URI[sha256sum] = "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
 
 DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
-DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native takao-fonts"
+DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native takao-fonts libanthy-dev"
 
 RDEPENDS_uim = "libuim0 libedit"
 RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
-- 
2.7.4



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

* [PATCH 2/6] uim: Modified the order of package definition.
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 3/6] uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy Yusuke Mitsuki
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

The uim-anthy package is created that empty.
To avoid this problem by defining a packages with a rough PATH list after the uim-anthy package.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index 4cb7b62..9e7b45c 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -43,7 +43,7 @@ do_install_append() {
     rm -rf ${D}/${datadir}/applications
 }
 
-PACKAGES += "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep uim-common uim-anthy libuim0 libuim-dev"
+PACKAGES =+ "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep uim-anthy uim-common libuim0 libuim-dev"
 
 FILES_${PN} = "${bindir}/uim-help \
     ${libdir}/uim/plugin/libuim-* \
-- 
2.7.4



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

* [PATCH 3/6] uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 2/6] uim: Modified the order of package definition Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 4/6] uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common Yusuke Mitsuki
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

To uim-anthy is working correctly needs register by uim-module-manager.
However 'uim-module-manager --register anthy' is failed.
Because uim-module-manager uses iconv(EUCJP to UTF8) internally.
iconv needs glibc-utils and EUCJP conversion needs glibc-gconv-euc-jp.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index 9e7b45c..0cfd351 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -17,7 +17,7 @@ DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
 DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native takao-fonts libanthy-dev"
 
 RDEPENDS_uim = "libuim0 libedit"
-RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
+RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0 glibc-utils glibc-gconv-euc-jp"
 
 LEAD_SONAME = "libuim.so.1"
 
-- 
2.7.4



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

* [PATCH 4/6] uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common.
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
                   ` (2 preceding siblings ...)
  2017-08-08  0:59 ` [PATCH 3/6] uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 5/6] uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed Yusuke Mitsuki
  5 siblings, 0 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

These functions are not worked correctly.
However default im is installed. thus we determined it not need.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index 0cfd351..e6bacce 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -137,19 +137,4 @@ pkg_postrm_uim-skk() {
     fi
 }
 
-pkg_postinst_uim-common() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --path /etc/uim --register \
-            tutcode tcode hangul viqr \
-            ipa-x-sampa latin byeoru
-    fi
-}
-
-pkg_prerm_uim-common() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --path /etc/uim --register \
-        tutcode tcode hangul viqr ipa-x-sampa latin byeoru
-    fi
-}
-
 BBCLASSEXTEND = "native"
-- 
2.7.4



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

* [PATCH 5/6] uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk.
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
                   ` (3 preceding siblings ...)
  2017-08-08  0:59 ` [PATCH 4/6] uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08  0:59 ` [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed Yusuke Mitsuki
  5 siblings, 0 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

pkg_postinst*/pkg_prerm_* functions are not worked correctly.
Because uim-module-manager executes on the host machine.
It needs executed via qemu.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 33 +++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index e6bacce..3d6425c 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -21,7 +21,7 @@ RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0 glibc-utils glibc-gconv-euc-jp
 
 LEAD_SONAME = "libuim.so.1"
 
-inherit autotools pkgconfig gettext
+inherit autotools pkgconfig gettext qemu
 
 EXTRA_OECONF += "--disable-emacs \
     --without-scim \
@@ -103,21 +103,20 @@ FILES_uim-skk = "${libdir}/uim/plugin/libuim-skk.* \
     ${datadir}/uim/skk*.scm \
 "
 
+PACKAGE_WRITE_DEPS += "qemu-native"
 pkg_postinst_uim-anthy() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --register anthy --path /etc/uim
-    fi
-}
-
-pkg_postrm_uim-anthy() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --path /etc/uim --unregister anthy
+    if test -n "$D"; then
+        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register anthy --path $D${datadir}/uim
+    else
+		uim-module-manager --register anthy --path ${datadir}/uim
     fi
 }
 
 pkg_prerm_uim-anthy() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --register anthy --path /etc/uim
+    if test -n "$D"; then
+        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister anthy
+    else
+		uim-module-manager --path ${datadir}/uim --unregister anthy
     fi
 }
 
@@ -126,14 +125,18 @@ pkg_postinst_uim-gtk2.0() {
 }
 
 pkg_postinst_uim-skk() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --register skk --path /etc/uim
+    if test -n "$D"; then
+        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register skk --path $D${datadir}/uim
+    else
+		uim-module-manager --register skk --path ${datadir}/uim
     fi
 }
 
 pkg_postrm_uim-skk() {
-    if [ -f /usr/bin/uim-module-manager ]; then
-        /usr/bin/uim-module-manager --path /etc/uim --unregister skk
+    if test -n "$D"; then
+        ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --path $D${datadir}/uim --unregister skk
+    else
+		uim-module-manager --path ${datadir}/uim --unregister skk
     fi
 }
 
-- 
2.7.4



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

* [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed.
  2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
                   ` (4 preceding siblings ...)
  2017-08-08  0:59 ` [PATCH 5/6] uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk Yusuke Mitsuki
@ 2017-08-08  0:59 ` Yusuke Mitsuki
  2017-08-08 19:21   ` Svein Seldal
  5 siblings, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-08  0:59 UTC (permalink / raw)
  To: openembedded-devel

pkg_postinst_uim-gtk2.0 is not worked. Plus, uim-gtk3 is not supported.
oe-core has gtk-immodule-cache class for update the immodule.cache.
Modified to use the this class instead of pkg_post_uim-gtk2.0 and added support to uim-gtk3.

Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index 3d6425c..6b04f6e 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -21,7 +21,8 @@ RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0 glibc-utils glibc-gconv-euc-jp
 
 LEAD_SONAME = "libuim.so.1"
 
-inherit autotools pkgconfig gettext qemu
+inherit autotools pkgconfig gettext qemu gtk-immodules-cache
+GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3"
 
 EXTRA_OECONF += "--disable-emacs \
     --without-scim \
@@ -120,10 +121,6 @@ pkg_prerm_uim-anthy() {
     fi
 }
 
-pkg_postinst_uim-gtk2.0() {
-    gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
-}
-
 pkg_postinst_uim-skk() {
     if test -n "$D"; then
         ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register skk --path $D${datadir}/uim
-- 
2.7.4



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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-08  0:59 ` [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target Yusuke Mitsuki
@ 2017-08-08  3:48   ` Khem Raj
  2017-08-09  0:44     ` Yusuke Mitsuki
       [not found]     ` <CACMwXoVyzWqadsAsjpghRFT10XfFPYtZmua_T=_fNcE8Rmmt-w@mail.gmail.com>
  0 siblings, 2 replies; 18+ messages in thread
From: Khem Raj @ 2017-08-08  3:48 UTC (permalink / raw)
  To: Yusuke Mitsuki, openembedded-devel

On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki <mickey.happygolucky@gmail.com>
wrote:

> anthy.h could not found at confiugre of uim.
> Dependency broke since it began to use recipes-sysroot.
>
> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
> ---
>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> index a65d324..c507ad7 100644
> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>
>  DEPENDS_class-target = "anthy-native"
>  RDEPENDS_${PN}_class-target = "libanthy0"
> +PROVIDES_class-target = "libanthy-dev"


This seems redundant


>
>  inherit autotools pkgconfig
>
> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> index ed846b9..4cb7b62 100644
> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
>  SRC_URI[sha256sum] =
> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
>
>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> takao-fonts"
> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> takao-fonts libanthy-dev"
>

It should say anthy not libanthy-dev

>
>  RDEPENDS_uim = "libuim0 libedit"
>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

* Re: [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed.
  2017-08-08  0:59 ` [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed Yusuke Mitsuki
@ 2017-08-08 19:21   ` Svein Seldal
  0 siblings, 0 replies; 18+ messages in thread
From: Svein Seldal @ 2017-08-08 19:21 UTC (permalink / raw)
  To: openembedded-devel

FYI, We've had some problems building uim and anthy in our image, and we 
had to apply the patch below.

Noteable changes are:
   - Change SRC_URI, the uim.googlecode.com URL gives us a 404
   - Add PACKAGECONFIG to be able to control better which features and 
DEPENDS to include. Notibly x11, gtk3, anthy and libedit are selectable.

This patch is no way perfect and complete, but it solved the dependency 
issue we were having with anthy. Especially since we are using uim 
without x11 or gtk3. Use this as inspiration at your discression.

Best regards,
Svein Seldal


diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb 
b/meta-oe/recipes-support/uim/uim_1.8.6.bb
index ed846b9..78da142 100644
--- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
+++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
@@ -4,7 +4,8 @@ LICENSE = "BSD-3-Clause & LGPLv2+"
  LIC_FILES_CHKSUM = "file://COPYING;md5=32463fd29aa303fb2360faeeae17256b"
  SECTION = "inputmethods"

-SRC_URI = "http://uim.googlecode.com/files/uim-${PV}.tar.bz2"
+SRC_URI = 
"https://github.com/uim/uim/releases/download/${BP}/${BP}.tar.bz2 \
+          "

  SRC_URI_append_class-target = " file://uim-module-manager.patch \
      file://0001-fix-bug-for-cross-compile.patch \
@@ -13,11 +14,7 @@ SRC_URI_append_class-target = " 
file://uim-module-manager.patch \
  SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
  SRC_URI[sha256sum] = 
"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

-DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
-DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native takao-fonts"
-
-RDEPENDS_uim = "libuim0 libedit"
-RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
+DEPENDS = "fontconfig glib-2.0 ncurses intltool-native uim-native"

  LEAD_SONAME = "libuim.so.1"

@@ -30,9 +27,20 @@ EXTRA_OECONF += "--disable-emacs \
      --without-canna \
      --without-mana \
      --without-eb \
+
+PACKAGECONFIG ??= " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xft gtk3', '', d)} \
+    libedit \
+    anthy \
+"
+PACKAGECONFIG_class-native ??= "\
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xft', '', d)} \
  "

-CONFIGUREOPTS_remove_class-target = "--disable-silent-rules"
+PACKAGECONFIG[x11]     = ",,libxft libxt"
+PACKAGECONFIG[gtk3]    = ",--without-gtk2 --with-gtk3=no,gtk+ gtk+3"
+PACKAGECONFIG[anthy]   = 
"--with-anthy-utf8,--without-anthy,anthy,takao-fonts"
+PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit"

  #Because m4 file's find maxdepth=2, so copy the m4 files of the deep 
depth.
  do_configure_prepend () {
@@ -43,6 +51,9 @@ do_install_append() {
      rm -rf ${D}/${datadir}/applications
  }

+# UIM fails with a race when installing with multiple
+PARALLEL_MAKEINST = ""
+
  PACKAGES += "uim-xim uim-utils uim-skk uim-gtk2.0 uim-gtk3 uim-fep 
uim-common uim-anthy libuim0 libuim-dev"

  FILES_${PN} = "${bindir}/uim-help \



On 08. aug. 2017 02:59, Yusuke Mitsuki wrote:
> pkg_postinst_uim-gtk2.0 is not worked. Plus, uim-gtk3 is not supported.
> oe-core has gtk-immodule-cache class for update the immodule.cache.
> Modified to use the this class instead of pkg_post_uim-gtk2.0 and added support to uim-gtk3.
> 
> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
> ---
>   meta-oe/recipes-support/uim/uim_1.8.6.bb | 7 ++-----
>   1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> index 3d6425c..6b04f6e 100644
> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> @@ -21,7 +21,8 @@ RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0 glibc-utils glibc-gconv-euc-jp
>   
>   LEAD_SONAME = "libuim.so.1"
>   
> -inherit autotools pkgconfig gettext qemu
> +inherit autotools pkgconfig gettext qemu gtk-immodules-cache
> +GTKIMMODULES_PACKAGES = "uim-gtk2.0 uim-gtk3"
>   
>   EXTRA_OECONF += "--disable-emacs \
>       --without-scim \
> @@ -120,10 +121,6 @@ pkg_prerm_uim-anthy() {
>       fi
>   }
>   
> -pkg_postinst_uim-gtk2.0() {
> -    gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
> -}
> -
>   pkg_postinst_uim-skk() {
>       if test -n "$D"; then
>           ${@qemu_run_binary(d, '$D', '${bindir}/uim-module-manager')} --register skk --path $D${datadir}/uim
> 


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-08  3:48   ` Khem Raj
@ 2017-08-09  0:44     ` Yusuke Mitsuki
       [not found]     ` <CACMwXoVyzWqadsAsjpghRFT10XfFPYtZmua_T=_fNcE8Rmmt-w@mail.gmail.com>
  1 sibling, 0 replies; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-09  0:44 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

Hello Khem

Are you saying that  libanthy-dev is not need and anthy only is sufficient?

anthy is in DEPENDS already. BUT it is not sufficient.
If libanthy-dev is not in DEPENDS_class-target, do_configure will not be
failed.

However config.log say like as follows:

-----
configure:20054: checking anthy/anthy.h usability
configure:20054: i586-poky-linux-gcc -m32 -march=i586
--sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
-poky-linux/uim/1.8.6-r0/recipe-sysroot -c  -O2 -pipe -g
-feliminate-unused-debug-types -fdebug-prefix-map=/home/y-mit
suki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.
6-r0=/usr/src/debug/uim/1.8.6-r0 -fdebug-prefix-map=/home/y-mit
suki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=   conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or directory
#include <anthy/anthy.h>
-----

Then uim-anthy is not created.
In order to build uim-anthy, anthy.h is need but it is not installed into
recipes-sysroot.
anthy.h is incluced libanthy-dev not anthy.

Therefor I think libanthy-dev is need.

Let me know you opinions?




2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:

>
> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki <
> mickey.happygolucky@gmail.com> wrote:
>
>> anthy.h could not found at confiugre of uim.
>> Dependency broke since it began to use recipes-sysroot.
>>
>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>> ---
>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>>  2 files changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> index a65d324..c507ad7 100644
>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] = "d256f075f018b4a3cb0d165ed6151f
>> da4ba7db1621727e0eb54569b6e2
>>
>>  DEPENDS_class-target = "anthy-native"
>>  RDEPENDS_${PN}_class-target = "libanthy0"
>> +PROVIDES_class-target = "libanthy-dev"
>
>
> This seems redundant
>
>
>>
>>  inherit autotools pkgconfig
>>
>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> index ed846b9..4cb7b62 100644
>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
>>  SRC_URI[sha256sum] = "7b1ea803c73f3478917166f04f67cc
>> e6e45ad7ea5ab6df99b948c17eb1cb235f"
>>
>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> takao-fonts"
>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> takao-fonts libanthy-dev"
>>
>
> It should say anthy not libanthy-dev
>
>>
>>  RDEPENDS_uim = "libuim0 libedit"
>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
       [not found]       ` <CAMKF1so1wecDyNMU70hNHhco2v69Qb3hOLWfsHfaOkjGtuRPUw@mail.gmail.com>
@ 2017-08-09  1:00         ` Yusuke Mitsuki
  2017-08-09  1:16           ` Khem Raj
  0 siblings, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-09  1:00 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

Hello Khem

Sorry I cannot understand...

Are you saying to allow empty for anthy package?

I want to use uim-anthy package in order to input Japanese on the machine.
I think that it will be a problem if these are empty packages.

I see that the dependency is not accurate.
anthy recipe seems a bit strange.
Most of the definitions are in the subpackage.
It seems that neither anthy-dev nor anthy-dbg has any meaning.


*Thanks.*


2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:

> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
> <mickey.happygolucky@gmail.com> wrote:
> > Hello Khem
> >
> > Are you saying that  libanthy-dev is not need and anthy only is
> sufficient?
> >
> > anthy is in DEPENDS already. BUT it is not sufficient.
> > If libanthy-dev is not in DEPENDS_class-target, do_configure will not be
> > failed.
>
> that means the dependency is not accurate. can you add
>
> ALLOW_EMPTY_${PN} = "1"
>
> to anthy recipe and see if that helps ?
>
> >
> > However config.log say like as follows:
> >
> > -----
> > configure:20054: checking anthy/anthy.h usability
> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/
> i586-poky-linux/uim/1.8.6-r0/recipe-sysroot
> > -c  -O2 -pipe -g -feliminate-unused-debug-types
> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
> > conftest.c >&5
> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or directory
> > #include <anthy/anthy.h>
> > -----
> >
> > Then uim-anthy is not created.
> > In order to build uim-anthy, anthy.h is need but it is not installed into
> > recipes-sysroot.
> > anthy.h is incluced libanthy-dev not anthy.
> >
> > Therefor I think libanthy-dev is need.
> >
> > Let me know you opinions?
> >
> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >>
> >>
> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
> >> <mickey.happygolucky@gmail.com> wrote:
> >>>
> >>> anthy.h could not found at confiugre of uim.
> >>> Dependency broke since it began to use recipes-sysroot.
> >>>
> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
> >>> ---
> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
> >>>
> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >>> index a65d324..c507ad7 100644
> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
> >>>
> >>>  DEPENDS_class-target = "anthy-native"
> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
> >>> +PROVIDES_class-target = "libanthy-dev"
> >>
> >>
> >> This seems redundant
> >>
> >>>
> >>>
> >>>  inherit autotools pkgconfig
> >>>
> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >>> index ed846b9..4cb7b62 100644
> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
> >>>  SRC_URI[sha256sum] =
> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
> >>>
> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >>> takao-fonts"
> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >>> takao-fonts libanthy-dev"
> >>
> >>
> >> It should say anthy not libanthy-dev
> >>>
> >>>
> >>>  RDEPENDS_uim = "libuim0 libedit"
> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
> >>> --
> >>> 2.7.4
> >>>
> >>> --
> >>> _______________________________________________
> >>> Openembedded-devel mailing list
> >>> Openembedded-devel@lists.openembedded.org
> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09  1:00         ` Yusuke Mitsuki
@ 2017-08-09  1:16           ` Khem Raj
  2017-08-09  1:43             ` Yusuke Mitsuki
  0 siblings, 1 reply; 18+ messages in thread
From: Khem Raj @ 2017-08-09  1:16 UTC (permalink / raw)
  To: Yusuke Mitsuki; +Cc: openembeded-devel

On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
<mickey.happygolucky@gmail.com> wrote:
> Hello Khem
>
> Sorry I cannot understand...
>
> Are you saying to allow empty for anthy package?
>

yes whichever recipe is providing libanthy-dev add it there.

> I want to use uim-anthy package in order to input Japanese on the machine.
> I think that it will be a problem if these are empty packages.
>
> I see that the dependency is not accurate.
> anthy recipe seems a bit strange.
> Most of the definitions are in the subpackage.
> It seems that neither anthy-dev nor anthy-dbg has any meaning.
>
> Thanks.
>
>
>
> 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>>
>> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
>> <mickey.happygolucky@gmail.com> wrote:
>> > Hello Khem
>> >
>> > Are you saying that  libanthy-dev is not need and anthy only is
>> > sufficient?
>> >
>> > anthy is in DEPENDS already. BUT it is not sufficient.
>> > If libanthy-dev is not in DEPENDS_class-target, do_configure will not be
>> > failed.
>>
>> that means the dependency is not accurate. can you add
>>
>> ALLOW_EMPTY_${PN} = "1"
>>
>> to anthy recipe and see if that helps ?
>>
>> >
>> > However config.log say like as follows:
>> >
>> > -----
>> > configure:20054: checking anthy/anthy.h usability
>> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
>> >
>> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot
>> > -c  -O2 -pipe -g -feliminate-unused-debug-types
>> >
>> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
>> >
>> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
>> >
>> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
>> > conftest.c >&5
>> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or directory
>> > #include <anthy/anthy.h>
>> > -----
>> >
>> > Then uim-anthy is not created.
>> > In order to build uim-anthy, anthy.h is need but it is not installed
>> > into
>> > recipes-sysroot.
>> > anthy.h is incluced libanthy-dev not anthy.
>> >
>> > Therefor I think libanthy-dev is need.
>> >
>> > Let me know you opinions?
>> >
>> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >>
>> >>
>> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
>> >> <mickey.happygolucky@gmail.com> wrote:
>> >>>
>> >>> anthy.h could not found at confiugre of uim.
>> >>> Dependency broke since it began to use recipes-sysroot.
>> >>>
>> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>> >>> ---
>> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
>> >>>
>> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >>> index a65d324..c507ad7 100644
>> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
>> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>> >>>
>> >>>  DEPENDS_class-target = "anthy-native"
>> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
>> >>> +PROVIDES_class-target = "libanthy-dev"
>> >>
>> >>
>> >> This seems redundant
>> >>
>> >>>
>> >>>
>> >>>  inherit autotools pkgconfig
>> >>>
>> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >>> index ed846b9..4cb7b62 100644
>> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
>> >>>  SRC_URI[sha256sum] =
>> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
>> >>>
>> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
>> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >>> takao-fonts"
>> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >>> takao-fonts libanthy-dev"
>> >>
>> >>
>> >> It should say anthy not libanthy-dev
>> >>>
>> >>>
>> >>>  RDEPENDS_uim = "libuim0 libedit"
>> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>> >>> --
>> >>> 2.7.4
>> >>>
>> >>> --
>> >>> _______________________________________________
>> >>> Openembedded-devel mailing list
>> >>> Openembedded-devel@lists.openembedded.org
>> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>> >
>> >
>
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09  1:16           ` Khem Raj
@ 2017-08-09  1:43             ` Yusuke Mitsuki
  2017-08-09 14:40               ` Yusuke Mitsuki
  0 siblings, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-09  1:43 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

Hello Khem

I tried that reverted this patch(Added libanthy-dev to PROVIDES_class-terget
uim: Added libanthy-dev to DEPENDS_class-targe) and added ALLOW_EMPTY_${PN}
= "1".
However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h: No
such file or directory"
It means uim-anthy feature is dropped. uim-anthy could not created
correctly.

I want to avoid that uim-anthy feature dropping at configure script.

What should I do?

Thanks


2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:

> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
> <mickey.happygolucky@gmail.com> wrote:
> > Hello Khem
> >
> > Sorry I cannot understand...
> >
> > Are you saying to allow empty for anthy package?
> >
>
> yes whichever recipe is providing libanthy-dev add it there.
>
> > I want to use uim-anthy package in order to input Japanese on the
> machine.
> > I think that it will be a problem if these are empty packages.
> >
> > I see that the dependency is not accurate.
> > anthy recipe seems a bit strange.
> > Most of the definitions are in the subpackage.
> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
> >
> > Thanks.
> >
> >
> >
> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >>
> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
> >> <mickey.happygolucky@gmail.com> wrote:
> >> > Hello Khem
> >> >
> >> > Are you saying that  libanthy-dev is not need and anthy only is
> >> > sufficient?
> >> >
> >> > anthy is in DEPENDS already. BUT it is not sufficient.
> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will not
> be
> >> > failed.
> >>
> >> that means the dependency is not accurate. can you add
> >>
> >> ALLOW_EMPTY_${PN} = "1"
> >>
> >> to anthy recipe and see if that helps ?
> >>
> >> >
> >> > However config.log say like as follows:
> >> >
> >> > -----
> >> > configure:20054: checking anthy/anthy.h usability
> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
> >> >
> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/
> i586-poky-linux/uim/1.8.6-r0/recipe-sysroot
> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
> >> >
> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
> >> >
> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
> >> >
> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/
> tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
> >> > conftest.c >&5
> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
> directory
> >> > #include <anthy/anthy.h>
> >> > -----
> >> >
> >> > Then uim-anthy is not created.
> >> > In order to build uim-anthy, anthy.h is need but it is not installed
> >> > into
> >> > recipes-sysroot.
> >> > anthy.h is incluced libanthy-dev not anthy.
> >> >
> >> > Therefor I think libanthy-dev is need.
> >> >
> >> > Let me know you opinions?
> >> >
> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >> >>
> >> >>
> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
> >> >> <mickey.happygolucky@gmail.com> wrote:
> >> >>>
> >> >>> anthy.h could not found at confiugre of uim.
> >> >>> Dependency broke since it began to use recipes-sysroot.
> >> >>>
> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
> >> >>> ---
> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
> >> >>>
> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >>> index a65d324..c507ad7 100644
> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
> >> >>>
> >> >>>  DEPENDS_class-target = "anthy-native"
> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
> >> >>> +PROVIDES_class-target = "libanthy-dev"
> >> >>
> >> >>
> >> >> This seems redundant
> >> >>
> >> >>>
> >> >>>
> >> >>>  inherit autotools pkgconfig
> >> >>>
> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >>> index ed846b9..4cb7b62 100644
> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece
> 59"
> >> >>>  SRC_URI[sha256sum] =
> >> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
> >> >>>
> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses intltool"
> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >> >>> takao-fonts"
> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >> >>> takao-fonts libanthy-dev"
> >> >>
> >> >>
> >> >> It should say anthy not libanthy-dev
> >> >>>
> >> >>>
> >> >>>  RDEPENDS_uim = "libuim0 libedit"
> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
> >> >>> --
> >> >>> 2.7.4
> >> >>>
> >> >>> --
> >> >>> _______________________________________________
> >> >>> Openembedded-devel mailing list
> >> >>> Openembedded-devel@lists.openembedded.org
> >> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >> >
> >> >
> >
> >
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09  1:43             ` Yusuke Mitsuki
@ 2017-08-09 14:40               ` Yusuke Mitsuki
  2017-08-09 23:58                 ` Martin Jansa
  0 siblings, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-09 14:40 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

Hello Khem

I wrote:
> I tried that reverted this patch(Added libanthy-dev to
PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
added ALLOW_EMPTY_${PN} = "1".

ALLOW_EMPTY_${PN} = "1" was added into anthy recipe.

A result is in my recent email.(do_configure was not failed but uim-anthy
feature is dropped at configure script in uim recipe.)

You say that adding libanthy-dev into DEPENDS_class-target at uim recipe is
redundant.

I want to know a solution of this problem.  I do not intend to persist in
my method.
BUT under the present conditions I cannot achieve a purpose.(Wants to use
uim-anthy for Japanese input)

Are there any good ideas?

Thanks.




2017-08-09 10:43 GMT+09:00 Yusuke Mitsuki <mickey.happygolucky@gmail.com>:

> Hello Khem
>
> I tried that reverted this patch(Added libanthy-dev to
> PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
> added ALLOW_EMPTY_${PN} = "1".
> However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h: No
> such file or directory"
> It means uim-anthy feature is dropped. uim-anthy could not created
> correctly.
>
> I want to avoid that uim-anthy feature dropping at configure script.
>
> What should I do?
>
> Thanks
>
>
> 2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>
>> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
>> <mickey.happygolucky@gmail.com> wrote:
>> > Hello Khem
>> >
>> > Sorry I cannot understand...
>> >
>> > Are you saying to allow empty for anthy package?
>> >
>>
>> yes whichever recipe is providing libanthy-dev add it there.
>>
>> > I want to use uim-anthy package in order to input Japanese on the
>> machine.
>> > I think that it will be a problem if these are empty packages.
>> >
>> > I see that the dependency is not accurate.
>> > anthy recipe seems a bit strange.
>> > Most of the definitions are in the subpackage.
>> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
>> >
>> > Thanks.
>> >
>> >
>> >
>> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >>
>> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
>> >> <mickey.happygolucky@gmail.com> wrote:
>> >> > Hello Khem
>> >> >
>> >> > Are you saying that  libanthy-dev is not need and anthy only is
>> >> > sufficient?
>> >> >
>> >> > anthy is in DEPENDS already. BUT it is not sufficient.
>> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will
>> not be
>> >> > failed.
>> >>
>> >> that means the dependency is not accurate. can you add
>> >>
>> >> ALLOW_EMPTY_${PN} = "1"
>> >>
>> >> to anthy recipe and see if that helps ?
>> >>
>> >> >
>> >> > However config.log say like as follows:
>> >> >
>> >> > -----
>> >> > configure:20054: checking anthy/anthy.h usability
>> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
>> >> >
>> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
>> -poky-linux/uim/1.8.6-r0/recipe-sysroot
>> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
>> >> >
>> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
>> >> >
>> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
>> >> >
>> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
>> >> > conftest.c >&5
>> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
>> directory
>> >> > #include <anthy/anthy.h>
>> >> > -----
>> >> >
>> >> > Then uim-anthy is not created.
>> >> > In order to build uim-anthy, anthy.h is need but it is not installed
>> >> > into
>> >> > recipes-sysroot.
>> >> > anthy.h is incluced libanthy-dev not anthy.
>> >> >
>> >> > Therefor I think libanthy-dev is need.
>> >> >
>> >> > Let me know you opinions?
>> >> >
>> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >> >>
>> >> >>
>> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
>> >> >> <mickey.happygolucky@gmail.com> wrote:
>> >> >>>
>> >> >>> anthy.h could not found at confiugre of uim.
>> >> >>> Dependency broke since it began to use recipes-sysroot.
>> >> >>>
>> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>> >> >>> ---
>> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
>> >> >>>
>> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >>> index a65d324..c507ad7 100644
>> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
>> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>> >> >>>
>> >> >>>  DEPENDS_class-target = "anthy-native"
>> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
>> >> >>> +PROVIDES_class-target = "libanthy-dev"
>> >> >>
>> >> >>
>> >> >> This seems redundant
>> >> >>
>> >> >>>
>> >> >>>
>> >> >>>  inherit autotools pkgconfig
>> >> >>>
>> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >>> index ed846b9..4cb7b62 100644
>> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcec
>> e59"
>> >> >>>  SRC_URI[sha256sum] =
>> >> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
>> >> >>>
>> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses
>> intltool"
>> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >>> takao-fonts"
>> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >>> takao-fonts libanthy-dev"
>> >> >>
>> >> >>
>> >> >> It should say anthy not libanthy-dev
>> >> >>>
>> >> >>>
>> >> >>>  RDEPENDS_uim = "libuim0 libedit"
>> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>> >> >>> --
>> >> >>> 2.7.4
>> >> >>>
>> >> >>> --
>> >> >>> _______________________________________________
>> >> >>> Openembedded-devel mailing list
>> >> >>> Openembedded-devel@lists.openembedded.org
>> >> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>> >> >
>> >> >
>> >
>> >
>>
>
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09 14:40               ` Yusuke Mitsuki
@ 2017-08-09 23:58                 ` Martin Jansa
  2017-08-10  1:38                   ` Khem Raj
  2017-08-10 14:27                   ` Yusuke Mitsuki
  0 siblings, 2 replies; 18+ messages in thread
From: Martin Jansa @ 2017-08-09 23:58 UTC (permalink / raw)
  To: Yusuke Mitsuki; +Cc: openembeded-devel

Hello,

Build time dependencies (DEPENDS) unlike runtime dependencies (RDEPENDS)
don't care about packages (empty or not), they depend on whatever the
recipe stages to sysroot.

So depending on PROVIDED anthy-dev is the same as depending on just anthy.

The issue you were seeing is because anthy actually wasn't in the DEPENDS
for target builds.

I've fixed your change when cherry-picking it to master-next, see (and
test) this:
http://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=6360697095094bcc800bbe9f8950c96ae4760e2e


On Wed, Aug 9, 2017 at 4:40 PM, Yusuke Mitsuki <
mickey.happygolucky@gmail.com> wrote:

> Hello Khem
>
> I wrote:
> > I tried that reverted this patch(Added libanthy-dev to
> PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
> added ALLOW_EMPTY_${PN} = "1".
>
> ALLOW_EMPTY_${PN} = "1" was added into anthy recipe.
>
> A result is in my recent email.(do_configure was not failed but uim-anthy
> feature is dropped at configure script in uim recipe.)
>
> You say that adding libanthy-dev into DEPENDS_class-target at uim recipe is
> redundant.
>
> I want to know a solution of this problem.  I do not intend to persist in
> my method.
> BUT under the present conditions I cannot achieve a purpose.(Wants to use
> uim-anthy for Japanese input)
>
> Are there any good ideas?
>
> Thanks.
>
>
>
>
> 2017-08-09 10:43 GMT+09:00 Yusuke Mitsuki <mickey.happygolucky@gmail.com>:
>
> > Hello Khem
> >
> > I tried that reverted this patch(Added libanthy-dev to
> > PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
> > added ALLOW_EMPTY_${PN} = "1".
> > However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h: No
> > such file or directory"
> > It means uim-anthy feature is dropped. uim-anthy could not created
> > correctly.
> >
> > I want to avoid that uim-anthy feature dropping at configure script.
> >
> > What should I do?
> >
> > Thanks
> >
> >
> > 2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >
> >> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
> >> <mickey.happygolucky@gmail.com> wrote:
> >> > Hello Khem
> >> >
> >> > Sorry I cannot understand...
> >> >
> >> > Are you saying to allow empty for anthy package?
> >> >
> >>
> >> yes whichever recipe is providing libanthy-dev add it there.
> >>
> >> > I want to use uim-anthy package in order to input Japanese on the
> >> machine.
> >> > I think that it will be a problem if these are empty packages.
> >> >
> >> > I see that the dependency is not accurate.
> >> > anthy recipe seems a bit strange.
> >> > Most of the definitions are in the subpackage.
> >> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
> >> >
> >> > Thanks.
> >> >
> >> >
> >> >
> >> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >> >>
> >> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
> >> >> <mickey.happygolucky@gmail.com> wrote:
> >> >> > Hello Khem
> >> >> >
> >> >> > Are you saying that  libanthy-dev is not need and anthy only is
> >> >> > sufficient?
> >> >> >
> >> >> > anthy is in DEPENDS already. BUT it is not sufficient.
> >> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will
> >> not be
> >> >> > failed.
> >> >>
> >> >> that means the dependency is not accurate. can you add
> >> >>
> >> >> ALLOW_EMPTY_${PN} = "1"
> >> >>
> >> >> to anthy recipe and see if that helps ?
> >> >>
> >> >> >
> >> >> > However config.log say like as follows:
> >> >> >
> >> >> > -----
> >> >> > configure:20054: checking anthy/anthy.h usability
> >> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
> >> >> >
> >> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
> >> -poky-linux/uim/1.8.6-r0/recipe-sysroot
> >> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
> >> >> >
> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
> >> work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
> >> >> >
> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
> >> >> >
> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
> >> >> > conftest.c >&5
> >> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
> >> directory
> >> >> > #include <anthy/anthy.h>
> >> >> > -----
> >> >> >
> >> >> > Then uim-anthy is not created.
> >> >> > In order to build uim-anthy, anthy.h is need but it is not
> installed
> >> >> > into
> >> >> > recipes-sysroot.
> >> >> > anthy.h is incluced libanthy-dev not anthy.
> >> >> >
> >> >> > Therefor I think libanthy-dev is need.
> >> >> >
> >> >> > Let me know you opinions?
> >> >> >
> >> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
> >> >> >>
> >> >> >>
> >> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
> >> >> >> <mickey.happygolucky@gmail.com> wrote:
> >> >> >>>
> >> >> >>> anthy.h could not found at confiugre of uim.
> >> >> >>> Dependency broke since it began to use recipes-sysroot.
> >> >> >>>
> >> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
> >> >> >>> ---
> >> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
> >> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
> >> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
> >> >> >>>
> >> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >> >>> index a65d324..c507ad7 100644
> >> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
> >> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
> >> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
> >> >> >>>
> >> >> >>>  DEPENDS_class-target = "anthy-native"
> >> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
> >> >> >>> +PROVIDES_class-target = "libanthy-dev"
> >> >> >>
> >> >> >>
> >> >> >> This seems redundant
> >> >> >>
> >> >> >>>
> >> >> >>>
> >> >> >>>  inherit autotools pkgconfig
> >> >> >>>
> >> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >> >>> index ed846b9..4cb7b62 100644
> >> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
> >> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] =
> "ecea4c597bab1fd4ba98ea84edcec
> >> e59"
> >> >> >>>  SRC_URI[sha256sum] =
> >> >> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb
> 235f"
> >> >> >>>
> >> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses
> >> intltool"
> >> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >> >> >>> takao-fonts"
> >> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
> >> >> >>> takao-fonts libanthy-dev"
> >> >> >>
> >> >> >>
> >> >> >> It should say anthy not libanthy-dev
> >> >> >>>
> >> >> >>>
> >> >> >>>  RDEPENDS_uim = "libuim0 libedit"
> >> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
> >> >> >>> --
> >> >> >>> 2.7.4
> >> >> >>>
> >> >> >>> --
> >> >> >>> _______________________________________________
> >> >> >>> Openembedded-devel mailing list
> >> >> >>> Openembedded-devel@lists.openembedded.org
> >> >> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-
> devel
> >> >> >
> >> >> >
> >> >
> >> >
> >>
> >
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09 23:58                 ` Martin Jansa
@ 2017-08-10  1:38                   ` Khem Raj
  2017-08-10 14:27                   ` Yusuke Mitsuki
  1 sibling, 0 replies; 18+ messages in thread
From: Khem Raj @ 2017-08-10  1:38 UTC (permalink / raw)
  To: Martin Jansa, Yusuke Mitsuki; +Cc: openembeded-devel

On Wed, Aug 9, 2017 at 4:58 PM Martin Jansa <martin.jansa@gmail.com> wrote:

> Hello,
>
> Build time dependencies (DEPENDS) unlike runtime dependencies (RDEPENDS)
> don't care about packages (empty or not), they depend on whatever the
> recipe stages to sysroot.
>
> So depending on PROVIDED anthy-dev is the same as depending on just anthy.
>
> The issue you were seeing is because anthy actually wasn't in the DEPENDS
> for target builds.
>
> I've fixed your change when cherry-picking it to master-next, see (and
> test) this:
>
> http://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=6360697095094bcc800bbe9f8950c96ae4760e2e
>

Thanks for taking care of this is the right fix

>
>
> On Wed, Aug 9, 2017 at 4:40 PM, Yusuke Mitsuki <
> mickey.happygolucky@gmail.com> wrote:
>
>> Hello Khem
>>
>> I wrote:
>> > I tried that reverted this patch(Added libanthy-dev to
>> PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
>> added ALLOW_EMPTY_${PN} = "1".
>>
>> ALLOW_EMPTY_${PN} = "1" was added into anthy recipe.
>>
>> A result is in my recent email.(do_configure was not failed but uim-anthy
>> feature is dropped at configure script in uim recipe.)
>>
>> You say that adding libanthy-dev into DEPENDS_class-target at uim recipe
>> is
>> redundant.
>>
>> I want to know a solution of this problem.  I do not intend to persist in
>> my method.
>> BUT under the present conditions I cannot achieve a purpose.(Wants to use
>> uim-anthy for Japanese input)
>>
>> Are there any good ideas?
>>
>> Thanks.
>>
>>
>>
>>
>> 2017-08-09 10:43 GMT+09:00 Yusuke Mitsuki <mickey.happygolucky@gmail.com
>> >:
>>
>> > Hello Khem
>> >
>> > I tried that reverted this patch(Added libanthy-dev to
>> > PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)
>> and
>> > added ALLOW_EMPTY_${PN} = "1".
>> > However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h: No
>> > such file or directory"
>> > It means uim-anthy feature is dropped. uim-anthy could not created
>> > correctly.
>> >
>> > I want to avoid that uim-anthy feature dropping at configure script.
>> >
>> > What should I do?
>> >
>> > Thanks
>> >
>> >
>> > 2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >
>> >> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
>> >> <mickey.happygolucky@gmail.com> wrote:
>> >> > Hello Khem
>> >> >
>> >> > Sorry I cannot understand...
>> >> >
>> >> > Are you saying to allow empty for anthy package?
>> >> >
>> >>
>> >> yes whichever recipe is providing libanthy-dev add it there.
>> >>
>> >> > I want to use uim-anthy package in order to input Japanese on the
>> >> machine.
>> >> > I think that it will be a problem if these are empty packages.
>> >> >
>> >> > I see that the dependency is not accurate.
>> >> > anthy recipe seems a bit strange.
>> >> > Most of the definitions are in the subpackage.
>> >> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
>> >> >
>> >> > Thanks.
>> >> >
>> >> >
>> >> >
>> >> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >> >>
>> >> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
>> >> >> <mickey.happygolucky@gmail.com> wrote:
>> >> >> > Hello Khem
>> >> >> >
>> >> >> > Are you saying that  libanthy-dev is not need and anthy only is
>> >> >> > sufficient?
>> >> >> >
>> >> >> > anthy is in DEPENDS already. BUT it is not sufficient.
>> >> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will
>> >> not be
>> >> >> > failed.
>> >> >>
>> >> >> that means the dependency is not accurate. can you add
>> >> >>
>> >> >> ALLOW_EMPTY_${PN} = "1"
>> >> >>
>> >> >> to anthy recipe and see if that helps ?
>> >> >>
>> >> >> >
>> >> >> > However config.log say like as follows:
>> >> >> >
>> >> >> > -----
>> >> >> > configure:20054: checking anthy/anthy.h usability
>> >> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
>> >> >> >
>> >> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
>> >> -poky-linux/uim/1.8.6-r0/recipe-sysroot
>> >> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
>> >> >> > conftest.c >&5
>> >> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
>> >> directory
>> >> >> > #include <anthy/anthy.h>
>> >> >> > -----
>> >> >> >
>> >> >> > Then uim-anthy is not created.
>> >> >> > In order to build uim-anthy, anthy.h is need but it is not
>> installed
>> >> >> > into
>> >> >> > recipes-sysroot.
>> >> >> > anthy.h is incluced libanthy-dev not anthy.
>> >> >> >
>> >> >> > Therefor I think libanthy-dev is need.
>> >> >> >
>> >> >> > Let me know you opinions?
>> >> >> >
>> >> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >> >> >>
>> >> >> >>
>> >> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
>> >> >> >> <mickey.happygolucky@gmail.com> wrote:
>> >> >> >>>
>> >> >> >>> anthy.h could not found at confiugre of uim.
>> >> >> >>> Dependency broke since it began to use recipes-sysroot.
>> >> >> >>>
>> >> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>> >> >> >>> ---
>> >> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>> >> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>> >> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
>> >> >> >>>
>> >> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> index a65d324..c507ad7 100644
>> >> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
>> >> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>> >> >> >>>
>> >> >> >>>  DEPENDS_class-target = "anthy-native"
>> >> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
>> >> >> >>> +PROVIDES_class-target = "libanthy-dev"
>> >> >> >>
>> >> >> >>
>> >> >> >> This seems redundant
>> >> >> >>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>  inherit autotools pkgconfig
>> >> >> >>>
>> >> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> index ed846b9..4cb7b62 100644
>> >> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] =
>> "ecea4c597bab1fd4ba98ea84edcec
>> >> e59"
>> >> >> >>>  SRC_URI[sha256sum] =
>> >> >> >>>
>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
>> >> >> >>>
>> >> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses
>> >> intltool"
>> >> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >> >>> takao-fonts"
>> >> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >> >>> takao-fonts libanthy-dev"
>> >> >> >>
>> >> >> >>
>> >> >> >> It should say anthy not libanthy-dev
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>  RDEPENDS_uim = "libuim0 libedit"
>> >> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>> >> >> >>> --
>> >> >> >>> 2.7.4
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> _______________________________________________
>> >> >> >>> Openembedded-devel mailing list
>> >> >> >>> Openembedded-devel@lists.openembedded.org
>> >> >> >>>
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>> >> >> >
>> >> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
>
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-09 23:58                 ` Martin Jansa
  2017-08-10  1:38                   ` Khem Raj
@ 2017-08-10 14:27                   ` Yusuke Mitsuki
  2017-08-10 16:20                     ` Martin Jansa
  1 sibling, 1 reply; 18+ messages in thread
From: Yusuke Mitsuki @ 2017-08-10 14:27 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembeded-devel

Hello Martin

Thank you so much. It was very helpful.
Your fix works so fine. I could input Japanese on machine via uim-anthy.

I understood that I should use append instead of += in these cases.


2017-08-10 8:58 GMT+09:00 Martin Jansa <martin.jansa@gmail.com>:

> Hello,
>
> Build time dependencies (DEPENDS) unlike runtime dependencies (RDEPENDS)
> don't care about packages (empty or not), they depend on whatever the
> recipe stages to sysroot.
>
> So depending on PROVIDED anthy-dev is the same as depending on just anthy.
>
> The issue you were seeing is because anthy actually wasn't in the DEPENDS
> for target builds.
>
> I've fixed your change when cherry-picking it to master-next, see (and
> test) this:
> http://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=
> 6360697095094bcc800bbe9f8950c96ae4760e2e
>
>
> On Wed, Aug 9, 2017 at 4:40 PM, Yusuke Mitsuki <
> mickey.happygolucky@gmail.com> wrote:
>
>> Hello Khem
>>
>> I wrote:
>> > I tried that reverted this patch(Added libanthy-dev to
>> PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
>> added ALLOW_EMPTY_${PN} = "1".
>>
>> ALLOW_EMPTY_${PN} = "1" was added into anthy recipe.
>>
>> A result is in my recent email.(do_configure was not failed but uim-anthy
>> feature is dropped at configure script in uim recipe.)
>>
>> You say that adding libanthy-dev into DEPENDS_class-target at uim recipe
>> is
>> redundant.
>>
>> I want to know a solution of this problem.  I do not intend to persist in
>> my method.
>> BUT under the present conditions I cannot achieve a purpose.(Wants to use
>> uim-anthy for Japanese input)
>>
>> Are there any good ideas?
>>
>> Thanks.
>>
>>
>>
>>
>> 2017-08-09 10:43 GMT+09:00 Yusuke Mitsuki <mickey.happygolucky@gmail.com
>> >:
>>
>> > Hello Khem
>> >
>> > I tried that reverted this patch(Added libanthy-dev to
>> > PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)
>> and
>> > added ALLOW_EMPTY_${PN} = "1".
>> > However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h: No
>> > such file or directory"
>> > It means uim-anthy feature is dropped. uim-anthy could not created
>> > correctly.
>> >
>> > I want to avoid that uim-anthy feature dropping at configure script.
>> >
>> > What should I do?
>> >
>> > Thanks
>> >
>> >
>> > 2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >
>> >> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
>> >> <mickey.happygolucky@gmail.com> wrote:
>> >> > Hello Khem
>> >> >
>> >> > Sorry I cannot understand...
>> >> >
>> >> > Are you saying to allow empty for anthy package?
>> >> >
>> >>
>> >> yes whichever recipe is providing libanthy-dev add it there.
>> >>
>> >> > I want to use uim-anthy package in order to input Japanese on the
>> >> machine.
>> >> > I think that it will be a problem if these are empty packages.
>> >> >
>> >> > I see that the dependency is not accurate.
>> >> > anthy recipe seems a bit strange.
>> >> > Most of the definitions are in the subpackage.
>> >> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
>> >> >
>> >> > Thanks.
>> >> >
>> >> >
>> >> >
>> >> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >> >>
>> >> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
>> >> >> <mickey.happygolucky@gmail.com> wrote:
>> >> >> > Hello Khem
>> >> >> >
>> >> >> > Are you saying that  libanthy-dev is not need and anthy only is
>> >> >> > sufficient?
>> >> >> >
>> >> >> > anthy is in DEPENDS already. BUT it is not sufficient.
>> >> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will
>> >> not be
>> >> >> > failed.
>> >> >>
>> >> >> that means the dependency is not accurate. can you add
>> >> >>
>> >> >> ALLOW_EMPTY_${PN} = "1"
>> >> >>
>> >> >> to anthy recipe and see if that helps ?
>> >> >>
>> >> >> >
>> >> >> > However config.log say like as follows:
>> >> >> >
>> >> >> > -----
>> >> >> > configure:20054: checking anthy/anthy.h usability
>> >> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
>> >> >> >
>> >> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
>> >> -poky-linux/uim/1.8.6-r0/recipe-sysroot
>> >> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
>> >> >> >
>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
>> >> >> > conftest.c >&5
>> >> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
>> >> directory
>> >> >> > #include <anthy/anthy.h>
>> >> >> > -----
>> >> >> >
>> >> >> > Then uim-anthy is not created.
>> >> >> > In order to build uim-anthy, anthy.h is need but it is not
>> installed
>> >> >> > into
>> >> >> > recipes-sysroot.
>> >> >> > anthy.h is incluced libanthy-dev not anthy.
>> >> >> >
>> >> >> > Therefor I think libanthy-dev is need.
>> >> >> >
>> >> >> > Let me know you opinions?
>> >> >> >
>> >> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>> >> >> >>
>> >> >> >>
>> >> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
>> >> >> >> <mickey.happygolucky@gmail.com> wrote:
>> >> >> >>>
>> >> >> >>> anthy.h could not found at confiugre of uim.
>> >> >> >>> Dependency broke since it began to use recipes-sysroot.
>> >> >> >>>
>> >> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>> >> >> >>> ---
>> >> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>> >> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>> >> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
>> >> >> >>>
>> >> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> index a65d324..c507ad7 100644
>> >> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>> >> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
>> >> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>> >> >> >>>
>> >> >> >>>  DEPENDS_class-target = "anthy-native"
>> >> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
>> >> >> >>> +PROVIDES_class-target = "libanthy-dev"
>> >> >> >>
>> >> >> >>
>> >> >> >> This seems redundant
>> >> >> >>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>  inherit autotools pkgconfig
>> >> >> >>>
>> >> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> index ed846b9..4cb7b62 100644
>> >> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>> >> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] =
>> "ecea4c597bab1fd4ba98ea84edcec
>> >> e59"
>> >> >> >>>  SRC_URI[sha256sum] =
>> >> >> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1c
>> b235f"
>> >> >> >>>
>> >> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses
>> >> intltool"
>> >> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >> >>> takao-fonts"
>> >> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>> >> >> >>> takao-fonts libanthy-dev"
>> >> >> >>
>> >> >> >>
>> >> >> >> It should say anthy not libanthy-dev
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>  RDEPENDS_uim = "libuim0 libedit"
>> >> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>> >> >> >>> --
>> >> >> >>> 2.7.4
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> _______________________________________________
>> >> >> >>> Openembedded-devel mailing list
>> >> >> >>> Openembedded-devel@lists.openembedded.org
>> >> >> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-
>> devel
>> >> >> >
>> >> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
>
>


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

* Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target
  2017-08-10 14:27                   ` Yusuke Mitsuki
@ 2017-08-10 16:20                     ` Martin Jansa
  0 siblings, 0 replies; 18+ messages in thread
From: Martin Jansa @ 2017-08-10 16:20 UTC (permalink / raw)
  To: Yusuke Mitsuki; +Cc: openembeded-devel

> I understood that I should use append instead of += in these cases.

That's not the important part. Important is where the override is applied.

DEPENDS_append = " foo"
DEPENDS += "foo"

are not very different, except append is processed a bit later and +=
automatically adds the leading space, but

DEPENDS_class-target_append = " foo"
DEPENDS_append_class-target = " foo"

are very different, first appends to "DEPENDS_class-target" which then
overrides DEPENDS variable (because "class-target") is the override. The
second example appends to normal DEPENDS variable (without overriding it) -
only for target builds.


On Thu, Aug 10, 2017 at 4:27 PM, Yusuke Mitsuki <
mickey.happygolucky@gmail.com> wrote:

> Hello Martin
>
> Thank you so much. It was very helpful.
> Your fix works so fine. I could input Japanese on machine via uim-anthy.
>
> I understood that I should use append instead of += in these cases.
>
>
> 2017-08-10 8:58 GMT+09:00 Martin Jansa <martin.jansa@gmail.com>:
>
>> Hello,
>>
>> Build time dependencies (DEPENDS) unlike runtime dependencies (RDEPENDS)
>> don't care about packages (empty or not), they depend on whatever the
>> recipe stages to sysroot.
>>
>> So depending on PROVIDED anthy-dev is the same as depending on just anthy.
>>
>> The issue you were seeing is because anthy actually wasn't in the DEPENDS
>> for target builds.
>>
>> I've fixed your change when cherry-picking it to master-next, see (and
>> test) this:
>> http://git.openembedded.org/meta-openembedded/commit/?h=mast
>> er-next&id=6360697095094bcc800bbe9f8950c96ae4760e2e
>>
>>
>> On Wed, Aug 9, 2017 at 4:40 PM, Yusuke Mitsuki <
>> mickey.happygolucky@gmail.com> wrote:
>>
>>> Hello Khem
>>>
>>> I wrote:
>>> > I tried that reverted this patch(Added libanthy-dev to
>>> PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe) and
>>> added ALLOW_EMPTY_${PN} = "1".
>>>
>>> ALLOW_EMPTY_${PN} = "1" was added into anthy recipe.
>>>
>>> A result is in my recent email.(do_configure was not failed but uim-anthy
>>> feature is dropped at configure script in uim recipe.)
>>>
>>> You say that adding libanthy-dev into DEPENDS_class-target at uim recipe
>>> is
>>> redundant.
>>>
>>> I want to know a solution of this problem.  I do not intend to persist in
>>> my method.
>>> BUT under the present conditions I cannot achieve a purpose.(Wants to use
>>> uim-anthy for Japanese input)
>>>
>>> Are there any good ideas?
>>>
>>> Thanks.
>>>
>>>
>>>
>>>
>>> 2017-08-09 10:43 GMT+09:00 Yusuke Mitsuki <mickey.happygolucky@gmail.com
>>> >:
>>>
>>> > Hello Khem
>>> >
>>> > I tried that reverted this patch(Added libanthy-dev to
>>> > PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)
>>> and
>>> > added ALLOW_EMPTY_${PN} = "1".
>>> > However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h:
>>> No
>>> > such file or directory"
>>> > It means uim-anthy feature is dropped. uim-anthy could not created
>>> > correctly.
>>> >
>>> > I want to avoid that uim-anthy feature dropping at configure script.
>>> >
>>> > What should I do?
>>> >
>>> > Thanks
>>> >
>>> >
>>> > 2017-08-09 10:16 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>>> >
>>> >> On Tue, Aug 8, 2017 at 6:00 PM, Yusuke Mitsuki
>>> >> <mickey.happygolucky@gmail.com> wrote:
>>> >> > Hello Khem
>>> >> >
>>> >> > Sorry I cannot understand...
>>> >> >
>>> >> > Are you saying to allow empty for anthy package?
>>> >> >
>>> >>
>>> >> yes whichever recipe is providing libanthy-dev add it there.
>>> >>
>>> >> > I want to use uim-anthy package in order to input Japanese on the
>>> >> machine.
>>> >> > I think that it will be a problem if these are empty packages.
>>> >> >
>>> >> > I see that the dependency is not accurate.
>>> >> > anthy recipe seems a bit strange.
>>> >> > Most of the definitions are in the subpackage.
>>> >> > It seems that neither anthy-dev nor anthy-dbg has any meaning.
>>> >> >
>>> >> > Thanks.
>>> >> >
>>> >> >
>>> >> >
>>> >> > 2017-08-09 9:40 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>>> >> >>
>>> >> >> On Tue, Aug 8, 2017 at 5:33 PM, Yusuke Mitsuki
>>> >> >> <mickey.happygolucky@gmail.com> wrote:
>>> >> >> > Hello Khem
>>> >> >> >
>>> >> >> > Are you saying that  libanthy-dev is not need and anthy only is
>>> >> >> > sufficient?
>>> >> >> >
>>> >> >> > anthy is in DEPENDS already. BUT it is not sufficient.
>>> >> >> > If libanthy-dev is not in DEPENDS_class-target, do_configure will
>>> >> not be
>>> >> >> > failed.
>>> >> >>
>>> >> >> that means the dependency is not accurate. can you add
>>> >> >>
>>> >> >> ALLOW_EMPTY_${PN} = "1"
>>> >> >>
>>> >> >> to anthy recipe and see if that helps ?
>>> >> >>
>>> >> >> >
>>> >> >> > However config.log say like as follows:
>>> >> >> >
>>> >> >> > -----
>>> >> >> > configure:20054: checking anthy/anthy.h usability
>>> >> >> > configure:20054: i586-poky-linux-gcc -m32 -march=i586
>>> >> >> >
>>> >> >> > --sysroot=/home/y-mitsuki/yocto/build_keyboard/tmp/work/i586
>>> >> -poky-linux/uim/1.8.6-r0/recipe-sysroot
>>> >> >> > -c  -O2 -pipe -g -feliminate-unused-debug-types
>>> >> >> >
>>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>>> >> work/i586-poky-linux/uim/1.8.6-r0=/usr/src/debug/uim/1.8.6-r0
>>> >> >> >
>>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=
>>> >> >> >
>>> >> >> > -fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/
>>> >> work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=
>>> >> >> > conftest.c >&5
>>> >> >> > conftest.c:65:25: fatal error: anthy/anthy.h: No such file or
>>> >> directory
>>> >> >> > #include <anthy/anthy.h>
>>> >> >> > -----
>>> >> >> >
>>> >> >> > Then uim-anthy is not created.
>>> >> >> > In order to build uim-anthy, anthy.h is need but it is not
>>> installed
>>> >> >> > into
>>> >> >> > recipes-sysroot.
>>> >> >> > anthy.h is incluced libanthy-dev not anthy.
>>> >> >> >
>>> >> >> > Therefor I think libanthy-dev is need.
>>> >> >> >
>>> >> >> > Let me know you opinions?
>>> >> >> >
>>> >> >> > 2017-08-08 12:48 GMT+09:00 Khem Raj <raj.khem@gmail.com>:
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Mon, Aug 7, 2017 at 6:00 PM Yusuke Mitsuki
>>> >> >> >> <mickey.happygolucky@gmail.com> wrote:
>>> >> >> >>>
>>> >> >> >>> anthy.h could not found at confiugre of uim.
>>> >> >> >>> Dependency broke since it began to use recipes-sysroot.
>>> >> >> >>>
>>> >> >> >>> Signed-off-by: Yusuke Mitsuki <mickey.happygolucky@gmail.com>
>>> >> >> >>> ---
>>> >> >> >>>  meta-oe/recipes-support/anthy/anthy_9100h.bb | 1 +
>>> >> >> >>>  meta-oe/recipes-support/uim/uim_1.8.6.bb     | 2 +-
>>> >> >> >>>  2 files changed, 2 insertions(+), 1 deletion(-)
>>> >> >> >>>
>>> >> >> >>> diff --git a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>>> >> >> >>> b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>>> >> >> >>> index a65d324..c507ad7 100644
>>> >> >> >>> --- a/meta-oe/recipes-support/anthy/anthy_9100h.bb
>>> >> >> >>> +++ b/meta-oe/recipes-support/anthy/anthy_9100h.bb
>>> >> >> >>> @@ -18,6 +18,7 @@ SRC_URI[sha256sum] =
>>> >> >> >>> "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2
>>> >> >> >>>
>>> >> >> >>>  DEPENDS_class-target = "anthy-native"
>>> >> >> >>>  RDEPENDS_${PN}_class-target = "libanthy0"
>>> >> >> >>> +PROVIDES_class-target = "libanthy-dev"
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> This seems redundant
>>> >> >> >>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>  inherit autotools pkgconfig
>>> >> >> >>>
>>> >> >> >>> diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>>> >> >> >>> b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>>> >> >> >>> index ed846b9..4cb7b62 100644
>>> >> >> >>> --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb
>>> >> >> >>> +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb
>>> >> >> >>> @@ -14,7 +14,7 @@ SRC_URI[md5sum] =
>>> "ecea4c597bab1fd4ba98ea84edcec
>>> >> e59"
>>> >> >> >>>  SRC_URI[sha256sum] =
>>> >> >> >>> "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1c
>>> b235f"
>>> >> >> >>>
>>> >> >> >>>  DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses
>>> >> intltool"
>>> >> >> >>> -DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>>> >> >> >>> takao-fonts"
>>> >> >> >>> +DEPENDS_class-target += "intltool-native gtk+ gtk+3 uim-native
>>> >> >> >>> takao-fonts libanthy-dev"
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> It should say anthy not libanthy-dev
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>  RDEPENDS_uim = "libuim0 libedit"
>>> >> >> >>>  RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
>>> >> >> >>> --
>>> >> >> >>> 2.7.4
>>> >> >> >>>
>>> >> >> >>> --
>>> >> >> >>> _______________________________________________
>>> >> >> >>> Openembedded-devel mailing list
>>> >> >> >>> Openembedded-devel@lists.openembedded.org
>>> >> >> >>> http://lists.openembedded.org/mailman/listinfo/openembedded-
>>> devel
>>> >> >> >
>>> >> >> >
>>> >> >
>>> >> >
>>> >>
>>> >
>>> >
>>> --
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>>
>>
>>
>


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

end of thread, other threads:[~2017-08-10 16:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-08  0:59 [PATCH 0/6] Fix uim recipe's problems Yusuke Mitsuki
2017-08-08  0:59 ` [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target Yusuke Mitsuki
2017-08-08  3:48   ` Khem Raj
2017-08-09  0:44     ` Yusuke Mitsuki
     [not found]     ` <CACMwXoVyzWqadsAsjpghRFT10XfFPYtZmua_T=_fNcE8Rmmt-w@mail.gmail.com>
     [not found]       ` <CAMKF1so1wecDyNMU70hNHhco2v69Qb3hOLWfsHfaOkjGtuRPUw@mail.gmail.com>
2017-08-09  1:00         ` Yusuke Mitsuki
2017-08-09  1:16           ` Khem Raj
2017-08-09  1:43             ` Yusuke Mitsuki
2017-08-09 14:40               ` Yusuke Mitsuki
2017-08-09 23:58                 ` Martin Jansa
2017-08-10  1:38                   ` Khem Raj
2017-08-10 14:27                   ` Yusuke Mitsuki
2017-08-10 16:20                     ` Martin Jansa
2017-08-08  0:59 ` [PATCH 2/6] uim: Modified the order of package definition Yusuke Mitsuki
2017-08-08  0:59 ` [PATCH 3/6] uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy Yusuke Mitsuki
2017-08-08  0:59 ` [PATCH 4/6] uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common Yusuke Mitsuki
2017-08-08  0:59 ` [PATCH 5/6] uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk Yusuke Mitsuki
2017-08-08  0:59 ` [PATCH 6/6] uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed Yusuke Mitsuki
2017-08-08 19:21   ` Svein Seldal

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.