Bug 1191

Summary: intltool should depend on libxml-parser-perl-native?
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dexuan Cui <dexuan.cui>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: liang.li2, liangliang.wang, meta.mr.watcher, meta.watcher, sgw, shane.wang, yi.zhao
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: Not started(19/08)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Dexuan Cui 2011-06-22 21:50:59 UTC
Otavio Salvador(otavio@ossystems.com.br) reported intltool-0.40.6-r1 gets a do_configure failure if the host doesn't have libxml-parser-perl
 installed:
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool


These are the exact steps to reproduce the issue:
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/004485.html
(the log is at http://lists.linuxtogo.org/pipermail/openembedded-core/attachments/20110620/c4a0a26f/attachment.obj)

We may need to add libxml-parser-perl-native into intltool's DEPENDS, or document in the manual this prerequisite.
Comment 1 Robert Yang 2011-08-11 18:18:15 UTC
I've removed libxml-parser-perl from UBuntu 10.10 64bit, and bitbake intltool,
it worked well, so works from me.
Comment 2 Yi Zhao 2011-08-19 01:30:28 UTC
I tested it on 1.1_M3 branch (git commit: abdec68876ac7ce1a6d5c223d1757b7e8a14b85f)

The libxml-parser-perl-native is already added into intltool's DEPENDS and would be built when build initltool.

############
$ bitbake intltool
Loading cache: 100% |##########################################################################################################################################################################| ETA:  00:00:00
Loaded 1013 entries from dependency cache.

OE Build Configuration:
BB_VERSION        = "1.13.3"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.0+snapshot-20110815"
TUNE_FEATURES     = "armv5 dsp thumb arm926ejs"
TARGET_FPU        = "soft"
meta                   
meta-yocto        = "1.1_M3:abdec68876ac7ce1a6d5c223d1757b7e8a14b85f"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
...
...
NOTE: package perl-native-5.12.3-r4: task do_populate_lic: Succeeded
NOTE: Running noexec task 584 of 805 (ID: 238, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/perl/perl-native_5.12.3.bb, do_package)
NOTE: Running task 585 of 805 (ID: 223, virtual:native:/home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb, do_configure)
NOTE: package libxml-parser-perl-native-2.40-r4: task do_configure: Started
NOTE: package libxml-parser-perl-native-2.40-r4: task do_configure: Succeeded
NOTE: Running task 586 of 805 (ID: 224, virtual:native:/home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb, do_compile)
NOTE: package libxml-parser-perl-native-2.40-r4: task do_compile: Started
NOTE: package libxml-parser-perl-native-2.40-r4: task do_compile: Succeeded
NOTE: Running task 587 of 805 (ID: 220, virtual:native:/home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/perl/libxml-parser-perl_2.40.bb, do_install)
NOTE: package libxml-parser-perl-native-2.40-r4: task do_install: Started
NOTE: package libxml-parser-perl-native-2.40-r4: task do_install: Succeeded
...
...
OTE: Running task 801 of 805 (ID: 12, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/intltool/intltool_0.40.6.bb, do_package_write_rpm)
NOTE: package intltool-0.40.6-r3: task do_package_write_rpm: Started
NOTE: package intltool-0.40.6-r3: task do_package_write_rpm: Succeeded
NOTE: Running task 802 of 805 (ID: 11, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/intltool/intltool_0.40.6.bb, do_package_write_ipk)
NOTE: package intltool-0.40.6-r3: task do_package_write_ipk: Started
NOTE: package intltool-0.40.6-r3: task do_package_write_ipk: Succeeded
NOTE: Running noexec task 803 of 805 (ID: 8, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/intltool/intltool_0.40.6.bb, do_package_write)
NOTE: Running task 804 of 805 (ID: 3, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/intltool/intltool_0.40.6.bb, do_populate_sysroot)
NOTE: package intltool-0.40.6-r3: task do_populate_sysroot: Started
NOTE: package intltool-0.40.6-r3: task do_populate_sysroot: Succeeded
NOTE: Running noexec task 805 of 805 (ID: 5, /home/zhaoyi/work/poky/poky-build/meta/recipes-devtools/intltool/intltool_0.40.6.bb, do_build)
NOTE: Tasks Summary: Attempted 805 tasks of which 372 didn't need to be rerun and 0 failed.
#################