diff options
author | Tom Rini <trini@konsulko.com> | 2017-06-11 08:36:32 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 15:08:31 +0100 |
commit | 6ca5e240872b6d05d12e84603d7c18ccd4960b9d (patch) | |
tree | 46aa7918d72a8ab08beaa9d450f3bab1b4b6e76e /meta/recipes-devtools | |
parent | 329f602c30bca560e95e1f2ea25b7045153166d3 (diff) | |
download | poky-6ca5e240872b6d05d12e84603d7c18ccd4960b9d.tar.gz |
dpkg: Fix perl modules by moving them to the versioned perl directory
In order for the dpkg perl modules to be used the must reside in the
versioned perl library directory (as to be in the default include path).
Be explicit about this location in our FILES_${PN}-perl directive, so
that if this breaks in the future, the recipe will fail). We can now
drop the custom do_configure as it wasn't fixing this problem.
(From OE-Core rev: 05f6ff9a500bb97d8ef1f943eff1b9d90246651f)
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 870117a325..3dd8193f7f 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -9,7 +9,7 @@ RDEPENDS_${PN}_class-native = "" | |||
9 | 9 | ||
10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" | 10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" |
11 | 11 | ||
12 | inherit autotools gettext perlnative pkgconfig systemd | 12 | inherit autotools gettext perlnative pkgconfig systemd perl-version |
13 | 13 | ||
14 | python () { | 14 | python () { |
15 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | 15 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): |
@@ -20,8 +20,8 @@ python () { | |||
20 | export PERL = "${bindir}/perl" | 20 | export PERL = "${bindir}/perl" |
21 | PERL_class-native = "${STAGING_BINDIR_NATIVE}/perl-native/perl" | 21 | PERL_class-native = "${STAGING_BINDIR_NATIVE}/perl-native/perl" |
22 | 22 | ||
23 | export PERL_LIBDIR = "${libdir}/perl" | 23 | export PERL_LIBDIR = "${libdir}/perl/${@get_perl_version(d)}" |
24 | PERL_LIBDIR_class-native = "${libdir}/perl-native/perl" | 24 | PERL_LIBDIR_class-native = "${libdir}/perl-native/perl/${@get_perl_version(d)}" |
25 | 25 | ||
26 | EXTRA_OECONF = "\ | 26 | EXTRA_OECONF = "\ |
27 | --disable-dselect \ | 27 | --disable-dselect \ |
@@ -37,12 +37,6 @@ PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz" | |||
37 | EXTRA_OECONF += "TAR=tar" | 37 | EXTRA_OECONF += "TAR=tar" |
38 | EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}" | 38 | EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}" |
39 | 39 | ||
40 | do_configure () { | ||
41 | echo >> ${S}/m4/compiler.m4 | ||
42 | sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure | ||
43 | autotools_do_configure | ||
44 | } | ||
45 | |||
46 | do_install_append () { | 40 | do_install_append () { |
47 | if [ "${PN}" = "dpkg-native" ]; then | 41 | if [ "${PN}" = "dpkg-native" ]; then |
48 | # update-alternatives doesn't have an offline mode | 42 | # update-alternatives doesn't have an offline mode |
@@ -73,7 +67,7 @@ FILES_update-alternatives-dpkg = "${bindir}/update-alternatives ${localstatedir} | |||
73 | RPROVIDES_update-alternatives-dpkg += "update-alternatives" | 67 | RPROVIDES_update-alternatives-dpkg += "update-alternatives" |
74 | 68 | ||
75 | PACKAGES += "${PN}-perl" | 69 | PACKAGES += "${PN}-perl" |
76 | FILES_${PN}-perl = "${libdir}/perl" | 70 | FILES_${PN}-perl = "${libdir}/perl/${@get_perl_version(d)}" |
77 | 71 | ||
78 | # Split out start-stop-daemon to its own package. Note that it | 72 | # Split out start-stop-daemon to its own package. Note that it |
79 | # is installed in a different directory than the one used for | 73 | # is installed in a different directory than the one used for |