From owner-freebsd-ports@FreeBSD.ORG Sun Apr 28 11:25:52 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E8E4BB75; Sun, 28 Apr 2013 11:25:52 +0000 (UTC) (envelope-from girgen@pingpong.net) Received: from melon.pingpong.net (melon.pingpong.net [79.136.116.200]) by mx1.freebsd.org (Postfix) with ESMTP id 36F28118C; Sun, 28 Apr 2013 11:25:52 +0000 (UTC) Received: from [10.0.1.6] (c-ce57e155.1525-1-64736c12.cust.bredbandsbolaget.se [85.225.87.206]) by melon.pingpong.net (Postfix) with ESMTPA id 8688215184; Sun, 28 Apr 2013 13:25:44 +0200 (CEST) References: <517C1DCE.2050603@peterschmitt.fr> <517C3F8F.2080602@FreeBSD.org> <517C43E6.4080907@peterschmitt.fr> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: X-Mailer: iPad Mail (9B206) From: Palle Girgensohn Subject: Re: poudriere - postgresql90-client, LDAP, requires ldap.h Date: Sun, 28 Apr 2013 13:25:45 +0200 To: Chris Rees Cc: Scot Hetzel , "pgsql@freebsd.org" , FreeBSD Ports , Florent Peterschmitt X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Apr 2013 11:25:53 -0000 28 apr 2013 kl. 10:37 skrev Chris Rees : > Please CC maintainers when you're asking about specific ports! > On 28 April 2013 07:05, Scot Hetzel wrote: >> On Sat, Apr 27, 2013 at 4:32 PM, Florent Peterschmitt < >> florent@peterschmitt.fr> wrote: >>=20 >>> Le 27/04/2013 23:13, Matthew Seaman a =C3=A9crit : >>>> On 27/04/2013 19:49, Florent Peterschmitt wrote: >>>>> Hello, >>>>>=20 >>>>> I use the latest poudriere-devel to make my own pkg repository, and >>>>> would like to build postgresql with LDAP support. >>>>>=20 >>>>> Since it's in a virgin jail, and because the log said =C2=AB hey I nee= d >>>>> ldap.h =C2=BB, I understand that openldap should be installed but, is i= t the >>>>> good way to do ? For each package requirement, it is needed to install= >>>>> it by hand ? (or with previously built packages :) ) >>>>>=20 >>>>=20 >>>> You should use the 'poudriere options' command to enable LDAP support i= n >>>> the postgresql server. >>>=20 >>> Yep, I did that. Sorry, I missed to say I already have done this. The >>> problem is that when building the package, the configure step fail >>> saying ldap.h is missing. >>>=20 >>>> Now, when you use poudriere to build the postgresql package, it will >>>> have LDAP client added as a requirement -- so poudriere will also build= >>>> you an LDAP package -- and when you go to install postgresql, ldap will= >>>> be installed as well as a dependency. >>>>=20 >>>> Cheers, >>>>=20 >>>> Matthew >>>>=20 >>> Yep. But how does work poudriere ? Because I have built postfix and >>> dovecot2 with LDAP support and there was no problem. I think it's a >>> problem from the port itself and not from poudriere, I should try in a >>> new system (perhaps, a jail, without poudriere). >>>=20 >>=20 >> The problem seems to be caused by the following from >> databases/postgresql91-server/Makefile: >>=20 >> 66 .if !defined(CLIENT_ONLY) && !defined(SLAVE_ONLY) >> 67 SERVER_ONLY=3D yes >> 68 USE_RC_SUBR=3D postgresql >> 69 USE_PGSQL=3D yes >> 70 WANT_PGSQL_VER=3D >> ${DISTVERSION:C/([0-9][0-9]*)\.([0-9][0-9]*).*/\1\2/g} >> 71 USERS=3D ${PG_USER} >> 72 GROUPS=3D ${PG_GROUP} >> 73 SUB_FILES+=3D 502.pgsql >> 74 .endif >>=20 >> 81 .if !defined(SLAVE_ONLY) >> 82 OPTIONS_DEFINE+=3D NLS DTRACE PAM LDAP GSSAPI OPTIMIZED_CFLAGS XML= >> TZDATA DEBUG KRB5 >> 83 OPTIONS_SINGLE=3D KRB5 >> 84 OPTIONS_SINGLE_KRB5=3D MIT_KRB5 HEIMDAL_KRB5 >> : >> 112 OPTIONS_DEFAULT=3D NLS XML TZDATA INTDATE SSL >> 113 .endif # !SLAVE_ONLY >>=20 >> 159 . if ${PORT_OPTIONS:MLDAP} >> 160 CONFIGURE_ARGS+=3D--with-ldap >> 161 . if defined (SERVER_ONLY) >> 162 USE_OPENLDAP=3D yes >> 163 . endif >> 164 . endif >>=20 >> NOTE: postgresql90-client/Makefile includes postgresql90-server/Makefile >> which then includes postgresql91-server/Makefile >>=20 >> Unfortunately, you can't set USE_OPENLDAP as a build depends. Try >> commenting out lines 161 and 163 in the postgresql91-server/Makefile. Th= is >> will add OpenLDAP as a LIB_DEPENDS to the postgresql*-client ports. >>=20 >=20 > Actually, >=20 > [crees@medusa]~% psql > Shared object "libldap_r-2.4.so.8" not found, required by "libpq.so.5" > [crees@medusa]~% >=20 > LDAP is indeed a LIB_DEPENDS. >=20 > Palle, Jason, if you don't object I'm going to add || defined > (CLIENT_ONLY) to line 161 above. >=20 > Chris It seems strange to me that psql should require libldap? That seems like a b= ug, or am I missing something? Why would the client side of the connection n= eed to use ldap?=