Files
gentoo/net-nds
Z. Liu 74f7ab1af8 net-nds/openldap: fix build issue with llvm profile and a test failure
1. building with llvm profile causes many error messagees like the
   one bellow:

     ld.lld: error: version script assignment of OPENLDAP_2.200 to symbol ... failed: symbol not defined

   This is caused by lld enable option "--no-undefined-version" by default
   (see 'https://reviews.llvm.org/D135402'). OpenLDAP define all dynamic
   symbols in libraries/{liblber/lber,libldap/ldap}.map, but some symbols
   are only available when specific configuration option are enabled. We've
   identified the options like HAVE_TLS, HAVE_CYRUS_SASL and LDAP_CONNECTIONLESS
   will cause build failures.
   There are two workarounds:
     1. Remove the symbol from .map file if the corresponding configuration
        option is not set.
     2. Add the linker option "-Wl,--undefined-version" to restore the default
        behavior that undefined symbols in shared libraries are allowed.

   Option 1 requires identifying all symbols controlled by different options,
   and using sed to remove them based on the configuration. Option 2 is much
   simpler and has no known side effects. We choose option 2.

2. In patch 'openldap-2.6.1-fix-missing-mapping.patch', 'ber_sockbuf_io_udp'
   was added to lber.map, but it's not completed. This symbol is part an
   unsupported feature (cldap or ldap over udp) and is only built when the
   unsupported LDAP_CONNECTIONLESS flag is defined. All the user of
   'ber_sockbuf_io_udp' are enclosed by #ifdef guards, it make no sense to not
   enclose it by #ifdef too. Another patch for ldap.map form Fedora is included
   too. Patch is updated to v2.

3. USE="debug" is required for USE="test", otherwise "test065-proxyauthz"
   will failed:
     must compile with LDAP_DEBUG for debugging
     unrecognized log level "pcache" (deferred)

Upstream Issue: https://bugs.openldap.org/show_bug.cgi?id=9739
FreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277585

Closes: https://bugs.gentoo.org/923334
Closes: https://bugs.gentoo.org/938553
Closes: https://bugs.gentoo.org/946816
Closes: https://bugs.gentoo.org/946975
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39844
Signed-off-by: Sam James <sam@gentoo.org>
2024-12-28 18:02:24 +00:00
..