On Sat, Dec 17, 2011 at 11:15:37AM +0100, Erwin Rol wrote:
> is there an easy (no upgrading the machine is _not_ easy) work
> around for the following problem ?
> 
> extract: pkg_src=/home/erwin/Download/ptxdist_cache//strace-4.6.tar.xz
> extract: pkg_extract_dir=rootfs/platform-ECM945/build-target/strace-4.6
> tar: unrecognized option `--xz'
> Try `tar --help' or `tar --usage' for more information.

But the program xz is available, right? Would something like this work for
you?

Michael

diff --git a/scripts/lib/ptxd_make_extract_archive.sh 
b/scripts/lib/ptxd_make_extract_archive.sh
index f44f0c9..b7c1102 100644
--- a/scripts/lib/ptxd_make_extract_archive.sh
+++ b/scripts/lib/ptxd_make_extract_archive.sh
@@ -16,7 +16,7 @@ ptxd_make_extract_archive() {
            filter="--lzma"
            ;;
        *xz)
-           filter="--xz"
+           filter="--use-compress-program=xz"
            ;;
        *lzop)
            filter="--lzop"

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to