Owut: OpenWrt Upgrade Tool

Yeah, crossing the release-to-snapshot boundary with owut is going to be hard until we get the apk stuff sorted. You can usually use something like this, to ignore all those ABI-versioned libraries, which since they are dependencies don't really play a role in the build itself:

$ missing=$(owut check --verbose -V snapshot | awk '/missing to-version/ {print $1}')
$ echo $missing
jansson libatomic libblkid libblobmsg-json libbpf libbz2 libcomerr libcurl libe2p libelf libext2fs libf2fs libfdisk libgmp libip4tc libip6tc libiptext libiptext6 libiwinfo libjson-c libjson-script libltdl liblua liblucihttp libmbedtls libmnl libmount libncurses libnetfilter-conntrack libnetfilter-cthelper libnetfilter-cttimeout libnetfilter-queue libnettle libnfnetlink libnftnl libnghttp2 libnl-tiny libopenssl libpcap libreadline libsmartcols libss libstdcpp libubox libubus libuci libuclient libucode libunwind libusb-1.0 libustream-openssl libuuid libuv libxtables

$ owut check -V snapshot -r "$missing"
WARNING: Package 'jansson' is a dependency, removal will have no effect on the build
WARNING: Package 'libatomic' is a dependency, removal will have no effect on the build
... about 50 more times ...

If the check comes back ok with only a ton of warnings and no errors, you should be able to use upgrade and get the snapshot installed fairly easily.

Going back from snapshot to release is pretty much the same process, with the list of missing libraries being the ABI-versioned ones, so jansson4 libatomic1 ...

1 Like