ci: fix dependency on cmdline
PATCH 1/1 ci: fix dependency on cmdline
The unit tests, testpmd and some examples depend on the cmdline library. Without it, the "mini" target in GHA ends up as a build failure.
--- .ci/linux-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-build.sh +1 -1
@@ -120,7 +120,7 @@ else fi if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" - OPTS="$OPTS -Ddisable_libs=*" + OPTS="$OPTS -Denable_libs=cmdline" if [ "$DEF_LIB" = "static" ]; then OPTS="$OPTS -Dexamples=l2fwd" fi
Signature · 1 line
2.54.0
Quoted 7 lines · David Marchand
The unit tests, testpmd and some examples depend on the cmdline library. Without it, the "mini" target in GHA ends up as a build failure.
Fixes 6de2c9c791b8 ("build: make cmdline optional")Signed-off-by David Marchand <[email protected]>
Applied quickly, to avoid red flags in GHA.
Signature · 1 line
David Marchand
David Marchand, Oct 15, 2026 at 18:01:
Quoted 15 lines
The unit tests, testpmd and some examples depend on the cmdline library. Without it, the "mini" target in GHA ends up as a build failure.
Fixes 6de2c9c791b8 ("build: make cmdline optional")Signed-off-by David Marchand <[email protected]>--- .ci/linux-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).ci/linux-build.sh +0
-0
.ci/linux-build.sh else · line 125
Quoted 7 lines
.ci/linux-build.sh +1
-1@@ -120,7 +120,7 @@ else fi if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" - OPTS="$OPTS -Ddisable_libs=*" + OPTS="$OPTS -Denable_libs=cmdline" if [ "$DEF_LIB" = "static" ]; then OPTS="$OPTS -Dexamples=l2fwd"
Why aren't the per-target dependencies honored?
Signature · 3 lines
Robin # At participating locations only.
Quoted 12 lines · Robin Jarry
David Marchand, Oct 15, 2026 at 18:01:
Quoted 10 lines
The unit tests, testpmd and some examples depend on the cmdline library. Without it, the "mini" target in GHA ends up as a build failure.
Fixes 6de2c9c791b8 ("build: make cmdline optional")Signed-off-by David Marchand <[email protected]>--- .ci/linux-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
.ci/linux-build.sh else · line 125
Quoted 12 lines
.ci/linux-build.sh +1
-1@@ -120,7 +120,7 @@ else fi if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" - OPTS="$OPTS -Ddisable_libs=*" + OPTS="$OPTS -Denable_libs=cmdline" if [ "$DEF_LIB" = "static" ]; then OPTS="$OPTS -Dexamples=l2fwd"Why aren't the per-target dependencies honored?
Examples have hardcoded dependencies see examples/meson.build. Since the mini target explicitly requests l2fwd, this triggers an error.
Signature · 1 line
David Marchand
David Marchand, Oct 15, 2026 at 18:25:
Quoted 2 lines
Examples have hardcoded dependencies see examples/meson.build. Since the mini target explicitly requests l2fwd, this triggers an error.
Ah, so we would need to add the cmdline dependency per-example?
Quoted 6 lines · Robin Jarry
David Marchand, Oct 15, 2026 at 18:25:
Quoted 2 lines
Examples have hardcoded dependencies see examples/meson.build. Since the mini target explicitly requests l2fwd, this triggers an error.
Ah, so we would need to add the cmdline dependency per-example?
Dependencies should probably be re-evaluated.
You can send patches but too late for rc1 now.
Signature · 1 line
David Marchand