Fix plugins load failure during plugins installation 01/5601/2 tizen_ivi_genivi accepted/tizen/20130912.185104 accepted/tizen/20130912.193337 accepted/tizen/20130913.063714 accepted/tizen/20130920.012546 accepted/tizen/20130920.012648 accepted/tizen/20130920.205046 accepted/tizen/ivi/genivi/20140131.064643 ivi_oct_m2 submit/tizen/20130912.080543 submit/tizen/20130912.090841 submit/tizen/20130920.012436 submit/tizen_ivi_genivi/20140131.061729
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Mon, 1 Jul 2013 12:19:26 +0000 (14:19 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 10 Jul 2013 14:36:12 +0000 (07:36 -0700)
Add library path for wrt-plugins library into ld.so.conf file
to avoid stepLoadPluginLibrary(): Failed to load plugin: /usr/lib64/wrt-plugins/tizen-application/libwrt-plugins-tizen-application.so

CMakeLists.txt
packaging/wrt-plugins-tizen.spec
wrt-plugins-tizen.conf.in [new file with mode: 0644]

index 81c8c69..6f54343 100755 (executable)
@@ -198,3 +198,10 @@ FUNCTION(add_plugin)
 ENDFUNCTION()
 
 ADD_SUBDIRECTORY(src)
+
+################################################################################
+# ld configuration file
+
+CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/wrt-plugins-tizen.conf.in
+               ${PROJECT_SOURCE_DIR}/wrt-plugins-tizen.conf @ONLY)
+INSTALL(FILES ${PROJECT_SOURCE_DIR}/wrt-plugins-tizen.conf DESTINATION /etc/ld.so.conf.d/)
index 35ac175..c1484c7 100755 (executable)
@@ -146,15 +146,15 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-%post
-
-%postun
+%post -p  /sbin/ldconfig
 
+%postun -p /sbin/ldconfig
 
 %files
 %manifest wrt-plugins-tizen.manifest 
 %{_libdir}/wrt-plugins/*
 /usr/etc/tizen-apis/*
+/etc/ld.so.conf.d/wrt-plugins-tizen.conf
 
 %files devel
 %{_includedir}/*
diff --git a/wrt-plugins-tizen.conf.in b/wrt-plugins-tizen.conf.in
new file mode 100644 (file)
index 0000000..7c90b05
--- /dev/null
@@ -0,0 +1,22 @@
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-tizen
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-timeutil
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-systemsetting
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-systeminfo
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-secureelement
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-power
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-package
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-notification
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-nfc
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-networkbearerselection
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-log
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-filesystem
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-download
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-datasync
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-datacontrol
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-content
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-contact
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-calendar
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-bookmark
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-bluetooth
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-application
+@LIB_INSTALL_DIR@/wrt-plugins/tizen-alarm