mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
There are issues with multilib due to the ordering of events where some functions see the remapped multilib dependencies and some do not. A significant problem is that the multilib class needs to make some changes before key expansion and some afterwards but by using existing event handlers, some code sees things in a partially translated state, leading to bugs. This patch changes things to use a new event handler from bitbake which makes the ordering of the changes explcit. The challenge in doing this is that it breaks some existing anonymous python and dyanmic assignments. In some cases these used to be translated and no longer are, meaning MLPREFIX has to be added. In some cases these are now translated and the MLPREFIX can be removed. This change does now make it very clear when MLPREFIX is required and when it is not, its just the migration path which is harder. The patch changes the small number of cases where fixes are needed. In particular, where a variable like RDEPENDS is conditionally extended (e.g. with an override), MLPREFIX is now required. This patch also reverts: base: Revert 'base.bbclass: considering multilib when setting LICENSE_EXCLUSION' This reverts 6597130256a1609c3e05ec5891aceaf549c37985 as the changes to multilib datastore handling mean its no longer necessary. (From OE-Core rev: b3fda056a674889cd9697e779de023d4f993d3ce) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
140 lines
3.8 KiB
BlitzBasic
140 lines
3.8 KiB
BlitzBasic
#
|
|
# Copyright (C) 2010 Intel Corporation
|
|
#
|
|
|
|
SUMMARY = "Standard full-featured Linux system"
|
|
DESCRIPTION = "Package group bringing in packages needed for a more traditional full-featured Linux system"
|
|
PR = "r6"
|
|
|
|
inherit packagegroup
|
|
|
|
PACKAGES = "\
|
|
packagegroup-core-full-cmdline \
|
|
packagegroup-core-full-cmdline-libs \
|
|
packagegroup-core-full-cmdline-utils \
|
|
packagegroup-core-full-cmdline-extended \
|
|
packagegroup-core-full-cmdline-dev-utils \
|
|
packagegroup-core-full-cmdline-multiuser \
|
|
packagegroup-core-full-cmdline-initscripts \
|
|
packagegroup-core-full-cmdline-sys-services \
|
|
"
|
|
|
|
python __anonymous () {
|
|
# For backwards compatibility after rename
|
|
namemap = {}
|
|
namemap["packagegroup-core-full-cmdline"] = "packagegroup-core-basic"
|
|
namemap["packagegroup-core-full-cmdline-libs"] = "packagegroup-core-basic-libs"
|
|
namemap["packagegroup-core-full-cmdline-utils"] = "packagegroup-core-basic-utils"
|
|
namemap["packagegroup-core-full-cmdline-extended"] = "packagegroup-core-basic-extended"
|
|
namemap["packagegroup-core-full-cmdline-dev-utils"] = "packagegroup-core-dev-utils"
|
|
namemap["packagegroup-core-full-cmdline-multiuser"] = "packagegroup-core-multiuser"
|
|
namemap["packagegroup-core-full-cmdline-initscripts"] = "packagegroup-core-initscripts"
|
|
namemap["packagegroup-core-full-cmdline-sys-services"] = "packagegroup-core-sys-services"
|
|
|
|
packages = d.getVar("PACKAGES").split()
|
|
mlprefix = d.getVar("MLPREFIX")
|
|
for pkg in packages:
|
|
pkg2 = pkg[len(mlprefix):]
|
|
if pkg.endswith('-dev'):
|
|
mapped = namemap.get(pkg2[:-4], None)
|
|
if mapped:
|
|
mapped += '-dev'
|
|
elif pkg.endswith('-dbg'):
|
|
mapped = namemap.get(pkg2[:-4], None)
|
|
if mapped:
|
|
mapped += '-dbg'
|
|
else:
|
|
mapped = namemap.get(pkg2, None)
|
|
|
|
if mapped:
|
|
oldtaskname = mapped.replace("packagegroup-core", "task-core")
|
|
mapstr = " %s%s %s%s" % (mlprefix, mapped, mlprefix, oldtaskname)
|
|
d.appendVar("RPROVIDES_%s" % pkg, mapstr)
|
|
d.appendVar("RREPLACES_%s" % pkg, mapstr)
|
|
d.appendVar("RCONFLICTS_%s" % pkg, mapstr)
|
|
}
|
|
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline = "\
|
|
packagegroup-core-full-cmdline-libs \
|
|
packagegroup-core-full-cmdline-utils \
|
|
packagegroup-core-full-cmdline-extended \
|
|
packagegroup-core-full-cmdline-dev-utils \
|
|
packagegroup-core-full-cmdline-multiuser \
|
|
packagegroup-core-full-cmdline-initscripts \
|
|
packagegroup-core-full-cmdline-sys-services \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-libs = "\
|
|
glib-2.0 \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-utils = "\
|
|
bash \
|
|
acl \
|
|
attr \
|
|
bc \
|
|
coreutils \
|
|
cpio \
|
|
e2fsprogs \
|
|
ed \
|
|
file \
|
|
findutils \
|
|
gawk \
|
|
gmp \
|
|
grep \
|
|
less \
|
|
makedevs \
|
|
mc \
|
|
mc-fish \
|
|
mc-helpers \
|
|
mc-helpers-perl \
|
|
ncurses \
|
|
net-tools \
|
|
procps \
|
|
psmisc \
|
|
sed \
|
|
tar \
|
|
time \
|
|
util-linux \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-extended = "\
|
|
iproute2 \
|
|
iputils \
|
|
iptables \
|
|
module-init-tools \
|
|
openssl \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-dev-utils = "\
|
|
diffutils \
|
|
m4 \
|
|
make \
|
|
patch \
|
|
"
|
|
|
|
VIRTUAL-RUNTIME_syslog ?= "sysklogd"
|
|
RDEPENDS_packagegroup-core-full-cmdline-initscripts = "\
|
|
${VIRTUAL-RUNTIME_initscripts} \
|
|
${VIRTUAL-RUNTIME_init_manager} \
|
|
ethtool \
|
|
${VIRTUAL-RUNTIME_login_manager} \
|
|
${VIRTUAL-RUNTIME_syslog} \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-multiuser = "\
|
|
bzip2 \
|
|
cracklib \
|
|
gzip \
|
|
shadow \
|
|
sudo \
|
|
"
|
|
|
|
RDEPENDS_packagegroup-core-full-cmdline-sys-services = "\
|
|
at \
|
|
cronie \
|
|
logrotate \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'nfs', 'nfs-utils rpcbind', '', d)} \
|
|
"
|