Bugzilla – Bug 1130021
server:database:postgresql/postgresql11: Bug pg_config missing in postgresql11-devel
Last modified: 2019-03-21 08:33:13 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 ?
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)
This is already being discusse in bug 1120035. *** This bug has been marked as a duplicate of bug 1120035 ***