File add-compile-debug.patch of Package winexe

From: Sophie Brun <sophie@freexian.com>
Date: Mon, 7 Oct 2019 16:17:19 +0200
Subject: compile fix samba-debug

Origin: vendor
Last-Update: 2016-03-01

Build fails with the following message:
/usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: error adding
symbols: DSO missing from command line
samba-debug is now a private library not linked to samba.
Last-Update: 2016-03-01
---
 source/wscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/wscript b/source/wscript
index 361be52..6a0d9ca 100644
--- a/source/wscript
+++ b/source/wscript
@@ -78,7 +78,7 @@ def configure(ctx):
                 ''' % (h in 'smb_cli.h smb_cliraw.h smb_composite.h util/debug.h'.split(), h))
 
             libs = []
-            for l in 'cli-ldap dcerpc dcerpc-samba errors popt talloc ndr-standard samba-hostconfig samba-credentials smbclient-raw'.split():
+            for l in 'cli-ldap dcerpc dcerpc-samba errors popt talloc ndr-standard samba-hostconfig samba-credentials smbclient-raw samba-debug'.split():
                 if ctx.check(lib=l, libpath=ctx.env.SAMBA_LIBS, mandatory=False):
                     libs.append(l)
                 else:
openSUSE Build Service is sponsored by