picked by pmbootstrap aportupgrade Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6601