Skip to content

oonf-olsrd2: reinstate and update to OONF master#1176

Open
parasew wants to merge 1 commit into
openwrt:masterfrom
parasew:reinstate-oonf-olsrd2
Open

oonf-olsrd2: reinstate and update to OONF master#1176
parasew wants to merge 1 commit into
openwrt:masterfrom
parasew:reinstate-oonf-olsrd2

Conversation

@parasew

@parasew parasew commented Jun 4, 2026

Copy link
Copy Markdown

Summary

Reinstates oonf-olsrd2 (and its oonf-init-scripts dependency), which were removed in #1145. The two issues that motivated the removal are both fixed in current OONF master, and I've verified a clean build.

Why this is safe now

The removal in #1145 cited three problems. Status of each:

What this PR changes

  • Bumps the source pin from the stale 2022-08-25 commit to master b2164126e12340f19ea33070e1e11eb469a051e5 (2025-12-04), with a refreshed PKG_MIRROR_HASH.
  • Bumps PKG_RELEASE.
  • Drops 100-enable-lan-import-plugin.patch. Upstream has absorbed it: add_subdirectory(lan_import) is already present in src/olsrv2/CMakeLists.txt, so the patch no longer applies and is redundant.

No source code changes and no plugin-list changes were needed.

Verification

Clean build and PKG_MIRROR_HASH verification with the OpenWrt x86-64
gcc-14.3.0_musl SDK (snapshots). x86-64 is 64-bit musl, the same ABI condition that triggered the original -Wint-conversion failure, so the build exercises the relevant code path. No -Wint-conversion and no CMake minimum-version error.

Scope

This PR covers oonf-olsrd2 only. The DLEP packages (oonf-dlep-radio,
oonf-dlep-proxy) were the actual subjects of OLSR/OONF#71 and remain removed; they can follow in a separate PR once each is build-tested individually.

@XDjackieXD noted intent to re-add the packages in #1145.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@BKPepe

BKPepe commented Jun 5, 2026

Copy link
Copy Markdown
Member

Given that the package was removed nearly a year ago and we want to add it back, it basically needs a complete rebirth at this point. We should approach it and review it from scratch to ensure it’s clean and makes sense. If we don’t do it now, it’ll never happen.

I was hoping to convince Copilot to take a look at it, but apparently, it’s a no. :) We’ll see, maybe it’ll get moving. As a next step, I suggest we set up a quick review of the original requirements so we don't bring back any old technical debt.

Comment thread oonf-init-scripts/Makefile Outdated
Comment thread oonf-init-scripts/Makefile Outdated
define Package/oonf-init-scripts
SECTION:=net
CATEGORY:=Network
MAINTAINER:=Henning Rogge <hrogge@gmail.com>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does anyone know if this maintainer is still active?

@parasew parasew Jun 5, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't confirm whether Henning is still active on the packaging side. To avoid these going unmaintained again, I'm willing to take over maintenance of oonf-olsrd2 and oonf-init-scripts and have set PKG_MAINTAINER accordingly. I've also emailed Henning directly as a courtesy in case he'd like to stay on. I have several OpenWrt devices and will run olsrd2 on real hardware, not just the cross-compile and QEMU validation I did for this PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember he does not maintain the package anymore. But maybe he responds.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I contacted Henning directly as a courtesy and phrased it so that he only needs to respond if he objects or would like to remain listed as maintainer. If he does, I’ll adjust accordingly. Otherwise, I’m happy to take over maintenance of these packages and keep them tested on real OpenWrt hardware.

Comment thread oonf-init-scripts/Makefile Outdated
Comment thread oonf-init-scripts/Makefile Outdated
Comment thread oonf-init-scripts/Makefile Outdated
Comment thread oonf-olsrd2/Makefile Outdated
Comment thread oonf-olsrd2/Makefile Outdated
Comment thread oonf-olsrd2/Makefile Outdated
Comment thread oonf-olsrd2/Makefile
Comment thread oonf-olsrd2/test-version.sh Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.

