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

Bug 411981

Summary: dev-libs/glib-2.32.1 fails to configure when gnustep-base is installed: Foundation.h
Product: Gentoo Linux Reporter: Carlos Konstanski <ckonstanski>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: bugs+gentoo, ghutzl, gnustep, harrisl, jrmalaq, yamadharma
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=674172
Whiteboard:
Package list:
Runtime testing required: ---

Description Carlos Konstanski 2012-04-14 15:25:18 UTC
On a system that has gnustep-base installed, the file /usr/include/Foundation/Foundation.h exists. The glib configure scripts take the existence of this file to mean that the host is a Mac with Cocoa support. It then writes subsequent gcc command lines with -framework Foundation, which fails on Linux. The first failure is when it tries to compile a program to test for iconv_open(). The real reason this test fails is because the gcc command line is faulty.

Reproducible: Always

Steps to Reproduce:
1. Install gnustep-base
2. Attempt to install glib-2.32.1
Comment 1 Philipp Riegger 2012-04-15 10:58:00 UTC
Same here.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-16 01:18:20 UTC
*** Bug 412011 has been marked as a duplicate of this bug. ***
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-16 03:24:15 UTC
Thanks for reporting. Fixed in the glib-2.32.1 ebuild in cvs, patch submitted upstream at https://bugzilla.gnome.org/show_bug.cgi?id=674172

>  16 Apr 2012; Alexandre Rostovtsev <tetromino@gentoo.org> glib-2.32.1.ebuild,
>  +files/glib-2.32.1-gnustep-not-cocoa.patch:
>  Fix building on systems with gnustep-base installed (bug #411981, thanks to
>  Carlos Konstanski et al. for reporting).