]> dgit.raspbian.org Git - samba.git/commitdiff
force tevent to be standalone
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 25 Sep 2026 09:44:12 +0000 (12:44 +0300)
Forwarded: not-needed

Upstream ships contents of lib/tevent/ as a separate
source of tevent.  Since we build samba anyway, there's
no need to have separate tevent source package, it's
enough to build it during samba build.

Always build tevent as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtevent.so will
have rpath pointing to the private samba dir.  Since
tevent actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name tevent-standalone.diff

lib/tevent/wscript

index 7107ade4a3a0e19e4003524fa8cab08449052149..7fc5b90e0e18cec4eeecafdca8e2edf2f20fd264 100644 (file)
@@ -41,7 +41,7 @@ def configure(conf):
         else:
             conf.define('USING_SYSTEM_CMOCKA', 1)
 
-    conf.env.standalone_tevent = conf.IN_LAUNCH_DIR()
+    conf.env.standalone_tevent = conf.IN_LAUNCH_DIR() or True
 
     if not conf.env.standalone_tevent:
         if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION,
@@ -100,7 +100,7 @@ def build(bld):
         private_library = True
 
     if not bld.CONFIG_SET('USING_SYSTEM_TEVENT'):
-        tevent_deps = 'replace talloc'
+        tevent_deps = 'talloc' # 'replace talloc'
         if bld.CONFIG_SET('HAVE_PTHREAD'):
             tevent_deps += ' pthread'