[PATCH] Revert "build: switch VERSION_REPO to HTTPS"

Paul Spooren mail at aparcar.org
Wed Nov 25 03:29:00 EST 2020


This reverts commit c1875d1ebbd4c4bad45d7c93cf012317f8ce1810.

Using HTTPS for opkg dramatically slows down download of packages and
reload of indexes. This was mostly introduced to secure the
ImageBuilder. However with the usign signature checking ability added to
ImageBuilders, this becomes obsolete. It is still possible to manually
change feeds to HTTPS if desired, but the default can be HTTP.

Signed-off-by: Paul Spooren <mail at aparcar.org>
---
This was already requested via IRC and accepted somewhat accepted as the
current ustream-wolfssl implementation is broken.

Ref: https://freenode.irclog.whitequark.org/openwrt-devel/2020-11-20#28417525

 include/version.mk                 | 2 +-
 package/base-files/image-config.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/version.mk b/include/version.mk
index b7f42e13bb..7d3c1ad640 100644
--- a/include/version.mk
+++ b/include/version.mk
@@ -32,7 +32,7 @@ VERSION_CODE:=$(call qstrip,$(CONFIG_VERSION_CODE))
 VERSION_CODE:=$(if $(VERSION_CODE),$(VERSION_CODE),$(REVISION))
 
 VERSION_REPO:=$(call qstrip,$(CONFIG_VERSION_REPO))
-VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),https://downloads.openwrt.org/snapshots)
+VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.openwrt.org/snapshots)
 
 VERSION_DIST:=$(call qstrip,$(CONFIG_VERSION_DIST))
 VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),OpenWrt)
diff --git a/package/base-files/image-config.in b/package/base-files/image-config.in
index b5cd90f615..3432db525a 100644
--- a/package/base-files/image-config.in
+++ b/package/base-files/image-config.in
@@ -183,7 +183,7 @@ if VERSIONOPT
 	config VERSION_REPO
 		string
 		prompt "Release repository"
-		default "https://downloads.openwrt.org/snapshots"
+		default "http://downloads.openwrt.org/snapshots"
 		help
 			This is the repository address embedded in the image, it defaults
 			to the trunk snapshot repo; the url may contain the following placeholders:
-- 
2.29.2




More information about the openwrt-devel mailing list