meta-tizen: media-server: remove failing vconftool commands
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 11 Aug 2014 07:41:42 +0000 (09:41 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 17:21:52 +0000 (09:21 -0800)
In the postinst script, some of the vconftool commands fail to execute
which prevents the image to be built. As a TEMPORARY WORKAROUND the
failing command is removed. This patch will need to be reverted as soon
as this issue has been properly corrected.

Bug-Tizen: BTY-25
Change-Id: I9e223f478345f4deca7c4c093986dc8f40029d69
(From meta-tizen rev: 6b6a138068193b2d99dd7c1965c1532070e35e32)

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen/recipes-tizen/media-server/media-server-extraconf.inc

index 0c02628..46847c8 100644 (file)
@@ -1,7 +1,18 @@
 SRC_URI += "file://Makefile.am.diff"
 
 do_install_append() {
- rm -fr ${D}/etc
+    rm -fr ${D}/etc
+}
 
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
 
-}
\ No newline at end of file
+    vconftool set -t int db/filemanager/dbupdate "1" -f
+    # Temporary workaround needed to generate the image
+    #vconftool set -t int memory/filemanager/Mmc "0" -i -f
+    #vconftool set -t string db/private/mediaserver/mmc_info "" -f
+    vconftool set -t int file/private/mediaserver/scan_internal "1" -f
+    vconftool set -t int file/private/mediaserver/scan_directory "1" -f
+    chgrp users $D${prefix}/bin/media-data-sdk_create_db.sh
+    chgrp -R users $D${prefix}/data/data-media
+}