From owner-freebsd-ports-bugs@FreeBSD.ORG  Fri Apr 18 23:20:01 2014
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 3F4CA8E0
 for <freebsd-ports-bugs@smarthost.ysv.freebsd.org>;
 Fri, 18 Apr 2014 23:20:01 +0000 (UTC)
Received: from freefall.freebsd.org (freefall.freebsd.org
 [IPv6:2001:1900:2254:206c::16:87])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 1A8F31B36
 for <freebsd-ports-bugs@smarthost.ysv.freebsd.org>;
 Fri, 18 Apr 2014 23:20:01 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
 by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3INK0Un037417
 for <freebsd-ports-bugs@freefall.freebsd.org>; Fri, 18 Apr 2014 23:20:00 GMT
 (envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
 by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3INK0gX037416;
 Fri, 18 Apr 2014 23:20:00 GMT (envelope-from gnats)
Resent-Date: Fri, 18 Apr 2014 23:20:00 GMT
Resent-Message-Id: <201404182320.s3INK0gX037416@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-ports-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Lukes <dan@obluda.cz>
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id D9256725
 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 18 Apr 2014 23:12:48 +0000 (UTC)
Received: from m9-64.freebsd.cz (m9-64.freebsd.cz [195.113.20.201])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D9891AF6
 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 18 Apr 2014 23:12:47 +0000 (UTC)
Received: from m9-64.freebsd.cz (localhost [127.0.0.1])
 by m9-64.freebsd.cz (8.14.5/8.14.5) with ESMTP id s3INCi7h082610
 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 2014 01:12:44 +0200 (CEST)
 (envelope-from dan@m9-64.freebsd.cz)
Received: (from root@localhost)
 by m9-64.freebsd.cz (8.14.5/8.14.5/Submit) id s3INCiNe082609;
 Sat, 19 Apr 2014 01:12:44 +0200 (CEST) (envelope-from dan)
Message-Id: <201404182312.s3INCiNe082609@m9-64.freebsd.cz>
Date: Sat, 19 Apr 2014 01:12:44 +0200 (CEST)
From: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@freebsd.org
X-Send-Pr-Version: 3.113
Subject: ports/188778: [ patch ] net/asterisk11 unpublished dependency to
 multimedia/libv4l and multimedia/ffmpeg
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Dan Lukes <dan@obluda.cz>
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-ports-bugs>, 
 <mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
 <mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Apr 2014 23:20:01 -0000


>Number:         188778
>Category:       ports
>Synopsis:       [ patch ] net/asterisk11 unpublished dependency to multimedia/libv4l and multimedia/ffmpeg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 18 23:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 9.1-RELEASE-p11 amd64
>Organization:
Obludarium
>Environment:
System: FreeBSD 9.1-RELEASE-p11 #4 r264285M
$FreeBSD: head/net/asterisk11/Makefile 347920 2014-03-11 20:22:39Z

>Description:
	There is no problem as long as no multimedia/libv4l and multimedia/ffmpeg is
installed during compilation. If present, they are autodetected by Asterisk and used,
but dependencies are not recorded. 
>How-To-Repeat:
	Compile multimedia/libv4l and multimedia/ffmpeg, then net/asterisk11 package.
Move asterisk package to another computer with no multimedia/libv4l and multimedia/ffmpeg
installed. Check
ldd /usr/local/lib/asterisk/modules/res_rtp_asterisk.so

>Fix:

	Disable libv4l and ffmpeg autodetection.

 --- patch-Asterisk begins here ---
--- net/asterisk11/Makefile.orig	2014-04-17 20:04:11.000000000 +0200
+++ net/asterisk11/Makefile	2014-04-19 00:51:38.000000000 +0200
@@ -21,6 +21,8 @@
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-gsm=${LOCALBASE} --with-uuid=${LOCALBASE}
+CONFIGURE_ARGS+=--with-ffmpeg=no
+EXTRA_PATCHES+= ${FILESDIR}/extra-DAN-noffmpeg
 LDFLAGS+=	-L${LOCALBASE}/lib
 CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/openh323
 CFLAGS+=	-I${LOCALBASE}/include
 --- patch-Asterisk ends here ---

 --- net/asterisk11/files/extra-DAN-noffmpeg begins here ---
--- res/Makefile.orig	2014-01-13 22:45:35.000000000 +0100
+++ res/Makefile	2014-04-19 00:43:29.000000000 +0200
@@ -75,7 +75,7 @@
 	rm -f pjproject/build.mak
 
 pjproject/build.mak: pjproject/aconfigure
-	(cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec)
+	(cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec --disable-ffmpeg --disable-v4l2)
 
 ifneq ($(findstring $(MAKECMDGOALS),all),)
 -include pjproject/build.mak
 --- extra-DAN-noffmpeg ends here ---


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