Subject: devel/apr breaks db4 / openldap
To: NetBSD Packages <tech-pkg@netbsd.org>
From: Dick Davies <rasputnik@hellooperator.net>
List: tech-pkg
Date: 10/03/2004 21:02:39
I just tried rebuilding apache and found i got a build failure in
linking against ldap. The problem seems to be that I have  these two
knobs set:

rasputin@lb:lib$ grep APR /etc/mk.conf
APR_USE_DB4=YES
APR_USE_OPENLDAP=YES
rasputin@lb:lib$

(because I have a mod_auth_ldap protected Subversion repository).
Disabling the first breaks subversion, disabling the second stops
the apache ldap modules being built, and they've not conflicted in the 
last six months, so shouldn't the elsif be an endif/if pair?

This patch seems to fix my build
(also there isn't a maintainer mentioned in the Makefile).



rasputin@lb:apr$ cvs diff  -u
socket: Protocol not supported
cvs diff: Diffing .
Index: buildlink3.mk
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/devel/apr/buildlink3.mk,v
retrieving revision 1.7
diff -u -r1.7 buildlink3.mk
--- buildlink3.mk       3 Oct 2004 00:13:24 -0000       1.7
+++ buildlink3.mk       3 Oct 2004 19:57:26 -0000
@@ -24,7 +24,8 @@

 .if !empty(APR_USE_DB4:M[yY][eE][sS])
 .  include "../../databases/db4/buildlink3.mk"
-.elif !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
+.endif
+.if !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
 .  include "../../databases/openldap/buildlink3.mk"
 .endif

cvs diff: Diffing patches

-- 
Yeah, life is hilariously cruel. - Bender
Rasputin :: Jack of All Trades - Master of Nuns