aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-03-06 14:15:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-07 15:04:36 +0000
commit2dadf775f619571c273ea20eb8d3fdd7ba656052 (patch)
tree8b0f34fef9a67cf4d03621c8d49f84818d0a421f /meta/recipes-devtools/opkg
parentf33555f52a4ee83f0bd205cdf483045fcd0578b2 (diff)
downloadopenembedded-core-contrib-2dadf775f619571c273ea20eb8d3fdd7ba656052.tar.gz
openembedded-core-contrib-2dadf775f619571c273ea20eb8d3fdd7ba656052.tar.bz2
openembedded-core-contrib-2dadf775f619571c273ea20eb8d3fdd7ba656052.zip
opkg/dpkg: remove the postinstalls
Just use the run-postinsts recipe for running first boot postinstalls. [YOCTO #5666] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg.inc28
1 files changed, 1 insertions, 27 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc
index 7bea26d42c..9f87df551e 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -38,7 +38,7 @@ EXTRA_OECONF = "\
--with-opkglibdir=${OPKGLIBDIR} \
"
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"
+RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base run-postinsts"
RDEPENDS_${PN}_class-native = ""
RDEPENDS_${PN}_class-nativesdk = ""
RREPLACES_${PN} = "opkg-nogpg"
@@ -73,30 +73,4 @@ do_install_append() {
rm ${D}${bindir}/update-alternatives
}
-pkg_postinst_${PN} () {
-#!/bin/sh
-if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)} && \
- [ "x$D" != "x" ] && [ -f $D${OPKGLIBDIR}/opkg/status ]; then
- install -d $D${sysconfdir}/rcS.d
-
- # this happens at S98 where our good 'ole packages script used to run
- echo "#!/bin/sh
-[ -e ${sysconfdir}/default/postinst ] && . ${sysconfdir}/default/postinst
-if [ \"\$POSTINST_LOGGING\" = \"1\" ]; then
- opkg-cl configure >\$LOGFILE 2>&1
-else
- opkg-cl configure
-fi
-rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
-" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
- chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
-fi
-}
-
BBCLASSEXTEND = "native nativesdk"
-
-# Define a variable to allow distros to run configure earlier.
-# (for example, to enable loading of ethernet kernel modules before networking starts)
-# note: modifying name or default value for POSTINSTALL_INITPOSITION requires
-# changes in systemd-compat-units.bb
-POSTINSTALL_INITPOSITION ?= "98"