Skip to contentSkip to conversation

gawk: Add coreutils to rdeps for ptests package

PATCH New Khem Raj 1 participant 1 message Jan 5, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gawk: Add coreutils to rdeps for ptests package

newer gawk 5.3.0+ added a new testcase test/cmdlinefsbacknl2.sh which use od utility with -An option which is not available in busybox provided od applet. Replacing -An is not possible because default output for od is octal and the test wants to use none for radix thats why it uses -An.

Fixes test/cmdlinefsbacknl2.sh failures in ptests

which fails like below

Usage: od [-aBbcDdeFfHhIiLlOovXx] [FILE]
od: unrecognized option: A
BusyBox v1.36.1 () multi-call binary.

Sadly, this prolongs depchain if ptest distro feature is used but there is no other option if this test has to execute. Perhaps its best to report this to upstream gawk and request to fix the testcase to not hard depend on coreutils/od utility

---
 meta/recipes-extended/gawk/gawk_5.3.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/gawk/gawk_5.3.0.bb +1 -1
index 3d652da6e5c..d7a0fc616d3 100644
@@ -79,7 +79,7 @@ do_install_ptest:append:libc-musl() {
 	done
 }
 
-RDEPENDS:${PN}-ptest += "make locale-base-en-us"
+RDEPENDS:${PN}-ptest += "make locale-base-en-us coreutils"
 
 RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
 RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
Signature · 1 line
2.43.0