GNU bug report logs - #78084
"od: invalid option -- 'A'" issue when run gzip-1.14 tests

Previous Next

Package: gzip;

Reported by: "Xinjian Ma (Fujitsu)" <maxj.fnst <at> fujitsu.com>

Date: Sun, 27 Apr 2025 09:32:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

To reply to this bug, email your comments to 78084 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#78084; Package gzip. (Sun, 27 Apr 2025 09:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Xinjian Ma (Fujitsu)" <maxj.fnst <at> fujitsu.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Sun, 27 Apr 2025 09:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Xinjian Ma (Fujitsu)" <maxj.fnst <at> fujitsu.com>
To: "bug-gzip <at> gnu.org" <bug-gzip <at> gnu.org>
Subject: "od: invalid option -- 'A'" issue when run gzip-1.14 tests
Date: Sun, 27 Apr 2025 07:30:30 +0000
[Message part 1 (text/plain, inline)]
Hello everyone
We met a issue when run gzip-1.14 tests in yocto project

| od: invalid option -- 'A'
| BusyBox v1.37.0 () multi-call binary.

It's caused by line 46 in tests/reference.

yocto use od from busybox which only has limited option of od.

For such cases, the usual approach taken by adding coreutils to RDEPENDS which means use od from coreutils
instead of busybox

 42 # Ensure that compressing these simple strings always produces the same bytes.
 43 # If using "od" is not portable enough, consider using this:
 44 # perl -ne 'printf "%02x ", ord($_) for split //'
 45 for i in '' a b c yyy zzzzzzzzzzz; do
 46   echo $i: $(printf %s "$i" | gzip | od -An -tx1 | tr -d '\n')
 47 done > out || framework_failure_



So this mail just to inform you that od in tests may cause issues to downstream


Thank you


[Message part 2 (text/html, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sun, 27 Apr 2025 20:32:01 GMT) Full text and rfc822 format available.

Notification sent to "Xinjian Ma (Fujitsu)" <maxj.fnst <at> fujitsu.com>:
bug acknowledged by developer. (Sun, 27 Apr 2025 20:32:02 GMT) Full text and rfc822 format available.

Message #10 received at 78084-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Xinjian Ma (Fujitsu)" <maxj.fnst <at> fujitsu.com>
Cc: 78084-done <at> debbugs.gnu.org
Subject: Re: bug#78084: "od: invalid option -- 'A'" issue when run gzip-1.14
 tests
Date: Sun, 27 Apr 2025 13:31:00 -0700
[Message part 1 (text/plain, inline)]
Thanks for reporting that glitch with busybox. I installed the attached 
to work around it.
[0001-tests-port-to-Busybox-od.patch (text/x-patch, attachment)]

This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.