generic-poky/meta/classes
Richard Purdie 1855e94280 opkg: Update svn 625 -> 633 and fix preinst issues
There is a major issue with opkg images at the moment as preinst
functions are not being executed before their dependencies are installed
and this is leading to corruption of images containing avahi/dbus in
particular.

There are various changes in upstream opkg in the last 8 revisions which
make changes in this area but sadly these aren't enough to get things
working for us. I've updated to the latest svn revision with this patch
since it makes sense to pull in those changes first and then supplement
them with the attached patches.

There is a full description of the patches in the patch headers but in
summary they:

a) Ensure preinst functions execute with their dependencies installed.
   This is a pretty invasive change as it changes the package install
   ordering in general.
b) Ensure opkg sets $D, not $PKG_ROOT which we don't use
c) Change opkg to allow execution of postinstall functions which fail
   resulting in execution on the target device as rootfs_ipk.bbclass
   currently does manually.

The remaining changes interface this with the rest of the OE build
infrastructure, adding in the option to tell opkg to run the preinst and
postinst functions, ensure the correct environment is present for the
postinst scripts and removing the now unneeded rootfs_ipk class code
which opkg now does itself.

[YOCTO #1711]

(From OE-Core rev: 2feba313c991170747381c7cf821a45c2cd04632)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-12-16 16:05:37 +00:00
..
allarch.bbclass allarch.bbclass: disable shlib and debug symbol processing 2011-11-07 14:05:41 +00:00
autotools.bbclass autotools.bbclass: Report the missing configure path 2011-11-30 22:22:05 +00:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass bitbake.conf: add default PRINC 0 to be able to increment it 2011-12-05 16:16:12 +00:00
binconfig.bbclass binconfig: improve handling of empty prefixes 2011-06-01 18:34:36 +01:00
boot-directdisk.bbclass boot-directdisk: fix bzImage source location 2011-05-05 12:26:48 +01:00
bootimg.bbclass bootimg: Use mcopy to construct the hddimg 2011-12-16 16:05:36 +00:00
bugzilla.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
buildhistory.bbclass buildhistory bbclass: avoid absolute paths for files-in-image.txt to avoid diff churn when relocating TMPDIR 2011-12-06 16:34:55 +00:00
buildstats.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
cmake.bbclass cmake.bbclass: adding extendable extra variable to root path 2011-09-28 21:41:44 +01:00
cml1.bbclass cml1/kernel: Update do_menuconfig to use oe.terminal() 2011-09-15 11:23:59 +01:00
copyleft_compliance.bbclass license/copyleft: exception for ast parse 2011-12-10 00:18:15 +00:00
core-image.bbclass core-image.bbclass: zap root password if debug-tweaks not enabled 2011-09-07 22:54:17 +01:00
cpan-base.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
cpan.bbclass cpan.bbclass: fix native perl issue 2011-09-07 22:54:16 +01:00
cpan_build.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
cross-canadian.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
cross.bbclass cross: also empty PACKAGES_DYNAMIC 2011-08-12 17:21:53 +01:00
crosssdk.bbclass multilib.bbclass: Partially fix multlib image targets 2011-09-22 22:23:37 +01:00
debian.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00: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 distrodata.bbclass:Fix some recipes upstream version check issue. 2011-12-06 14:38:42 +00:00
distutils-base.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
distutils-common-base.bbclass distutils(-common-base) bbclass: sync with OE 2011-01-20 21:37:00 +00:00
distutils-native-base.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
distutils.bbclass logging: update existing oe* logging users to the bb* interface 2011-05-04 00:54:37 +01:00
dummy.bbclass bootimg: Add grub-efi support 2011-11-30 22:18:08 +00:00
gconf.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
gettext.bbclass cross-recipes: Disable nls in gettext bbclass 2011-12-15 14:36:23 +00:00
gnome.bbclass classes/[gnome|gnomebase|mime]: enhance gnome related classes 2011-11-10 11:37:11 +00:00
gnomebase.bbclass classes/[gnome|gnomebase|mime]: enhance gnome related classes 2011-11-10 11:37:11 +00:00
grub-efi.bbclass grub-efi: Use /EFI/BOOT now that mkdosfs -d works with directories 2011-12-16 16:05:35 +00:00
gtk-doc.bbclass classes: Add gtk-doc.bbclass 2008-05-15 14:11:13 +00:00
gtk-icon-cache.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
icecc.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
image-empty.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +01:00
image-live.bbclass image-live.bbclass: allow override of initrd image 2011-10-14 13:18:15 +01:00
image-mklibs.bbclass image-mklibs.bbclass: Utilize ${base_libdir} instead of static /lib 2011-08-05 17:16:02 +01:00
image-prelink.bbclass classes: Remove various bashisms 2011-11-10 11:51:18 +00:00
image-swab.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
image.bbclass bitbake.conf/image.bbclass: Ensure images use the correct passwd/group files 2011-12-08 15:24:27 +00:00
image_types.bbclass image_types.bbclass: disable cleanmarkers for jffs2 images 2011-12-08 15:24:26 +00:00
image_types_uboot.bbclass Add support for generating ext2.lzma{, .u-boot} images 2011-09-29 16:54:38 +01:00
imagetest-dummy.bbclass test: add automation framework and sanitytest 2010-07-15 12:48:25 +01:00
imagetest-qemu.bbclass sanitytest: remove rpm/zypper tests if PACKAGE_CLASSES does not set package_rpm 2011-11-18 10:47:15 +00:00
insane.bbclass insane.bbclass: avoid errors for x32 kernel 2011-11-18 10:47:13 +00: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 to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
kernel-yocto.bbclass kernel-yocto: fix extra CR in do_kernel_checkout 2011-12-02 15:20:27 +00:00
kernel.bbclass kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE 2011-12-13 12:28:11 +00:00
lib_package.bbclass lib_package.bbclass: move static libraries to ${PN}-staticdev 2011-06-28 13:55:42 +01:00
libc-common.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
libc-package.bbclass libc-package.bbclass: Fix typo in setVar usage 2011-12-01 12:51:07 +00:00
license.bbclass license: PR bump failure 2011-12-12 21:50:20 +00: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 to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
mime.bbclass mime.bbclass: Add --disable-update-mimedb to EXTRA_OECONF 2011-11-21 16:48:53 +00:00
mirrors.bbclass mirrors.bbclass: Ensure we don't overwrite any existing MIRRORS variable 2011-02-11 23:50:46 +00:00
module-base.bbclass kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables 2011-08-05 17:16:03 +01:00
module.bbclass module.bbclass: add lock to prevent error bulding ext modules 2011-10-20 17:13:41 +01:00
module_strip.bbclass kernel/package.bbclass: Handle kernel module stripping centrally 2010-08-10 14:47:41 +01:00
multilib.bbclass multilib: Drop MULTILIB_IMAGE_INSTALL 2011-11-08 14:32:55 +00:00
multilib_global.bbclass multilib: remove the multilib handling to allarch 2011-09-28 14:58:53 +01:00
multilib_header.bbclass multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
native.bbclass classes, conf: Exclude native and nativesdk recipes from libc specific override 2011-12-01 16:54:07 +00:00
nativesdk.bbclass nativesdk.bbclass: Remove historical FILES artifact 2011-12-16 16:05:36 +00: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: Adding license collection 2011-12-08 15:24:32 +00:00
package_deb.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
package_ipk.bbclass opkg: Update svn 625 -> 633 and fix preinst issues 2011-12-16 16:05:37 +00:00
package_rpm.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
package_tar.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
packagedata.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
packagehistory.bbclass classes/packagehistory: fix and extend 2011-12-05 16:23:53 +00:00
patch.bbclass patch.bbclass: Add PATCHRESOLVE to excluded vars for generating sstate-cache 2011-11-24 22:12:04 +00:00
perlnative.bbclass cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-native 2011-08-17 15:14:54 +01:00
pkg_distribute.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
pkg_metainfo.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
pkgconfig.bbclass pkgconfig.bbclass: No longer default to pkgconfig_stage code (breaks libdrm) 2009-07-07 15:13:56 +01:00
populate_sdk.bbclass populate_sdk.bbclass: remap packages when generating sdk tarball 2011-12-06 22:47:02 +00:00
populate_sdk_deb.bbclass populate_*.bbclass: Correct INSTALL variable name after recent multilib changes 2011-11-10 18:05:57 +00:00
populate_sdk_ipk.bbclass populate_*.bbclass: Correct INSTALL variable name after recent multilib changes 2011-11-10 18:05:57 +00:00
populate_sdk_rpm.bbclass populate_*.bbclass: Correct INSTALL variable name after recent multilib changes 2011-11-10 18:05:57 +00:00
prserv.bbclass package.bbclass,prserv.bbclass: Compare USE_PR_SERV with "1" or "0" 2011-05-29 09:40:04 +01:00
python-dir.bbclass python-dir: change PYTHON_BASEVERSION to 2.7 2011-10-31 22:03:22 +00:00
qemu.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
qmake2.bbclass qt4: Enable accessibility and sm option for LSB. 2011-01-20 21:37:01 +00:00
qmake_base.bbclass qmake_base: add uclibceabi 2011-08-17 15:14:57 +01:00
qt4e.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
qt4x11.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
recipe_sanity.bbclass import recipe_sanity.bbclass from oe master 2011-06-14 15:28:23 +01:00
relocatable.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
rm_work.bbclass rm_work: keep all sigdata files in stamps dir 2011-05-27 00:48:12 +01:00
rootfs_deb.bbclass classes/rootfs_deb: implement query functions for buildhistory 2011-12-10 00:18:14 +00:00
rootfs_ipk.bbclass opkg: Update svn 625 -> 633 and fix preinst issues 2011-12-16 16:05:37 +00:00
rootfs_rpm.bbclass classes/buildhistory: add new output history collection class 2011-12-05 16:23:53 +00:00
sanity.bbclass sanity.bbclass: No need to check for cvs any more 2011-11-16 17:32:46 +00:00
scons.bbclass logging: update existing oe* logging users to the bb* interface 2011-05-04 00:54:37 +01:00
sdl.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
setuptools.bbclass setuptools bbclass: import from OE 2011-01-20 21:37:00 +00:00
sip.bbclass logging: update existing oe* logging users to the bb* interface 2011-05-04 00:54:37 +01:00
siteconfig.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
siteinfo.bbclass siteinfo: create a new siteinfo for x32-linux 2011-12-12 21:50:19 +00:00
sourcepkg.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
src_distribute.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
src_distribute_local.bbclass src_distribute.bbclass, src_distribute_local.bbclass: mostly rewritten 2011-10-20 17:13:36 +01:00
sstate.bbclass sstate: Add SSTATE_SCAN_FILES 2011-12-15 14:36:24 +00:00
staging.bbclass staging: Remove debug accidently left in 2011-11-22 15:00:56 +00:00
syslinux.bbclass bootimage: Use ${S} explicitly for generated config files 2011-12-02 15:28:43 +00:00
task.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
terminal.bbclass terminal.bbclass: Improve environment handling 2011-09-09 18:39:26 +01:00
tinderclient.bbclass classes: Drop Handled/NotHandled eventhandler keywords, they don't do anything 2010-12-31 09:51:18 +00:00
toolchain-scripts.bbclass toolchain-scripts.bbclass: Make it work when TCLIBC=uclibc 2011-11-29 11:22:05 +00:00
typecheck.bbclass Implement variable typing (sync from OE) 2011-05-20 17:34:22 +01:00
update-alternatives.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
update-rc.d.bbclass getVar/setVar cleanups 2011-11-27 10:25:34 +00:00
useradd.bbclass useradd: Ensure -native recipes don't depend on target recipes 2011-11-21 16:48:51 +00:00
utility-tasks.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
utils.bbclass Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00