drop dependencies of lime-debug and shared-state on iputils-ping

Open Beginner friendly
#1,279 0 comments 0 reactions 0 assignees View on GitHub

@jay23606 is already working on this.

Since Nov 19, 2026.

  • #1300 by @jay23606 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, lua
Domain
build-system

Research direction

The change is in the package definitions for lime-debug and shared-state, where iputils-ping is listed as a dependency; open their Makefiles and remove it from DEPENDS. First check whether any script or hotplug file in those packages calls ping or ping6, since the issue reports ping6 as unused. Done when both packages build and installing them no longer pulls in iputils-ping.

Written by the indexing model from the issue text.

Description

easy to solve good first issue

I noticed that the package 'iputils-ping' provides a retrocompatibility that installs 'ping6' which seems unused.
Another related discussion was: https://github.com/libremesh/lime-packages/issues/794#issuecomment-1497395956 which seems in favor of the removal

OFF TOPIC

I noticed it when installing the package 'profile-libremesh-suggested-packages' on a Gemtek WVRTM-127ACN from a plain openwrt 25.12.5.
Installation which now seems to work correctly.
To completely install the profile I had to run 'apk add ' twice since "most probably" the device lost the internet connection provided via wireless-wan after the first run of lime-config, after the installation of lime-system.

The package iputils-ping is indeed not really involved in this, it was just a coincidence that the installation process seemed stuck at installing 'iputils-ping', but it was that the device had instead simply lost the wireless-wan connection.

This possibility to install libremesh packages from openwrt via apk seems to be working properly now.
Probably due to recent changes in openwrt related to the switch from opkg to apk.
It is now possible to ask to the firmware-selector a build for libremesh without specifying to remove '-dnsmasq' and it succeds without failures.
Didn't checked carefully but this seems related to https://github.com/openwrt/openwrt/pull/21358

The other commonly removed package '-odhcpd-ipv6only' is otherwise harmless and comes with a default setting that keeps it disabled

root@OpenWrt:~# apk add profile-libremesh-suggested-packages
( 1/69) Purging dnsmasq (2.93-r1)
  Executing dnsmasq-2.93-r1.pre-deinstall
( 2/69) Installing dnsmasq-dhcpv6 (2.93-r1)
  Installing file to etc/config/dhcp.apk-new
  Executing dnsmasq-dhcpv6-2.93-r1.post-install
  * udhcpc: started, v1.37.0
  * udhcpc: broadcasting discover
  * udhcpc: no lease, failing
( 3/69) Installing liblua5.1.5 (5.1.5-r11)
  Executing liblua5.1.5-5.1.5-r11.post-install
( 4/69) Installing libubus-lua (2026.06.28~24864e78-r2)
  Executing libubus-lua-2026.06.28~24864e78-r2.post-install
( 5/69) Installing babeld (1.13.1-r3)
  Executing babeld-1.13.1-r3.post-install
( 6/69) Installing jq (1.8.1-r2)
  Executing jq-1.8.1-r2.post-install
( 7/69) Installing libiwinfo-lua (2026.01.14~f5dd57a8-r1)
  Executing libiwinfo-lua-2026.01.14~f5dd57a8-r1.post-install
( 8/69) Installing libuci-lua (2025.12.02~66127cd7-r1)
  Executing libuci-lua-2025.12.02~66127cd7-r1.post-install
( 9/69) Installing lua (5.1.5-r11)
  Executing lua-5.1.5-r11.post-install
(10/69) Installing luci-lib-ip (26.259.57615~82ed8f6)
  Executing luci-lib-ip-26.259.57615~82ed8f6.post-install
(11/69) Installing luci-lib-jsonc (26.259.57615~82ed8f6)
  Executing luci-lib-jsonc-26.259.57615~82ed8f6.post-install
(12/69) Installing luci-lib-nixio (26.259.57615~82ed8f6)
  Executing luci-lib-nixio-26.259.57615~82ed8f6.post-install
(13/69) Installing lime-system (2026.08.22~1787356356)
  Executing lime-system-2026.08.22~1787356356.post-install
  * migrate-wifi-modes: migration finished, now run lime-config
  * Configuring LiMe for first boot...
  * Mac-config: lime-1c497bcad579
  * Clearing wireless config...
  * Clearing network config...
  * Disabling odhcpd
  * Cleaning dnsmasq
  * Disabling 6relayd...
  * network.scandevices.board_port_parser found DSA-port wan in board.json
  * network.scandevices.board_port_parser found DSA-port lan1 in board.json
  * network.scandevices.board_port_parser found DSA-port lan2 in board.json
  * network.scandevices.owrt_ifname_parser found ifname wlan0-ap
  * network.scandevices.owrt_ifname_parser found ifname wlan0-apname
  * network.scandevices.owrt_ifname_parser found ifname wlan0-mesh
  * network.scandevices.owrt_ifname_parser found ifname wlan1-ap
  * network.scandevices.owrt_ifname_parser found ifname wlan1-apname
  * network.scandevices.owrt_ifname_parser found ifname wlan1-mesh
  * network.scandevices.dev_parser ignored DSA conduit device eth0
  * Configuring system...
  * By default DO_NOTHING with root password, to not interfere with manual overwrites.
  * Let uhttpd listen on IPv4/IPv6
  * Applying generic configs:
  *  uhttpd_https
  * Done applying generic configs.
  * Copying assets:
  * Done copying assets.
  * Running assets on ATFIRSTBOOT :
  * Done running assets.
  * Running assets on ATCONFIG :
  * Done running assets.
  * Configuring official LibreMesh apk feeds
