Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 11:24:52 +0200
From:      Florent Peterschmitt <florent@peterschmitt.fr>
To:        freebsd-ports@freebsd.org
Subject:   Re: poudriere - postgresql90-client, LDAP, requires ldap.h
Message-ID:  <517CEAE4.9@peterschmitt.fr>
In-Reply-To: <CACdU%2Bf_to4bJa0KUe7LUv-%2Bha9CFuqtFFf_97qydORx42yvOSg@mail.gmail.com>
References:  <517C1DCE.2050603@peterschmitt.fr> <517C3F8F.2080602@FreeBSD.org> <517C43E6.4080907@peterschmitt.fr> <CACdU%2Bf_to4bJa0KUe7LUv-%2Bha9CFuqtFFf_97qydORx42yvOSg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2MDAETLEDKARDGHVHBFDX
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Le 28/04/2013 08:05, Scot Hetzel a =E9crit :
> 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 =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 i=
t the
>>>> good way to do ? For each package requirement, it is needed to insta=
ll
>>>> it by hand ? (or with previously built packages :) )
>>>>
>>>
>>> You should use the 'poudriere options' command to enable LDAP support=
 in
>>> 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 bui=
ld
>>> you an LDAP package -- and when you go to install postgresql, ldap wi=
ll
>>> 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).
>>
>=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 X=
ML
> 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/Makefil=
e
> 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.  =
This
> will add OpenLDAP as a LIB_DEPENDS to the postgresql*-client ports.
>=20
> Scot
>=20
Ah ok so it's not a problem from poudriere :) So I'll do that and retry
soon, thanks.

--=20
Florent Peterschmitt
+33 (0)6 64 33 97 92
florent@peterschmitt.fr

------------------------
O< ascii ribbon campaign
- stop html mail
- www.asciiribbon.org


------enig2MDAETLEDKARDGHVHBFDX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRfOrkAAoJEMtO2Sol0IImlKAH/i9d9c6qlzNveU6mxjR6YkQ3
96PMbJgBBIMYiWVhAYl6yTpl7X3nORL66F+2DjLsNHApcntUQxmaK/DNNIoFGfEn
z6qbRL+S2JyQ3nvw3VD/KkemZJ3AmJa7wFTByDvEraGXzKGNcpDjbzy587oWtonH
xyJo9V/QCPvezVO3uc+vStNxqXNPmErUsh10JEzD2FTj1MC5lSPJljipMGAD6RKQ
93Hgy6kqnk5lwfyVYW1yelf1TXQek1ogM3YGmacJOtlaL9vHTN29Rswu27yxDxn1
n8zn/lgXHuVwIH+lR1M28e5u7yQ30qOOk3u/ZqzW3c7L0tLq9FCZXTuwQ8kJ1e4=
=Bgo9
-----END PGP SIGNATURE-----

------enig2MDAETLEDKARDGHVHBFDX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?517CEAE4.9>