Update packages.
authorRonan Le Martret <ronan@fridu.net>
Tue, 15 Jul 2014 15:42:51 +0000 (17:42 +0200)
committerRonan Le Martret <ronan@fridu.net>
Tue, 15 Jul 2014 15:42:51 +0000 (17:42 +0200)
Change-Id: I917a63724a9d5258efcaddca08c8992090d646d9
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
20 files changed:
recipes-image/config-image/config-image.bb
recipes-image/images/tizen-common-core-image-minimal.bb
recipes-tizen/app-checker/app-checker-extraconf.inc
recipes-tizen/audio-session-manager/audio-session-manager.inc
recipes-tizen/aul-1/aul-1-extraconf.inc
recipes-tizen/desktop-skin/desktop-skin-extraconf.inc
recipes-tizen/download-provider/download-provider.inc
recipes-tizen/iniparser/iniparser.inc
recipes-tizen/libmm-common/libmm-common.inc
recipes-tizen/libmm-sound/libmm-sound.inc
recipes-tizen/libprivilege-control/libprivilege-control-extraconf.inc
recipes-tizen/libprivilege-control/libprivilege-control.inc
recipes-tizen/libprivilege-control/libprivilege-control_git.bb
recipes-tizen/lua/lua.inc
recipes-tizen/pam/pam.inc
recipes-tizen/pam/pam_git.bb
recipes-tizen/privacy-manager/privacy-manager-extraconf.inc
recipes-tizen/privacy-manager/privacy-manager.inc
recipes-tizen/privacy-manager/privacy-manager_git.bb
recipes-tizen/rpm/rpm.inc

index b7207d2..8d51465 100644 (file)
@@ -8,17 +8,21 @@ LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ec
 do_install() {
   mkdir -p ${D}${sysconfdir}
   echo "Tizen on Yocto" > ${D}${sysconfdir}/tizen
+  
+  touch ${D}${sysconfdir}/environment
+  chmod 0644 ${D}${sysconfdir}/environment
+  
 }
 
 pkg_postinst_${PN} () {
   chsmack -t $D${sysconfdir}
   chsmack -a 'System::Shared' $D${sysconfdir}
-  echo getfattr -d --match=- $D${sysconfdir}
-  getfattr -d --match=- $D${sysconfdir}
   
   mkdir -p $D${localstatedir}/volatile/log
   chsmack -t $D${localstatedir}/volatile/log
   chsmack -a 'System::Log'  $D${localstatedir}/volatile/log
+
 }
 
-FILES_${PN} = "${sysconfdir}/tizen"
\ No newline at end of file
+FILES_${PN} = "${sysconfdir}/tizen \
+               ${sysconfdir}/environment "
\ No newline at end of file
index ed028d4..fea8c74 100644 (file)
@@ -25,7 +25,7 @@ CORE_IMAGE_BASE_INSTALL += "user-session-units"
 CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
 CORE_IMAGE_BASE_INSTALL += "desktop-skin"
 CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"
-CORE_IMAGE_EXTRA_INSTALL += "config-image"
+CORE_IMAGE_BASE_INSTALL += "config-image"
 CORE_IMAGE_BASE_INSTALL += "kernel-modules"
 
 export SYSROOT = "${IMAGE_ROOTFS}"
index 6a39556..5178868 100644 (file)
@@ -2,28 +2,3 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/app-checker"
 
 SRC_URI += "file://0001-yocto-Correct-libdl-linking-issue.patch"
 
-LICENSE = "Apache-2.0"
-
-do_compile() {
- cd ${S}
- LANG=C
- export LANG
- unset DISPLAY
- LD_AS_NEEDED=1; export LD_AS_NEEDED ;
-   cmake \
-         -DCMAKE_VERBOSE_MAKEFILE=ON \
-         -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-         -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
-         -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
-         -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
-         -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
-         -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
-         -DCMAKE_SKIP_RPATH:BOOL=ON \
-         -DBUILD_SHARED_LIBS:BOOL=ON .
- oe_runmake
-}
\ No newline at end of file
index 800a681..8d4a241 100644 (file)
@@ -64,7 +64,7 @@ do_compile() {
   unset DISPLAY
   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
   
-  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fvisibility=hidden -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ; export CFLAGS
+  CFLAGS="$CFLAGS -fvisibility=hidden -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" ; export CFLAGS
   
   autotools_do_configure
   oe_runmake 
index cb4b7a9..f4423b2 100644 (file)
@@ -36,5 +36,5 @@ DEPENDS += "vconf"
 DEPENDS += "privacy-manager"
 
 do_configure_prepend() {
-    sed -i 's!/usr/bin/mkdir!/bin/mkdir -p!g' ${S}/packaging/ac.service
+    sed -i 's!/usr/bin/mkdir -m!/bin/mkdir -p -m!g' ${S}/packaging/ac.service
 }
\ No newline at end of file
index c195d0b..d2b1669 100644 (file)
@@ -3,4 +3,11 @@ do_install_append() {
     # Comment on of those two lines to define the desktop background:
     #ln -sf tizen_common.png ${D}/${prefix}/share/backgrounds/tizen/current
     ln -sf golfe-morbihan.jpg ${D}/${prefix}/share/backgrounds/tizen/current
+}
+
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    ln -fs tizen_common.png $D${prefix}/share/backgrounds/tizen/current
+
 }