(14/69) Installing lime-proto-babeld (26.233.85956~8b5ebdb)
  Executing lime-proto-babeld-26.233.85956~8b5ebdb.post-install
(15/69) Installing watchping (26.233.85956~8b5ebdb)
  Executing watchping-26.233.85956~8b5ebdb.post-install
(16/69) Installing babeld-auto-gw-mode (26.233.85956~8b5ebdb)
  Executing babeld-auto-gw-mode-26.233.85956~8b5ebdb.post-install
(17/69) Installing libpthread (1.2.5-r5)
  Executing libpthread-1.2.5-r5.post-install
(18/69) Installing librt (1.2.5-r5)
  Executing librt-1.2.5-r5.post-install
(19/69) Installing batctl-default (2025.4-r4)
  Executing batctl-default-2025.4-r4.post-install
  * add alternative: /usr/sbin/batctl -> /usr/libexec/batctl-default
(20/69) Installing check-date-http (26.233.85956~8b5ebdb)
  Executing check-date-http-26.233.85956~8b5ebdb.post-install
  * grep: /etc/crontabs/root: No such file or directory
(21/69) Installing libubox-lua (2026.06.19~7dd12784-r1)
  Executing libubox-lua-2026.06.19~7dd12784-r1.post-install
(22/69) Installing ubus-lime-groundrouting (26.233.85956~8b5ebdb)
  Executing ubus-lime-groundrouting-26.233.85956~8b5ebdb.post-install
(23/69) Installing ubus-lime-location (26.233.85956~8b5ebdb)
  Executing ubus-lime-location-26.233.85956~8b5ebdb.post-install
(24/69) Installing check-internet (26.233.85956~8b5ebdb)
  Executing check-internet-26.233.85956~8b5ebdb.post-install
(25/69) Installing terminfo (6.4-r3)
  Executing terminfo-6.4-r3.post-install
(26/69) Installing libncurses6 (6.4-r3)
  Executing libncurses6-6.4-r3.post-install
(27/69) Installing mtr-nojson (0.95-r3)
  Executing mtr-nojson-0.95-r3.post-install
(28/69) Installing netperf (2.7.0-r3)
  Executing netperf-2.7.0-r3.post-install
  * Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC
(29/69) Installing ubus-lime-utils (26.233.85956~8b5ebdb)
  Executing ubus-lime-utils-26.233.85956~8b5ebdb.post-install
(30/69) Installing ubus-lime-metrics (26.233.85956~8b5ebdb)
  Executing ubus-lime-metrics-26.233.85956~8b5ebdb.post-install
(31/69) Installing uhttpd-mod-lua (2026.06.16~7b1bec45-r1)
  Executing uhttpd-mod-lua-2026.06.16~7b1bec45-r1.post-install
(32/69) Installing lime-app (0.2.26-r2)
  Executing lime-app-0.2.26-r2.post-install
  * cfg03f8be
  * Apply hostname
  * Reload network config
  * Reload routing protocols
  * Skipping invalid Lua prefix "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
(33/69) Installing pv (1.9.31-r2)
  Executing pv-1.9.31-r2.post-install
(34/69) Installing bandwidth-test (26.233.85956~8b5ebdb)
  Executing bandwidth-test-26.233.85956~8b5ebdb.post-install
(35/69) Installing bwm-ng (0.6.3-r2)
  Executing bwm-ng-0.6.3-r2.post-install
(36/69) Installing ethtool (6.15-r1)
  Executing ethtool-6.15-r1.post-install
(37/69) Installing ip-tiny (6.18.0-r2)
  Executing ip-tiny-6.18.0-r2.post-install
  * add alternative: /sbin/ip -> /usr/libexec/ip-tiny
(38/69) Installing libatomic1 (14.3.0-r5)
  Executing libatomic1-14.3.0-r5.post-install
(39/69) Installing libiperf3 (3.20-r1)
  Executing libiperf3-3.20-r1.post-install
(40/69) Installing iperf3 (3.20-r1)
  Executing iperf3-3.20-r1.post-install
