Pass --posix to tar

Authored by bgamari on Jul 20 2017, 1:12 PM.


Trac Issues

This ensures that the tarballs that we produce are compatible with both GNU tar
and bsdtar.

bgamari created this revision.Jul 20 2017, 1:12 PM
kgardas edited edge metadata.Jul 20 2017, 3:30 PM

Code looks good, but is not working well on OpenBSD 6.1-current which provides GNU tar 1.29:

"rm" -f bindistprep/ghc-8.3.20170720-x86_64-unknown-openbsd.tar  
cd bindistprep && "/usr/local/bin/gtar" --posix hcf - -T ../bindist-list | /usr/local/bin/xz -c > ../bindistprep/ghc-8.3.20170720-x86_64-unknown-openbsd.tar.xz
/usr/local/bin/gtar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options
Try '/usr/local/bin/gtar --help' or '/usr/local/bin/gtar --usage' for more
mv bindistprep/*.tar.xz .
$ gtar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
bgamari updated this revision to Diff 13269.Jul 20 2017, 3:41 PM

Fix command line

bgamari abandoned this revision.Jul 20 2017, 8:32 PM

Alright, this actually *wasn't* the issue. See D3767 for another stab at this.