Skip to contentSkip to conversation

Fix uim recipe's problems

PATCH In review Yusuke Mitsuki 4 participants 18 messages Aug 8, 2017 – Aug 10, 2017 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

cover Fix uim recipe's problems

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(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/6 anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +1 -0
index a65d324..c507ad7 100644
@@ -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
 
meta-oe/recipes-support/uim/uim_1.8.6.bb +1 -1
index ed846b9..4cb7b62 100644
@@ -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"
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

Quoted 17 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 12 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

Quoted 6 lines

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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

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 <[email protected]>:

Quoted 63 lines
Quoted 17 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] = "d256f075f018b4a3cb0d165ed6151f

da4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 12 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
 SRC_URI[sha256sum] = "7b1ea803c73f3478917166f04f67cc

e6e45ad7ea5ab6df99b948c17eb1cb235f"

Quoted 6 lines

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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

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

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

#6 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

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 <[email protected]>:

Quoted 112 lines
Quoted 3 lines · Yusuke Mitsuki

Hello Khem

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

sufficient?

Quoted 4 lines

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 ?

Quoted 7 lines

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

Review

Quoted 2 lines
(quoted diff) +0 -2
-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

Quoted 1 line

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/

tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 1 line

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/

tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 79 lines

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 <[email protected]>:

Quoted 62 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 13 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

Quoted 5 lines

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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 128 lines

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 <[email protected]>:

Quoted 113 lines
Quoted 8 lines · Yusuke Mitsuki

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 ?

Quoted 95 lines

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

(quoted diff) +0 -4
-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 <[email protected]>:

Quoted 62 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 13 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59"
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

Quoted 5 lines

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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

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 <[email protected]>:

Quoted 148 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/

tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/

tmp/work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 45 lines
Quoted 45 lines
Quoted 45 lines

#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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece

59"

Quoted 27 lines
Quoted 25 lines
Quoted 25 lines
Quoted 23 lines
Quoted 8 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

Hello Khem

Quoted 1 line · 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 <[email protected]>:

Quoted 170 lines

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 <[email protected]>:

Quoted 149 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 45 lines
Quoted 45 lines
Quoted 45 lines

#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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcec

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcec

e59"

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses

intltool"

Quoted 23 lines
Quoted 21 lines
Quoted 21 lines
Quoted 19 lines
Quoted 4 lines

-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

Quoted 12 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#10 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

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

Quoted 209 lines · Yusuke Mitsuki

Hello Khem

Quoted 1 line · 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 <[email protected]>:

Quoted 10 lines

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.

Quoted 80 lines

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 <[email protected]>:

Quoted 71 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

#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

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] =

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] =

"ecea4c597bab1fd4ba98ea84edcec

Quoted 3 lines
Quoted 3 lines

e59"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb

235f"

Quoted 17 lines
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses

intltool"

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 4 lines

-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

Quoted 7 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-

devel

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#11 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

Quoted 8 lines · Martin Jansa

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.

Quoted 8 lines

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

Quoted 219 lines
Quoted 212 lines · Yusuke Mitsuki

Hello Khem

Quoted 1 line · 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 <[email protected]

Quoted 6 lines

:

Hello Khem

I tried that reverted this patch(Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)

and

Quoted 6 lines

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.

Quoted 80 lines

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 <[email protected]>:

Quoted 71 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

#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

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] =

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] =

"ecea4c597bab1fd4ba98ea84edcec

Quoted 3 lines
Quoted 3 lines

e59"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 SRC_URI[sha256sum] =
 

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"

Quoted 17 lines
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] = · line 16

Quoted 2 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses

intltool"

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -1
-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

Quoted 7 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]

http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#12 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

In reply to Martin Jansa

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 <[email protected]>:

Quoted 234 lines

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

Quoted 212 lines · Yusuke Mitsuki

Hello Khem

Quoted 1 line · 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 <[email protected]

Quoted 6 lines

:

Hello Khem

I tried that reverted this patch(Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)

and

Quoted 6 lines

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.

Quoted 80 lines

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 <[email protected]>:

Quoted 71 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

#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

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] =

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] =

"ecea4c597bab1fd4ba98ea84edcec

Quoted 3 lines
Quoted 3 lines

e59"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1c

b235f"

Quoted 17 lines
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses

intltool"

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 4 lines

-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

Quoted 7 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-

devel

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#13 lore raw

Re: [PATCH 1/6] anthy: Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-target

Quoted 1 line

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.

Quoted 246 lines · Yusuke Mitsuki

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 <[email protected]>:

Quoted 235 lines

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

Quoted 213 lines · Yusuke Mitsuki

Hello Khem

Quoted 1 line · 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 <[email protected]

Quoted 6 lines

:

Hello Khem

