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