ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

execute --trace: switch away from 'gunzip --keep' (seems CentOS version of gzip lacks it) #540

Closed yarikoptic closed 4 years ago

yarikoptic commented 4 years ago

Should not we just use zcat FILE.gz > FILE in a shell session for this? @chaselgrove:

yhalchen@openmind7:~/proj/repronim/reproman
$> git describe
v0.2.1-135-gc8b40e5

*$> reproman execute --trace -r localshell -- reproman --help
2020-08-06 14:41:17,227 [INFO   ] Downloading tracer... 
2020-08-06 14:41:18,210 [INFO   ] Tracer downloaded to /home/yhalchen/.cache/reproman/tracers/d8561c1bc528592b21c0e28d6f32c0a4/reproman_trace.gz 
2020-08-06 14:41:18,282 [INFO   ] Executed the reproman command in the environment localshell 
gzip: unrecognized option '--keep'
Try `gzip --help' for more information.
2020-08-06 14:41:18,283 [ERROR  ] Command reproman failed to run in localshell: Failed to run ['gunzip', '--keep', '/home/yhalchen/.cache/reproman/tracers/d8561c1bc528592b21c0e28d6f32c0a4/reproman_trace.gz'] under None. Exit co
de=1. out= err=gzip: unrecognized option '--keep'
Try `gzip --help' for more information.

*$> lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.7.1908 (Core)
Release:        7.7

$> gzip --help
Usage: gzip [OPTION]... [FILE]...
Compress or uncompress FILEs (by default, compress FILES in-place).

Mandatory arguments to long options are mandatory for short options too.

  -c, --stdout      write on standard output, keep original files unchanged
  -d, --decompress  decompress
  -f, --force       force overwrite of output file and compress links
  -h, --help        give this help
  -l, --list        list compressed file contents
  -L, --license     display software license
  -n, --no-name     do not save or restore the original name and time stamp
  -N, --name        save or restore the original name and time stamp
  -q, --quiet       suppress all warnings
  -r, --recursive   operate recursively on directories
  -S, --suffix=SUF  use suffix SUF on compressed files
  -t, --test        test compressed file integrity
  -v, --verbose     verbose mode
  -V, --version     display version number
  -1, --fast        compress faster
  -9, --best        compress better
    --rsyncable   Make rsync-friendly archive

With no FILE, or when FILE is -, read standard input.

Report bugs to <bug-gzip@gnu.org>.

$> gunzip --help
Usage: /usr/bin/gunzip [OPTION]... [FILE]...
Uncompress FILEs (by default, in-place).

Mandatory arguments to long options are mandatory for short options too.

  -c, --stdout      write on standard output, keep original files unchanged
  -f, --force       force overwrite of output file and compress links
  -l, --list        list compressed file contents
  -n, --no-name     do not save or restore the original name and time stamp
  -N, --name        save or restore the original name and time stamp
  -q, --quiet       suppress all warnings
  -r, --recursive   operate recursively on directories
  -S, --suffix=SUF  use suffix SUF on compressed files
  -t, --test        test compressed file integrity
  -v, --verbose     verbose mode
      --help        display this help and exit
      --version     display version information and exit

With no FILE, or when FILE is -, read standard input.

Report bugs to <bug-gzip@gnu.org>.

$> gunzip --version
gunzip (gzip) 1.5
Copyright (C) 2007, 2011-2012 Free Software Foundation, Inc.

and --keep was introduced in 1.6 (on 2013-05-28). zcat seems was there "forever", so is likely to be present where gunzip is.

chaselgrove commented 4 years ago

reproman execute --trace won't work on macOS since reprozip isn't available for macOS (only reprounzip).

yarikoptic commented 4 years ago

reprounzip? are we that successful?