Marc Baaden wrote: > Hi, > > this is a very practical question and I hope it's not off-topic. > I just switched from a Powerbook G4 to a MacBook Pro Intel and > in the process I had MacOSX transfer my data from old to new > computer. > Happily enough this did also apply to my fink installation, which > seems to be working fine (fink, xmgrace,..). Although this is > wonderful, it surprises me slightly. I would have expected to have > to re-compile part of the fink binaries for Intel. > So my question is: should I expect everything to be perfect and working > fine or is there a specific test to do or some maintenance program to > execute to ensure the transition is completed successfully? > > Thanks in advance, > Marc Baaden > -- > Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris > mailto:[EMAIL PROTECTED] - http://www.baaden.ibpc.fr > FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 > > Postdoc in Computational Biology available: > http://www.shaman.ibpc.fr/fonflon_postdoc.pdf > > > > You're right to be surprised. Fink (the distribution) doesn't support PowerPC -> Intel migration. The fink tool is just Perl scripts, so it isn't a binary, and your existing binaries may well work under Rosetta. On the other hand, dpkg, the package manager that we use, is going to complain whenever you do any kind of package operation whatsoever.
I recommend the following steps: 1) Capture a list of your installed packages, e.g. via: fink list -it | grep -v " p " | grep -v "\*i\*" | cut -f2 > ~/packagelist (this only picks up installed packages that have .info files present on the system) 2) Move any .info files that you have locally modified to a safe place as well as /sw/etc/fink.conf (and /sw/etc/apt/sources.list if you've added any repositories to that) 3) Remove Fink: "sudo rm -rf /sw" 3A) If you happen to have transferred a PowerPC version of X11 (check via "file /usr/X11R6/bin/XDarwinStartup") you'll want to remove that ("sudo rm -rf /etc/X11 /usr/X11R6 /Library/Receipts/X11*") and replace it with an Intel-compatible version from your Macbook's install media. 4) Install Fink from the Intel installer. 5) Put all of your local modifications (step 2, above) back in place. 6) Run a "fink selfupdate" 7) Reinstall the packages from the list you captured, eg. via a script like the following, which I have called "fink-restore" # !/bin/sh [ -z $1 ] && exec echo "usage: fink-restore FILENAME" RFILE=$1 if (test -f $RFILE) then cat $RFILE | xargs echo | xargs fink reinstall ; else echo $1" does not exist" fi Assuming you saved it under the same name (and used "chmod a+x <filename>" to make it executable, you could restore the package listings captured earlier as so: ./fink-restore ~/packagelist -- Alexander K. Hansen (akh) Fink Documenter ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users