Skip to content

fix(arch): create libldap_r.so symlink for python-ldap#16

Closed
trisdoan wants to merge 1 commit intomainfrom
feat/new-improvement
Closed

fix(arch): create libldap_r.so symlink for python-ldap#16
trisdoan wants to merge 1 commit intomainfrom
feat/new-improvement

Conversation

@trisdoan
Copy link
Copy Markdown
Collaborator

Summary

  • On Arch Linux, OpenLDAP 2.5+ removed libldap_r.so but python-ldap<=3.4.3 hardcodes -lldap_r in its setup.cfg, causing build failures
  • Adds _ensure_libldap_r_symlink() to create_venvs that creates /usr/lib/libldap_r.so → libldap.so on Arch before building venvs
  • No-op on Ubuntu/macOS; idempotent if symlink already exists

Test plan

  • ruff check passes
  • All 88 tests pass
  • Manual test: run tlc create-venvs on Arch without existing symlink
  • Verify no-op behavior on Ubuntu

OpenLDAP 2.5+ removed libldap_r.so but python-ldap<=3.4.3 hardcodes
it in setup.cfg. On Arch, create /usr/lib/libldap_r.so -> libldap.so
before building venvs.
@trisdoan
Copy link
Copy Markdown
Collaborator Author

close in favor of trobz/odoo-venv#70

@trisdoan trisdoan closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant