summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch')
-rw-r--r--meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch b/meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch
new file mode 100644
index 000000000..8c4e2ad53
--- /dev/null
+++ b/meta-networking/recipes-connectivity/samba/samba-4.1.12/19-systemd-daemon-is-contained-by-libsystemd.patch
@@ -0,0 +1,42 @@
1systemd-daemon is contained by libsystemd, so we just need link libsystemd to
2obtain the implementation of systemd-daemon's function.
3
4Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
5
6diff -Nurp samba-4.1.12.orig/lib/util/wscript_build samba-4.1.12/lib/util/wscript_build
7--- samba-4.1.12.orig/lib/util/wscript_build 2014-09-08 18:26:14.000000000 +0900
8+++ samba-4.1.12/lib/util/wscript_build 2015-04-29 16:16:58.303000207 +0900
9@@ -10,7 +10,7 @@ bld.SAMBA_LIBRARY('samba-util',
10 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
11 tevent_debug.c util_process.c memcache.c''',
12 deps='DYNCONFIG',
13- public_deps='talloc tevent execinfo uid_wrapper pthread LIBCRYPTO charset util_setid systemd-daemon',
14+ public_deps='talloc tevent execinfo uid_wrapper pthread LIBCRYPTO charset util_setid systemd',
15 public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h',
16 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
17 local_include=False,
18diff -Nurp samba-4.1.12.orig/wscript samba-4.1.12/wscript
19--- samba-4.1.12.orig/wscript 2014-07-28 16:13:45.000000000 +0900
20+++ samba-4.1.12/wscript 2015-04-29 16:17:52.338000264 +0900
21@@ -183,16 +183,16 @@ def configure(conf):
22 conf.env['ENABLE_PIE'] = True
23
24 if Options.options.enable_systemd != False:
25- conf.check_cfg(package='libsystemd-daemon', args='--cflags --libs',
26- msg='Checking for libsystemd-daemon', uselib_store="SYSTEMD-DAEMON")
27- conf.CHECK_HEADERS('systemd/sd-daemon.h', lib='systemd-daemon')
28- conf.CHECK_LIB('systemd-daemon', shlib=True)
29+ conf.check_cfg(package='libsystemd', args='--cflags --libs',
30+ msg='Checking for libsystemd', uselib_store="SYSTEMD-DAEMON")
31+ conf.CHECK_HEADERS('systemd/sd-daemon.h', lib='systemd')
32+ conf.CHECK_LIB('systemd', shlib=True)
33
34 if conf.CONFIG_SET('HAVE_SYSTEMD_SD_DAEMON_H'):
35 conf.DEFINE('HAVE_SYSTEMD', '1')
36 conf.env['ENABLE_SYSTEMD'] = True
37 else:
38- conf.SET_TARGET_TYPE('systemd-daemon', 'EMPTY')
39+ conf.SET_TARGET_TYPE('systemd', 'EMPTY')
40 conf.undefine('HAVE_SYSTEMD')
41
42 conf.SAMBA_CONFIG_H('include/config.h')