[ https://issues.apache.org/jira/browse/MESOS-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921835#comment-13921835 ]
Robert Lacroix commented on MESOS-1051: --------------------------------------- -xJf doesn't work for tar.gz on OEL6 either: xz: (stdin): File format not recognized tar: Child returned status 1 tar: Error is not recoverable: exiting now J is for xz compression and not gzip and the if statement needs to be specific for every format. J for tar.xz, z for tar.gz and j for tar.bz2. > tar command used in fetcher not portable to OS X > ------------------------------------------------ > > Key: MESOS-1051 > URL: https://issues.apache.org/jira/browse/MESOS-1051 > Project: Mesos > Issue Type: Bug > Components: containerization > Affects Versions: 0.18.0 > Reporter: Robert Lacroix > Assignee: Anton Lindström > Fix For: 0.19.0 > > > {code} > tar -C '<output directory>' xJf '<tar.gz>' > {code} > used in > [fetcher.cpp|https://github.com/apache/mesos/blob/f90fe7641ea8f7066a6a1171a24ddaa8dc30e789/src/launcher/fetcher.cpp#L47] > works on Linux, but is not portable to OS X and fails with > {code} > tar: Must specify one of -c, -r, -t, -u, -x > {code} > It should be called using portable arguments instead. > This is a new regression in 0.18. -- This message was sent by Atlassian JIRA (v6.2#6252)