\ No newline at end of file
index 4ab47f0..7183332 100644 (file)
@@ -79,8 +79,8 @@ do_compile() {
  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  
  
-       CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -fPIC -D_REENTRANT -fvisibility=hidden"; export CFLAGS 
-       FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -fPIC -fvisibility=hidden"; export FFLAGS 
+       CFLAGS="${CFLAGS:-$CFLAGS} -fPIC -D_REENTRANT -fvisibility=hidden"; export CFLAGS 
+       FFLAGS="${FFLAGS:-$CFLAGS} -fPIC -fvisibility=hidden"; export FFLAGS 
        LDFLAGS+=" -Wl,--as-needed -Wl,--hash-style=both"; export LDFLAGS 
        cmake \
                -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
index e2b213a..4d4ecef 100644 (file)
@@ -47,7 +47,7 @@ do_compile() {
  unset DISPLAY
  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  
- make prefix=${prefix}  ${PARALLEL_MAKE} CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC"
+ make prefix=${prefix}  ${PARALLEL_MAKE} CFLAGS="$CFLAGS -fPIC"
  
  
  
index 634b197..ec03ca5 100644 (file)
@@ -50,7 +50,7 @@ do_compile() {
   unset DISPLAY
   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
   
-  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " 
+  CFLAGS="$CFLAGS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " 
   autotools_do_configure
   oe_runmake ${PARALLEL_MAKE}
   
index 6e8c508..b1d5e65 100644 (file)
@@ -76,7 +76,7 @@ do_compile() {
   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
   
   ./autogen.sh
-  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_SPEAKER_AND_WIRED_ACCESSORY -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
+  CFLAGS="$CFLAGS -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_SPEAKER_AND_WIRED_ACCESSORY -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
   
   autotools_do_configure
   make ${PARALLEL_MAKE}
index e69de29..ef0d1c8 100644 (file)
@@ -0,0 +1,3 @@
+do_configure() {
+ sed -i 's@source /etc/tizen-platform.conf@source ${STAGING_DIR_NATIVE}/etc/tizen-platform.conf@' ${S}/db/updater.sh
+}
\ No newline at end of file
index c8290ee..5c1fadb 100644 (file)
@@ -77,10 +77,11 @@ do_compile() {
          -DBUILD_SHARED_LIBS:BOOL=ON \
          ${EXTRA_OECMAKE} . -DCMAKE_BUILD_TYPE=RELEASE \
           -DCMAKE_VERBOSE_MAKEFILE=ON \
-       -DTZ_SYS_DB=${prefix}/dbspace \
-       -DTZ_SYS_HOME=/home
+          -DTZ_SYS_DB=${prefix}/dbspace \
+          -DTZ_SYS_HOME=/home \
+          -DTZ_SYS_ETC=${sysconfdir}
  
- VERBOSE=1 make 
+ VERBOSE=1 oe_runmake 
  
  
  
@@ -104,12 +105,10 @@ do_install() {
    rm -f ${D}${infodir}/dir 
    find ${D} -regex ".*\.la$" | xargs rm -f -- 
    find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/usr/share/privilege-control/
- mkdir -p ${D}/usr/lib/systemd/system/multi-user.target.wants
- ln -sf /usr/lib/systemd/system/smack-rules.service ${D}/usr/lib/systemd/system/multi-user.target.wants/smack-rules.service
+ mkdir -p ${D}${prefix}/share/privilege-control/
+ mkdir -p ${D}${prefix}/lib/systemd/system/multi-user.target.wants
+ ln -sf ${prefix}/lib/systemd/system/smack-rules.service ${D}${prefix}/lib/systemd/system/multi-user.target.wants/smack-rules.service
  mkdir -p ${D}${prefix}/dbspace
  sed -i 's|TZ_SYS_DB|${prefix}/dbspace|g' ${S}/packaging/libprivilege-control.manifest
  
  
@@ -119,7 +118,7 @@ pkg_postinst_${PN}() {
     #!/bin/sh -e
 
     [ "x\$D" == "x" ] && ldconfig
-    /usr/share/privilege-control/db/updater.sh
+    $D${prefix}/share/privilege-control/db/updater.sh
     chsmack -a 'System' $D${prefix}/dbspace/.rules-db.db3*
 
 }
@@ -138,15 +137,15 @@ PACKAGES += " libprivilege-control-dev "
 libprivilege-control_files = ""
 libprivilege-control_files += "${prefix}/lib/*.so.*"
 libprivilege-control_files += "${prefix}/lib/librules-db-sql-udf.so"
-libprivilege-control_files += "/usr/lib/systemd/system/smack-rules.service"
-libprivilege-control_files += "/usr/bin/api_feature_loader"
-libprivilege-control_files += "/usr/lib/systemd/system/multi-user.target.wants/smack-rules.service"
-libprivilege-control_files += "/usr/share/privilege-control/db/rules-db.sql"
-libprivilege-control_files += "/usr/share/privilege-control/db/rules-db-data.sql"
-libprivilege-control_files += "/usr/share/privilege-control/db/updater.sh"
-libprivilege-control_files += "/usr/share/privilege-control/db/updates/*"
-libprivilege-control_files += "/usr/share/privilege-control/db/load-rules-db.sql"
-libprivilege-control_files += "/etc/opt/upgrade/220.libprivilege-updater.patch.sh"
+libprivilege-control_files += "${prefix}/lib/systemd/system/smack-rules.service"
+libprivilege-control_files += "${prefix}/bin/api_feature_loader"
+libprivilege-control_files += "${prefix}/lib/systemd/system/multi-user.target.wants/smack-rules.service"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/rules-db.sql"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/rules-db-data.sql"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/updater.sh"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/updates/*"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/load-rules-db.sql"
+libprivilege-control_files += "${sysconfdir}/opt/upgrade/220.libprivilege-updater.patch.sh"
 libprivilege-control_files += "%dir ${prefix}/dbspace"
 MANIFESTFILES_${PN} = "libprivilege-control.manifest"
 
index 6aa9df5..309e9df 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "10"
 
 LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-SRC_URI += "git://review.tizen.org/platform/core/security/libprivilege-control;tag=8e290feb45ac99f2a621c3733aa2bb26ef8611ff;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/security/libprivilege-control;tag=b76cc5fc08162679937b85889992e85f95c6881d;nobranch=1"
 
 BBCLASSEXTEND += " native "
 
index 918504d..c3adac0 100644 (file)
@@ -59,7 +59,7 @@ do_compile() {
  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  
  sed -i 's:LUA_ROOT2 "LIBDIR/lua/5.1/":LUA_ROOT2 \"lib/lua/5.1/":' src/luaconf.h
- make ${PARALLEL_MAKE} -C src CC="${CC}" MYCFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=5.1 all
+ make ${PARALLEL_MAKE} -C src CC="${CC}" MYCFLAGS="$CFLAGS -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=5.1 all
  
  
  
index 4e5091e..ef5c84e 100644 (file)
@@ -86,7 +86,7 @@ do_compile() {
   unset DISPLAY
   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
   
-  CFLAGS="-fPIC -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables " ; export CFLAGS
+  CFLAGS="-fPIC $CFLAGS " ; export CFLAGS
   
   
   autotools_do_configure
index 80bcf5d..fb93a60 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "10"
 
 LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-SRC_URI += "git://review.tizen.org/platform/upstream/pam;tag=00107b54a1f8f846b0defd1a00b04e5f72990959;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/upstream/pam;tag=7d469347460af24cf68c6ef1fa72e8aaec5a1a3b;nobranch=1"
 
 BBCLASSEXTEND += " native "
 
index f63f8c1..e90d859 100644 (file)
@@ -54,5 +54,4 @@ PKG_capi-security-privacy-manager-dev= "capi-security-privacy-manager-dev"
 
 do_configure() {
  sed -i 's@source /etc/tizen-platform.conf@source $D/etc/tizen-platform.conf@' ${S}/res/usr/bin/privacy_manager_create_clean_db.sh
- sed -i 's@/usr/bin@${TZ_SYS_DB}@' ${S}/res/usr/bin/privacy_manager_create_clean_db.sh
 }
index f8fbd4d..e4f73d4 100644 (file)
@@ -171,6 +171,7 @@ pkg_postinst_privacy-manager-server() {
        $D${prefix}/bin/privacy_manager_create_clean_db.sh
     fi
     chsmack -a 'User' $D${prefix}/dbspace/.privacy.db*
+    chsmack -a 'User' $D${prefix}/dbspace/.privacylist.db*
 
 }
 
index e77f407..0d66481 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "10"
 
 LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-SRC_URI += "git://review.tizen.org/platform/core/security/privacy-manager;tag=3ca7a656bf292b9692dbe73e58db7c2f6a931c6e;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/security/privacy-manager;tag=c3cc4cfe5aedaa35bf10107c473da4e0bc476f50;nobranch=1"
 
 BBCLASSEXTEND += " native "
 
index f7670a8..b67930c 100644 (file)
@@ -145,7 +145,7 @@ do_compile() {
   
   CPPFLAGS="$CPPFLAGS `pkg-config --cflags nss`"
   export CPPFLAGS
-  export CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -ffunction-sections"
+  export CFLAGS="$CFLAGS -ffunction-sections"
   export LDFLAGS="${LDFLAGS} -Wl,-Bsymbolic-functions -ffunction-sections"