This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITP] busybox 1.23.2-1
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin-apps at cygwin dot com
- Date: Sat, 27 Jun 2015 17:13:06 +0200
- Subject: Re: [ITP] busybox 1.23.2-1
- Authentication-results: sourceware.org; auth=none
- References: <20150626084405 dot GQ31223 at calimero dot vinschen dot de> <1249775739558d38eb7bd2e6 dot 92454804 at email dot t-online dot de> <87si9eqqlo dot fsf at Rainer dot invalid> <558DB8F2 dot 9030000 at t-online dot de> <87twttblps dot fsf at Rainer dot invalid>
Achim Gratz wrote:
Christian Franke writes:
(On NTFS. A copy to a USB flash drive with a FAT will grow the
non-standalone version to ~10MB due to the many small symlink files).
I was mostly interested in the download size.
Most space is used by cygwin1.dll itself.
busybox.exe with all working features enabled is ~600MB (bash:
~700MB). Removing the daemons, other rarely used commands and some
features could reduce it to 300-350MB. I did't test LTO build which
could further reduce size.
Did you just swap MB for kB or what sizes are you talking about there?
KB :-)
For a minimal install-system we should be able to compress everything
using UPX.
For some reason, UPX breaks fork:
$ ./busybox ash -c '/bin/echo OK'
OK
$ upx busybox.exe
...
File size Ratio Format Name
-------------------- ------ ----------- -----------
605184 -> 353792 58.46% win64/pe busybox.exe
...
$ ./busybox ash -c '/bin/echo OK'
1 [main] busybox 4340 fork: child -1 - forked process 3076 died
unexpectedly, retry 0, exit code 0xC0000005, errno 11
ash: can't fork
Adding --compress-resources=0 --strip-relocs=0 does not help.
No such problem when packing dash or bash. Hmm....
Christian