FS#41855 - [openldap] Please configure with `--enable-backends`

Attached to Project: Arch Linux
Opened by Luke Shumaker (lukeshu) - Sunday, 07 September 2014, 14:36 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 23 September 2014, 00:21 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I think it would be nice for openldap to be `./configure`d with `--enable-backends` to enable all bundled backends, instead of just the couple that are currently enabled.

Several of them are "demo" or testing (as in "is slapd working?") backends; but others are actually useful, like the 'sock' or 'sql' backends, which are both not enabled it 2.4.39-1.
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 23 September 2014, 00:21 GMT
Reason for closing:  Implemented
Additional comments about closing:  Added all available backends as modules. In svn trunk.
Comment by Luke Shumaker (lukeshu) - Sunday, 07 September 2014, 14:37 GMT
Ouch, that typo in the title. Sorry.
Comment by Doug Newgard (Scimmia) - Monday, 15 September 2014, 00:29 GMT
  • Field changed: Summary ([openldap] Pleas configure with `--enable-backends` → [openldap] Please configure with `--enable-backends`)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Eric Belanger (Snowman)
Orphan, assigning to last packager.
Comment by Eric Belanger (Snowman) - Monday, 15 September 2014, 01:28 GMT
It doesn't build with the --enable-backends option:

checking for NdbApi.hpp... configure: error: could not locate NdbApi headers

No package in the repo has this header. Instead just list the backends you want enabled and I'll enable them explicitly.
Comment by Luke Shumaker (lukeshu) - Monday, 15 September 2014, 18:03 GMT
Adding '--enable-ndb=no' should fix it, plus adding unixodbc as a dependency for the sql backend.

You probably don't want to add unixodbc as a constant dependency, so you could make back_sql a loadable module with `--enble-sql=mod` (and add unixodbc as a make/opt dependency), or change it to `--enable-backends=mod`. I'm not sure if the latter would change the backends that are static by default to be loadable modules, or if it would leave them alone.
Comment by Luke Shumaker (lukeshu) - Monday, 15 September 2014, 18:36 GMT
It would leave `config`, `ldif`, and as static backends, but make the others (`monitor`, `bdb`, `hdb`, `mdb`, `relay`) modules.

Relatedly, I believe that the the `bdb` and `hdb` currently in the PKGBUILD ./configure are superfluous, as `./configure --help` claims they are enabled by default.

Loading...