(41/69) Installing iputils-ping (20250605-r1)
 56% ####################################################################################################################                         

here the second run of 'apk add profile-libremesh-suggested-packages'

root@LiMe-cad579:~# apk add profile-libremesh-suggested-packages
( 1/26) Installing safe-reboot (26.233.85956~8b5ebdb)
  Executing safe-reboot-26.233.85956~8b5ebdb.post-install
( 2/26) Installing sprunge (26.233.85956~8b5ebdb)
  Executing sprunge-26.233.85956~8b5ebdb.post-install
( 3/26) Installing libpcap1 (1.10.6-r1)
  Executing libpcap1-1.10.6-r1.post-install
( 4/26) Installing tcpdump-mini (4.99.6-r1)
  Executing tcpdump-mini-4.99.6-r1.post-install
( 5/26) Installing lime-debug (2026.08.22~1787356356)
  Executing lime-debug-2026.08.22~1787356356.post-install
( 6/26) Installing lime-docs-minimal (2026.04.07~3b58007)
  Executing lime-docs-minimal-2026.04.07~3b58007.post-install
( 7/26) Installing lime-docs (2026.04.07~3b58007)
  Executing lime-docs-2026.04.07~3b58007.post-install
( 8/26) Installing lime-hwd-ground-routing (26.233.85956~8b5ebdb)
  Executing lime-hwd-ground-routing-26.233.85956~8b5ebdb.post-install
( 9/26) Installing lime-proto-wan (26.233.85956~8b5ebdb)
  Executing lime-proto-wan-26.233.85956~8b5ebdb.post-install
(10/26) Installing lime-hwd-openwrt-wan (26.233.85956~8b5ebdb)
  Executing lime-hwd-openwrt-wan-26.233.85956~8b5ebdb.post-install
(11/26) Installing kmod-macvlan (6.12.94-r1)
  Executing kmod-macvlan-6.12.94-r1.post-install
(12/26) Installing kmod-nft-bridge (6.12.94-r1)
  Executing kmod-nft-bridge-6.12.94-r1.post-install
(13/26) Installing shared-state (26.233.85956~8b5ebdb)
  Executing shared-state-26.233.85956~8b5ebdb.post-install
(14/26) Installing shared-state-dnsmasq_hosts (26.233.85956~8b5ebdb)
  Executing shared-state-dnsmasq_hosts-26.233.85956~8b5ebdb.post-install
(15/26) Installing shared-state-dnsmasq_leases (26.233.85956~8b5ebdb)
  Executing shared-state-dnsmasq_leases-26.233.85956~8b5ebdb.post-install
(16/26) Installing lime-proto-anygw (26.233.85956~8b5ebdb)
  Executing lime-proto-anygw-26.233.85956~8b5ebdb.post-install
(17/26) Installing kmod-lib-crc16 (6.12.94-r1)
  Executing kmod-lib-crc16-6.12.94-r1.post-install
(18/26) Installing kmod-batman-adv (6.12.94.2025.4-r4)
  Executing kmod-batman-adv-6.12.94.2025.4-r4.post-install
(19/26) Installing lime-proto-batadv (26.233.85956~8b5ebdb)
  Executing lime-proto-batadv-26.233.85956~8b5ebdb.post-install
(20/26) Installing hotplug-initd-services (26.233.85956~8b5ebdb)
  Executing hotplug-initd-services-26.233.85956~8b5ebdb.post-install
(21/26) Installing shared-state-babeld_hosts (26.233.85956~8b5ebdb)
  Executing shared-state-babeld_hosts-26.233.85956~8b5ebdb.post-install
(22/26) Installing libstdcpp6 (14.3.0-r5)
  Executing libstdcpp6-14.3.0-r5.post-install
(23/26) Installing shared-state-async (2024.05.13~db58e3d-r1)
  Executing shared-state-async-2024.05.13~db58e3d-r1.post-install
  * I 1789684328.272 bool SharedState::registerDataType(const std::string&, const std::string&, std::chrono::seconds, std::chrono::seconds, std::error_condition*) Config file: /tmp/shared-state/shared-state-async.conf corrupted or non-existent, creating a new one
(24/26) Installing shared-state-bat_hosts (26.233.85956~8b5ebdb)
  Executing shared-state-bat_hosts-26.233.85956~8b5ebdb.post-install
(25/26) Installing shared-state-nodes_and_links (26.233.85956~8b5ebdb)
  Executing shared-state-nodes_and_links-26.233.85956~8b5ebdb.post-install
(26/26) Installing profile-libremesh-suggested-packages (26.177.50624~0965de2)
  Executing profile-libremesh-suggested-packages-26.177.50624~0965de2.post-install
OK: 18.3 MiB in 228 packages
Dominant language
Lua
Stars
338
Forks
113
Avg merge
8d 3h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libremesh/lime-packages

All issues in libremesh/lime-packages

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.