Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60580

Summary: Keyword: dev-libs/glib-1.2.10-r5
Product: Gentoo Linux Reporter: Robin Munn <rmunn>
Component: [OLD] LibraryAssignee: osx porters <osx>
Status: VERIFIED FIXED    
Severity: normal CC: clmason, gnome, hramrach
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 65272    
Bug Blocks: 61403, 61490, 63189, 63363    

Description Robin Munn 2004-08-16 12:24:05 UTC
The glib-1.2.10-r5 ebuild doesn't produce shared libraries on macos, because the ltconfig that's included in the glib-1.2.10.tar.gz tarball is version 1.3.4 and doesn't know about the "darwin" operating system type, so it defaults to ld_shlibs=no.

http://fink.sourceforge.net/files/ltconfig and http://fink.sourceforge.net/files/ltmain.sh do know about the darwin OS. When I replace the default ltconfig and ltmain.sh in the glib package with these, it compiles just fine *with* shared libraries, and everything's peachy.

What I did was download those two files to my home directory, then add the following three lines to my glib-1.2.10-r5 ebuild, right before the end of src_unpack():

        ewarn Replacing ltconfig and ltmain.sh with fink versions...
        cp /Users/rmunn/ltconfig ${S}
        cp /Users/rmunn/ltmain.sh ${S}

Obviously something more generic would need to go into the official ebuild.

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~macos" emerge -av =dev-libs/glib-1.2.10-r5
2.
3.

Actual Results:  
glib compiled and installed, but only with static libraries.

Expected Results:  
Both static and shared libraries should have installed. The fix I describe above
does indeed do this.

!!! Using `which gcc` to gcc locate version, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 20040726 (default-macos-10.3, gcc-3.3, unavailable, 7.5.0 Power
Macintosh powerpc)
=================================================================
System uname: 7.5.0 Power Macintosh powerpc
macos-20040726
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
Autoconf: 
Automake: 
Binutils: 
ACCEPT_KEYWORDS="macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs keepwork"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="macos apache2 jpeg"
Comment 1 foser (RETIRED) gentoo-dev 2004-08-16 13:34:47 UTC
up to osx to suggest an acceptable fix.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-23 12:45:46 UTC
How about putting ltmain.sh and ltconfig ('s diff) to ${PORTDIR}/eclass/ELT-patches/darwin and apply them if shared libraries are not created? (This is similar to what Fink, yet another Mac OS X package management system does)
Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-24 19:01:21 UTC
Depending on Gentoo/MacOS design issue: 65272
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-10 10:31:32 UTC
Fixed in CVS.
Comment 5 Roman Dilken 2004-11-03 06:16:28 UTC
there should be darwintoolize in the ebuild...
Comment 6 Hasan Khalil (RETIRED) gentoo-dev 2005-02-06 13:33:04 UTC
Closing out bugs that've been resolved for a while now...