From aeebd94c77c45cd60d44b87a00403cbe1edd8e62 Mon Sep 17 00:00:00 2001
From: Janne Blomqvist
Date: Wed, 20 Nov 2019 22:24:48 +0200
Subject: [PATCH] Switch gcc ftp URL's to https
The FTP protocol is getting long in the tooth, and we should emphasize
HTTPS where that is available. This patch changes various gcc.gnu.org
URL's to instead use HTTPS.
For instance, kernel.org shut down FTP access in 2017, with the
explanation:
- The protocol is inefficient and requires adding awkward kludges to
firewalls and load-balancing daemons
- FTP servers have no support for caching or accelerators, which has
significant performance impacts
- Most software implementations have stagnated and see infrequent
updates
ChangeLog:
2019-11-20 Janne Blomqvist
* configure.ac: Use https for gcc.gnu.org.
* configure: Regenerated.
gcc/ChangeLog:
2019-11-20 Janne Blomqvist
* configure.ac: Use https for gcc.gnu.org.
* configure: Regenerated.
* doc/install.texi: Use https for gcc.gnu.org.
* doc/sourcebuild.texi: Likewise.
gcc/testsuite/ChangeLog:
2019-11-20 Janne Blomqvist
* README: Use https for gcc.gnu.org.
libstdc++-v3/ChangeLog:
2019-11-20 Janne Blomqvist
* doc/html/api.html: Use https for gcc.gnu.org.
* doc/xml/api.xml: Likewise.
maintainer-scripts/ChangeLog:
2019-11-20 Janne Blomqvist
* gcc_release: Use https for gcc.gnu.org.
From-SVN: r278526
---
ChangeLog | 5 +++++
configure | 2 +-
configure.ac | 2 +-
gcc/ChangeLog | 7 +++++++
gcc/configure | 2 +-
gcc/configure.ac | 2 +-
gcc/doc/install.texi | 11 +++++------
gcc/doc/sourcebuild.texi | 4 ++--
gcc/testsuite/ChangeLog | 6 +++++-
gcc/testsuite/README | 2 +-
libstdc++-v3/ChangeLog | 5 +++++
libstdc++-v3/doc/html/api.html | 4 ++--
libstdc++-v3/doc/xml/api.xml | 2 +-
maintainer-scripts/ChangeLog | 4 ++++
maintainer-scripts/gcc_release | 2 +-
15 files changed, 42 insertions(+), 18 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e64bdd1cecb..47672e4fae6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-20 Janne Blomqvist
+
+ * configure.ac: Use https for gcc.gnu.org.
+ * configure: Regenerated.
+
2019-11-19 James Greenhalgh
* MAINTAINERS (aarch64 port): Remove my name, move to...
diff --git a/configure b/configure
index ce146591655..00f7487e2e9 100755
--- a/configure
+++ b/configure
@@ -5902,7 +5902,7 @@ rm -f core conftest.err conftest.$ac_objext \
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
-ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
+https://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
diff --git a/configure.ac b/configure.ac
index d63a8bae940..29e25f13278 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1665,7 +1665,7 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
-ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
+https://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1d9001510ce..4700de2067f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-11-20 Janne Blomqvist
+
+ * configure.ac: Use https for gcc.gnu.org
+ * configure: Regenerated.
+ * doc/install.texi: Use https for gcc.gnu.org.
+ * doc/sourcebuild.texi: Likewise.
+
2019-11-20 Julian Brown
* config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
diff --git a/gcc/configure b/gcc/configure
index c608a960f5d..24d27d3e3cb 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -27134,7 +27134,7 @@ $as_echo "$gcc_cv_as_machine_directive" >&6; }
if test x$gcc_cv_as_machine_directive != xyes; then
echo "*** This target requires an assembler supporting \".machine\"" >&2
- echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
+ echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
test x$build = x$target && exit 1
fi
;;
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 7235bcc847b..954c1496fb1 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4748,7 +4748,7 @@ gd:
[ .machine ppc7400])
if test x$gcc_cv_as_machine_directive != xyes; then
echo "*** This target requires an assembler supporting \".machine\"" >&2
- echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
+ echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
test x$build = x$target && exit 1
fi
;;
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 215a6fa38ff..be203023da5 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -333,7 +333,7 @@ requirements.
@itemx bzip2 version 1.0.2 (or later)
Necessary to uncompress GCC @command{tar} files when source code is
-obtained via FTP mirror sites.
+obtained via HTTPS mirror sites.
@item GNU make version 3.80 (or later)
@@ -411,7 +411,7 @@ download_prerequisites installs.
@item isl Library version 0.15 or later.
Necessary to build GCC with the Graphite loop optimizations.
-It can be downloaded from @uref{ftp://gcc.gnu.org/pub/gcc/infrastructure/}.
+It can be downloaded from @uref{https://gcc.gnu.org/pub/gcc/infrastructure/}.
If an isl source distribution is found
in a subdirectory of your GCC sources named @file{isl}, it will be
built together with GCC. Alternatively, the @option{--with-isl} configure
@@ -513,7 +513,7 @@ files in the directories below @file{jit/docs}.
@itemx SSH (any version)
Necessary to access the SVN repository. Public releases and weekly
-snapshots of the development sources are also available via FTP@.
+snapshots of the development sources are also available via HTTPS@.
@item GNU diffutils version 2.7 (or later)
@@ -547,9 +547,8 @@ own sources.
@cindex Downloading GCC
@cindex Downloading the Source
-GCC is distributed via @uref{http://gcc.gnu.org/svn.html,,SVN} and FTP
-tarballs compressed with @command{gzip} or
-@command{bzip2}.
+GCC is distributed via @uref{http://gcc.gnu.org/svn.html,,SVN} and via
+HTTPS as tarballs compressed with @command{gzip} or @command{bzip2}.
Please refer to the @uref{http://gcc.gnu.org/releases.html,,releases web page}
for information on how to obtain GCC@.
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index a3432bc3670..5fbe876e31b 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -566,8 +566,8 @@ and the online manuals should be linked to from
@file{onlinedocs/index.html}.
@item
Any old releases or CVS repositories of the front end, before its
-inclusion in GCC, should be made available on the GCC FTP site
-@uref{ftp://gcc.gnu.org/pub/gcc/old-releases/}.
+inclusion in GCC, should be made available on the GCC web site at
+@uref{https://gcc.gnu.org/pub/gcc/old-releases/}.
@item
The release and snapshot script @file{maintainer-scripts/gcc_release}
should be updated to generate appropriate tarballs for this front end.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 995d201bd8b..2a4d5c6bccb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-20 Janne Blomqvist
+
+ * README: Use https for gcc.gnu.org.
+
2019-11-20 Wilco Dijkstra
* gcc.target/aarch64/simd/vrbit_1.c: Add -fno-ipa-icf.
@@ -7,7 +11,7 @@
PR85678
* g++.dg/lto/odr-6_1.c: Add -fcommon.
* gcc.dg/alias-15.c: Likewise.
- * gcc.dg/fdata-sections-1.c: Likewise.
+ * gcc.dg/fdata-sections-1.c: Likewise.
* gcc.dg/ipa/pr77653.c: Likewise.
* gcc.dg/lto/20090729_0.c: Likewise.
* gcc.dg/lto/20111207-1_0.c: Likewise.
diff --git a/gcc/testsuite/README b/gcc/testsuite/README
index dfacd937a29..2477e98ccab 100644
--- a/gcc/testsuite/README
+++ b/gcc/testsuite/README
@@ -3,7 +3,7 @@ the C testsuite, see README.gcc.
The driver that runs this testsuite is called DejaGnu and you will
need a current DejaGnu snapshot, which is available from
-ftp://gcc.gnu.org/pub/gcc/infrastructure, for example.
+https://gcc.gnu.org/pub/gcc/infrastructure, for example.
These tests are included "as is". If any of them fails, do not report
a bug. Bug reports for DejaGnu can go to bug-dejagnu@gnu.org.
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index a8fbd3a7509..ec9039d2add 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-20 Janne Blomqvist
+
+ * doc/html/api.html: Use https for gcc.gnu.org.
+ * doc/xml/api.xml: Likewise.
+
2019-11-19 Jonathan Wakely
* include/bits/regex.h (ranges::__detail::__enable_view_impl): Fix
diff --git a/libstdc++-v3/doc/html/api.html b/libstdc++-v3/doc/html/api.html
index ec25525b9d9..c1d3eb1de5c 100644
--- a/libstdc++-v3/doc/html/api.html
+++ b/libstdc++-v3/doc/html/api.html
@@ -30,7 +30,7 @@
The rendered HTML, as above, is also available for download on the
gcc.gnu.org site in a directory located at
- <URL:ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/>
.
+ <URL:https://gcc.gnu.org/pub/gcc/libstdc++/doxygen/>
.
You will almost certainly need to use one of the
mirror sites to download
the tarball. After unpacking, simply load libstdc++-html-*/index.html
@@ -38,4 +38,4 @@
In addition, a rendered set of man pages are available in the same
location specified above. Start with C++Intro(3).
-