In targets(like qemux86, or atom-pc), running "tar -xf sudoku-savant-1.3.tar" would get a "tar: invalid tar magic" error: root@qemux86:~ # tar -xf sudoku-savant-1.3.tar tar: invalid tar magic root@qemux86:~ # I happened to find this issue when I tried to build some test suites inside the target. BTW: in host, "tar -xf sudoku-savant-1.3.tar" runs ok. This bug also exists in the RC3 images and should be a long-standing bug. I'll attach the file sudoku-savant-1.3.tar.
Created attachment 60 [details] sudoku-savant-1.3.tar.bz2: use "bunzip sudoku-savant-1.3.tar.bz2" to get "sudoku-savant-1.3.tar"
It's busybox's tar that has the issue. I made the below patch to enable more options to fix the bug. diff --git a/meta/recipes-core/busybox/busybox-1.16.2/defconfig b/meta/recipes-core/busybox/busybox-1.16.2/defconfig index 431da94..87e6244 100644 --- a/meta/recipes-core/busybox/busybox-1.16.2/defconfig +++ b/meta/recipes-core/busybox/busybox-1.16.2/defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.16.2 -# Tue Jul 6 14:52:48 2010 +# Tue Oct 26 15:07:52 2010 # CONFIG_HAVE_DOT_CONFIG=y @@ -105,10 +105,10 @@ CONFIG_FEATURE_HWIB=y # # Archival Utilities # -# CONFIG_FEATURE_SEAMLESS_LZMA is not set -# CONFIG_FEATURE_SEAMLESS_BZ2 is not set -# CONFIG_FEATURE_SEAMLESS_GZ is not set -# CONFIG_FEATURE_SEAMLESS_Z is not set +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +CONFIG_FEATURE_SEAMLESS_Z=y CONFIG_AR=y # CONFIG_FEATURE_AR_LONG_FILENAMES is not set CONFIG_BUNZIP2=y @@ -128,9 +128,9 @@ CONFIG_GZIP=y # CONFIG_RPM is not set CONFIG_TAR=y CONFIG_FEATURE_TAR_CREATE=y -# CONFIG_FEATURE_TAR_AUTODETECT is not set +CONFIG_FEATURE_TAR_AUTODETECT=y CONFIG_FEATURE_TAR_FROM=y -# CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY is not set +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y # CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y # CONFIG_FEATURE_TAR_LONG_OPTIONS is not set
Fixed by http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=da9970806bca7e46d724cf4d042d1533f0202fdb
tar -jxf sudoku-savant-1.3.tar.bz2 can work normally in qemu target. Let me VERIFY the bug.