I tried that reverted this patch(Added libanthy-dev to PROVIDES_class-terget uim: Added libanthy-dev to DEPENDS_class-targe)

and

Quoted 2 lines

added ALLOW_EMPTY_${PN} = "1".
However config.log say "conftest.c:65:25: fatal error: anthy/anthy.h:

No

Quoted 4 lines

such file or directory"
It means uim-anthy feature is dropped. uim-anthy could not created correctly.

Quoted 80 lines

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 <[email protected]>:

Quoted 71 lines
Quoted 6 lines · Yusuke Mitsuki

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.

Quoted 1 line

I want to use uim-anthy package in order to input Japanese on the

machine.

Quoted 7 lines

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.

Quoted 15 lines

Thanks.

2017-08-09 9:40 GMT+09:00 Khem Raj <[email protected]>:

Quoted 10 lines
Quoted 7 lines · Yusuke Mitsuki

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

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

failed.

that means the dependency is not accurate. can you add

ALLOW_EMPTY_${PN} = "1"

to anthy recipe and see if that helps ?

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot-native=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-fdebug-prefix-map=/home/y-mitsuki/yocto/build_keyboard/tmp/

work/i586-poky-linux/uim/1.8.6-r0/recipe-sysroot=

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

conftest.c >&5
conftest.c:65:25: fatal error: anthy/anthy.h: No such file or

directory

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

#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

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

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 <[email protected]>:

Quoted 31 lines
Quoted 18 lines · Yusuke Mitsuki

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

---
 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(-)
meta-oe/recipes-support/anthy/anthy_9100h.bb +0 -0
index a65d324..c507ad7 100644
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] =

"d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2

Quoted 3 lines

DEPENDS_class-target = "anthy-native"
RDEPENDS_${PN}_class-target = "libanthy0"
+PROVIDES_class-target = "libanthy-dev"

This seems redundant

Quoted 2 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/uim/uim_1.8.6.bb SRC_URI[md5sum] =

Quoted 8 lines

inherit autotools pkgconfig

meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
index ed846b9..4cb7b62 100644
@@ -14,7 +14,7 @@ SRC_URI[md5sum] =

"ecea4c597bab1fd4ba98ea84edcec

Quoted 3 lines
Quoted 3 lines

e59"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -0
 SRC_URI[sha256sum] =

"7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1c

b235f"

Quoted 17 lines
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

DEPENDS = "anthy fontconfig libxft libxt glib-2.0 ncurses

intltool"

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 4 lines

-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

Quoted 7 lines

RDEPENDS_uim = "libuim0 libedit" RDEPENDS_uim-anthy = "takao-fonts anthy libanthy0"
--
2.7.4

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-

devel

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#14 lore raw

PATCH 2/6 uim: Modified the order of package definition.

In reply to Yusuke Mitsuki

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.

---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +1 -1
index 4cb7b62..9e7b45c 100644
@@ -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-* \
Signature · 1 line
2.7.4
#15 lore raw

PATCH 3/6 uim: Added glibc-utils and glibc-gconv-euc-jp to RDEPENDS_uim-anthy

In reply to Yusuke Mitsuki

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.

---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +1 -1
index 9e7b45c..0cfd351 100644
@@ -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"
 
Signature · 1 line
2.7.4
#16 lore raw

PATCH 4/6 uim: Removed pkg_postinst_uim-common/pkg_prerm_uim-common.

In reply to Yusuke Mitsuki

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

---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 15 ---------------
 1 file changed, 15 deletions(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +0 -15
index 0cfd351..e6bacce 100644
@@ -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"
Signature · 1 line
2.7.4
#17 lore raw

PATCH 5/6 uim: Fixed pkg_postinst_*/pkg_prerm_* for uim-anthy and uim-skk.

In reply to Yusuke Mitsuki

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

---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 33 +++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +18 -15
index e6bacce..3d6425c 100644
@@ -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
 }
 
Signature · 1 line
2.7.4
#18 lore raw

PATCH 6/6 uim: Fixed a problem that an immodule.cache is not updated appropriately when uim-gtk2.0 or uim-gtk3 was installed.

In reply to Yusuke Mitsuki

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.

---
 meta-oe/recipes-support/uim/uim_1.8.6.bb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +2 -5
index 3d6425c..6b04f6e 100644
@@ -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
Signature · 1 line
2.7.4
#19 lore raw

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.

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

meta-oe/recipes-support/uim/uim_1.8.6.bb +2 -1
index ed846b9..78da142 100644
@@ -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 \

Quoted 35 lines · Yusuke Mitsuki

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.

---
  meta-oe/recipes-support/uim/uim_1.8.6.bb | 7 ++-----
  1 file changed, 2 insertions(+), 5 deletions(-)
meta-oe/recipes-support/uim/uim_1.8.6.bb +2 -5
index 3d6425c..6b04f6e 100644
@@ -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