makeself
makeself copied to clipboard
very small run file 'unexpected end of file'
(from a fresh pull on github...)
Trying to debug an issue with small .run files, I made a very small run file, with only a simple small setup.sh in there.
./makeself creates the .run file successfully.
Header is 498 lines long
About to compress 20 KB of data...
Adding files to archive named "/home/erikb/Desktop/ok.run"...
./
./setup.sh
CRC: 1463274277
MD5: 9ecfdabf8e98605753dea465bd67aa6b
Self-extractible archive "/home/erikb/Desktop/ok.run" successfully created.
However, when I try to run the resultant .run....
Verifying archive integrity... All good.
Uncompressing OKTHEN 100%
gzip: stdin: unexpected end of file
Extraction failed.
Signal caught, cleaning up
Mmh, I wonder if this may be related to the code that shows the progress of the extraction.
Had the same issue. Confirmed that specifying --noprogress allows everything to work smoothly.
Hi megastep! Had the same issue. Confirmd that specifying --quiet or --noprogress shows everything to work smoothly. More elegant way to solve this bug?
GNU bash,版本 4.2.24(1)-release-(x86_64-pc-linux-gnu) kernel: 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Does this only happen with very small archives ?
Thank you for your reply first£¡ Indeed this error happen with very small archives, but I don't know why!
2012/10/9 Stephane Peter [email protected]
Does this only happen with very small archives ?
¡ª Reply to this email directly or view it on GitHubhttps://github.com/megastep/makeself/issues/9#issuecomment-9247009.
ÂæÖ¾»Ô
I merged some patches lately that may have addressed this issue. Can you check with the current code?
Using latest code from repo, appears to still be an issue, but only when using --lsm option.
user@machine:code $ makeself.sh --noprogress --nox11 --copy --lsm package/package.lsm package/ test.sh "Test" ./install.sh
Header is 511 lines long
About to compress 24 KB of data...
Adding files to archive named "test.sh"...
a .
a ./files.tgz
a ./install.sh
a ./package.lsm
CRC: 421935829
MD5: d79aa82261ba456aa933f0566ba7c570
Self-extractable archive "test.sh" successfully created.
user@machine:code $ ./test.sh --help
./test.sh: line 518: syntax error: unexpected end of file
However, when not using the --lsm option:
user@machine:code $ makeself.sh --noprogress --nox11 --copy package/ test.sh "Test" ./install.sh
Header is 501 lines long
WARNING: Overwriting existing file: test.sh
About to compress 24 KB of data...
Adding files to archive named "test.sh"...
a .
a ./files.tgz
a ./install.sh
a ./package.lsm
CRC: 4162682684
MD5: cb6418437813495f10a3e3df66ec56aa
Self-extractable archive "test.sh" successfully created.
user@machine:code $ ./test.sh --help
Makeself version 2.2.0
...
Is this still an issue?
makeself --noprogress --gzip --nomd5 --nocrc
yes ,when I am trying Makeself in Ubuntu 14.04. Same issue is got in other machine like ubuntu 12.04 its working properly only on 14.04 its gives the error .
Verfiying archive integrity... All good.
Uncompressing test_make 100%
gzip: stdin: unexpected end of file
Extraction failed.
Signal caught, cleaning up
Please check if this is still an issue in v2.5.0 - I made some fixes to this area of the code recently.
New user of makeself. Thank you for this project! However, I am sorry to say that the same error happens with v2.5.0. Linux mint 21. Trying long and short scripts, tried -noprogress --gzip --nomd5 --nocrc
(or just the last two options) but the result is always:
gzip: stdin: unexpected end of file ... Decompression failed. ... Extraction failed. Signal caught, cleaning up
Thank you!