[opensuse-factory] issue with postgresql-devel
Hello, I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable between versions of openSUSE? (for me hardcoding postgresql11-devel into .spec is not something i would do lightly) Boris -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Thursday 2019-03-21 15:28, Boris Manojlovic wrote:
I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable between versions of openSUSE?
pg_config is apparently gone, the fix is to use pkg-config with libpq.pc instead. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Boris, pg_config is part of postgresql-server-devel, if you install that package then it should work on Tumbleweed at least. Cheers, Dan Boris Manojlovic <boris@steki.net> writes:
Hello,
I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable between versions of openSUSE?
(for me hardcoding postgresql11-devel into .spec is not something i would do lightly)
Boris -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Thu, 2019-03-21 at 15:40 +0100, Dan Čermák wrote:
Hi Boris,
pg_config is part of postgresql-server-devel, if you install that package then it should work on Tumbleweed at least.
BUT postgresql-server-devel is only to be used if you're building a module to be loaded by postgresql server - NOT if you want to communitcate through the client library to the server. The correct thing is to use pkg-config, not pg_config. Cheers Dominique
I will look into zabbix sources to resolve this issue. But i did not expect this change it was very new to me :) On Thu, Mar 21, 2019 at 3:44 PM Dominique Leuenberger / DimStar <dimstar@opensuse.org> wrote:
On Thu, 2019-03-21 at 15:40 +0100, Dan Čermák wrote:
Hi Boris,
pg_config is part of postgresql-server-devel, if you install that package then it should work on Tumbleweed at least.
BUT postgresql-server-devel is only to be used if you're building a module to be loaded by postgresql server - NOT if you want to communitcate through the client library to the server.
The correct thing is to use pkg-config, not pg_config.
Cheers Dominique
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Donnerstag, 21. März 2019 15:28:10 CET Boris Manojlovic wrote:
Hello,
I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable
This is discussed in http://bugzilla.opensuse.org/show_bug.cgi?id=1120035
between versions of openSUSE?
(for me hardcoding postgresql11-devel into .spec is not something i would do lightly)
This still would not provide pg_config ... Kind regards, Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
very true i agree, my issue is separation of devel and server-devel which happened at some point in time made my package to not build source of zabbix is of course opensource so i will patch and fix it but this is annoyance i did not see in advance On Thu, Mar 21, 2019 at 5:44 PM Brüns, Stefan <Stefan.Bruens@rwth-aachen.de> wrote:
On Donnerstag, 21. März 2019 15:28:10 CET Boris Manojlovic wrote:
Hello,
I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable
This is discussed in http://bugzilla.opensuse.org/show_bug.cgi?id=1120035
between versions of openSUSE?
(for me hardcoding postgresql11-devel into .spec is not something i would do lightly)
This still would not provide pg_config ...
Kind regards,
Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On jeudi, 21 mars 2019 15.28:10 h CET Boris Manojlovic wrote:
Hello,
I was surprised with automated mail that my package zabbix was failing building on openSUSE:Factory, after trying to build it locally i have discovered that postgresql-devel does not even install development package (11 in this moment...) and as in package i only require meta package postgresql-devel it now fails with pg_config not found. Can someone share logic which now should be used that is portable between versions of openSUSE?
(for me hardcoding postgresql11-devel into .spec is not something i would do lightly)
Boris
As discussed in boo#1120035 I've learn today when fixing sphinxsearch that there's a subtile difference pg_config --includedir /usr/include/pgsql -lpq when pkg-config --cflags --libs libpq -I/usr/include/pgsql -lpq I had to sed remove the -I to make software happy otherwise I've got -I-I/usr/include/pgsql sr on its way to devel repo, and afterward to Factory. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe supporter GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (6)
-
Boris Manojlovic
-
Bruno Friedmann
-
Brüns, Stefan
-
Dan Čermák
-
Dominique Leuenberger / DimStar
-
Jan Engelhardt