- add new patch for spec files, to solve post script.
authorRonan Le Martret <ronan@fridu.net>
Wed, 18 Sep 2013 13:54:53 +0000 (15:54 +0200)
committerRonan Le Martret <ronan@fridu.net>
Wed, 18 Sep 2013 13:54:53 +0000 (15:54 +0200)
proto-meta-Tizen_ivi_3.0/specfile-patch/libmm-sound-yocto.spec.patch [new file with mode: 0644]
proto-meta-Tizen_ivi_3.0/specfile-patch/libslp-location-yocto.spec.patch
proto-meta-Tizen_ivi_3.0/specfile-patch/slp-pkgmgr-yocto.spec.patch [new file with mode: 0644]
proto-meta-Tizen_ivi_3.0/specfile-patch/webkit-efl-yocto.spec.patch [moved from proto-meta-Tizen_ivi_3.0/specfile-patch/webkit2-efl-yocto.spec.patch with 68% similarity]

diff --git a/proto-meta-Tizen_ivi_3.0/specfile-patch/libmm-sound-yocto.spec.patch b/proto-meta-Tizen_ivi_3.0/specfile-patch/libmm-sound-yocto.spec.patch
new file mode 100644 (file)
index 0000000..a2b9997
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec
+index 23ded05..8d829d2 100644
+--- a/packaging/libmm-sound.spec
++++ b/packaging/libmm-sound.spec
+@@ -91,6 +91,7 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4
+ %post
++if test "x$D" = "x"; then
+ /sbin/ldconfig
+ /usr/bin/vconftool set -t int memory/Sound/ASMReady 0 -g 29 -f -i
+@@ -105,6 +106,9 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4
+ /usr/bin/vconftool set -t int file/private/sound/volume/fixed 0 -g 29 -f
+ /usr/bin/vconftool set -t int file/private/sound/volume/java 11 -g 29 -f
++
++fi
++
+ %postun -p /sbin/ldconfig
index 88e9ad4..32d9ca4 100644 (file)
@@ -1,19 +1,18 @@
 diff --git a/packaging/libslp-location.spec b/packaging/libslp-location.spec
-index f618420..df0706a 100755
+index f618420..55c4d72 100755
 --- a/packaging/libslp-location.spec
 +++ b/packaging/libslp-location.spec
-@@ -48,7 +48,9 @@ make %{?jobs:-j%jobs}
+@@ -48,7 +48,8 @@ make %{?jobs:-j%jobs}
  
  
  %post
 -/sbin/ldconfig
-+#!/bin/sh
-+if test "x$D" != "x"; then
++if test "x$D" = "x"; then
 +ldconfig
  vconftool set -t int db/location/last/gps/Timestamp "0" -f
  vconftool set -t double db/location/last/gps/Latitude "0.0" -f
  vconftool set -t double db/location/last/gps/Longitude "0.0" -f
-@@ -67,6 +69,7 @@ vconftool set -t double db/location/last/wps/Direction "0.0" -f
+@@ -67,6 +68,7 @@ vconftool set -t double db/location/last/wps/Direction "0.0" -f
  vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
  vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
  vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
diff --git a/proto-meta-Tizen_ivi_3.0/specfile-patch/slp-pkgmgr-yocto.spec.patch b/proto-meta-Tizen_ivi_3.0/specfile-patch/slp-pkgmgr-yocto.spec.patch
new file mode 100644 (file)
index 0000000..190a33e
--- /dev/null
@@ -0,0 +1,19 @@
+diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec
+index cb4dde3..fc7102b 100644
+--- a/packaging/pkgmgr.spec
++++ b/packaging/pkgmgr.spec
+@@ -95,11 +95,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/package-manager/server
+ %find_lang package-manager
+ %post
+-/sbin/ldconfig
++if test "x$D" = "x"; then
++ldconfig
+ # For pkgmgr-install:
+ # Update mime database to support package mime types
+ update-mime-database /usr/share/mime
++fi
+ %post server -p /sbin/ldconfig
@@ -1,9 +1,13 @@
 diff --git a/packaging/webkit2-efl.spec b/packaging/webkit2-efl.spec
-index 4513eef..6ee671f 100644
+index 4513eef..a51ea0a 100644
 --- a/packaging/webkit2-efl.spec
 +++ b/packaging/webkit2-efl.spec
-@@ -216,9 +216,9 @@ cp ./bin/MiniBrowser %{buildroot}%{_bindir}/MiniBrowser
- #!/bin/sh
+@@ -213,12 +213,12 @@ mkdir -p %{buildroot}/usr/share/edje
+ cp ./bin/MiniBrowser %{buildroot}%{_bindir}/MiniBrowser
+ %post
+-#!/bin/sh
++
  #change file permissions
  # 1. libraries
 -chmod 644 %{_libdir}/libewebkit2.so