summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-02-01 10:38:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:00 +0000
commit19ac10a86d1d35aa76cf3c97254e14c5c8de7221 (patch)
tree87b7e01fc2cf9e003e0f9279a281f479a5ca661c /meta/recipes-devtools/dpkg
parent982eefe22dba0f007010465e31d5d6adcc59e4d0 (diff)
downloadpoky-19ac10a86d1d35aa76cf3c97254e14c5c8de7221.tar.gz
dpkg-native:fix dpkg-scanpackages error at deb image creation time on Fedora 17
Invoking dpkg-scanpackages on Fedora 17 to build deb image meets such an error: Can't locate Dpkg.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/loc al/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr /lib64/perl5 /usr/share/perl5.) at tmp/sysroots/x86_64-linux/usr/bin/dpkg-sca npackages line 27. 1. The dpkg-scanpackages is invoked at deb image creation time and it is built by dpkg-native. The dpkg-scanpackages is a perl script and import module `Dpkg'. 2. The Dpkg.pm has been installed in perl's staging dir at dpkg-native compiling time. Such as `tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/Dpkg.pm' 3. The dpkg-native uses create_wrapper to relocate to perl-native if perl-native has been built. If perl-native isn't built, it will use the host Dpkg as default. 4. If dpkg-native is built on a new build envionment which means perl-native doesn't exist before, and the build system doesn't install dpkg (such as Fedora 17), the dpkg-scanpackages could not work correctly. 5. Modify dpkg-native's depends, change `perl-native-runtime' to `perl-native', Let perl-native automatically be built before building dpkg-native. [YOCTO #3817] (From OE-Core rev: 7d194e72ee12cb6690bf07a8423cb461dd210719) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 27f69eff4d..8830ae7a73 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -8,7 +8,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.xz \
8 file://ignore_extra_fields.patch" 8 file://ignore_extra_fields.patch"
9 9
10DEPENDS = "zlib bzip2 perl" 10DEPENDS = "zlib bzip2 perl"
11DEPENDS_class-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native perl-native-runtime" 11DEPENDS_class-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native perl-native"
12RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}" 12RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
13RDEPENDS_${PN}_class-native = "" 13RDEPENDS_${PN}_class-native = ""
14 14