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