1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

third_party/*_wrapper: use SAMBA_LIBRARY(force_unversioned=True)

This prevents --private-libraries=ALL from creating unuseable
wrapper libraries, as they can't work with symbol versioning.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15545

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-12-29 14:32:51 +00:00
parent 533e5daf77
commit a80614fe30
5 changed files with 11 additions and 5 deletions

View File

@ -87,10 +87,11 @@ def configure(conf):
def build(bld):
if bld.CONFIG_SET("HAVE_NSS_H") and not bld.CONFIG_SET("USING_SYSTEM_NSS_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# We need force_unversioned=True as symbol versioning
# breaks preloading!
bld.SAMBA_LIBRARY('nss_wrapper',
source='nss_wrapper.c nss_utils.c',
deps='dl pthread',
install=False,
force_unversioned=True,
realname='libnss-wrapper.so')

View File

@ -87,12 +87,13 @@ def configure(conf):
def build(bld):
if not bld.CONFIG_SET("USING_SYSTEM_PAM_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# We need force_unversioned=True as symbol versioning
# breaks preloading!
bld.SAMBA_LIBRARY('pam_wrapper',
source='pam_wrapper.c',
deps='dl pthread',
install=False,
force_unversioned=True,
realname='libpam-wrapper.so')
bld.SAMBA_SUBSYSTEM('libpamtest',
@ -103,6 +104,7 @@ def build(bld):
source='modules/pam_set_items.c',
deps='pam',
install=False,
force_unversioned=True,
realname='pam_set_items.so')
pypamtest_cflags = ''

View File

@ -85,10 +85,11 @@ def configure(conf):
def build(bld):
if bld.CONFIG_SET("HAVE_RESOLV_H") and not bld.CONFIG_SET("USING_SYSTEM_RESOLV_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# We need force_unversioned=True as symbol versioning
# breaks preloading!
bld.SAMBA_LIBRARY('resolv_wrapper',
source='resolv_wrapper.c',
deps='dl resolv',
install=False,
force_unversioned=True,
realname='libresolv-wrapper.so')

View File

@ -110,7 +110,7 @@ def configure(conf):
def build(bld):
if not bld.CONFIG_SET("USING_SYSTEM_SOCKET_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# We need force_unversioned=True as symbol versioning
# breaks preloading!
bld.SAMBA_LIBRARY('socket_wrapper',
source='socket_wrapper.c',
@ -121,4 +121,5 @@ def build(bld):
VERSION),
deps='dl pthread tirpc',
install=False,
force_unversioned=True,
realname='libsocket-wrapper.so')

View File

@ -115,10 +115,11 @@ syscall(SYS_setgroups32, 0, NULL);
def build(bld):
if not bld.CONFIG_SET("USING_SYSTEM_UID_WRAPPER"):
# We need to do it this way or the library wont work.
# Using private_library=True will add symbol version which
# We need force_unversioned=True as symbol versioning
# breaks preloading!
bld.SAMBA_LIBRARY('uid_wrapper',
source='uid_wrapper.c',
deps='dl pthread',
install=False,
force_unversioned=True,
realname='libuid-wrapper.so')