Skip to contentSkip to conversation

ci: fix dependency on cmdline

PATCH In review David Marchand 2 participants 6 messages Oct 15

lore
Share & tools
lore
#0 lore raw

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.

Fixes 6de2c9c791b8 ("build: make cmdline optional")
---
 .ci/linux-build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-build.sh +1 -1
index 4f266940e9..2c7386d320 100755
@@ -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
#1 lore raw
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")

Applied quickly, to avoid red flags in GHA.

Signature · 1 line
David Marchand
#2 lore raw
In reply to 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")
---
 .ci/linux-build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.ci/linux-build.sh +0 -0
index 4f266940e9..2c7386d320 100755

.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.
#3 lore raw
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")
---
 .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
index 4f266940e9..2c7386d320 100755
@@ -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
#4 lore raw

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?

#5 lore raw
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