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
ffc865e
diff --git a/src/bin/pg_config/Makefile b/src/bin/pg_config/Makefile
626e81a
index 02e6f9d..f7c844f 100644
ffc865e
--- a/src/bin/pg_config/Makefile
ffc865e
+++ b/src/bin/pg_config/Makefile
ffc865e
@@ -11,28 +11,30 @@
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
ffc865e
 
ffc865e
 OBJS=   pg_config.o $(WIN32RES)
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)
ffc865e
+	rm -f $(PG_CONFIG)  $(OBJS)
ffc865e
 	rm -rf tmp_check
ffc865e
 
ffc865e
 check:
ffc865e
diff --git a/src/bin/pg_config/nls.mk b/src/bin/pg_config/nls.mk
626e81a
index 1d41f90..0f34f37 100644
ffc865e
--- a/src/bin/pg_config/nls.mk
ffc865e
+++ b/src/bin/pg_config/nls.mk
ffc865e
@@ -1,4 +1,4 @@
ffc865e
 # src/bin/pg_config/nls.mk
ffc865e
-CATALOG_NAME     = pg_config
ffc865e
+CATALOG_NAME     = pg_server_config
01110f9
 AVAIL_LANGUAGES  = cs de es fr he it ja ko pl pt_BR ro ru sv tr uk vi zh_CN zh_TW
ffc865e
 GETTEXT_FILES    = pg_config.c ../../common/config_info.c ../../common/exec.c