Skip to content

fix(apk): depend on virtual wget-any to prevent HTTPS download breakage#15

Open
SnowedInOwl wants to merge 1 commit into
we-are-mono:mono-25.12.0-rc2from
SnowedInOwl:fix/apk-wget-any-provider
Open

fix(apk): depend on virtual wget-any to prevent HTTPS download breakage#15
SnowedInOwl wants to merge 1 commit into
we-are-mono:mono-25.12.0-rc2from
SnowedInOwl:fix/apk-wget-any-provider

Conversation

@SnowedInOwl

Copy link
Copy Markdown

Summary

Fixes a common OpenWrt 25.12 issue on Mono Gateway images where apk stops working over HTTPS after the wget meta-package is installed.

When users run apk add wget, apk pulls wget-nossl, which replaces the stock uclient-fetch symlink at /usr/bin/wget. Since wget-nossl has no HTTPS support, subsequent apk update / apk add commands fail with:

ERROR: wget: exited with error 1
HTTPS support not compiled in

This was observed on a Mono Gateway DK running OpenWrt 25.12.0-rc3 (layerscape/armv8_64b).

Changes

  • package/libs/uclient/Makefile: mark uclient-fetch as the default provider of virtual @wget-any
  • package/system/apk/Makefile: depend on +wget-any instead of +wget (apk release bump)
  • feeds.conf.default: bump packages feed to include wget packages that also provide @wget-any

Upstream references

Test plan

  • Build layerscape/armv8_64b / mono_gateway-dk image
  • Flash or verify on device: readlink /usr/bin/wget/bin/uclient-fetch
  • Confirm apk update succeeds on a fresh image
  • Install wget-ssl and verify apk update still succeeds
  • Verify installing wget meta-package no longer breaks apk HTTPS downloads

Sync upstream OpenWrt 25.12 fixes where installing the wget meta-package
pulls wget-nossl and breaks apk HTTPS downloads on Mono Gateway images.

- uclient-fetch: provide @wget-any as the default variant
- apk: depend on +wget-any instead of +wget
- packages feed: bump to include wget @wget-any virtual provides

Fixes the issue where `apk add wget` replaces uclient-fetch with
wget-nossl, causing `apk update` to fail with HTTPS errors.

Cherry-picked from openwrt/openwrt commit 6543c68
and openwrt/packages commit 38e19d3fb6ed5986650b4c57c2edf49ac76f2a24.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant