generic-poky/meta
Paul Eggleton 9924a6c72d classes/package_rpm: disable uninstall scripts for upgrades
Our current assumption (based on the behaviour of opkg) when writing
recipes is that prerm and postrm do not get called during an upgrade.
When using rpm however, these are mapped to the rpm "preun" and "postun"
events which occur after postinst for upgrades, and when these contain
removal type operations (such as update-alternatives --remove) this
causes problems.

This patch wraps each preun and postun script for rpm in a check that
determines whether or not the script is being called during an upgrade,
and skips the entire script if it is, which mimics the behaviour of opkg
under the same conditions.

Fixes [YOCTO #1760]

(From OE-Core rev: 1d3f37dc9a43ba6d6beb7b4530c077f239032b99)

(From OE-Core rev: 6e66ecd201760fe418a9884e3605b88a68208776)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-30 16:38:14 +00:00
..
classes classes/package_rpm: disable uninstall scripts for upgrades 2012-01-30 16:38:14 +00:00
conf bitbake.conf: change ccache path to use MULTIMACH_HOST_SYS 2012-01-30 16:37:49 +00:00
files files/device_table-minimal.txt: add /dev/kmsg 2012-01-30 16:38:13 +00:00
lib/oe lib/oe/terminal: add support for XFCE's terminal emulator 2012-01-30 16:38:07 +00:00
recipes-bsp apmd: use ${HOST_SYS}-libtool 2012-01-30 16:37:51 +00:00
recipes-connectivity gypsy: fix packaging 2012-01-30 16:38:12 +00:00
recipes-core dbus: fix install for virtclass-nativesdk 2012-01-30 16:38:12 +00:00
recipes-devtools python: skip setup.py 'import check' when cross-compiling 2012-01-30 16:38:14 +00:00
recipes-extended libzypp: fix mishandling of hyphenated arches 2012-01-30 16:38:14 +00:00
recipes-gnome gnome-doc-utils: Add missing glib-2.0 dependency 2012-01-30 16:38:07 +00:00
recipes-graphics tslib: fix the bug with loading libts-1.0.so 2012-01-30 16:38:10 +00:00
recipes-kernel sysprof: remove duplicated patch 2012-01-30 16:38:02 +00:00
recipes-multimedia libcanberra: add libvorbis to DEPENDS 2012-01-30 16:38:12 +00:00
recipes-qt qt4-x11-free: Fix broken regexes in qt4-x11-free's recipe. 2012-01-30 16:38:01 +00:00
recipes-rt rt-tests: use an explicit commit ID 2011-08-12 21:07:02 +01:00
recipes-sato contacts: fix packaging of icons 2012-01-30 16:38:12 +00:00
recipes-support gmp_5.0.2: Set CC_FOR_BUILD to BUILD_CC 2012-01-30 16:38:14 +00:00
site Give coreutils a chance to build the df utility 2012-01-30 16:38:05 +00:00
COPYING.MIT Add missing licence files (COPYING.MIT) 2006-07-23 13:52:32 +00:00
recipes.txt meta/recipes.txt: correct Qt capitalisation 2011-09-07 22:54:17 +01:00