On 10/9/12 9:29 AM, Felix Frolow wrote:
> Due to necessity I have only Xcode 4.1 installed.
> On some stage during  upgrade of some packages FINK was trying to instill 
> gcc47 stuff. It failed due to missing dependency.
> I was attempting to delete stuff related to gcc47 and was asked to delete  
> some packages I use for my scientific work.

Typically packages that use a gcc4N to build link to its libraries, so
if you removed gcc47-shlibs then those had to be removed.

> But I still can' get read of "Can't resolve dependency "xcode (>= 4.5)" for 
> package "gcc47-4.7.2-1000" (no matching packages/versions found)
> Exiting with failure."

Right, because that is in the _gcc47_ package description.  Removing
other stuff isn't going to change that, nor change any dependency upon it.

> I have still  gcc4.2 installed. How can I use it again? Can I use it. 

Not without doing a _lot_ of local modifications.  As I said above, most
packages that use gcc47 link to it, so you would need to change their
package descriptions and rebuild them.
Also, gcc4.2 represents /usr/bin/gcc4.2 from Apple, only, and any
packages that use fortran require a gcc4N from Fink.

Why fink apropos gcc return so many gcc's:
> avr-gcc                   4.5.3-1             GNU GCC for ATMEL AVR micro 
> controllers
>      avr-libc                  1.7.1-2             AVR LIBC for GNU GCC & GNU 
> binutils
>      broken-gcc                3.3-1               [virtual package 
> representing a broken gcc compiler]
>      dragonegg-gcc45           3.1-1               Using LLVM as a GCC backend
>      dragonegg-gcc46           3.1-1               Using LLVM as a GCC backend
>      dragonegg-gcc47           3.1-1               Using LLVM as a GCC backend
>  i   gcc4.2                    4.2.1-5666          [virtual package 
> representing the gcc 4.2.1 compiler]
>      gcc46                     4.6.3-1000          GNU Compiler Collection 
> Version 4.6
>      gcc46-compiler            4.6.3-1000          Compiler Binaries for 
> gcc46.
>  i   gcc46-shlibs              4.6.3-1000          Shared libraries for gcc4
>      gcc47                     4.7.2-1000          GNU Compiler Collection 
> Version 4.7
>      gcc47-compiler            4.7.2-1000          Compiler Binaries for 
> gcc47.
>      gcc47-shlibs              4.7.2-1000          Shared libraries for gcc4
>  i   llvm-gcc                  4.2.1-2335.15.00    [virtual package 
> representing Apple's LLVM compiler]
>      m681x-gcc                 3.3.6-3             For Motorola 68hc11/12 
> micro controllers
>      msp430-gcc                4.6.3-20120406-1    GNU GCC for for Texas 
> Instruments MSP430 MCU
> 

"fink apropos gcc" matches 'gcc' in both the package names and descriptions.

> FF  
> Dr Felix Frolow   
> Professor of Structural Biology and Biotechnology, Department of Molecular 
> Microbiology and Biotechnology
> Tel Aviv University 69978, Israel
> 
> Acta Crystallographica F, co-editor
> 
> e-mail: [email protected]
> Tel:  ++972-3640-8723
> Fax: ++972-3640-9407
> Cellular: 0547 459 608
> 
> 

As a workaround, do the following:

1)

mkdir -p /sw/fink/dists/local/main/finkinfo
cp /sw/fink/dists/stable/main/finkinfo/languages/gcc47.*
/sw/fink/dists/local/main/finkinfo

2) Edit /sw/fink/dists/local/main/finkinfo/gcc47.info and make the
following changes:

1)  Remove xcode (>= 4.5) from the BuildDepends
2)  Increase the Revision to, say, 2000
3)  Verify that fink sees this gcc47 by using "fink dumpinfo -finfofile
gcc47"
4)  If so, then when you install anything that uses gcc47, fink will use
your local modification.

There are two caveats:

1) I can't guarantee whether the gcc47 package is fully functional when
built with Xcode 4.1.
2) If the maintainer releases a newer gcc-4.7.x, your local modification
will have to be updated accordingly.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to