Re: BUG #15306: Use pkg-config for searching libxml2 header

Поиск
Список
Период
Сортировка
От Böszörményi Zoltán
Тема Re: BUG #15306: Use pkg-config for searching libxml2 header
Дата
Msg-id 7e67be73-3c52-bc29-133f-64da148e0261@pr.hu
обсуждение исходный текст
Ответ на Re: BUG #15306: Use pkg-config for searching libxml2 header  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #15306: Use pkg-config for searching libxml2 header  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
2018-07-31 20:33 keltezéssel, Tom Lane írta:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> This is an improvement suggestion. In the configure script,
>> https://github.com/postgres/postgres/blob/master/configure.in#L896
>> this part uses `xml2-config` program to find the `libxml2` headers.
> 
> Right ...
> 
>> It would be more appropriate to use pkg-config program to search `libxml2`
>> headers.
> 
> Why?  Under what circumstances would xml2-config not be present
> (assuming that libxml2 is) or give a less desirable answer than
> pkg-config?

The Yocto cross-compiler framework (since Yocto 2.2 IIRC) does not
allow the "binconfig" scripts for XML2 and GD and for some other
libraries.

The pkg-config scripts are not just preferred but mandatory.

>  What would you have us do on platforms lacking pkg-config?

That should be kept as a fallback in PKG_CHECK_MODULES().

Best regards,
Zoltán Böszörményi

> 
>             regards, tom lane
> 
> 



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: could not read block 0 in file : read only 0 of 8192 bytes whendoing nasty on immutable index function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15306: Use pkg-config for searching libxml2 header