Bug 1130021 - server:database:postgresql/postgresql11: Bug pg_config missing in postgresql11-devel
Summary: server:database:postgresql/postgresql11: Bug pg_config missing in postgresql1...
Status: RESOLVED DUPLICATE of bug 1120035
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: 3rd party software (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Reinhard Max
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 08:19 UTC by Bruno Friedmann
Modified: 2019-03-21 08:33 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2019-03-21 08:19:37 UTC
With the new postgresql11-server-devel (which is good for building extensions) all packages that only need to have libpq dependency but are using pg_config to determine where to find lib and header can't be build without adding the full postgresql-server-devel in BuildRequires.

As this package is not present in 42.3, 15.0 distribution, this lead to unresolvable for those target, or need to readjust all spec files with again %if .

So the question is: shouldn't pg_config be in postgresql-devel normal package instead of server-devel-package ? Or what is the best way to handle the build ?
Comment 1 Bruno Friedmann 2019-03-21 08:26:25 UTC
To be more precise, the lack of pg_config broke packages that were working before 

BuildRequires:  pkgconfig(libpq)


[   34s] configuring Sphinx
[   34s] ------------------
[   34s]
[   34s] checking whether to use dynamic linking for DB drivers... no
[   34s] checking for CFLAGS needed for pthreads... -pthread
[   34s] checking for LIBS needed for pthreads... -lpthread
[   34s] checking for pthreads... found
[   34s] checking for pthread_mutex_timedlock... yes
[   34s] checking whether to compile with MySQL support... dynamic
[   34s] checking for mysql_config... mysql_config
[   34s] checking for mysql_real_connect... yes
[   34s] checking MySQL include files... -I/usr/include/mysql -I/usr/include/mysql/mariadb
[   34s] checking MySQL libraries... -L/usr/lib64 -lmariadb -lz -ldl -lm -lpthread -lssl -lcrypto
[   34s] checking for Syslog... yes
[   34s] checking whether to compile with PostgreSQL support... dynamic
[   34s] checking for pg_config... no
[   34s] configure: error: pg_config executable not found
[   34s] ********************************************************************************
[   34s] ERROR: cannot find PostgreSQL libraries. If you want to compile with PosgregSQL support,
[   34s]        you must either specify file locations explicitly using
[   34s]        --with-pgsql-includes and --with-pgsql-libs options, or make sure path to
[   34s]        pg_config is listed in your PATH environment variable. If you want to
[   34s]        disable PostgreSQL support, use --without-pgsql option.
[   34s] ********************************************************************************
[   34s]
[   34s] error: Bad exit status from /var/tmp/rpm-tmp.mR2cIz (%build)
Comment 2 Reinhard Max 2019-03-21 08:33:13 UTC
This is already being discusse in bug 1120035.

*** This bug has been marked as a duplicate of bug 1120035 ***