Обсуждение: pgsql: Remove MSVC scripts

Поиск
Список
Период
Сортировка

pgsql: Remove MSVC scripts

От
Michael Paquier
Дата:
Remove MSVC scripts

This commit removes all the scripts located in src/tools/msvc/ to build
PostgreSQL with Visual Studio on Windows, meson becoming the recommended
way to achieve that.  The scripts held some information that is still
relevant with meson, information kept and moved to better locations.
Comments that referred directly to the scripts are removed.

All the documentation still relevant that was in install-windows.sgml
has been moved to installation.sgml under a new subsection for Visual.
All the content specific to the scripts is removed.  Some adjustments
for the documentation are planned in a follow-up set of changes.

Author: Michael Paquier
Reviewed-by: Peter Eisentraut, Andres Freund
Discussion: https://postgr.es/m/ZQzp_VMJcerM1Cs_@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1301c80b2167feb658a738fa4ceb1c23d0991e23

Modified Files
--------------
config/perl.m4                               |   15 +-
doc/src/sgml/filelist.sgml                   |    1 -
doc/src/sgml/install-windows.sgml            |  588 -----------
doc/src/sgml/installation.sgml               |  314 +++++-
doc/src/sgml/postgres.sgml                   |    1 -
doc/src/sgml/standalone-profile.xsl          |    4 -
meson.build                                  |    1 -
src/backend/meson.build                      |    2 +-
src/bin/pg_basebackup/Makefile               |    3 -
src/bin/pgevent/meson.build                  |    3 +-
src/common/Makefile                          |   11 +-
src/common/meson.build                       |    9 +-
src/interfaces/libpq/Makefile                |    3 -
src/port/Makefile                            |    2 -
src/port/pgstrsignal.c                       |    3 -
src/tools/msvc/.gitignore                    |    3 -
src/tools/msvc/Install.pm                    |  748 --------------
src/tools/msvc/MSBuildProject.pm             |  508 ----------
src/tools/msvc/Mkvcbuild.pm                  | 1220 -----------------------
src/tools/msvc/Project.pm                    |  482 ---------
src/tools/msvc/README                        |   99 --
src/tools/msvc/Solution.pm                   | 1356 --------------------------
src/tools/msvc/VSObjectFactory.pm            |  174 ----
src/tools/msvc/build.bat                     |    6 -
src/tools/msvc/build.pl                      |   92 --
src/tools/msvc/clean.bat                     |  160 ---
src/tools/msvc/config_default.pl             |   32 -
src/tools/msvc/dummylib/README               |   13 -
src/tools/msvc/dummylib/Win32.pm             |    7 -
src/tools/msvc/dummylib/Win32/Registry.pm    |   16 -
src/tools/msvc/dummylib/Win32API/File.pm     |   17 -
src/tools/msvc/ecpg_regression.proj          |   64 --
src/tools/msvc/install.bat                   |    6 -
src/tools/msvc/install.pl                    |   39 -
src/tools/msvc/mkvcbuild.pl                  |   31 -
src/tools/msvc/pgbison.bat                   |    7 -
src/tools/msvc/pgbison.pl                    |   55 --
src/tools/msvc/pgflex.bat                    |    7 -
src/tools/msvc/pgflex.pl                     |  108 --
src/tools/msvc/vcregress.bat                 |    6 -
src/tools/msvc/vcregress.pl                  |  664 -------------
src/tools/{msvc/gendef.pl => msvc_gendef.pl} |    4 +-
src/tools/perlcheck/pgperlsyncheck           |    2 +-
43 files changed, 319 insertions(+), 6567 deletions(-)


Re: pgsql: Remove MSVC scripts

От
Robert Haas
Дата:
On Tue, Dec 19, 2023 at 7:45 PM Michael Paquier <michael@paquier.xyz> wrote:
> Remove MSVC scripts

I think it's because of this commit that koel and crake now have this complaint:

<blah blah lots of output>
./src/tools/version_stamp.pl syntax OK
Can't locate Win32/Registry.pm in @INC (you may need to install the
Win32::Registry module) (@INC entries checked: src/test/perl
src/tools/msvc src/backend/catalog src/backend/utils/mb/Unicode
src/bin/pg_rewind src/test/ssl/t src/tools/msvc/dummylib
/usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at ./src/tools/win32tzlist.pl line
21.
BEGIN failed--compilation aborted at ./src/tools/win32tzlist.pl line 21.

win32tzlist.pl still says "use Win32::Registry" but the commit removed
src/tools/msvc/dummylib/Win32/Registry.pm.

--
Robert Haas
EDB: http://www.enterprisedb.com



Re: pgsql: Remove MSVC scripts

От
Andrew Dunstan
Дата:
On 2023-12-20 We 09:19, Robert Haas wrote:
> On Tue, Dec 19, 2023 at 7:45 PM Michael Paquier <michael@paquier.xyz> wrote:
>> Remove MSVC scripts
> I think it's because of this commit that koel and crake now have this complaint:
>
> <blah blah lots of output>
> ./src/tools/version_stamp.pl syntax OK
> Can't locate Win32/Registry.pm in @INC (you may need to install the
> Win32::Registry module) (@INC entries checked: src/test/perl
> src/tools/msvc src/backend/catalog src/backend/utils/mb/Unicode
> src/bin/pg_rewind src/test/ssl/t src/tools/msvc/dummylib
> /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38
> /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
> /usr/lib64/perl5 /usr/share/perl5) at ./src/tools/win32tzlist.pl line
> 21.
> BEGIN failed--compilation aborted at ./src/tools/win32tzlist.pl line 21.
>
> win32tzlist.pl still says "use Win32::Registry" but the commit removed
> src/tools/msvc/dummylib/Win32/Registry.pm.
>

Yeah, the commit removed our dummy version of Win32/Registry.pm. I have 
disabled the test for that file on branches later than 16, and koel and 
crake are back to green.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




Re: pgsql: Remove MSVC scripts

От
Robert Haas
Дата:
On Wed, Dec 20, 2023 at 10:35 AM Andrew Dunstan <andrew@dunslane.net> wrote:
> Yeah, the commit removed our dummy version of Win32/Registry.pm. I have
> disabled the test for that file on branches later than 16, and koel and
> crake are back to green.

Great, thanks for the quick work.

--
Robert Haas
EDB: http://www.enterprisedb.com



Re: pgsql: Remove MSVC scripts

От
Michael Paquier
Дата:
On Wed, Dec 20, 2023 at 01:11:17PM -0500, Robert Haas wrote:
> On Wed, Dec 20, 2023 at 10:35 AM Andrew Dunstan <andrew@dunslane.net> wrote:
>> Yeah, the commit removed our dummy version of Win32/Registry.pm. I have
>> disabled the test for that file on branches later than 16, and koel and
>> crake are back to green.
>
> Great, thanks for the quick work.

Didn't see this one coming..  This has been reported by the buildfarm
after I went offline for the day.  Thanks for the quick fix, Andrew!
--
Michael

Вложения