Merge "Initialize stat" into tizen accepted/tizen/common/20160620.163128 accepted/tizen/common/20160620.163205 accepted/tizen/ivi/20160617.083635 accepted/tizen/ivi/20160617.083718 accepted/tizen/mobile/20160617.083501 accepted/tizen/mobile/20160617.083839 accepted/tizen/tv/20160617.083331 accepted/tizen/tv/20160617.083612 accepted/tizen/wearable/20160617.083700 accepted/tizen/wearable/20160617.083922 submit/tizen/20160616.134250 submit/tizen/20160616.235341
authorjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 16 Jun 2016 13:33:56 +0000 (06:33 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 16 Jun 2016 13:33:56 +0000 (06:33 -0700)
CMakeLists.txt
packaging/pkgmgr-server.manifest
packaging/pkgmgr-server.spec

index ed35f4d..accc292 100644 (file)
@@ -15,7 +15,11 @@ ADD_DEFINITIONS(-DDB_DIR="${DB_DIR}")
 ADD_DEFINITIONS(-DRUN_DIR="${RUN_DIR}")
 ADD_DEFINITIONS(-DBACKEND_DIR="${BACKEND_DIR}")
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -g -Wall")
+## Compiler flags
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -g -Wall -fPIE")
+
+## Linker flags
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
 
 INCLUDE_DIRECTORIES(include)
 INCLUDE(FindPkgConfig)
index fee7117..1ed1766 100644 (file)
@@ -4,7 +4,7 @@
        </request>
        <assign>
                <filesystem path="/usr/bin/pkgmgr-server" label="System" exec_label="none" />
-               <filesystem path="/var/lib/package-manager/" label="System" />
+               <filesystem path="/var/lib/package-manager" label="System" />
                <filesystem path="/var/lib/package-manager/restriction.db" label="System" />
        </assign>
 </manifest>
index 161059c..e2448fa 100644 (file)
@@ -70,6 +70,7 @@ install -m 0600 restriction.db %{buildroot}%{db_dir}
 %{_unitdir}/package-manager.service
 %{_datadir}/dbus-1/system-services/org.tizen.pkgmgr.service
 %config %{_sysconfdir}/dbus-1/system.d/org.tizen.pkgmgr.conf
+%config(noreplace) %{db_dir}
 %config(noreplace) %{db_dir}/restriction.db
 %{_bindir}/pkgmgr-server
 %{_sysconfdir}/package-manager/server