cd db-4.2.52
patch -p0 < openldap-src/build/BerkeleyDB42.patch
-(modify directory paths as necessary, then recompile and reinstall
-the BerkeleyDB 4.2 library.)
+(modify directory paths as necessary), then recompile and reinstall
+the BerkeleyDB 4.2 library, and then build and install OpenLDAP
+Software.
The patch should not be applied to Berkeley DB 4.3.