On Jan 12, 2007, at 6:53 PM, Jack Howarth wrote:

>    I'm still unclear how we can leverage the architecture Shlibs
> field for the multilib build of the gcc42 package. The standard
> multilib installation for gcc is to have the shared libs installed
> for the default architecture (32-bit for Darwin) in lib/gcc4.2/lib
> and the secondary multilib (64-bit) libraries in a ppc64 or
> x64_64 subdirectory (at least I am assuming that Macintel uses
> the x64_64 subdirectory name).
>    The problem as I see it is that we need to expand the explicit
> list of shared libs to include the 64-bit ones in either ppc64
> or x64_64 subdirectories. This would require some mechanism to
> dynamically change the pathname in the Shlibs entries or some
> case mechanism that would allow a different list to be used
> for each architecture.
>               Jack
>

Dear Jack,

The Shlibs entries simply record some data about libraries which the  
package installs.  So, if your package installs a 32-bit library /sw/ 
lib/gcc4.2/lib/libgcc.1.dylib then the Shlibs entry for this would be

   %p/lib/gcc4.2/lib/libgcc.1.dylib 1.0.0 %n (>= 4.2) 32

(where 1.0.0 is the compatibility version and 4.2 is the package  
version).  If in addition the package installs a 64-bit library /sw/ 
lib/gcc4.2/lib/x86_64/libgcc.1.dylib on intel and /sw/lib/gcc4.2/lib/ 
ppc64/libgcc.1.dylib on powerpc, then the package should declare  
"Type: -64bit" and the Shlibs entry for this one would be

   %p/lib/gcc4.2/%lib/libgcc.1.dylib 1.0.0 %n (>= 4.2) 64

This one uses the new Fink abbreviation "%lib", which stands for "lib/ 
ppc64" on powerpc and "lib/x86_64" on intel, but only if "Type:  
-64bit" is declared.

Finally, if (as is the case, according to jfm's analysis of your  
package) some of the libraries installed by your package are "fat"  
32-64 bit libraries, they get stored in the same directory as the 32  
bit libraries and their Shlibs entry ends in 32-64.

Hope this clarifies things.

   -- Dave





-------------------------------------------------------------------------
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-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to