loading some overlay modules (allowed,nops-overlay,denyop-overlay,lastmod,trace) do not work. Reproducible: Always Steps to Reproduce: 1. USE="overlays" emerge =net-nds/openldap-2.4.19 2. adding "moduleload lastmod.la" to slapd.conf 3. start slapd Actual Results: slapd failed to start with "<moduleload> handler exited with 1" Expected Results: working slapd "strace slapd ..." get init_module(0, 0, 0x5) = -1 ENOEXEC (Exec format error)
Created attachment 210601 [details, diff] fix to build contrib overlays broken overlays has conditional compilation rules like #if SLAPD_OVER_ALLOWED == SLAPD_MOD_DYNAMIC but ebuild do not set these
Please don't resolve your bugs as FIXED if your patch hasn't been added to the tree yet. Your bug report (and patch) is likely to be missed. Please reopen your bug as I don't have the privileges to do this myself. Thanks
follow Comment #2
That tr statement is NOT safe in all locates. Please explictly call it with LC_ALL=C.
Fixed in 2.4.19-r1. I used a bit of bash magic to avoid that extra execution entirely.