Skip to contentSkip to conversation

postinst-intercept: New recipe to include postinstall intercepts in nativesdk

PATCH Superseded David Nyström 2 participants 4 messages Jan 22, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 postinst-intercept: New recipe to include postinstall intercepts in nativesdk

Adding ability to use postinstalls intercepts in the nativesdk env, and making sure the correlate between repo + SDK.

---
 .../postinst-intercept/postinst-intercept_1.0.bb      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb
meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb new file +19 -0
new file mode 100644
index 0000000..41b9a6e
@@ -0,0 +1,19 @@
+SUMMARY = "Postinstall scriptlets"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+FILES_${PN}_append_class-nativesdk = " ${datadir}/postinst-intercepts/*"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install_append_class-nativesdk() {
+	install -d ${D}${datadir}/postinst-intercepts
+	install -m 755 ${COREBASE}/scripts/postinst-intercepts/postinst_intercept ${D}${datadir}/postinst-intercepts/
+	install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_font_cache ${D}${datadir}/postinst-intercepts/
+	install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_icon_cache ${D}${datadir}/postinst-intercepts/
+	install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_pixbuf_cache ${D}${datadir}/postinst-intercepts/
+}
+
+BBCLASSEXTEND = "nativesdk"
+INHIBIT_DEFAULT_DEPS = "1"
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/2 nativesdk-packagegroup-sdk-host: Adding nativesdk-postinst-intercept to SDK

---
 meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +1 -0
index 1065f30..f1bc1ea 100644
@@ -23,6 +23,7 @@ RDEPENDS_${PN} = "\
     nativesdk-shadow \
     nativesdk-makedevs \
     nativesdk-smartpm \
+    nativesdk-postinst-intercept \
     "
 
 RDEPENDS_${PN}_darwin = "\
Signature · 1 line
1.8.3.2
#2 lore raw
In reply to David Nyström
Quoted 4 lines · David Nyström

Adding ability to use postinstalls intercepts in the nativesdk env, and making sure the correlate between repo + SDK.

Can you extend the commit log a little bit to explain the reasoning behind this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw
Quoted 9 lines · Otavio Salvador
Quoted 4 lines · David Nyström

Adding ability to use postinstalls intercepts in the nativesdk env, and making sure the correlate between repo + SDK.

Can you extend the commit log a little bit to explain the reasoning behind this?

v2 sent to list.
rootfs-sandbox is a template intended to figure out whats necessary to make this work properly. At a later stage we have discussed adapting the Tizen MIC2 to OE based distros to do this in a cleaner way.

Br,
David