diff mbox series

[meta-networking] ebtables: Fix update-alternatives by setting ALTERNATIVE_TARGET

Message ID 20260423145523.3165168-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-networking] ebtables: Fix update-alternatives by setting ALTERNATIVE_TARGET | expand

Commit Message

Khem Raj April 23, 2026, 2:55 p.m. UTC
The commit adding update-alternatives support omitted
ALTERNATIVE_TARGET[ebtables], causing the bbclass to fall back to
constructing the target as ${sbindir}/ebtables.ebtables which does
not exist. The binary is installed as ebtables-legacy, so set
ALTERNATIVE_TARGET accordingly.

fixes QA warnings:

  ebtables: alternative target does not exist, skipping
  ebtables: NOT adding alternative provide /usr/sbin/ebtables
  ebtables: alt_link == alt_target: /usr/sbin/ebtables == /usr/sbin/ebtables

Fixes: 584fec0f74ad ("ebtables: Use update alternatives for "ebtables"")

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
index 5ae30e440c..5e9f9ce070 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
+++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
@@ -52,4 +52,5 @@  SYSTEMD_SERVICE:${PN} = "ebtables.service"

 ALTERNATIVE:${PN} = "ebtables"
 ALTERNATIVE_LINK_NAME[ebtables] = "${sbindir}/ebtables"
+ALTERNATIVE_TARGET[ebtables] = "${sbindir}/ebtables-legacy"
 ALTERNATIVE_PRIORITY[ebtables] = "90"