treewide: add explicit default variant
authorEric Fahlgren <ericfahlgren@gmail.com>
Fri, 2 Jan 2026 02:02:30 +0000 (18:02 -0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 2 Jan 2026 13:46:30 +0000 (14:46 +0100)
commitf4fdb9964a1add146e0efdeba864a6478212a9fa
tree0bab650bf8720443db40aad4886e81f0748aa0c0
parentc1281a501eac0ac1ec354ef9100562a1f1ad3872
treewide: add explicit default variant

Some packages with variants did not specify the default among the
alternatives, so were left without any apk 'provider_priority'
for that package.  This caused the apk solver to select the wrong
variant, silently changing the requested package list.

Notable among these were busybox, procd and the hostapd/wpad suite.
This behavior presented in the imagebuilders when creating the
image as follows, silently replacing packages even when explicitly
requested:

    $ make image PACKAGES=busybox
    ...
    ( 14/148) Installing busybox-selinux (1.37.0-r6)
    ...

We add 'DEFAULT_VARIANT:=1' to the packages that were missing one,
providing apk with sufficient information to choose the correct
package.

See link below for further examples and discussion.

Link: https://github.com/openwrt/openwrt/pull/21288#issuecomment-3704101422
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21358
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/services/dnsmasq/Makefile
package/network/services/hostapd/Makefile
package/network/utils/ethtool/Makefile
package/system/procd/Makefile
package/system/ucert/Makefile
package/utils/busybox/Makefile
package/utils/f2fs-tools/Makefile