ports/170434: [patch] Correct devel/py-gobject Dependency Declaration
A.J. Kehoe IV (Nanoman)
q8y7cosz at nanoman.ca
Tue Aug 7 00:50:04 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list