From 7f85e4a77221267523ef1738a61320991bdbc000 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 10 Dec 2019 06:20:44 +0000 Subject: Revert "work on win64 support" git-svn-id: svn://tug.org/texlive/trunk@53076 c570f23f-e606-0410-a88d-b1316a301751 --- Master/install-tl | 17 ++------ Master/texmf-dist/scripts/texlive/tlmgr.pl | 47 ++++++-------------- .../texmf-dist/scripts/texlive/uninstall-win32.pl | 3 +- Master/tlpkg/TeXLive/TLConfig.pm | 5 +-- Master/tlpkg/TeXLive/TLPDB.pm | 6 --- Master/tlpkg/TeXLive/TLPSRC.pm | 9 ++-- Master/tlpkg/TeXLive/TLUtils.pm | 50 ++-------------------- Master/tlpkg/TeXLive/TLWinGoo.pm | 1 - Master/tlpkg/bin/tl-compare-tlpdbs | 4 +- Master/tlpkg/bin/tl-update-4ht | 3 +- Master/tlpkg/bin/tl-update-bindir | 1 - Master/tlpkg/bin/tl-update-install-pkg | 5 +-- Master/tlpkg/bin/tl-update-nsis | 6 +-- Master/tlpkg/bin/tl-update-tlcritical | 2 +- Master/tlpkg/installer/install-menu-perltk.pl | 2 +- Master/tlpkg/installer/install-menu-text.pl | 4 +- Master/tlpkg/installer/tl-cmd.bat | 1 - Master/tlpkg/installer/tl-tray-menu.ini | 2 +- Master/tlpkg/libexec/ctan2tds | 10 +---- 19 files changed, 40 insertions(+), 138 deletions(-) diff --git a/Master/install-tl b/Master/install-tl index 1d64be755bb..3ca1a0ae65a 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -1350,8 +1350,7 @@ sub do_path_adjustments { my $ret = 0; info ("running path adjustment actions\n"); if (win32()) { - my $subpath = win32() ? "win32" : "win64"; - TeXLive::TLUtils::w32_add_to_path($vars{'TEXDIR'} . $subpath, + TeXLive::TLUtils::w32_add_to_path($vars{'TEXDIR'}.'/bin/win32', $vars{'tlpdbopt_w32_multi_user'}); broadcast_env(); } else { @@ -1694,11 +1693,6 @@ sub calc_depends { $install{"tlgs.win32"} = 1; $install{"tlpsv.win32"} = 1; } - if (grep(/^win64$/,@archs)) { - $install{"tlperl.win64"} = 1; - $install{"tlgs.win64"} = 1; - $install{"tlpsv.win64"} = 1; - } # loop over all the packages until it is getting stable my $changed = 1; @@ -1725,15 +1719,12 @@ sub calc_depends { foreach $a (@archs) { $install{"$foo.$a"} = 1 if defined($tlpdb->get_package("$foo.$a")); } - } elsif ($p_dep =~ m/^(.*)\.win(32|64)$/) { + } elsif ($p_dep =~ m/^(.*)\.win32$/) { # a win32 package should *only* be installed if we are installing # the win32 arch if (grep(/^win32$/,@archs)) { $install{$p_dep} = 1; } - if (grep(/^win64$/,@archs)) { - $install{$p_dep} = 1; - } } else { $install{$p_dep} = 1; } @@ -1890,7 +1881,7 @@ sub initialize_collections { ++$vars{'n_collections_selected'}; } } - if ($vars{"binary_win32"} || $vars{"binary_win64"}) { + if ($vars{"binary_win32"}) { $vars{"collection-wintools"} = 1; ++$vars{'n_collections_selected'}; } @@ -2445,7 +2436,7 @@ sub select_scheme { # set to 1 only those which are required by the scheme # since now scheme asks for collection-wintools we set its vars value # to 1 in case we are installing win32 binaries - if ($vars{"binary_win32"} || $vars{"binary_win64"}) { + if ($vars{"binary_win32"}) { $vars{"collection-wintools"} = 1; ++$vars{'n_collections_selected'}; } diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index b65494e2fd5..6630f556a1c 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -54,11 +54,7 @@ BEGIN { $Master =~ s!\\!/!g; $Master =~ s![^/]*$!../../..! unless ($Master =~ s!/texmf-dist/scripts/texlive/tlmgr\.pl$!!i); - if (win32_32()) { - $bindir = "$Master/bin/win32"; - } else { - $bindir = "$Master/bin/win64"; - } + $bindir = "$Master/bin/win32"; $kpsewhichname = "kpsewhich.exe"; # path already set by wrapper batchfile } else { @@ -109,7 +105,7 @@ use TeXLive::TLWinGoo; use TeXLive::TLDownload; use TeXLive::TLConfFile; use TeXLive::TLCrypto; -TeXLive::TLUtils->import(qw(member info give_ctan_mirror win32 win32_32 dirname +TeXLive::TLUtils->import(qw(member info give_ctan_mirror win32 dirname mkdirhier copy debug tlcmp repository_to_array)); use TeXLive::TLPaper; @@ -818,8 +814,7 @@ sub do_cmd_and_check { if ($opts{"dry-run"}) { $ret = $F_OK; $out = ""; - } elsif ((win32_32() && (! -r "$Master/bin/win32/luatex.dll")) || - (win32_64() && (! -r "$Master/bin/win64/luatex.dll"))) { + } elsif (win32() && (! -r "$Master/bin/win32/luatex.dll")) { # deal with the case where only scheme-infrastructure is installed # on Windows, thus no luatex.dll is available and the wrapper cannot be started tlwarn("Cannot run wrapper due to missing luatex.dll\n"); @@ -1482,7 +1477,7 @@ sub action_path { if ($what =~ m/^add$/i) { if (win32()) { $ret |= TeXLive::TLUtils::w32_add_to_path( - $localtlpdb->root . win32_32() ? "/bin/win32" : "/bin/win64", + $localtlpdb->root . "/bin/win32", $winadminmode); $ret |= TeXLive::TLWinGoo::broadcast_env(); } else { @@ -1495,7 +1490,7 @@ sub action_path { } elsif ($what =~ m/^remove$/i) { if (win32()) { $ret |= TeXLive::TLUtils::w32_remove_from_path( - $localtlpdb->root . win32_32() ? "/bin/win32" : "/bin/win64", + $localtlpdb->root . "/bin/win32", $winadminmode); $ret |= TeXLive::TLWinGoo::broadcast_env(); } else { @@ -4813,9 +4808,6 @@ sub action_platform { my @extra_w32_packs = qw/tlperl.win32 tlgs.win32 tlpsv.win32 collection-wintools dviout.win32 wintools.win32/; - my @extra_w64_packs = qw/tlperl.win64 tlgs.win64 tlpsv.win64 - collection-wintools - dviout.win64 wintools.win64/; if ($^O =~ /^MSWin/i) { warn("action `platform' not supported on Windows\n"); # return an error here so that we don't go into post-actions @@ -4887,19 +4879,14 @@ sub action_platform { } } } - my @extrapacks; if (TeXLive::TLUtils::member('win32', @todoarchs)) { - push @extrapacks, @extra_w32_packs; - } - if (TeXLive::TLUtils::member('win64', @todoarchs)) { - push @extrapacks, @extra_w64_packs; - } - # install the necessary w32 stuff - for my $p (@extrapacks) { - info("install: $p\n"); - if (!$opts{'dry-run'}) { - if (! $remotetlpdb->install_package($p, $localtlpdb)) { - $ret |= $F_ERROR; + # install the necessary w32 stuff + for my $p (@extra_w32_packs) { + info("install: $p\n"); + if (!$opts{'dry-run'}) { + if (! $remotetlpdb->install_package($p, $localtlpdb)) { + $ret |= $F_ERROR; + } } } } @@ -4956,12 +4943,6 @@ sub action_platform { $localtlpdb->remove_package($p) if (!$opts{"dry-run"}); } } - if (TeXLive::TLUtils::member('win64', @todoarchs)) { - for my $p (@extra_w64_packs) { - info("remove: $p\n"); - $localtlpdb->remove_package($p) if (!$opts{"dry-run"}); - } - } if (!$opts{"dry-run"}) { # try to remove bin/$a dirs for my $a (@todoarchs) { @@ -5339,7 +5320,7 @@ sub init_tltree { # if we are on W32, die (no find). my $arch = $localtlpdb->platform(); - if (($arch eq "win32") || ($arch eq "win64")) { + if ($arch eq "win32") { tldie("$prg: sorry, cannot check this on Windows.\n"); } @@ -5856,7 +5837,7 @@ sub check_depends { # For each package, check that it is a dependency of some collection. if (! exists $coll_deps{$pkg}) { # Except that schemes and our ugly Windows packages are ok. - push (@no_dep, $pkg) unless $pkg =~/^scheme-|\.win(32|64)$/; + push (@no_dep, $pkg) unless $pkg =~/^scheme-|\.win32$/; } # For each dependency, check that we have a package. diff --git a/Master/texmf-dist/scripts/texlive/uninstall-win32.pl b/Master/texmf-dist/scripts/texlive/uninstall-win32.pl index 4c6e8c6c7a5..d82bd38184f 100755 --- a/Master/texmf-dist/scripts/texlive/uninstall-win32.pl +++ b/Master/texmf-dist/scripts/texlive/uninstall-win32.pl @@ -55,8 +55,7 @@ sub doit { `rmdir /s /q "$menupath\\$TeXLive::TLConfig::WindowsMainMenuName" 2>nul`; # remove bindir from PATH settings - TeXLive::TLUtils::w32_remove_from_path( - TeXLive::TLUtils::win32_32 ? "$Master/bin/win32" : "$Master/bin/win64", + TeXLive::TLUtils::w32_remove_from_path("$Master/bin/win32", $localtlpdb->option("w32_multi_user")); # unsetenv_reg("TEXBINDIR"); diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm index 09472f8bd78..8b7f76122b4 100644 --- a/Master/tlpkg/TeXLive/TLConfig.pm +++ b/Master/tlpkg/TeXLive/TLConfig.pm @@ -110,8 +110,7 @@ our @CriticalPackagesList = qw/texlive.infra/; our $CriticalPackagesRegexp = '^(texlive\.infra)'; if ($^O =~ /^MSWin/i) { push (@CriticalPackagesList, "tlperl.win32"); - push (@CriticalPackagesList, "tlperl.win64"); - $CriticalPackagesRegexp = '^(texlive\.infra|tlperl\.win(32|64)$)'; + $CriticalPackagesRegexp = '^(texlive\.infra|tlperl\.win32$)'; } # @@ -346,7 +345,7 @@ C. =item C<@TeXLive::TLConfig::CriticalPackagesRegexp> A list of all those packages which we do not update regularly since they -are too central, currently texlive.infra and (for Windows) tlperl.win(32|64). +are too central, currently texlive.infra and (for Windows) tlperl.win32. =item C<$TeXLive::TLConfig::RelocTree> diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm index 30a6138b33e..5ff686d5a78 100644 --- a/Master/tlpkg/TeXLive/TLPDB.pm +++ b/Master/tlpkg/TeXLive/TLPDB.pm @@ -918,12 +918,6 @@ sub expand_dependencies { if (grep(/^win32$/,@archs)) { $install{$p_dep} = 0; } - } elsif ($p_dep =~ m/^(.*)\.win64$/) { - # a win32 package should *only* be installed if we are installing - # the win64 arch - if (grep(/^win64$/,@archs)) { - $install{$p_dep} = 0; - } } else { $install{$p_dep} = 0 unless $only_arch; } diff --git a/Master/tlpkg/TeXLive/TLPSRC.pm b/Master/tlpkg/TeXLive/TLPSRC.pm index cdef5c3c41a..985abbb73ef 100644 --- a/Master/tlpkg/TeXLive/TLPSRC.pm +++ b/Master/tlpkg/TeXLive/TLPSRC.pm @@ -129,7 +129,7 @@ sub from_file { # - normal texlive specific packages: ^texlive.*\..*$ # - configuration texlive specific packages: ^00texlive.*\..*$ if ($line =~ /^name\s/) { - $line =~ /^name\s+([-\w]+(\.win(32|64))?|(00)?texlive\..*)$/; + $line =~ /^name\s+([-\w]+(\.win32)?|(00)?texlive\..*)$/; $foundnametag && die "$srcfile:$lineno: second name directive not allowed: $line" . "(have $name)\n"; @@ -423,16 +423,13 @@ sub make_tlpobj { if ($finalp =~ m! bin/win32/!) { @todoarchs = qw/win32/; } - if ($finalp =~ m! bin/win64/!) { - @todoarchs = qw/win64/; - } # now @todoarchs contains only those archs for which we want # to match the pattern foreach my $arch (@todoarchs) { # get only those files matching the pattern my @archfiles = $tltree->get_matching_files('bin',$finalp, $pkgname, $arch); if (!@archfiles) { - if ((($arch ne "win32") && ($arch ne "win64")) || defined($::tlpsrc_pattern_warn_win)) { + if (($arch ne "win32") || defined($::tlpsrc_pattern_warn_win)) { tlwarn("$self->{name} ($arch): no hit on binpattern $finalp\n"); } } @@ -469,7 +466,7 @@ sub make_tlpobj { # get only those files matching the pattern my @archfiles = $tltree->get_matching_files('bin', $finalp, $pkgname, $arch); if (!@archfiles) { - if ((($arch ne "win32") && ($arch ne "win64")) || defined($::tlpsrc_pattern_warn_win)) { + if (($arch ne "win32") || defined($::tlpsrc_pattern_warn_win)) { tlwarn("$self->{name} ($arch): no hit on negative binpattern $finalp\n") unless $::tlpsrc_pattern_no_warn_negative; # see comments in libexec/place script. diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index f1ed9cca1f0..f2a5b1ce093 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -25,8 +25,6 @@ C - utilities used in TeX Live infrastructure TeXLive::TLUtils::platform(); TeXLive::TLUtils::platform_name($canonical_host); TeXLive::TLUtils::platform_desc($platform); - TeXLive::TLUtils::win32_32(); - TeXLive::TLUtils::win32_64(); TeXLive::TLUtils::win32(); TeXLive::TLUtils::unix(); @@ -219,7 +217,7 @@ BEGIN { ); @EXPORT = qw(setup_programs download_file process_logging_options tldie tlwarn info log debug ddebug dddebug debug_hash - win32 win32_32 win32_64 xchdir xsystem run_cmd system_pipe sort_archs); + win32 xchdir xsystem run_cmd system_pipe sort_archs); } use Cwd; @@ -253,7 +251,6 @@ sub platform { unless (defined $::_platform_) { if ($^O =~ /^MSWin/i) { $::_platform_ = "win32"; - # TODO make sure we check how to detect win64!!! } else { my $config_guess = "$::installerdir/tlpkg/installer/config.guess"; @@ -412,8 +409,7 @@ sub platform_desc { 'sparc-linux' => 'GNU/Linux on Sparc', 'sparc-solaris' => 'Solaris on Sparc', 'universal-darwin' => 'MacOSX universal binaries', - 'win32' => 'Windows 32bit', - 'win64' => 'Windows 64bit', + 'win32' => 'Windows', 'x86_64-cygwin' => 'Cygwin on x86_64', 'x86_64-darwin' => 'MacOSX current (10.12-) on x86_64', 'x86_64-darwinlegacy' => 'MacOSX legacy (10.6-) on x86_64', @@ -435,44 +431,9 @@ sub platform_desc { } -=item C - -Return C<1> if platform is Windows32 and C<0> otherwise. The test is -currently based on the value of Perl's C<$^O> variable. - -=cut - -sub win32_32 { - if ($^O =~ /^MSWin/i) { - # TODO check 32bit - return 1; - } else { - return 0; - } - # the following needs config.guess, which is quite bad ... - # return (&platform eq "win32")? 1:0; -} -=item C - -Return C<1> if platform is Windows64 and C<0> otherwise. The test is -currently based on the value of Perl's C<$^O> variable. - -=cut - -sub win32_64 { - if ($^O =~ /^MSWin/i) { - # TODO check 64bit - return 1; - } else { - return 0; - } - # the following needs config.guess, which is quite bad ... - # return (&platform eq "win32")? 1:0; -} - =item C -Return C<1> if platform is Windows32 or 64 and C<0> otherwise. The test is +Return C<1> if platform is Windows and C<0> otherwise. The test is currently based on the value of Perl's C<$^O> variable. =cut @@ -488,9 +449,6 @@ sub win32 { } - - - =item C Return C<1> if platform is UNIX and C<0> otherwise. @@ -498,7 +456,7 @@ Return C<1> if platform is UNIX and C<0> otherwise. =cut sub unix { - return (&platform eq "win32" || &platform eq "win64" )? 0:1; + return (&platform eq "win32")? 0:1; } diff --git a/Master/tlpkg/TeXLive/TLWinGoo.pm b/Master/tlpkg/TeXLive/TLWinGoo.pm index 7daf81090b4..232a4099e1a 100644 --- a/Master/tlpkg/TeXLive/TLWinGoo.pm +++ b/Master/tlpkg/TeXLive/TLWinGoo.pm @@ -1197,7 +1197,6 @@ sub create_uninstaller { my $td = $td_fw; $td =~ s!/!\\!g; - # TODO win64 support!!! my $tdmain = `"$td\\bin\\win32\\kpsewhich" -var-value=TEXMFMAIN`; $tdmain =~ s!/!\\!g; chomp $tdmain; diff --git a/Master/tlpkg/bin/tl-compare-tlpdbs b/Master/tlpkg/bin/tl-compare-tlpdbs index 5b1b99ea9f2..4632280e9fb 100755 --- a/Master/tlpkg/bin/tl-compare-tlpdbs +++ b/Master/tlpkg/bin/tl-compare-tlpdbs @@ -20,7 +20,7 @@ use Pod::Usage; # packages ignored unless --all is given # see @critical_pkg_list in tl-update-containers -my @add_ignored_packs = qw/texlive.infra tlperl.win32 tlperl.win64/; +my @add_ignored_packs = qw/texlive.infra tlperl.win32/; our ($mydir, $vc_id); my $opt_version = 0; @@ -116,7 +116,7 @@ tl-compare-tlpdbs [I