Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 00:42:31 GMT
From:      "A.J. Kehoe IV (Nanoman)" <q8y7cosz@nanoman.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170434: [patch] Correct devel/py-gobject Dependency Declaration
Message-ID:  <201208070042.q770gVws007405@red.freebsd.org>
Resent-Message-ID: <201208070050.q770o4Hu051147@freefall.freebsd.org>

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

>Number:         170434
>Category:       ports
>Synopsis:       [patch] Correct devel/py-gobject Dependency Declaration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 00:50:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     A.J. Kehoe IV (Nanoman)
>Release:        9.0
>Organization:
Nanoman's Company
>Environment:
FreeBSD localhost 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The FreeBSD port devel/py-gobject uses automatic detection to declare an optional dependency.  This causes problems for port and package management.
>How-To-Repeat:

>Fix:
I've attached a patch that corrects this by using the method suggested in the FreeBSD Porter's Handbook on the "Dependencies" page under "Problems Caused by Automatic Dependencies":

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html

Patch attached with submission follows:

--- ports/devel/py-gobject/Makefile.old	2012-06-01 01:17:46.000000000 -0400
+++ ports/devel/py-gobject/Makefile	2012-08-06 20:37:37.927653000 -0400
@@ -37,9 +37,12 @@
 CONFLICTS=	py*-gtk-0*
 PLIST_SUB=	PYTHON_VER="${PYTHON_VER}"
 
+OPTIONS_DEFINE=	LIBFFI
+LIBFFI_DESC=	Enable libffi support
+
 .include <bsd.port.pre.mk>
 
-.if exists(${LOCALBASE}/lib/libffi.so)
+.if ${PORT_OPTIONS:MLIBFFI}
 LIB_DEPENDS+=	ffi.5:${PORTSDIR}/devel/libffi
 CONFIGURE_ARGS+=--with-ffi
 .else


>Release-Note:
>Audit-Trail:
>Unformatted:



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