rehanmajeed / apt-cyg

Automatically exported from code.google.com/p/apt-cyg
MIT License
0 stars 0 forks source link

Patch for /trunk/apt-cyg #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
cygwin mirrors have changed their dir structure recently to have x86 and x86_64 
subdirectories

Original issue reported on code.google.com by xprot...@gmail.com on 14 Aug 2013 at 10:20

GoogleCodeExporter commented 8 years ago
for those with Cygwin 32-bit on 64-bit machines, may get different results.  
'arch' shows i686 and uname -a is (CYGWIN_NT-6.1-WOW64 XXXXXX 1.7.16(0.262/5/3) 
2012-07-20 22:55 i686 Cygwin).

for contrast, new install of Cygwin64 gives correct output for arch and uname 
-a is (CYGWIN_NT-6.1 XXXXXX 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin)

Original comment by paul.cur...@gmail.com on 17 Sep 2013 at 2:25

GoogleCodeExporter commented 8 years ago
I prefer using 32-bit cygwin because not all packages are available in the 
64-bit edition.

On Windows 8.1, 32-bit cygwin returns the following values:

    arch: i686
    uname -a: CYGWIN_NT-6.3-WOW64 XXXXX 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin

On Windows 8.1, 64-bit cygwin returns the following values:

    arch: x86_64
    uname -a: CYGWIN_NT-6.3 SAMSUNG 1.7.27(0.271/5/3) 2013-12-09 11:54 x86_64 Cygwin

The returned values  for 32-bit Cygwin (i686) need te be converted (to x86) to 
get the right base package url.

Please add the following code below arch=`arch`, in case of 32-bit Cygwin it 
will add the correct string (x86) to the base mirror-url

    case "$arch" in
      "i686" )
        arch="x86"
      ;;
    esac

Original comment by he...@dijks.nl on 16 Jan 2014 at 11:06

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by i...@skl.me on 17 Feb 2014 at 7:30