ffc865e
We should ideally provide '/bin/pg_config' in postgresql-server-devel, and
ffc865e
provide no pg_config binary in libpq package.  But most of the Fedora packages
ffc865e
that use pg_config actually only build against PG libraries (and
ffc865e
postgresql-server-devel isn't needed).  So.., to avoid the initial rush around
ffc865e
rhbz#1618698 change, rather provide pg_server_config binary, which int urn means
ffc865e
that we'll have to fix only a minimal set of packages which really build
ffc865e
PostgreSQL server modules.
ffc865e
371af17
diff -ur postgresql-14rc1/src/bin/pg_config/Makefile pgsql14/src/bin/pg_config/Makefile
371af17
--- postgresql-14rc1/src/bin/pg_config/Makefile	2021-09-20 23:33:01.000000000 +0200
371af17
+++ pgsql14/src/bin/pg_config/Makefile	2021-09-22 10:48:06.484093152 +0200
b081e11
@@ -11,6 +11,8 @@
ffc865e
 PGFILEDESC = "pg_config - report configuration information"
ffc865e
 PGAPPICON=win32
ffc865e
 
ffc865e
+PG_CONFIG = pg_server_config$(X)
ffc865e
+
ffc865e
 subdir = src/bin/pg_config
ffc865e
 top_builddir = ../../..
ffc865e
 include $(top_builddir)/src/Makefile.global
371af17
@@ -19,22 +21,22 @@
b081e11
 	$(WIN32RES) \
b081e11
 	pg_config.o
ffc865e
 
ffc865e
-all: pg_config
ffc865e
+all: $(PG_CONFIG)
ffc865e
 
ffc865e
-pg_config: $(OBJS) | submake-libpgport
ffc865e
-	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
ffc865e
+$(PG_CONFIG): $(OBJS) | submake-libpgport
ffc865e
+	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
ffc865e
 
ffc865e
 install: all installdirs
ffc865e
-	$(INSTALL_SCRIPT) pg_config$(X) '$(DESTDIR)$(bindir)/pg_config$(X)'
ffc865e
+	$(INSTALL_SCRIPT) $(PG_CONFIG) '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
ffc865e
 
ffc865e
 installdirs:
ffc865e
 	$(MKDIR_P) '$(DESTDIR)$(bindir)'
ffc865e
 
ffc865e
 uninstall:
ffc865e
-	rm -f '$(DESTDIR)$(bindir)/pg_config$(X)'
ffc865e
+	rm -f '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
ffc865e
 
ffc865e
 clean distclean maintainer-clean:
ffc865e
-	rm -f pg_config$(X) $(OBJS)
b081e11
+	rm -f $(PG_CONFIG) $(OBJS)
ffc865e
 	rm -rf tmp_check
ffc865e
 
ffc865e
 check:
371af17
diff -ur postgresql-14rc1/src/bin/pg_config/nls.mk pgsql14/src/bin/pg_config/nls.mk
371af17
--- postgresql-14rc1/src/bin/pg_config/nls.mk	2021-09-20 23:33:01.000000000 +0200
371af17
+++ pgsql14/src/bin/pg_config/nls.mk	2021-09-22 10:48:51.492460567 +0200
ffc865e
@@ -1,4 +1,4 @@
ffc865e
 # src/bin/pg_config/nls.mk
ffc865e
-CATALOG_NAME     = pg_config
ffc865e
+CATALOG_NAME     = pg_server_config
371af17
 AVAIL_LANGUAGES  = cs de el es fr he it ja ko pl pt_BR ru sv tr uk vi zh_CN
ffc865e
 GETTEXT_FILES    = pg_config.c ../../common/config_info.c ../../common/exec.c