From owner-freebsd-ports@FreeBSD.ORG Sun Apr 28 06:05:35 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 91193FF3 for ; Sun, 28 Apr 2013 06:05:35 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 671281AA8 for ; Sun, 28 Apr 2013 06:05:35 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id k5so6307302iea.18 for ; Sat, 27 Apr 2013 23:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=nTn0TRzjEO01x9DEbRTOZ2z0PQNLaAb9yLVcGfJWbeA=; b=gRrBx2Sfazs8j3locZIJEygSZL37W3VgXUjM4+WAWmuc7fCE5W7aseH8jsI/XZovLQ BNpieGgh0vYQQnAWCA8QbUWcXxtXW4YW8M5gm3P+HCWpjIkllKCLaeXCGJUz9dDrkN/C QztvDsCdK4BbLa6PNdRtfDgcV8MJpdHxIiU1NO/czelzdXtUAttp6w6jrXG1wQ0aaS51 igYU5kHY+EQDB6F24GonhS1GKcah944gPv+8w9Fid55IPUMU9UFia8zB5lfVOhmaDMJH RVavnxz1+nyvUhMNiIO9/93WixNg7/5TEt3Tv3lOx8KiXx/ImEipT7auZFyCSapWvMXj IffQ== MIME-Version: 1.0 X-Received: by 10.50.73.133 with SMTP id l5mr5299157igv.108.1367129134504; Sat, 27 Apr 2013 23:05:34 -0700 (PDT) Received: by 10.50.57.84 with HTTP; Sat, 27 Apr 2013 23:05:34 -0700 (PDT) In-Reply-To: <517C43E6.4080907@peterschmitt.fr> References: <517C1DCE.2050603@peterschmitt.fr> <517C3F8F.2080602@FreeBSD.org> <517C43E6.4080907@peterschmitt.fr> Date: Sun, 28 Apr 2013 01:05:34 -0500 Message-ID: Subject: Re: poudriere - postgresql90-client, LDAP, requires ldap.h From: Scot Hetzel To: Florent Peterschmitt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Ports 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 06:05:35 -0000 On Sat, Apr 27, 2013 at 4:32 PM, Florent Peterschmitt < florent@peterschmitt.fr> wrote: > Le 27/04/2013 23:13, Matthew Seaman a =E9crit : > > On 27/04/2013 19:49, Florent Peterschmitt wrote: > >> Hello, > >> > >> I use the latest poudriere-devel to make my own pkg repository, and > >> would like to build postgresql with LDAP support. > >> > >> Since it's in a virgin jail, and because the log said =AB hey I need > >> ldap.h =BB, I understand that openldap should be installed but, is it = the > >> good way to do ? For each package requirement, it is needed to install > >> it by hand ? (or with previously built packages :) ) > >> > > > > You should use the 'poudriere options' command to enable LDAP support i= n > > the postgresql server. > > 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. > > > 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. > > > > Cheers, > > > > Matthew > > > 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). > The problem seems to be caused by the following from databases/postgresql91-server/Makefile: 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 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 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 NOTE: postgresql90-client/Makefile includes postgresql90-server/Makefile which then includes postgresql91-server/Makefile Unfortunately, you can't set USE_OPENLDAP as a build depends. Try commenting out lines 161 and 163 in the postgresql91-server/Makefile. This will add OpenLDAP as a LIB_DEPENDS to the postgresql*-client ports. Scot --=20 DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.