Generate a locale-agnostic initdb template
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 29 Aug 2023 16:06:55 +0000 (18:06 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 29 Aug 2023 16:06:55 +0000 (18:06 +0200)
Fixup for 252dcb32397f.

Without this, the "template" data directory created in the initial test
steps uses a non-C locale, upsetting numerous tests that rely on parsing
English error messages.

Discussion: https://postgr.es/m/CAFj8pRB=XVWC0orWu0FbjrmyOpAMLqJiau80YyQOYQPfMj8Xxw@mail.gmail.com

meson.build
src/Makefile.global.in

index 8b2b521a013003b012ece9fc90186f7e88376396..5422885b0a25f66cf7c2d2183aa8e73d32053c70 100644 (file)
@@ -3107,7 +3107,7 @@ sys.exit(sp.returncode)
 ''',
        test_initdb_template,
        temp_install_bindir / 'initdb',
-       '-A', 'trust', '-N', '--no-instructions'
+       '-A', 'trust', '-N', '--no-instructions', '--no-locale'
      ],
      priority: setup_tests_priority - 1,
      timeout: 300,
index 0b4ca0eb6ae2c2b7782861b57d86d3702576f2df..765b60db02e796932b5f6ab97e5cbde316e94b2c 100644 (file)
@@ -425,7 +425,7 @@ ifeq ($(MAKELEVEL),0)
    $(MAKE) -C '$(top_builddir)' DESTDIR='$(abs_top_builddir)'/tmp_install install >'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1
    $(MAKE) -j1 $(if $(CHECKPREP_TOP),-C $(CHECKPREP_TOP),) checkprep >>'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1
 
-   $(with_temp_install) initdb -A trust -N --no-instructions '$(abs_top_builddir)'/tmp_install/initdb-template >>'$(abs_top_builddir)'/tmp_install/log/initdb-template.log 2>&1
+   $(with_temp_install) initdb -A trust -N --no-instructions --no-locale '$(abs_top_builddir)'/tmp_install/initdb-template >>'$(abs_top_builddir)'/tmp_install/log/initdb-template.log 2>&1
 endif
 endif
 endif