Owut: OpenWrt Upgrade Tool

We are right on the cusp of not needing this any longer!

Yesterday's commit on apk-tools which resolved this request for custom tags adds the capability to the apk command to include the missing ABI version data into the package metadata and indexes. I've got a partial port of the above new code in my build environment and have worked all day on getting all the other bits and pieces together.

So far ☒-not started; ☐-started; :check_box_with_check:-done:

  1. In the openwrt repo, upgrade apk-tools to 20250606 (3.0.0_rc5) for both build host and devices (changes in package/system/apk/Makefile).
    :check_box_with_check: Merged https://github.com/openwrt/openwrt/commit/f244ff22d904f9cd9ea733a3d0cd1bc3a834bb67

  2. Fix include/package-pack.mk to generate packages containing the new openwrt:abiversion tag (tag name pending approval)
    :check_box_with_check: Merged https://github.com/openwrt/openwrt/commit/a61a2a9291eed08d735a499828f4f2c7f7744a45

  3. Enhance package/Makefile to create a new packages.json containing information for use by the ASU server (or any other tools that need it)
    Update package/Makefile's generation of the already-existing index.json so that it contains ABI-version-free names.
    :check_box_with_check: Merged https://github.com/openwrt/openwrt/commit/2b0b16f1d1571b23425b2d7ab5dc3816e2ceec12
    :check_box_with_check: Cherrypick to 24.10 https://github.com/openwrt/openwrt/commit/c99d356747a26d68bdb04719a4c4c7a954db8d6e

  4. In the asu repo, add parsing of the packages.json file to the ASU server
    Probably nothing needed on ASU server if index.json has proper content (but optimizations will be possible, once #3 is done).
    :check_box_with_check: Merged https://github.com/openwrt/asu/commit/55baae22579d3f5054539b90390b31d2d548e552

  5. In the rpcd repo, rewrite rpcd/sys.c to produce ABI-stripped package names when ubus call rpc-sys packagelist is called.
    :check_box_with_check: Merged https://github.com/openwrt/rpcd/commit/9389775ceb4702c82bd62b79cf17b0359c63e527
    :check_box_with_check: Update package/system/rpcd/Makefile in main
    Merged https://github.com/openwrt/openwrt/commit/fccd1dd0aec027dc31cef0233225ea56a507fb64

See below for update...

10 Likes