xboxscene.org forums

Author Topic: Quick Cygwin+opendevkits Reinstallation Method  (Read 77 times)

openxdkman

  • Archived User
  • Hero Member
  • *
  • Posts: 550
Quick Cygwin+opendevkits Reinstallation Method
« on: December 11, 2006, 01:48:00 AM »

9)Repair as (assembler command, needed to rebuild openxdk library, for example)
"ln -f -s -T /usr/bin/as /usr/i686-pc-cygwin/bin/as.exe"

Logged

cypherpunk

  • Archived User
  • Newbie
  • *
  • Posts: 6
Quick Cygwin+opendevkits Reinstallation Method
« Reply #1 on: February 19, 2007, 02:19:00 PM »

QUOTE(openxdkman @ Nov 2 2006, 08:42 AM) View Post

6) Fix the odd ].exe filename (I wonder what this thing is for...)
- rename cygwin\bin\_.exe into cygwin\bin\].exe


Probably you're referring to "[.exe" , not "].exe", right?  [ is an alias for test, so that in shell scripts you do

if [ -e somefile ]; then
 ...
fi

The [ is actually running [.exe and is synonymous with:

if test -e somefile; then
...
fi

QUOTE

...Now you will discover many symbolic links no longer work...
(I'm pretty sure an automatic program can be designed to fix all symbolic links)


Cygwin creates windows shortcut files (.lnk) for every symlink.  These .lnk files have hard-coded paths in them, so if you initially install to C:\cygwin, then restore to a different path (e.g. D:\cygwin) all your .lnk files will point to non-existant paths.

I work around this when making cygwin packages to distribute to many developers by doing:

C:\> mkdir c:\cygwin_install
C:\> subst X: c:\cygwin_install

Now install to X:\cygwin, package up X:\cygwin, and anyone that wants to use cygwin just needs to re-create the subst (pointing to any directory with space) and unpack to X:\

-Nathan
(logged in with standard 'cypherpunk' account to avoid hassle of creating one)
Logged

openxdkman

  • Archived User
  • Hero Member
  • *
  • Posts: 550
Quick Cygwin+opendevkits Reinstallation Method
« Reply #2 on: February 20, 2007, 01:48:00 AM »

Thanks for the "subst" tip.
But my initial installation was c:\cygwin, I reinstalled it in c:\cygwin, and links still stopped working.
So there is something "hidden" that doesn't survive a simple compress, burn, uncompress operation.
So, I doubt the "ln -f -s -T ..." trick can be avoided at all. Fortunately there aren't too many links to fix.
Logged

openxdkman

  • Archived User
  • Hero Member
  • *
  • Posts: 550
Quick Cygwin+opendevkits Reinstallation Method
« Reply #3 on: May 07, 2007, 05:36:00 AM »

10)Repair aclocal, autoconf & automake (needed to rebuild all openxdk from cvs with autogen.sh)
(check below if versions are appropriate for your cygwin version)
"rm /bin/aclocal.lnk"
"ln -f -s -T /bin/aclocal-1.9 /bin/aclocal"
"rm /bin/autoconf.lnk"
"ln -f -s -T /bin/autoconf-2.5x /bin/autoconf"
"rm /bin/automake.lnk"
"ln -f -s -T /bin/automake-1.9 /bin/automake"
"rm /bin/autom4te.lnk"
"ln -f -s -T /bin/autom4te-2.5x /bin/autom4te"
"rm /bin/autoheader.lnk"
"ln -f -s -T /bin/autoheader-2.5x /bin/autoheader"
"rm /bin/gunzip.lnk"
"ln -f -s -T /bin/gzip.exe /usr/bin/gunzip.exe"
Logged