Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835637 - dev-python/python-ldap-3.4.0 - /.../ld: cannot find -lldap_r
Summary: dev-python/python-ldap-3.4.0 - /.../ld: cannot find -lldap_r
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://github.com/python-ldap/python...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: 835819
  Show dependency tree
 
Reported: 2022-03-19 19:54 UTC by Toralf Förster
Modified: 2022-05-14 02:52 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.77 KB, text/plain)
2022-03-19 19:54 UTC, Toralf Förster
Details
dev-python:python-ldap-3.4.0:20220319-192334.log (dev-python:python-ldap-3.4.0:20220319-192334.log,15.95 KB, text/plain)
2022-03-19 19:54 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,74.99 KB, application/x-bzip)
2022-03-19 19:54 UTC, Toralf Förster
Details
environment (environment,125.51 KB, text/plain)
2022-03-19 19:54 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.31 KB, application/x-bzip)
2022-03-19 19:54 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.02 KB, application/x-bzip)
2022-03-19 19:54 UTC, Toralf Förster
Details
python-ldap-3.4.0-openldap-2.6.1-ldap_r.patch (python-ldap-3.4.0-openldap-2.6.1-ldap_r.patch,407 bytes, patch)
2022-03-23 06:44 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-03-19 19:54:29 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -fPIC -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.4.0 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.9 -c Modules/ldapmodule.c -o /var/tmp/portag
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -fPIC -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.4.0 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.9 -c Modules/message.c -o /var/tmp/portage/d
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -fPIC -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.4.0 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/usr/include/python3.9 -c Modules/options.c -o /var/tmp/portage/d
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pipe -march=native -fno-diagnostics-color -O2 /var/tmp/portage/dev-python/python-ldap-3.4.0/work/python-ldap-3.4.0-python3_9/temp.linux-x86_64-3.9/Modules/LDAPObject.o /var/tmp/portage/dev-python/python-
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lldap_r
collect2: error: ld returned 1 exit status
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20220315-050013

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-10.3.1
 [3] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 13.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.1
Python 3.9.11
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.59.0
  [2]   rust-1.59.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 750e253180c5d2e96ce951796667fd96c459ec22
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Mar 19 18:34:25 2022 +0000

    2022-03-19 18:34:23 UTC

emerge -qpvO dev-python/python-ldap
[ebuild   R   ] dev-python/python-ldap-3.4.0  USE="ssl -doc -examples -sasl -test" PYTHON_TARGETS="python3_9 -pypy3 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-03-19 19:54:30 UTC
Created attachment 767398 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-19 19:54:30 UTC
Created attachment 767399 [details]
dev-python:python-ldap-3.4.0:20220319-192334.log
Comment 3 Toralf Förster gentoo-dev 2022-03-19 19:54:32 UTC
Created attachment 767400 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-03-19 19:54:33 UTC
Created attachment 767401 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-03-19 19:54:34 UTC
Created attachment 767402 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-03-19 19:54:35 UTC
Created attachment 767403 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-03-22 23:32:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de6436589d3e0c9aee1e356e31be3832057d08ad

commit de6436589d3e0c9aee1e356e31be3832057d08ad
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-22 22:55:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-22 23:26:55 +0000

    dev-python/python-ldap: add version limit on OpenLDAP (needs ldap_r)
    
    We need (for now) the reentrant library from OpenLDAP which is gone.
    
    Also, sync live.
    
    Bug: https://bugs.gentoo.org/835637
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/python-ldap/python-ldap-3.4.0.ebuild |  7 ++++---
 dev-python/python-ldap/python-ldap-9999.ebuild  | 19 +++++++++----------
 2 files changed, 13 insertions(+), 13 deletions(-)
Comment 8 Attila Tóth 2022-03-23 06:44:31 UTC
Created attachment 767614 [details, diff]
python-ldap-3.4.0-openldap-2.6.1-ldap_r.patch

Unconditional workaround.
Comment 10 Larry the Git Cow gentoo-dev 2022-05-14 02:52:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a48f929d360f6e61e305898850339774b7fe663

commit 9a48f929d360f6e61e305898850339774b7fe663
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-14 02:50:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-14 02:51:49 +0000

    dev-python/python-ldap: add 3.4.0_p20220420
    
    Snapshot because a bunch of commits were needed to fix OpenLDAP 2.6+
    compat and then there were some serious bugfixes too.
    
    Closes: https://bugs.gentoo.org/835637
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/python-ldap/Manifest                    |  1 +
 dev-python/python-ldap/python-ldap-3.4.0-r1.ebuild |  2 +-
 .../python-ldap/python-ldap-3.4.0_p20220420.ebuild | 96 ++++++++++++++++++++++
 dev-python/python-ldap/python-ldap-9999.ebuild     |  8 +-
 4 files changed, 102 insertions(+), 5 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8790accf926841f422f9cbe95a1e27e6c67457c6

commit 8790accf926841f422f9cbe95a1e27e6c67457c6
Author:     Dennis Lamm <expeditioneer@gentoo.org>
AuthorDate: 2022-03-23 07:20:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-14 02:32:45 +0000

    dev-python/python-ldap: added openldap 2.6 support
    
    Bug: https://bugs.gentoo.org/835637
    Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Closes: https://github.com/gentoo/gentoo/pull/24721
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/python-ldap-3.4.0-openldap-2.6.patch     | 33 ++++++++
 dev-python/python-ldap/python-ldap-3.4.0-r1.ebuild | 97 ++++++++++++++++++++++
 2 files changed, 130 insertions(+)