The FreeBSD port multimedia/gstreamer uses automatic detection to declare an optional dependency. This causes problems for port and package management. 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:
Responsible Changed From-To: freebsd-ports-bugs->freebsd-multimedia Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed thanks! I just tweaked the desc a bit.
Author: kwm Date: Sat Sep 8 10:16:52 2012 New Revision: 303888 URL: http://svn.freebsd.org/changeset/ports/303888 Log: Convert automatic dependancy to OPTION PR: ports/170483 Submitted by: "A.J. Kehoe IV (Nanoman)" <9ya139x4@nanoman.ca> Modified: head/multimedia/gstreamer/Makefile Modified: head/multimedia/gstreamer/Makefile ============================================================================== --- head/multimedia/gstreamer/Makefile Sat Sep 8 10:10:19 2012 (r303887) +++ head/multimedia/gstreamer/Makefile Sat Sep 8 10:16:52 2012 (r303888) @@ -45,10 +45,13 @@ MAN1= gst-feedback-${GST_VERSION}.1 gst- gst-typefind-${GST_VERSION}.1 gst-xmlinspect-${GST_VERSION}.1 \ gst-xmllaunch-${GST_VERSION}.1 +OPTIONS_DEFINE= LIBCHECK +LIBCHECK_DESC= Unit tests support + .include <bsd.port.pre.mk> -.if (exists(${LOCALBASE}/lib/libcheck.a) || defined(WITH_CHECK)) -LIB_DEPENDS+= check.0:${PORTSDIR}/devel/libcheck +.if ${PORT_OPTIONS:MCHECK} +LIB_DEPENDS+= check:${PORTSDIR}/devel/libcheck PLIST_SUB+= CHECK="" .else CONFIGURE_ARGS+=--disable-check _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
kwm@FreeBSD.org wrote: > Synopsis: [patch] Correct multimedia/gstreamer Dependency Declaration > > State-Changed-From-To: open->closed > State-Changed-By: kwm > State-Changed-When: Sat Sep 8 10:16:46 UTC 2012 > State-Changed-Why: > Committed thanks! I just tweaked the desc a bit. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=170483 Thanks, kwm! "${PORT_OPTIONS:MCHECK}" should actually be "${PORT_OPTIONS:MLIBCHECK}", though. Either that, or change the name of the Check option from "LIBCHECK" to "CHECK".
On 17-9-2012 19:09, A.J. Kehoe IV (Nanoman) wrote: > kwm@FreeBSD.org wrote: >> Synopsis: [patch] Correct multimedia/gstreamer Dependency Declaration >> >> State-Changed-From-To: open->closed >> State-Changed-By: kwm >> State-Changed-When: Sat Sep 8 10:16:46 UTC 2012 >> State-Changed-Why: >> Committed thanks! I just tweaked the desc a bit. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=170483 > Thanks, kwm! "${PORT_OPTIONS:MCHECK}" should actually be > "${PORT_OPTIONS:MLIBCHECK}", though. Either that, or change the name of > the Check option from "LIBCHECK" to "CHECK". > Woops, fixed thanks!