[OpenWrt-Devel] [PATCH opkg] alternatives: special-case busybox as alternatives provider

Jo-Philipp Wich jo at mein.io
Thu Jun 13 08:43:39 EDT 2019


Hi,

ACK on the patch. I was thinking about whether it makes sense to move out
the hardcoded package "busybox" -> "/bin/busybox" path facts into some kind
of external pkgname => multicall-executable-path mapping configuration but
there's probably not that many other relevant packages where this would apply.

Still I'd like to see the code somewhat generalized... rename the
"pkg_alternatives_check_busybox()" procedure to something like 
"pkg_alternatives_find_fallback()" and have it iterate an array of
"struct { char *pkgname; char *multicallpath; }" which may initially contain
just { { "busybox", "/bin/busybox" }, }.


Regards,
Jo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190613/1f4ea581/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list