Bug 97161 - auth-ldap broken on www/lighttpd
Summary: auth-ldap broken on www/lighttpd
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 06:00 UTC by Jakob van Santen
Modified: 2006-06-09 16:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob van Santen 2006-05-12 06:00:33 UTC
Bulding lighttpd 1.4.11 with LDAP support fails, as the configure script can't find the LDAP libraries.

Fix: 

Setting CFLAGS="-I/usr/local/include" and LDFLAGS="-L/usr/local/lib" allows it to build successfully.
How-To-Repeat: Just try to build lighttpd 1.4.11. The pre-built i386 binary also lacks LDAP support.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-12 13:31:09 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Hendrik Scholz 2006-05-12 13:47:33 UTC
Hi!

I don't know when this bug managed to sneak in, anyway here's the fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/lighttpd/Makefile,v
retrieving revision 1.39
diff -u -u -r1.39 Makefile
--- Makefile    3 May 2006 13:25:07 -0000   1.39
+++ Makefile    12 May 2006 12:39:57 -0000
@@ -45,6 +45,7 @@
  .if defined(WITH_OPENLDAP)
  USE_OPENLDAP=      yes
  CONFIGURE_ARGS+=   --with-ldap
+CONFIGURE_ENV+=    CFLAGS=-I${LOCALBASE}/include 
LDFLAGS=-L/${LOCALBASE}/lib
  _REQUIRE+=     slapd
  .endif


Thanks to Jakob for reporting,
  Hendrik

-- 
Hendrik Scholz - <hscholz@raisdorf.net> - http://www.wormulon.net/
drag me, drop me - treat me like an object
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-05-30 20:08:33 UTC
State Changed
From-To: feedback->open

Maintainer has supplied a fix.
Comment 4 Emanuel Haupt freebsd_committer freebsd_triage 2006-05-31 04:02:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Take.
Comment 5 Emanuel Haupt freebsd_committer freebsd_triage 2006-05-31 12:16:40 UTC
State Changed
From-To: open->feedback

The patch you supplied does not solve the problem. Configure still won't find 
-lldap. 

See: 

$ make rmconfig 
$ make configure WITH_LDAP=yes BATCH=yes 
$ make configure 

Check the output (and have a look at ${WRKSRC}/config.log) 

The following patch seems to solve the problem. Could you both please review it? 

Also available: 
http://people.freebsd.org/~ehaupt/snippets/97161/97161.patch 

--- patch begins here --- 
Index: Makefile 
=================================================================== 
RCS file: /home/ncvs/ports/www/lighttpd/Makefile,v 
retrieving revision 1.39 
diff -u -r1.39 Makefile 
--- Makefile    3 May 2006 13:25:07 -0000       1.39 
+++ Makefile    31 May 2006 11:15:59 -0000 
@@ -7,6 +7,7 @@ 

PORTNAME=      lighttpd 
PORTVERSION=   1.4.11 
+PORTREVISION=  1 
CATEGORIES=    www 
MASTER_SITES=  http://www.lighttpd.net/download/ 

@@ -20,8 +21,12 @@ 
USE_GNOME=     lthack 
USE_RC_SUBR=   lighttpd.sh 
CONFIGURE_ARGS=        --libdir=${PREFIX}/lib/lighttpd 
+CONFIGURE_ENV+=        CFLAGS="${CFLAGS}" 
CONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} 

+CFLAGS+=       -I${LOCALBASE}/include 
+LDFLAGS+=      -L${LOCALBASE}/lib 
+ 
MAN1=          lighttpd.1 spawn-fcgi.1 

OPTIONS=       OPENSSL         "Enable SSL support"    on   
--- patch ends here ---
Comment 6 Emanuel Haupt freebsd_committer freebsd_triage 2006-06-09 16:33:50 UTC
State Changed
From-To: feedback->open

Feedback received.
Comment 7 Emanuel Haupt freebsd_committer freebsd_triage 2006-06-09 16:37:57 UTC
State Changed
From-To: open->closed

Committed, thanks!