generic-poky/meta/classes
Paul Eggleton fa5640d143 Rework installation of dev, dbg, doc, and locale packages
Use a similar mechanism that was previously used to install locales at
rootfs generation time to install other "complementary" packages (e.g.
*-dev packages) - i.e. install all of the explicitly requested packages
and their dependencies, then get a list of the packages that were
installed, and use that list to install the complementary packages. This
has been implemented by using a list of globs which should make it
easier to extend in future.

The previous locale package installation code assumed that the locale
packages did not have any dependencies that were not already installed;
now that we are installing non-locale packages this is no longer
correct. In practice only the rpm backend actually made use of this
assumption, so it needed to be changed to call into the existing package
backend code to do the complementary package installation rather than
calling rpm directly.

This fixes the doc-pkgs IMAGE_FEATURES feature to work correctly, and
also ensures that all dev/dbg packages get installed for
dev-pkgs/dbg-pkgs respectively even if the dependency chains between
those packages was not ensuring that already.

The code has also been adapted to work correctly with the new
SDK-from-image functionality. To that end, an SDKIMAGE_FEATURES variable
has been added to allow specifying what extra image features should go
into the SDK (extra, because by virtue of installing all of the packages
in the image into the target part of the SDK, we already include all of
IMAGE_FEATURES) with a default value of "dev-pkgs dbg-pkgs".

