generic-poky/meta/classes
Mark Hatle 7561770d43 rootfs_rpm.bbclass: Enable pre and post install scripts
[YOCTO #1755]

We change the want the RPM rootfs install works to install pre and post install
scripts.  The new method uses a script helper that is invoked by RPM outside
of the normal chroot.

The wrapper is dynamically generated prior to the install starting.  It will
check the return code of the script.  If the script fails, it will store a copy
to be executed on the first system boot.  This is similar to the previous
mechanism.

In addition, a line of debug was added to the scripts as written by package_rpm
to list which package and which script for later debugging, if necessary.

(From OE-Core rev: 3e7120d6a9fd5e46214673d0a6e1085a7314ff42)

(From OE-Core rev: 5d74a2bbe036cf586b76aef0d9907ecb3d4a5f1d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-30 16:43:01 +00:00
..
allarch.bbclass toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH vars 2011-08-05 17:15:59 +01:00
autotools.bbclass autotools: fix multi-word arguments for EXTRA_OECONF 2012-01-30 16:38:00 +00:00
autotools_stage.bbclass autotools: deprecate autotools_stage class 2010-04-27 17:11:28 +01:00
base.bbclass base.bbclass: Drop unneeded dependency 2012-01-30 16:37:55 +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 bitbake: machine specific sysroots implementation 2011-01-25 12:25:46 +00:00
bugzilla.bbclass bugzilla.bbclass: add a class to report build problems to bugzilla 2011-09-16 18:07:26 +01:00
buildstats.bbclass buildstats: Fix for buildstats on tmpfs 2012-01-30 16:38:10 +00:00
cmake.bbclass cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-native 2011-08-17 15:14:54 +01:00
cml1.bbclass cml1/kernel: Update do_menuconfig to use oe.terminal() 2011-09-15 11:23:59 +01: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 cpan.bbclass, cpan-base.bbclas: update them for the perlnative change 2011-06-09 16:58:34 +01:00
cpan.bbclass cpan.bbclass: fix native perl issue 2011-09-07 22:54:16 +01:00
cpan_build.bbclass cpan.bbclass: use LIBDIR instead of DATADIR 2011-01-12 00:55:48 -08:00
cross-canadian.bbclass toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH vars 2011-08-05 17:15:59 +01: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:28:10 +01:00
debian.bbclass debian.bbclass: Fix hardcoded "lib" reference 2011-09-21 13:42:53 +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 distrodata: fix distro_check code 2011-09-21 13:42:50 +01:00
distutils-base.bbclass distutils-base: Only RDEPEND python-core on target packages 2011-03-10 18:14:21 -08:00
distutils-common-base.bbclass distutils(-common-base) bbclass: sync with OE 2011-01-20 21:37:00 +00:00
distutils-native-base.bbclass distutils: Sync with OE.dev 2009-12-05 23:18:02 +00:00
distutils.bbclass logging: update existing oe* logging users to the bb* interface 2011-05-04 00:54:37 +01:00
gconf.bbclass debian/kernel/gconf/gtk-icon-cache: PKGDESK/PKG fixes 2009-11-16 10:52:35 +00:00
gettext.bbclass classes/gettext: Do not disable nls for non target recipes 2011-07-20 15:27:37 +01:00
gnome.bbclass gnome.bbclass: Remove autotools_stage reference 2010-11-02 10:15:27 +00:00
gtk-doc.bbclass classes: Add gtk-doc.bbclass 2008-05-15 14:11:13 +00:00
gtk-icon-cache.bbclass gtk-icon-cache: Adding MLPREFIX when dynamically set RDEPENDS 2011-08-17 15:14:55 +01:00
icecc.bbclass icecc.bbclass: fix handling of nativesdk and cross-canadian packages 2011-09-22 05:12:29 +01:00
image-empty.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +01:00
image-live.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +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 image-prelink: remove hardcoded path assumptions, don't generate cache file 2011-05-17 17:06:38 +01:00
image-swab.bbclass image-swab: Convert to attach strace to the process to obtain the required swabber data 2011-02-10 11:51:48 +00:00
image.bbclass multilib: Drop MULTILIB_IMAGE_INSTALL 2012-01-30 16:38:13 +00:00
image_types.bbclass image_types bbclass: use 4k bytes per inode so we don't run out of space immediately 2012-01-30 16:38:10 +00:00
image_types_uboot.bbclass image_types_uboot: fix a number of issues 2011-08-30 22:12:56 +01:00
imagetest-dummy.bbclass test: add automation framework and sanitytest 2010-07-15 12:48:25 +01:00
imagetest-qemu.bbclass scripts: use OE_TMPDIR instead of TMPDIR external variable 2012-01-30 16:37:50 +00:00
insane.bbclass insane.bbclass: don't warn on .so files in -nativesdk packages 2011-09-22 05:12:29 +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 kernel-arch: Add handling of powerpc64 2011-07-22 11:56:50 +01:00
kernel-yocto.bbclass linux-yocto: simplify kernel configuration check expression 2011-09-22 04:50:07 +01:00
kernel.bbclass kernel.bbclass: Find the kernel consistently. 2011-08-29 13:48:07 +01:00
lib_package.bbclass lib_package.bbclass: move static libraries to ${PN}-staticdev 2011-06-28 13:55:42 +01:00
libc-common.bbclass libc-common.bbclass: Fix typo 2011-07-08 18:08:43 +01:00
libc-package.bbclass libc-package.bbclass: add MLPREFIX when set values to PACKAGES 2011-10-04 13:59:30 +01:00
license.bbclass libcense.bbclass: fix OpenSSL mapping 2012-01-30 16:38:10 +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 metadata_scm.bbclass: Use COREBASE to grok for SCM operations 2011-05-11 15:38:33 +01: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 2012-01-30 16:38:03 +00: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 2012-01-30 16:38:13 +00:00
multilib_global.bbclass multilib: remove the multilib handling to allarch 2011-10-04 13:59:30 +01:00
multilib_header.bbclass multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
native.bbclass native.bbclass: Ensure native recipes have a deterministic baselib value 2012-01-30 16:37:58 +00:00
nativesdk.bbclass multilib.bbclass: Partially fix multlib image targets 2011-09-22 22:28:10 +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: Fix various problems 2012-01-30 16:38:08 +00:00
package_deb.bbclass deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
package_ipk.bbclass multilib: Drop MULTILIB_IMAGE_INSTALL 2012-01-30 16:38:13 +00:00
package_rpm.bbclass rootfs_rpm.bbclass: Enable pre and post install scripts 2012-01-30 16:43:01 +00:00
package_tar.bbclass classes/package_xxx.class: Use PKGE/PKGV/PKGR. 2011-05-27 17:55:49 +01:00
packagedata.bbclass Move packagedata code into oe.packagedata (sync from OE) 2011-05-20 19:07:51 +01:00
packagehistory.bbclass classes: Remove and sanitise import statements 2009-11-13 12:15:28 +00:00
patch.bbclass patch.bbclass: allow importing patches into other dirs 2011-04-04 14:09:59 +01: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 Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +00:00
pkg_metainfo.bbclass Rename /openembedded/ -> /meta/ 2006-07-21 10:10:31 +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: We need to ensure that the SDK sysroot reflects PACKAGE_ARCH 2011-09-02 23:38:08 +01:00
populate_sdk_deb.bbclass deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
populate_sdk_ipk.bbclass populate_sdk_ipk.bbclass: Added ipk support in populate_sdk task. 2011-02-01 23:59:38 +00:00
populate_sdk_rpm.bbclass populate_sdk_rpm: Add missing /bin/sh from rpm ignore list for the SDK 2011-10-04 13:59:31 +01: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.bbclass: define default PYTHON_BASEVERSION 2011-04-18 09:57:01 +01:00
qemu.bbclass eglibc: import eglibc_2.12 recipe from OE 2010-08-13 23:37:30 +01: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 qt4: add qt4-embedded 4.6.3 from meta-openembedded 2011-02-01 16:10:11 +00:00
qt4x11.bbclass qt4x11.bbclass: Using BPN instead of PN. 2011-08-05 17:43:34 +01:00
recipe_sanity.bbclass import recipe_sanity.bbclass from oe master 2011-06-14 15:28:23 +01:00
relocatable.bbclass relocatable.bbclass: Cover libexecdir 2010-08-12 14:41:30 +01:00
rm_work.bbclass rm_work: keep all sigdata files in stamps dir 2011-05-27 00:48:12 +01:00
rootfs_deb.bbclass deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
rootfs_ipk.bbclass multilib: Drop MULTILIB_IMAGE_INSTALL 2012-01-30 16:38:13 +00:00
rootfs_rpm.bbclass rootfs_rpm.bbclass: Enable pre and post install scripts 2012-01-30 16:43:01 +00:00
sanity.bbclass sanity.bbclass: add a sanity check for KDE 4.x konsole in TERMCMD 2011-09-19 04:52:49 +01: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 bitbake: machine specific sysroots implementation 2011-01-25 12:25:46 +00:00
siteinfo.bbclass toolchain-script.bbclass: Collected cached site config in runtime. 2011-08-24 19:26:08 -07:00
sourcepkg.bbclass logging: update existing oe* logging users to the bb* interface 2011-05-04 00:54:37 +01:00
src_distribute.bbclass src_distribute: Set EXPORT_FUNCTIONS correctly 2010-11-01 10:48:43 +00:00
src_distribute_local.bbclass classes: Sync various classes with OE for various bugfixes 2007-08-08 20:41:55 +00:00
sstate.bbclass sstate.bbclass: Ensure machine specific stamps are only wiped for the current task 2012-01-30 16:37:58 +00:00
staging.bbclass Add umask task control 2011-06-30 20:57:05 +01:00
syslinux.bbclass syslinux.bbclass: Clean up boot menu title 2008-10-17 08:39:34 +00:00
task.bbclass Factor ipkg index and conf file creation into package_ipk.bbclass 2007-09-01 22:17:06 +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 Fixed a typo for setting up OECORE_ACLOCAL_OPTS for adt-installer case 2011-10-04 13:59:30 +01:00
typecheck.bbclass Implement variable typing (sync from OE) 2011-05-20 17:34:22 +01:00
update-alternatives.bbclass update-alternatives.bbclass: don't expand var when appending do_install 2010-11-21 18:17:24 +00:00
update-rc.d.bbclass update-rc.d.bbclass: Changed RDEPENDS for native 2011-01-24 14:09:14 -08:00
useradd.bbclass useradd: Add missing DEPEND on shadow 2012-01-30 16:38:16 +00:00
utility-tasks.bbclass base/utility-tasks.bbclass: Drop do_setscene and do_rebuild 2011-03-01 00:10:56 +00:00
utils.bbclass utils.bbclass: skip empty paths when handling FILESEXTRAPATHS 2011-08-23 18:23:35 -07:00