]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Remove incorrect pyembed=True from samba-policy
authorAndrew Bartlett <abartlet@samba.org>
Sun, 26 May 2024 19:28:33 +0000 (07:28 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Jun 2024 20:42:34 +0000 (20:42 +0000)
This is a normal C library, used by python but does not use
any python itself (nor by dependencies any longer).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/lib/policy/wscript_build

index 92eaafac64137200af7ddd02c644dc1391197f9d..f7d9b555f6a4159a964c0b1052eaf11c928c5dd9 100644 (file)
@@ -3,19 +3,15 @@
 
 
 pytalloc_util = bld.pyembed_libname('pytalloc-util')
-samba_policy = bld.pyembed_libname('samba-policy')
-bld.SAMBA_LIBRARY(samba_policy,
+bld.SAMBA_LIBRARY('samba-policy',
        source='gp_ldap.c gp_filesys.c gp_manage.c gp_ini.c',
        pc_files='samba-policy.pc',
        public_deps='ldb samba-net',
        vnum='0.0.1',
-       pyembed=True,
-       public_headers='policy.h',
-       enabled=bld.PYTHON_BUILD_IS_ENABLED()
-       )
+       public_headers='policy.h')
 bld.SAMBA_PYTHON(
         'py_policy',
         source='pypolicy.c',
-        public_deps='%s %s' % (samba_policy, pytalloc_util),
+        public_deps=f'samba-policy {pytalloc_util}',
         realname='samba/policy.so'
         )