poudriere - postgresql90-client, LDAP, requires ldap.h
Florent Peterschmitt
florent at peterschmitt.fr
Sun Apr 28 09:25:33 UTC 2013
Le 28/04/2013 08:05, Scot Hetzel a écrit :
> On Sat, Apr 27, 2013 at 4:32 PM, Florent Peterschmitt <
> florent at peterschmitt.fr> wrote:
>
>> Le 27/04/2013 23:13, Matthew Seaman a écrit :
>>> 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 « hey I need
>>>> ldap.h », 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 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 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= yes
> 68 USE_RC_SUBR= postgresql
> 69 USE_PGSQL= yes
> 70 WANT_PGSQL_VER=
> ${DISTVERSION:C/([0-9][0-9]*)\.([0-9][0-9]*).*/\1\2/g}
> 71 USERS= ${PG_USER}
> 72 GROUPS= ${PG_GROUP}
> 73 SUB_FILES+= 502.pgsql
> 74 .endif
>
> 81 .if !defined(SLAVE_ONLY)
> 82 OPTIONS_DEFINE+= NLS DTRACE PAM LDAP GSSAPI OPTIMIZED_CFLAGS XML
> TZDATA DEBUG KRB5
> 83 OPTIONS_SINGLE= KRB5
> 84 OPTIONS_SINGLE_KRB5= MIT_KRB5 HEIMDAL_KRB5
> :
> 112 OPTIONS_DEFAULT= NLS XML TZDATA INTDATE SSL
> 113 .endif # !SLAVE_ONLY
>
> 159 . if ${PORT_OPTIONS:MLDAP}
> 160 CONFIGURE_ARGS+=--with-ldap
> 161 . if defined (SERVER_ONLY)
> 162 USE_OPENLDAP= 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
>
Ah ok so it's not a problem from poudriere :) So I'll do that and retry
soon, thanks.
--
Florent Peterschmitt
+33 (0)6 64 33 97 92
florent at peterschmitt.fr
------------------------
O< ascii ribbon campaign
- stop html mail
- www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130428/444f9893/attachment.sig>
More information about the freebsd-ports
mailing list