[darcs-devel] [issue1476] Can't unpack Windows binary release with Cygwin unzip

Simon Marlow bugs at darcs.net
Wed Jun 3 09:07:53 UTC 2009


New submission from Simon Marlow <marlowsd at gmail.com>:

For some reason, when the Windows binary distribution is unzipped with 
Cygwin's unzip, the files are not made executable.

$ unzip darcs-2.2.1-win1.zip
Archive:  darcs-2.2.1-win1.zip
    creating: darcs-2.2.1-win1/
   inflating: darcs-2.2.1-win1/darcs.exe
   inflating: darcs-2.2.1-win1/libcurl.dll
   inflating: darcs-2.2.1-win1/libeay32.dll
   inflating: darcs-2.2.1-win1/libidn-11.dll
   inflating: darcs-2.2.1-win1/libssh2.dll
   inflating: darcs-2.2.1-win1/libssl32.dll
   inflating: darcs-2.2.1-win1/libz.dll
   inflating: darcs-2.2.1-win1/zlib1.dll
$ cd darcs-2.2.1-win1
$ ls -l
total 10724
-rw-rw-r-- 1 simonmar mkgroup-l-d 8093584 Feb 16 15:03 darcs.exe
-rw-rw-r-- 1 simonmar mkgroup-l-d  415744 Nov 25  2008 libcurl.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d 1537326 Oct 14  2008 libeay32.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d  286371 Nov 12  2008 libidn-11.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d  170496 Nov 15  2007 libssh2.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d  331742 Oct 14  2008 libssl32.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d   69632 Oct 15  2006 libz.dll
-rw-rw-r-- 1 simonmar mkgroup-l-d   69632 Oct 15  2006 zlib1.dll

It works if I use Windows' built-in unzip.  This seems to be specific to 
this zip file, if I unzip an older version of darcs I have lying around

$ unzip darcs.zip
Archive:  darcs.zip
   inflating: darcs.exe
$ ls -l darcs.exe
-rwxr-xr-x 1 simonmar mkgroup-l-d 9003999 Aug 20  2008 darcs.exe*

it is executable.

Obviously the workaround is easy: chmod +x *.exe *.dll

but this is just another bump in the road for Windows users, it would be 
nice to squash it.

Cheers,
	Simon

----------
messages: 7869
nosy: dmitry.kurochkin, kowey, marlowsd, simon, simonpj, thorkilnaur
status: unread
title: Can't unpack Windows binary release with Cygwin unzip

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1476>
__________________________________


More information about the darcs-devel mailing list