Comment thread oonf-olsrd2/Makefile
Comment thread oonf-olsrd2/Makefile
Comment thread oonf-init-scripts/Makefile
Comment thread oonf-init-scripts/files/oonf_init.sh
Comment thread oonf-init-scripts/files/oonf_init.sh Outdated
Comment thread oonf-init-scripts/files/oonf_init.sh Outdated
Comment thread oonf-init-scripts/files/oonf_init.sh
@parasew

parasew commented Jun 5, 2026

Copy link
Copy Markdown
Author

Agreed, let's treat it as a fresh package rather than a revert. I'll go through both Makefiles against current conventions and push a cleaned version. For the requirements review: the default plugin set is driven by Config.in (lan_import, route_modifier, mpr, etc. as compile-time options folded into the single static binary), oonf-init-scripts ships two sourced shell helpers to /lib/functions/, and oonf-olsrd2 carries the procd init + hotplug + a default UCI config. Happy to align on what the default-enabled plugin set should be before I resubmit, so we don't bring back anything stale.

@parasew parasew force-pushed the reinstate-oonf-olsrd2 branch from d308f19 to e2f7443 Compare June 5, 2026 20:33
@parasew

parasew commented Jun 5, 2026

Copy link
Copy Markdown
Author

Pushed a cleaned-up version treating this as a fresh package per your suggestion, rather than a revert. Summary of changes: dropped the PKG_BUILD_DIR override, kernel.mk include, redundant VERSION lines, and the oonf-git/template indirection; added SPDX headers, PKG_MAINTAINER, PKG_LICENSE; switched URLs to https; fixed install macros (INSTALL_DIR + INSTALL_CONF for the config file); reset PKG_RELEASE to 1; added dependencies. Replaced the test-version.sh skip with a real check. Fixed several pre-existing bugs in oonf_init.sh that Copilot caught. I built and validated everything in QEMU on the x86-64 snapshot target: the package installs, jshn resolves as a dependency, olsrd2 reports the pinned commit, and the ignore-section logic works correctly. Details in the per-line replies.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread oonf-init-scripts/files/oonf_hotplug.sh Outdated
Comment thread oonf-olsrd2/Config.in Outdated
Comment thread oonf-init-scripts/Makefile
Comment thread oonf-olsrd2/test-version.sh Outdated
@parasew parasew requested a review from BKPepe June 9, 2026 07:34
Reinstates oonf-olsrd2 and its oonf-init-scripts dependency, removed in
58070aa. The two issues that motivated removal are fixed in current OONF
master:
- GCC 14 -Wint-conversion in os_system_linux.c: master uses designated
  initializers for struct msghdr. The fix existed on develop and landed
  on master in the 2025-12 develop->master merge.
- CMake 4.x: root CMakeLists.txt now sets cmake_minimum_required 3.10.

Bumps the source pin from the stale 2022-08-25 commit to master b2164126
(2025-12-04), bumps PKG_RELEASE, and drops 100-enable-lan-import-plugin.patch,
which upstream has absorbed (lan_import is now in src/olsrv2/CMakeLists.txt).

Modernizes both Makefiles: SPDX headers, PKG_MAINTAINER, PKG_LICENSE,
https URLs, idiomatic install macros, and PKGARCH:=all for the
architecture-independent oonf-init-scripts. Replaces the test-version.sh
skip with a real check against the pinned commit. Fixes pre-existing bugs
in oonf_init.sh (undefined index in the ignore path, hardcoded pidfile,
stray debug output) and corrects the hotplug handler to invoke the init
script directly instead of sourcing rc.common.

Verified: clean build across CI architectures and runtime validation in
QEMU on x86-64 (package install, dependency resolution, version reporting,
and ignore-section handling).

Signed-off-by: Matthias Tarasiewicz <mt@riat.at>
@parasew parasew force-pushed the reinstate-oonf-olsrd2 branch from 83de819 to 6c1d2c4 Compare June 9, 2026 07:50
@parasew parasew requested a review from mwarning June 9, 2026 07:54
@BKPepe BKPepe requested a review from Copilot June 10, 2026 10:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

4 participants