Fixes [YOCTO #2614].

(From OE-Core rev: 72d1048a8381fa4a8c4c0d082047536727b4be47)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-29 10:16:14 +01:00
..
allarch.bbclass allarch: No need to make packaging machine specific 2012-07-22 11:42:23 +01:00
archive-configured-source.bbclass archive-configured-source.bbclass: Archive configured source 2012-03-26 23:13:21 +01:00
archive-original-source.bbclass archive-original-source.bbclass: Archive original source 2012-03-26 23:13:20 +01:00
archive-patched-source.bbclass archive-patched-source.bbclass: Archive patched source 2012-04-04 17:17:54 +01:00
archiver.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
autotools.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on 2012-07-28 09:20:52 +01:00
binconfig.bbclass binconfig: add *-config files to the -dev package 2012-06-21 13:02:56 +01:00
blacklist.bbclass blacklist.bbclass: Refactor, use PNBLACKLIST[pn] 2012-05-11 17:50:49 +01:00
boot-directdisk.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
bootimg.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
bugzilla.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
buildhistory.bbclass buildhistory.bbclass: Fix python whitespace 2012-07-19 12:33:20 +01:00
buildstats.bbclass meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx) 2012-03-05 10:23:53 -08:00
ccache.bbclass ccache: Ensure CCACHE_DIR is cleaned by do_clean task 2012-07-10 14:25:38 +01:00
cmake.bbclass cmake.bbclass: Add OECMAKE_C_LINK_FLAGS and OECMAKE_CXX_LINK_FLAGS variables 2012-06-11 13:49:51 +01:00
cml1.bbclass cml1.bbclass: Only delay exit if the command fails 2012-06-25 16:35:52 +01:00
copyleft_compliance.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
core-image.bbclass core-image: remove x11-netbook package group, it's unused 2012-07-26 14:40:48 +01:00
cpan-base.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
cpan.bbclass cpan.bbclass: Fix CCFLAGS. 2012-07-17 10:53:56 +01:00
cpan_build.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
cross-canadian.bbclass classes: Add recipe class to overrides 2012-04-30 11:37:22 +01:00
cross.bbclass classes: Add recipe class to overrides 2012-04-30 11:37:22 +01:00
crosssdk.bbclass crosssdk/nativesdk: Ensure EXTRA_OECONF_FPU is unset 2012-07-17 10:53:57 +01:00
debian.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
deploy.bbclass bitbake/sstate: Implement a lookup function to speed up setscene processing 2010-10-05 22:26:33 +01:00
devshell.bbclass Rework how the devshell functions 2011-08-10 13:33:07 +01:00
distrodata.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
distutils-base.bbclass python-native: Put binaries in seperate directory 2012-07-22 11:42:20 +01:00
distutils-common-base.bbclass distutils(-common-base) bbclass: sync with OE 2011-01-20 21:37:00 +00:00
distutils-native-base.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
distutils.bbclass python-native: Put binaries in seperate directory 2012-07-22 11:42:20 +01:00
dummy.bbclass bootimg: Add grub-efi support 2011-11-30 22:18:08 +00:00
externalsrc.bbclass externalsrc.bbclass: Add class for handling external source trees 2012-03-01 15:56:50 +00:00
gconf.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
gettext.bbclass gettext.bbclass: Ensure we don't overwrite other DEPENDS_GETTEXT values 2012-04-22 15:59:56 +01:00
gnome.bbclass classes/[gnome|gnomebase|mime]: enhance gnome related classes 2011-11-10 11:37:11 +00:00
gnomebase.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
grub-efi.bbclass EFI: Make installer EFI aware 2012-07-19 17:49:48 +01:00
gtk-doc.bbclass gtk-doc.bbclass: unbreak dependency-chain for native recipes 2012-07-28 09:20:52 +01:00
gtk-icon-cache.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
gzipnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
icecc.bbclass Revert "meta: replace os.popen with subprocess.Popen" 2012-05-30 14:21:29 +01:00
image-empty.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +01:00
image-live.bbclass image-live: Allow LABELS to be modified 2012-03-01 15:51:38 +00:00
image-mklibs.bbclass image-mklibs/package_ipk: Remove bashisms 2012-01-05 22:26:25 +00:00
image-prelink.bbclass classes: Remove various bashisms 2011-11-10 11:51:18 +00:00
image-swab.bbclass meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx) 2012-03-05 10:23:53 -08:00
image-vmdk.bbclass vmdk: Update for direstdisk 2012-03-27 13:26:36 +01:00
image.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
image_types.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
image_types_uboot.bbclass image_types_uboot: Update to work after recent image_types changes 2012-02-29 18:25:03 +00:00
imagetest-dummy.bbclass test: add automation framework and sanitytest 2010-07-15 12:48:25 +01:00
imagetest-qemu.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
insane.bbclass insane.bbclass: Make ldd exec_prefix error reporting easier to read 2012-06-08 11:43:21 +01:00
insserv.bbclass bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot 2009-11-13 12:15:42 +00:00
kernel-arch.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
kernel-yocto.bbclass kernel-yocto.bbclass: Delete superfluous creation of ${S}/.git directory 2012-07-22 11:42:23 +01:00
kernel.bbclass kernel bbclass: Recreate uImage only when KEEPUIMAGE != "yes" 2012-07-26 14:40:47 +01:00
lib_package.bbclass lib_package: use PACKAGE_BEFORE_PN 2012-07-04 17:40:33 +01:00
libc-common.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
libc-package.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
license.bbclass package.bbclass: Create symlinks for packages with different packaged name 2012-07-26 14:40:47 +01:00
linux-kernel-base.bbclass kernel.bblass: remove get_kernelmajorversion 2011-07-01 23:34:18 +01:00
logging.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
meta.bbclass Factor ipkg index and conf file creation into package_ipk.bbclass 2007-09-01 22:17:06 +00:00
metadata_scm.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
mime.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
mirrors.bbclass mirrors: Add debian archive snapshot mirrors to search list 2012-07-17 10:53:58 +01:00
module-base.bbclass kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables 2011-08-05 17:16:03 +01:00
module.bbclass {kernel, module}.bbclass: don't run depmod for module packages during do_rootfs 2012-04-26 10:05:15 +01:00
module_strip.bbclass kernel/package.bbclass: Handle kernel module stripping centrally 2010-08-10 14:47:41 +01:00
multilib.bbclass multilib: Enable multilib remapping for SDK generation 2012-07-09 16:58:54 +01:00
multilib_global.bbclass multilib: Abstract class extension code into classextend.py 2012-01-05 12:36:29 +00:00
multilib_header.bbclass multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
native.bbclass native.bbclass: correct PATH to have native-intercept be prepended 2012-06-28 16:26:44 +01:00
nativesdk.bbclass crosssdk/nativesdk: Ensure EXTRA_OECONF_FPU is unset 2012-07-17 10:53:57 +01:00
oelint.bbclass classes: Sync with OE - mainly quoting fixes or other minor updates 2006-11-20 15:19:39 +00:00
own-mirrors.bbclass own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit 0ef914b250df46a41348479446214575668943fb 2011-03-15 01:19:26 +00:00
package.bbclass package.bbclass/eglibc-locale: Ensure the correct PN is used for locale packages 2012-07-28 09:20:53 +01:00
package_deb.bbclass classes/package_deb: add PackageArch field 2012-07-26 14:40:47 +01:00
package_ipk.bbclass package_ipk.bbclass: Fix python whitespace 2012-07-19 12:24:50 +01:00
package_rpm.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
package_tar.bbclass meta: replace os.system with subprocess.call 2012-05-30 12:04:45 +01:00
packagedata.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
packageinfo.bbclass packageinfo.bbclass: A workaround for RPM architecture renaming 2012-04-18 15:55:04 +01:00
patch.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pkg_distribute.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
pkg_metainfo.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
pkgconfig.bbclass pkgconfig.bbclass: corrected dependency for -nativesdk. 2012-03-31 17:59:09 +01:00
populate_sdk.bbclass populate_sdk.bbclass: Split into two parts 2012-07-03 14:54:58 +01:00
populate_sdk_base.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
populate_sdk_deb.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
populate_sdk_ipk.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
populate_sdk_rpm.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
prexport.bbclass prexport.bbclass: Fix typo in warning: "AUROPR" -> "AUTOPR". 2012-07-04 17:40:38 +01:00
primport.bbclass prservice: Added sanity check for prservice connection. 2012-03-08 12:16:29 -08:00
prserv.bbclass meta/PRService: Added export/import fuctions. 2012-01-11 10:37:43 +00:00
python-dir.bbclass python-dir: change PYTHON_BASEVERSION to 2.7 2011-10-31 22:03:22 +00:00
pythonnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
qemu.bbclass qemu.bbclass: Map the qemu binary name for powerpc64 2012-07-26 14:40:46 +01:00
qmake2.bbclass qt4: Enable accessibility and sm option for LSB. 2011-01-20 21:37:01 +00:00
qmake_base.bbclass bitbake.conf: remove some redundant/unnecessary variable exports 2012-01-04 14:14:10 +00:00
qt4e.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
qt4x11.bbclass qt4x11.bbclass: add QT_BASE_NAME for use in recipes 2012-01-06 12:11:32 +00:00
recipe_sanity.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
relocatable.bbclass meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx) 2012-03-05 10:23:53 -08:00
rm_work.bbclass Various typoes fixed, all comments or output strings. 2012-03-26 12:13:05 +01:00
rootfs_deb.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
rootfs_ipk.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
rootfs_rpm.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
sanity.bbclass sanity: display the parsed BBPATH when complaining about CWD elements 2012-07-20 12:32:53 +01:00
scons.bbclass classes: scons: add EXTRA_OESCONS 2012-03-26 23:29:44 +01:00
sdl.bbclass classes/sdl: remove Opie-specific desktop file/packaging 2012-02-21 17:00:46 +00:00
setuptools.bbclass setuptools bbclass: import from OE 2011-01-20 21:37:00 +00:00
sip.bbclass bitbake.conf: remove some redundant/unnecessary variable exports 2012-01-04 14:14:10 +00:00
siteconfig.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
siteinfo.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
sstate.bbclass sstate.bbclass: Add a string representing the lsb release to native/cross sstate 2012-07-28 09:20:53 +01:00
staging.bbclass staging.bbclass: Add support for invalidtasks parameter (see bitbake change) 2012-07-26 14:56:20 +01:00
syslinux.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
task.bbclass classes/package: reduce dbg package dependencies 2012-07-28 09:20:52 +01:00
terminal.bbclass terminal.bbclass, oe-buildenv-internal: pass SCREENDIR environment variable 2012-05-06 09:55:46 +01:00
tinderclient.bbclass Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
toolchain-scripts.bbclass toolchain-scripts: Remove extra - from ar/nm command names 2012-07-19 11:44:16 +01:00
typecheck.bbclass typecheck.bbclass: update per current variable typing code 2012-05-11 17:50:50 +01:00
update-alternatives.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
update-rc.d.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
useradd.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
utility-tasks.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
utils.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00