diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-04-18 15:27:07 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-18 16:28:22 +0100 |
commit | c219c6d5826b6f1002f5486eceeb1cc8990d7c28 (patch) | |
tree | 6fc7edbeda94d224346eea2e2652584036cfb731 /meta | |
parent | 9fe7738f4a567d1b00e94352d03bc5031583c259 (diff) | |
download | poky-c219c6d5826b6f1002f5486eceeb1cc8990d7c28.tar.gz |
buildtools-tarball: fix perl being included when building with ipk
Due to some logic within opkg, a package with the name matching a
dependency will always win over a package with that name in RPROVIDES -
even if there is an RCONFLICTS (which is silently ignored), higher feed
priority and version. The end result is that buildtools gets perl
installed instead of the nativesdk-buildtools-perl-dummy package and
that perl (with missing dependencies) gets used in preference to the
host one, which is precisely what we were trying to avoid.
This is almost certainly a bug in opkg, especially as the other
package's dependencies aren't properly installed under these
circumstances either. However, specifying RREPLACES works around this,
and with no apparent side-effects is probably the safest solution for
now.
At the same time I noticed that in prepending to SDK_PACKAGE_ARCHS we
were actually ending up with a low priority for the dummy package feed
rather than a high one, so change to append it instead. This has no
effect on the packages that get installed at the moment, but should be
done in case the package manager behaviour changes to factor in the feed
priority in future.
Fixes [YOCTO #9469].
(From OE-Core rev: b18134ddaf949b4f001a1613ab876aed6324040a)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/meta/buildtools-tarball.bb | 2 | ||||
-rw-r--r-- | meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/meta/buildtools-tarball.bb b/meta/recipes-core/meta/buildtools-tarball.bb index d39bd9ac51..ee86881802 100644 --- a/meta/recipes-core/meta/buildtools-tarball.bb +++ b/meta/recipes-core/meta/buildtools-tarball.bb | |||
@@ -26,7 +26,7 @@ TOOLCHAIN_HOST_TASK ?= "\ | |||
26 | nativesdk-texinfo \ | 26 | nativesdk-texinfo \ |
27 | " | 27 | " |
28 | 28 | ||
29 | SDK_PACKAGE_ARCHS =+ "buildtools-dummy-${SDKPKGSUFFIX}" | 29 | SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}" |
30 | 30 | ||
31 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-buildtools-nativesdk-standalone-${DISTRO_VERSION}" | 31 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-buildtools-nativesdk-standalone-${DISTRO_VERSION}" |
32 | 32 | ||
diff --git a/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb b/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb index 90784a9e27..2b96111600 100644 --- a/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb +++ b/meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb | |||
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
4 | 4 | ||
5 | inherit allarch | 5 | inherit allarch |
6 | 6 | ||
7 | PR = "r1" | 7 | PR = "r2" |
8 | 8 | ||
9 | python() { | 9 | python() { |
10 | # Put the package somewhere separate to ensure it's never used except | 10 | # Put the package somewhere separate to ensure it's never used except |
@@ -22,5 +22,6 @@ ALLOW_EMPTY_${PN} = "1" | |||
22 | python populate_packages_prepend() { | 22 | python populate_packages_prepend() { |
23 | d.appendVar(d.expand('RPROVIDES_${PN}'), '${PERLPACKAGES}') | 23 | d.appendVar(d.expand('RPROVIDES_${PN}'), '${PERLPACKAGES}') |
24 | d.appendVar(d.expand('RCONFLICTS_${PN}'), '${PERLPACKAGES}') | 24 | d.appendVar(d.expand('RCONFLICTS_${PN}'), '${PERLPACKAGES}') |
25 | d.appendVar(d.expand('RREPLACES_${PN}'), '${PERLPACKAGES}') | ||
25 | } | 26 | } |
26 | 27 | ||