Unable to build nss_ldap. There seems to be various issues. Reproducible: Always Steps to Reproduce: emerge nss_ldap
Created attachment 345594 [details, diff] Patch for nss_ldap-265-r1 Here is a patch which will fix the issues. Most of the changes have been fetched from ports. I don't know what kind of licensing issues this brings. The actual functionality has not been tested thoroughly yet.
how far has it been tested?
I have been running this since june 2013. I haven't had any issues so far. I am only using groups and passwd in a small scale environment. No formal testing.
I need someone other then me to review this, my C is shit and since this is auth related...
on second thought... fixed in r3
I just tried to install nss_ldap-265-r3, and it failed. Seems like the changes made in the patch indeed worked for nss_ldap-265-r1. But nss_ldap-265-r2 made the following change in the ebuild from: emake -j1 DESTDIR="${D}" install || die "make install failed" to: emake -j1 DESTDIR="${D}" install \ INST_UID=${PORTAGE_USER:-root} INST_GID=${PORTAGE_GROUP:-root} The patch above made changes to the Makefile.am to set INST_GID to wheel when building for freebsd. Overriding it to root in the ebuild causes the build to fail during install. This seems deliberate, so I am not sure exactly what to do in this case. I guess changing the ebuild ranks pretty high on the list.
ok, try r4 :D