lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 8774b55d 2/2: Don't install precompiled binar


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8774b55d 2/2: Don't install precompiled binaries from the MinGW-w64 project
Date: Wed, 18 May 2022 06:04:31 -0400 (EDT)

branch: master
commit 8774b55d0a1245e25dd90e0b62ff8243229b0b94
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Don't install precompiled binaries from the MinGW-w64 project
    
    These binary distributions, formerly used with cygwin, have long been
    unavailable for modern C++ versions.
---
 install_mingw.make   | 128 ------------------------------------------------
 install_mingw32.make | 136 ---------------------------------------------------
 install_msw.sh       |  12 -----
 3 files changed, 276 deletions(-)

diff --git a/install_mingw.make b/install_mingw.make
deleted file mode 100644
index c8a4d2ab..00000000
--- a/install_mingw.make
+++ /dev/null
@@ -1,128 +0,0 @@
-# Installer for MinGW-w64 64-bit msw-native toolchain.
-#
-# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 
2016, 2017, 2018, 2019, 2020, 2021, 2022 Gregory W. Chicares.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-#
-# https://savannah.nongnu.org/projects/lmi
-# email: <gchicares@sbcglobal.net>
-# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-
-this_makefile := $(abspath $(lastword $(MAKEFILE_LIST)))
-
-# Configurable settings 
########################################################
-
-# Default version. There's no terse and unambiguous way to specify
-# versions, as the MinGW-w64 project hosts other projects' builds
-# rather than release its own; lmi uses i686 builds with native
-# threads and SJLJ exceptions.
-
-version   := MinGW-8_1_0
-
-file_list   = $($(version))
-
-# Prefer to set $(prefix) to anything but '/mingw', in order to avoid
-# the problem described here:
-#   http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00703.html
-# when multiple versions of MinGW gcc are installed, as discussed on
-# the mingw-users mailing list in these messages:
-#   https://sourceforge.net/p/mingw/mailman/message/15864073/
-#     [2005-01-17T16:30:44Z from Greg Chicares]
-#   https://sourceforge.net/p/mingw/mailman/message/15864075/
-#     [2005-01-17T18:15:26Z from Aaron W. LaFramboise]
-
-mingw_dir  := /opt/lmi/${LMI_COMPILER}_${LMI_TRIPLET}/gcc_msw
-prefix     := $(mingw_dir)
-
-cache_dir  := /srv/cache_for_lmi/downloads
-
-ad_hoc_dir := /opt/lmi/zzz/mingw-ad_hoc/ad_hoc
-
-# In the past, it seemed necessary to specify a mirror, e.g.:
-#  mirror := http://easynews.dl.sourceforge.net/sourceforge/mingw
-# but as of about 2006-12 sf.net seems to select one automatically
-# when this is passed to wget:
-mirror     := http://downloads.sourceforge.net/mingw-w64
-
-# File lists 
###################################################################
-
-MinGW-8_1_0 := x86_64-8.1.0-release-win32-seh-rt_v6-rev0.7z
-
-# Archive md5sums 
##############################################################
-
-$(MinGW-8_1_0)-md5 := ebe9cf22aa13c9e34f5e684a79efaf8e
-
-# Utilities 
####################################################################
-
-BSDTAR := bsdtar
-CHMOD  := chmod
-CP     := cp
-ECHO   := echo
-MD5SUM := md5sum
-MKDIR  := mkdir
-MV     := mv
-RM     := rm
-WGET   := wget
-
-# Error messages 
###############################################################
-
-wget_missing = \
-  "\nError: Unable to find '$(WGET)', which is required for" \
-  "\nautomated downloads. Download it manually from the MinGW" \
-  "\nsite and install it on your PATH." \
-  "\n"
-
-prefix_exists = \
-  "\nError: Prefix directory '$(prefix)' already exists." \
-  "\nIt is generally unsafe to install one version of a program" \
-  "\non top of another. Probably you ought to rename the old" \
-  "\nversion in order to preserve it; if not, then remove it." \
-  "\n"
-
-ad_hoc_dir_exists = \
-  "\nError: Nonce directory '$(ad_hoc_dir)' already exists." \
-  "\nProbably it is left over from a previous failure." \
-  "\nJust remove it unless you're sure you want whatever files" \
-  "\nit might contain." \
-  "\n"
-
-# Targets 
######################################################################
-
-.PHONY: all
-all: $(file_list)
-       $(CP) --archive $(ad_hoc_dir)/mingw64/* $(prefix)
-       $(RM) --force --recursive $(ad_hoc_dir)
-
-$(file_list): initial_setup
-
-.PHONY: initial_setup
-initial_setup:
-       [   -n "$$LMI_COMPILER" ] || { printf '%s\n' "no LMI_COMPILER"  && 
false; }
-       [   -n "$$LMI_TRIPLET"  ] || { printf '%s\n' "no LMI_TRIPLET"   && 
false; }
-       type "$(WGET)" >/dev/null || { printf '%b' $(wget_missing)      && 
false; }
-       [ ! -e $(prefix)        ] || { printf '%b' $(prefix_exists)     && 
false; }
-       [ ! -e $(ad_hoc_dir)    ] || { printf '%b' $(ad_hoc_dir_exists) && 
false; }
-       $(MKDIR) --parents $(prefix)
-       $(MKDIR) --parents $(ad_hoc_dir)
-
-BSDTARFLAGS := --keep-old-files
-
-WGETFLAGS := --no-verbose
-
-.PHONY: %.7z
-%.7z:
-       cd $(cache_dir) && [ -e $@ ] || $(WGET) $(WGETFLAGS) $(mirror)/$@
-       cd $(cache_dir) && $(ECHO) "$($@-md5) *$@" | $(MD5SUM) --check
-       $(BSDTAR) --extract $(BSDTARFLAGS) --directory=$(ad_hoc_dir) 
--file=$(cache_dir)/$@
-       $(CHMOD) -R g=u $(ad_hoc_dir)
diff --git a/install_mingw32.make b/install_mingw32.make
deleted file mode 100644
index 68a18d2b..00000000
--- a/install_mingw32.make
+++ /dev/null
@@ -1,136 +0,0 @@
-# Legacy installer for MinGW-w64 32-bit msw-native toolchain.
-#
-# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 
2016, 2017, 2018, 2019, 2020, 2021, 2022 Gregory W. Chicares.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-#
-# https://savannah.nongnu.org/projects/lmi
-# email: <gchicares@sbcglobal.net>
-# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-
-this_makefile := $(abspath $(lastword $(MAKEFILE_LIST)))
-
-# Configurable settings 
########################################################
-
-# Default version. There's no terse and unambiguous way to specify
-# versions, as the MinGW-w64 project hosts other projects' builds
-# rather than release its own; lmi uses i686 builds with native
-# threads and SJLJ exceptions.
-
-version   := MinGW-8_1_0
-
-file_list   = $($(version))
-
-# Prefer to set $(prefix) to anything but '/mingw', in order to avoid
-# the problem described here:
-#   http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00703.html
-# when multiple versions of MinGW gcc are installed, as discussed on
-# the mingw-users mailing list in these messages:
-#   https://sourceforge.net/p/mingw/mailman/message/15864073/
-#     [2005-01-17T16:30:44Z from Greg Chicares]
-#   https://sourceforge.net/p/mingw/mailman/message/15864075/
-#     [2005-01-17T18:15:26Z from Aaron W. LaFramboise]
-
-mingw_dir  := /opt/lmi/${LMI_COMPILER}_${LMI_TRIPLET}/gcc_msw
-prefix     := $(mingw_dir)
-
-cache_dir  := /srv/cache_for_lmi/downloads
-
-ad_hoc_dir := /opt/lmi/zzz/mingw-ad_hoc/ad_hoc
-
-# In the past, it seemed necessary to specify a mirror, e.g.:
-#  mirror := http://easynews.dl.sourceforge.net/sourceforge/mingw
-# but as of about 2006-12 sf.net seems to select one automatically
-# when this is passed to wget:
-mirror     := http://downloads.sourceforge.net/mingw-w64
-
-# File lists 
###################################################################
-
-#MinGW-6_3_0 := i686-6.3.0-release-win32-sjlj-rt_v5-rev1.7z
-MinGW-6_3_0 := i686-6.3.0-release-win32-sjlj-rt_v5-rev2.7z
-MinGW-7_2_0 := i686-7.2.0-release-win32-sjlj-rt_v5-rev0.7z
-MinGW-7_3_0 := i686-7.3.0-release-win32-sjlj-rt_v5-rev0.7z
-MinGW-8_1_0 := i686-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
-
-# Archive md5sums 
##############################################################
-
-#$(MinGW-6_3_0)-md5 := b92e8480cf8d5904da78ab6d94f1a047
-$(MinGW-6_3_0)-md5 := 6e15de993400279c24b40b1f978e9380
-$(MinGW-7_2_0)-md5 := f34ff6eca4aa7a645f60c977b107c5d2
-$(MinGW-7_3_0)-md5 := 37d964d08ce48dc170cc95a84679cc4f
-$(MinGW-8_1_0)-md5 := 28ec1e65ab85a9e1043998516045ab62
-
-# Utilities 
####################################################################
-
-BSDTAR := bsdtar
-CHMOD  := chmod
-CP     := cp
-ECHO   := echo
-MD5SUM := md5sum
-MKDIR  := mkdir
-MV     := mv
-RM     := rm
-WGET   := wget
-
-# Error messages 
###############################################################
-
-wget_missing = \
-  "\nError: Unable to find '$(WGET)', which is required for" \
-  "\nautomated downloads. Download it manually from the MinGW" \
-  "\nsite and install it on your PATH." \
-  "\n"
-
-prefix_exists = \
-  "\nError: Prefix directory '$(prefix)' already exists." \
-  "\nIt is generally unsafe to install one version of a program" \
-  "\non top of another. Probably you ought to rename the old" \
-  "\nversion in order to preserve it; if not, then remove it." \
-  "\n"
-
-ad_hoc_dir_exists = \
-  "\nError: Nonce directory '$(ad_hoc_dir)' already exists." \
-  "\nProbably it is left over from a previous failure." \
-  "\nJust remove it unless you're sure you want whatever files" \
-  "\nit might contain." \
-  "\n"
-
-# Targets 
######################################################################
-
-.PHONY: all
-all: $(file_list)
-       $(CP) --archive $(ad_hoc_dir)/mingw32/* $(prefix)
-       $(RM) --force --recursive $(ad_hoc_dir)
-
-$(file_list): initial_setup
-
-.PHONY: initial_setup
-initial_setup:
-       [   -n "$$LMI_COMPILER" ] || { printf '%s\n' "no LMI_COMPILER"  && 
false; }
-       [   -n "$$LMI_TRIPLET"  ] || { printf '%s\n' "no LMI_TRIPLET"   && 
false; }
-       type "$(WGET)" >/dev/null || { printf '%b' $(wget_missing)      && 
false; }
-       [ ! -e $(prefix)        ] || { printf '%b' $(prefix_exists)     && 
false; }
-       [ ! -e $(ad_hoc_dir)    ] || { printf '%b' $(ad_hoc_dir_exists) && 
false; }
-       $(MKDIR) --parents $(prefix)
-       $(MKDIR) --parents $(ad_hoc_dir)
-
-BSDTARFLAGS := --keep-old-files
-
-WGETFLAGS := --no-verbose
-
-.PHONY: %.7z
-%.7z:
-       cd $(cache_dir) && [ -e $@ ] || $(WGET) $(WGETFLAGS) $(mirror)/$@
-       cd $(cache_dir) && $(ECHO) "$($@-md5) *$@" | $(MD5SUM) --check
-       $(BSDTAR) --extract $(BSDTARFLAGS) --directory=$(ad_hoc_dir) 
--file=$(cache_dir)/$@
-       $(CHMOD) -R g=u $(ad_hoc_dir)
diff --git a/install_msw.sh b/install_msw.sh
index bdc03250..49c936bd 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -284,18 +284,6 @@ do
     # designed to be independent of lmi's runtime path.
     export PATH="$minimal_path"
 
-    # For Cygwin or WSL, install and use this msw-native compiler.
-    if [ "Cygwin" = "$platform" ] || [ "WSL" = "$platform" ]
-    then
-        mingw_dir=/opt/lmi/${LMI_COMPILER}_${LMI_TRIPLET}/gcc_msw
-        [ -d "$mingw_dir" ] && rm --force --recursive "$mingw_dir"
-        if [ "x86_64-w64-mingw32" = "$LMI_TRIPLET" ]; then
-          make "$coefficiency" --output-sync=recurse -f install_mingw.make
-        else
-          printf 'No MinGW compiler for this triplet.\n'
-        fi
-    fi
-
     ./install_xml_libraries.sh
 
     ./install_wx.sh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]