Remove unnecessary macro 08/87708/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv tizen_4.0 accepted/tizen/3.0.m2/mobile/20170104.121852 accepted/tizen/3.0.m2/tv/20170104.122629 accepted/tizen/3.0.m2/wearable/20170104.122954 accepted/tizen/3.0/common/20161114.105409 accepted/tizen/3.0/ivi/20161011.043748 accepted/tizen/3.0/mobile/20161015.032628 accepted/tizen/3.0/tv/20161016.004039 accepted/tizen/3.0/wearable/20161015.081934 accepted/tizen/4.0/unified/20170816.013800 accepted/tizen/4.0/unified/20170816.020204 accepted/tizen/4.0/unified/20170828.223810 accepted/tizen/common/20160919.154553 accepted/tizen/ivi/20160919.232048 accepted/tizen/mobile/20160919.231955 accepted/tizen/tv/20160919.232020 accepted/tizen/unified/20170309.031927 accepted/tizen/wearable/20160919.232033 submit/tizen/20160919.055034 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522 submit/tizen_unified/20170308.100405 tizen_4.0.m1_release
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 9 Sep 2016 07:13:57 +0000 (16:13 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 9 Sep 2016 07:13:57 +0000 (16:13 +0900)
Change-Id: Ic67d98795b3c3329de7fd1697f216f9a670853df
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt
packaging/debug-launchpad.spec
src/common.c

index 4f68928..6d53dce 100755 (executable)
@@ -19,11 +19,7 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
 # Set required packages
 INCLUDE(FindPkgConfig)
 
-SET(pkgs_requires "dlog glib-2.0 gio-2.0 bundle vconf security-manager")
-IF(_APPFW_FEATURE_SOCKET_ACTIVATION)
-       SET(pkgs_requires "${pkgs_requires} libsystemd-daemon")
-       ADD_DEFINITIONS("-D_APPFW_FEATURE_SOCKET_ACTIVATION")
-ENDIF(_APPFW_FEATURE_SOCKET_ACTIVATION)
+SET(pkgs_requires "dlog glib-2.0 gio-2.0 bundle vconf security-manager libsystemd-daemon")
 
 pkg_check_modules(pkgs REQUIRED ${pkgs_requires})
 
index 491df68..6300e02 100755 (executable)
@@ -24,8 +24,6 @@ BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(security-manager)
 BuildRequires:  pkgconfig(libsystemd-daemon)
 
-%define appfw_feature_socket_activation 1
-
 %description
 Debug launchpad
 
@@ -38,7 +36,6 @@ _APPFW_FEATURE_SOCKET_ACTIVATION=ON
 %endif
 
 cmake  -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-       -D_APPFW_FEATURE_SOCKET_ACTIVATION:BOOL=${_APPFW_FEATURE_SOCKET_ACTIVATION} \
        .
 
 make %{?jobs:-j%jobs}
@@ -47,12 +44,10 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-%if 0%{?appfw_feature_socket_activation}
 mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants
 install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir_user}/debug-launchpad.service
 install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir_user}/debug-launchpad.socket
 ln -s ../debug-launchpad.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/debug-launchpad.socket
-%endif
 
 %clean
 rm -rf %{buildroot}
@@ -63,8 +58,6 @@ rm -rf %{buildroot}
 %license LICENSE
 %manifest debug-launchpad.manifest
 %caps(cap_mac_admin,cap_setgid,cap_dac_override=ei) %{_bindir}/debug_launchpad_preloading_preinitializing_daemon
-%if 0%{?appfw_feature_socket_activation}
 %{_unitdir_user}/debug-launchpad.service
 %{_unitdir_user}/debug-launchpad.socket
 %{_unitdir_user}/sockets.target.wants/debug-launchpad.socket
-%endif
index c6b121a..b64ea5f 100644 (file)
@@ -31,9 +31,7 @@
 #include <unistd.h>
 #include <bundle.h>
 #include <bundle_internal.h>
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
 #include <systemd/sd-daemon.h>
-#endif /* _APPFW_FEATURE_SOCKET_ACTIVATION */
 
 #include "common.h"
 #include "debug_util.h"
@@ -57,7 +55,6 @@ static void __set_sock_option(int fd, int cli)
                setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
 }
 
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
 static int __create_sock_activation(void)
 {
        int listen_fds;
@@ -72,7 +69,6 @@ static int __create_sock_activation(void)
 
        return -1;
 }
-#endif /* _APPFW_FEATURE_SOCKET_ACTIVATION */
 
 static int __create_server_socket(bool is_app)
 {
@@ -159,9 +155,7 @@ int _create_server_sock(void)
 {
        int fd = -1;
 
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
        fd = __create_sock_activation();
-#endif /* _APPFW_FEATURE_SOCKET_ACTIAVTION */
        if (fd < 0) {
                fd = __create_server_socket(false);
                if (fd < 0) {