This way produced RPM can be installed on target or imported in SDK.
libuuid.so.1 is pulled by pkgconfig from com-oic-ri.spec
then it will be installed correctly if using "rpm -i *.rpm",
Overiding system libs in packaging, is not encouraged:
Observed issue on Tizen:2.4:Mobile (TM1) :
sdb shell su -c "rpm -i /opt/usr/media/Others/GBS-ROOT-RI-OIC/*.rpm"
file /usr/lib/libuuid.so.1 from install of com-oic-ri-1.2.0-0.armv7l \
conflicts with file from package libuuid-2.20.2-4.139.slp.armv7l
But if we want to unpack RPM contents to be used along Tizen-sdk,
as app, then uuid is also needed
(because SDK is missing it from its sysroot).
So application need to be linked with -luuid1 (same just renamed),
to avoid collision.
For more details about building IoTivity for Tizen along SDK,
please check:
https://wiki.iotivity.org/tizen
Change-Id: Iabed0221618d0d602f440e3527e1824177395ee1
Bug: https://jira.iotivity.org/browse/IOT-1343
Origin: https://gerrit.iotivity.org/gerrit/#/c/12471
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12471
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Group: Applications/OICSample
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(uuid)
BuildRequires: boost-devel
BuildRequires: boost-thread
BuildRequires: boost-system
cp -f %{ROOTDIR}/resource/csdk/security/libocsrm.a %{buildroot}/%{_libdir}
cp -f %{ROOTDIR}/resource/csdk/connectivity/src/libconnectivity_abstraction.so %{buildroot}/%{_libdir}
cp -f %{ROOTDIR}/extlibs/libcoap/libcoap.a %{buildroot}/%{_libdir}
-cp /usr/lib/libuuid.so.1 %{buildroot}%{_libdir}
+# Renamed to avoid colision with system package
+# I suppose it was added to be used along Tizen SDK which does not ship it
+cp /usr/lib/libuuid.so.1 %{buildroot}%{_libdir}/libuuid1.so
+
if echo %{SECURED}|grep -qi '1'; then
cp -f %{ROOTDIR}/out/tizen/*/*/extlibs/tinydtls/libtinydtls.a %{buildroot}/%{_libdir}
cp -f %{ROOTDIR}/out/tizen/*/*/libmbedcrypto.a %{buildroot}/%{_libdir}