From f438f855f069108ef3e1378f4e97735e77ecd1b9 Mon Sep 17 00:00:00 2001
From: Viktor Szakats <commit@vsz.me>
Date: Wed, 30 Aug 2023 08:57:42 +0000
Subject: [PATCH] use HTTPS when retrieving code from the internet

Also update site links to use HTTPS.

Closes #156
Closes #173
---
 Makefile             | 8 ++++----
 presets/j2-pie-gplv2 | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 09f8c2d..a763f37 100644
--- a/Makefile
+++ b/Makefile
@@ -16,13 +16,13 @@ BINUTILS_SITE = $(GNU_SITE)/binutils
 GMP_SITE = $(GNU_SITE)/gmp
 MPC_SITE = $(GNU_SITE)/mpc
 MPFR_SITE = $(GNU_SITE)/mpfr
-ISL_SITE = http://isl.gforge.inria.fr/
+ISL_SITE = https://libisl.sourceforge.io/
 
 MUSL_SITE = https://musl.libc.org/releases
-MUSL_REPO = git://git.musl-libc.org/musl
+MUSL_REPO = https://git.musl-libc.org/git/musl
 
 LINUX_SITE = https://cdn.kernel.org/pub/linux/kernel
-LINUX_HEADERS_SITE = http://ftp.barfooze.de/pub/sabotage/tarballs/
+LINUX_HEADERS_SITE = https://ftp.barfooze.de/pub/sabotage/tarballs/
 
 DL_CMD = wget -c -O
 SHA1_CMD = sha1sum -c
@@ -76,7 +76,7 @@ $(SOURCES):
 
 $(SOURCES)/config.sub: | $(SOURCES)
 	mkdir -p $@.tmp
-	cd $@.tmp && $(DL_CMD) $(notdir $@) "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=$(CONFIG_SUB_REV)"
+	cd $@.tmp && $(DL_CMD) $(notdir $@) "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=$(CONFIG_SUB_REV)"
 	cd $@.tmp && touch $(notdir $@)
 	cd $@.tmp && $(SHA1_CMD) $(CURDIR)/hashes/$(notdir $@).$(CONFIG_SUB_REV).sha1
 	mv $@.tmp/$(notdir $@) $@
diff --git a/presets/j2-pie-gplv2 b/presets/j2-pie-gplv2
index 6e6c7f9..2e6ba09 100644
--- a/presets/j2-pie-gplv2
+++ b/presets/j2-pie-gplv2
@@ -7,7 +7,7 @@ GCC_CONFIG += --enable-default-pie
 # the above --with-cpu=mj2 in order to try:
 # GCC_VER = 4.2.1
 # BINUTILS_VER = 397a64b3
-# BINUTILS_SITE = http://landley.net/aboriginal/mirror
+# BINUTILS_SITE = https://landley.net/aboriginal/mirror
 
 # Optional to produce a smaller toolchain:
 # COMMON_CONFIG += --disable-nls