Skip to content

strongswan: drop legacy frontend from full package - #30349

Open
dhrm1k wants to merge 1 commit into
openwrt:masterfrom
dhrm1k:strongswan-full-swanctl
Open

strongswan: drop legacy frontend from full package#30349
dhrm1k wants to merge 1 commit into
openwrt:masterfrom
dhrm1k:strongswan-full-swanctl

Conversation

@dhrm1k

@dhrm1k dhrm1k commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @pprindeville, @Thermi

Description:

strongswan-full currently installs both the legacy ipsec/stroke frontend and swanctl. This provides two init scripts for the same Charon daemon and can cause conflicts if both services are enabled.

Remove strongswan-ipsec and strongswan-mod-stroke from the meta-package, leaving swanctl as the supported frontend. The legacy packages remain available for users who explicitly need them.

This deliberately leaves the policy-based/XFRM choice unchanged.

Related: #21989


🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT (f1bf2d18392e)
  • OpenWrt Target/Subtarget: x86/64
  • OpenWrt Device: build machine

Verified the generated strongswan-full package metadata. It reports version 6.0.7-r8, retains strongswan-swanctl and strongswan-mod-vici, and no longer includes strongswan-ipsec or strongswan-mod-stroke.

Also verified with git diff --check.


✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

strongswan-full currently installs both the legacy ipsec/stroke
frontend and swanctl. This provides two init scripts for the same Charon
daemon and can cause conflicts when both services are enabled.

Drop strongswan-ipsec and strongswan-mod-stroke from the meta-package,
leaving swanctl as its supported frontend. The legacy packages remain
available for users who explicitly need them.

Refs: openwrt#21989
Signed-off-by: Dharmik Parmar <[email protected]>

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit. The commit message matches the diff, PKG_RELEASE is correctly incremented for a DEPENDS change, and dropping the stroke frontend from strongswan-full is consistent with strongswan-default, which already ships swanctl only. One inline note about the legacy packages no longer being kept together — nothing blocking.


Generated by Claude Code

Comment thread net/strongswan/Makefile
+strongswan-mod-sql \
+strongswan-mod-sqlite \
+strongswan-mod-sshkey \
+strongswan-mod-stroke \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dropping these two together leaves the legacy frontend without a package that keeps them paired. strongswan-full was, in practice, the only thing guaranteeing that strongswan-ipsec and strongswan-mod-stroke were installed together; Package/strongswan-ipsec declares only DEPENDS:= strongswan.

That matters because strongswan-ipsec ships /etc/init.d/ipsec, whose PROG=/usr/lib/ipsec/starter is installed by the stroke plugin, not by strongswan-ipsec itself — Plugin/stroke/install is the only place starter comes from. Same for /etc/ipsec.d/, which Package/strongswan-ipsec/conffiles registers but Plugin/stroke/install creates.

So after this change a user following "the legacy packages remain available" and installing just strongswan-ipsec gets an init script that cannot start. This is a pre-existing gap in strongswan-ipsec's DEPENDS, but this PR is what removes the meta-package that was papering over it. Worth adding +strongswan-mod-stroke (and the frontend deps it needs) to Package/strongswan-ipsec — either here or as a separate patch in the series.


Generated by Claude Code

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