Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 15:50:41 +0900 (JST)
From:      Hiroto Kagotani <hiroto.kagotani@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@freebsd.org
Subject:   [PATCH] devel/gobject-introspection: configure fails when gcc46 is installed
Message-ID:  <201302270650.r1R6ofV5019595@serv52.infsys.cne.okayama-u.ac.jp>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Hiroto Kagotani
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/gobject-introspection: configure fails when gcc46 is installed
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 9.0-RELEASE-p3 amd64
>Environment:
System: FreeBSD myhost.mydomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012
>Description:
lang/gcc46 (and maybe other gcc's) installs its own libffi.so in
/usr/local/lib/gcc46.  Although this library is found by lib-depends
(or ldconfig -r) in bsd.ports.mk, but the configure script for
gobject-introspection searchs for it in /usr/local/lib and fails.

[DESCRIBE CHANGES]

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
Install lang/gcc46.
Make sure devel/libffi is NOT installed.
Do "make configure" in devel/gobject-introspection.

>Fix:
This fix is just a workaround.
When gcc46 (or 47) port installs newer libffi, the same problem will occur.

--- gobject-introspection-0.10.8_3.patch begins here ---
diff -ruN --exclude=CVS ../gobject-introspection.orig/Makefile ./Makefile
--- ../gobject-introspection.orig/Makefile	2013-01-29 09:50:15.000000000 +0900
+++ ./Makefile	2013-02-27 15:33:35.000000000 +0900
@@ -16,7 +16,7 @@
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	Generate interface introspection data for GObject libraries
 
-LIB_DEPENDS=	ffi:${PORTSDIR}/devel/libffi
+LIB_DEPENDS=	ffi.6:${PORTSDIR}/devel/libffi
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
--- gobject-introspection-0.10.8_3.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302270650.r1R6ofV5019595>