diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-11-10 10:30:21 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:43:01 +0000 |
commit | 7561770d43cf1cb0d988c9f095f924aac13ba60a (patch) | |
tree | fa8572d388c1a34a13a6ffe0191c5d6ae29cd548 /meta/recipes-devtools/rpm/rpm_5.4.0.bb | |
parent | 03fbfe7cf138b4aab138552557753d9f03848df4 (diff) | |
download | poky-7561770d43cf1cb0d988c9f095f924aac13ba60a.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm_5.4.0.bb')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.0.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb index bbef0be71e..f8fe836562 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb | |||
@@ -45,7 +45,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" | |||
45 | DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}" | 45 | DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}" |
46 | extrarpmdeps = "python perl" | 46 | extrarpmdeps = "python perl" |
47 | extrarpmdeps_virtclass-native = "file-native" | 47 | extrarpmdeps_virtclass-native = "file-native" |
48 | PR = "r22" | 48 | PR = "r23" |
49 | 49 | ||
50 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | 50 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed |
51 | # in order to extract the distribution SRPM into a format we can extract... | 51 | # in order to extract the distribution SRPM into a format we can extract... |
@@ -63,6 +63,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex | |||
63 | file://rpm-fileclass.patch \ | 63 | file://rpm-fileclass.patch \ |
64 | file://rpm-canonarch.patch \ | 64 | file://rpm-canonarch.patch \ |
65 | file://rpm-no-loopmsg.patch \ | 65 | file://rpm-no-loopmsg.patch \ |
66 | file://rpm-scriptletexechelper.patch \ | ||
66 | file://pythondeps.sh \ | 67 | file://pythondeps.sh \ |
67 | " | 68 | " |
68 | 69 | ||