Skip to content

purge bmx6; adapt ubus-lime-metrics and utils to apk#1245

Merged
ilario merged 4 commits intolibremesh:masterfrom
a-gave:packages/bmx6
Feb 23, 2026
Merged

purge bmx6; adapt ubus-lime-metrics and utils to apk#1245
ilario merged 4 commits intolibremesh:masterfrom
a-gave:packages/bmx6

Conversation

@a-gave
Copy link
Contributor

@a-gave a-gave commented Feb 22, 2026

utils: better check if pkg is installed

Do not rely on opkg control files which could be removed by CONFIG_CLEAN_IPKG
Also do not rely on opkg itself since the package manager in openwrt-25.12 is apk.

With this and the previous commit the cli command last_internet and the lime-app
tab 'Metrics' are fixed for devices compiled with CONFIG_CLEAN_IPKG or running
openwrt-25.12 or SNAPSHOT.

ubus-lime-metrics: better check if babeld is installed

Do not rely on opkg control files which could be removed by CONFIG_CLEAN_IPKG
Also do not rely on opkg itself since the package manager in openwrt-25.12 is apk.

bmx6: purge package

NOTE: this drop support for openwrt-23.05 since the package rpcd-mod-rpcsys was not installed by default
I was thinking it was by default included in 24.10 and not in 23.05, but it is not a default package.. it was installed on my device because i'm using owut which pulls it in.

Edit: added also rpcd-mod-rpcsys to lime-system dependency to allow users to compile without opkg and with CONFIG_CLEAN_IPKG and to avoid implementing the previous check for apk which has a different db for packages info

Do not rely on opkg control files which could be removed by CONFIG_CLEAN_IPKG
Also do not rely on opkg itself since the package manager in openwrt-25.12 is apk.
@a-gave a-gave changed the title Packages: purge bmx6; adapt ubus-lime-utils and utils to apk Packages: purge bmx6; adapt ubus-lime-metrics and utils to apk Feb 22, 2026
@a-gave a-gave marked this pull request as draft February 22, 2026 17:01
@a-gave a-gave marked this pull request as ready for review February 22, 2026 17:01
@a-gave a-gave marked this pull request as draft February 22, 2026 17:03
@a-gave a-gave marked this pull request as ready for review February 22, 2026 17:21
Do not rely on opkg control files which could be removed by CONFIG_CLEAN_IPKG
Also do not rely on opkg itself since the package manager in openwrt-25.12 is apk.

With this and the previous commit the cli command last_internet and the lime-app
tab 'Metrics' are fixed for devices compiled with CONFIG_CLEAN_IPKG or running
openwrt-25.12 or SNAPSHOT.
The package is i.e. pulled in by owut. Let's include it by default,
to allow users to compile without opkg or without apk
@a-gave a-gave changed the title Packages: purge bmx6; adapt ubus-lime-metrics and utils to apk purge bmx6; adapt ubus-lime-metrics and utils to apk Feb 22, 2026
@a-gave
Copy link
Contributor Author

a-gave commented Feb 22, 2026

@ilario
Copy link
Member

ilario commented Feb 23, 2026

Tested the new utils.is_installed on OpenWrt 24.10 and it works :D

I just don't understand this:

NOTE: this drop support for openwrt-23.05 since the package rpcd-mod-rpcsys was not installed by default

Is this expected to now work on OpenWrt 23.05? The package rpcd-mod-rpcsys is also present on OpenWrt 23.05 repository...

@a-gave
Copy link
Contributor Author

a-gave commented Feb 23, 2026

Tested the new utils.is_installed on OpenWrt 24.10 and it works :D

I just don't understand this:

NOTE: this drop support for openwrt-23.05 since the package rpcd-mod-rpcsys was not installed by default

Is this expected to now work on OpenWrt 23.05? The package rpcd-mod-rpcsys is also present on OpenWrt 23.05 repository...

Sorry edited the description

I was thinking it was by default included in 24.10 and not in 23.05, but it is not a default package neither in 24.10..
But is installable in both.. that's why later i added it as a lime-system dependecy
it was installed on my device because i'm using owut which pulls it in.
Sorry yesterday I was not remembering ho to do strikethrough line in markdown :)

Confirm this: "added also rpcd-mod-rpcsys to lime-system dependency to allow users to compile without opkg and with CONFIG_CLEAN_IPKG and to avoid implementing the previous check for apk which has a different db for packages info"
Seems more convenient than implementing an analogous check for the different apk db!

@ilario
Copy link
Member

ilario commented Feb 23, 2026

Excellent work! Thanks!

@ilario ilario merged commit 0ee2fdd into libremesh:master Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants