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