tar --help is failing on Solaris.

Karel Gardas karel.gardas at centrum.cz
Sat Sep 27 19:46:13 UTC 2014


Hi Mikhail,

On 09/27/14 09:09 PM, Mikhail Glushenkov wrote:
> On 27 September 2014 20:19, Karel Gardas<karel.gardas at centrum.cz>  wrote:
>>
>> [...]
>> Could you be so kind and revert this patch or fix it to also work on
>> Solaris? For Solaris the change should be easy, simply if you invoke
>> Solaris' tar with --help, it'll fail with exit code 1 and help message
>> printed into the stderr. If you are curious if it supports --format, then
>> no.
>
> Should be fixed now. Thanks for the heads-up!

Have you already pushed? I don't see it fixed on my end yet:


"inplace/bin/ghc-cabal" configure libraries/binary dist-boot "" 
--with-ghc="/opt/ghc-7.8.2/bin/ghc" 
--with-ghc-pkg="/opt/ghc-7.8.2/bin/ghc-pkg" 
--package-db=/export/home/karel/vcs/ghc-src/tar-test/libraries/bootstrapping.conf 
--disable-library-for-ghci --enable-library-vanilla 
--disable-library-profiling --disable-shared 
--with-hscolour="/export/home/karel/.cabal/bin/HsColour" 
--configure-option=CFLAGS=" -U__i686 -fno-stack-protector   " 
--configure-option=LDFLAGS="   " --configure-option=CPPFLAGS="   " 
--gcc-options=" -U__i686 -fno-stack-protector       " 
--configure-option=--with-gmp-includes="/usr/include/gmp/" 
--configure-option=--with-gmp-libraries="/usr/lib/"   --constraint 
"binary == 0.7.1.0"   --constraint "Cabal == 1.21.1.0"   --constraint 
"hpc == 0.6.0.2"   --constraint "bin-package-db == 0.0.0.0" 
--constraint "hoopl == 3.10.0.2"   --constraint "transformers == 
0.4.1.0"   --constraint "terminfo == 0.4.0.0" --with-gcc="/usr/bin//gcc" 
--configure-option=--with-cc="/usr/bin//gcc" 
--with-ar="/usr/xpg4/bin//ar" 
--with-alex="/export/home/karel/.cabal/bin/alex" 
--with-happy="/export/home/karel/.cabal/bin/happy"
Configuring binary-0.7.1.0...
ghc-cabal: '/usr/bin/tar' exited with an error:
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPTvw@/[0-7]][bf][X...] [j|z|Z] 
[blocksize]
[tarfile] [size] [exclude-file...] {file | -I include-file | -C directory
file}...
gmake[1]: *** [libraries/binary/dist-boot/package-data.mk] Error 1
gmake: *** [all] Error 2

and I've got whole new ghc tree for this test...

Thanks!
Karel


More information about the ghc-devs mailing list