Bug 165 - enchant lacks DEPENDS of glib-2.0
Summary: enchant lacks DEPENDS of glib-2.0
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: All Multiple
: Medium normal
Target Milestone: 0.9 M3
Assignee: Dongxiao Xu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-07-29 19:03 UTC by Dexuan Cui
Modified: 2010-12-21 06:07 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dexuan Cui 2010-07-29 19:03:03 UTC
When I did "bitbake poky-image-sato", I got the build failure:

ERROR: Task 4298 (/osel/dcui/09/poky-contrib.git/meta-moblin/packages/enchant/enchant_1.3.0.bb, do_compile) failed with 256
...
linux/osel/dcui/09/poky-contrib.git/build/tmp/sysroots/i686-linux/usr/lib/glib-2.0/include -DENCHANT_GLOBAL_MODULE_DIR=\"/usr/lib/enchant\" -DENCHANT_GLOBAL_ORDERING=\"/usr/share/enchant\" -D_ENCHANT_BUILD=1 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -MT pwl.lo -MD -MP -MF .deps/pwl.Tpo -c pwl.c  -fPIC -DPIC -o .libs/pwl.o
| enchant.c:35:18: error: glib.h: No such file or directory
| enchant.c:36:21: error: gmodule.h: No such file or directory
| enchant.c:64: error: expected specifier-qualifier-list before 'GSList'
| enchant.c:73: error: expected specifier-qualifier-list before 'GHashTable'
| enchant.c: In function 'enchant_get_module_dir':
...

I did a "bitbake glib-2.0; bitbake enchant -c clean; bitbake enchant; bitbake poky-image-sato" to work around the issue.
Adding glib-2.0 into the DEPENDS of enchant can also work.

The basic analysis:
Edwin updated webkit-svn and added DEPENDS on enchant so enchant is now built.
Previously enchant was not included in sato at all so we couldn't meet with the build failure.

I think we should add glib-2.0 into the DEPENDS of enchant and update the enchant the package to the latest version. Dongxiao may follow this up. :-)

BTW: to reproduce the issue, do
1) bitbake -c clean glib-2.0
2) bitbake -c clean enchant
3) bitbake enchant
Comment 1 Saul Wold 2010-07-29 22:54:30 UTC
Enchant should be moved to meta directory also since there is a dependency there.
Comment 2 Dongxiao Xu 2010-08-03 07:03:31 UTC
I will upgrade enchant and add the dependency to fix the problem
Comment 3 Dongxiao Xu 2010-08-04 18:53:20 UTC
Nitin has fixed this issue in commit 4460087b838dd2e882e4b354049464394df04a7e, so mark this bug as fixed.

Thanks,
Dongxiao