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