From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 22 21:30:19 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 003EB16A41F for ; Sat, 22 Oct 2005 21:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84C0443D45 for ; Sat, 22 Oct 2005 21:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9MLUI9r014231 for ; Sat, 22 Oct 2005 21:30:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9MLUHtC014230; Sat, 22 Oct 2005 21:30:17 GMT (envelope-from gnats) Resent-Date: Sat, 22 Oct 2005 21:30:17 GMT Resent-Message-Id: <200510222130.j9MLUHtC014230@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, Simun Mikecin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC72816A41F for ; Sat, 22 Oct 2005 21:22:38 +0000 (GMT) (envelope-from sime@data.home.hr) Received: from data.home.hr (dh79-11.xnet.hr [83.139.79.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1684443D46 for ; Sat, 22 Oct 2005 21:22:37 +0000 (GMT) (envelope-from sime@data.home.hr) Received: by data.home.hr (Postfix, from userid 34062) id 6F11B600A5; Sat, 22 Oct 2005 23:22:36 +0200 (CEST) Message-Id: <20051022212236.6F11B600A5@data.home.hr> Date: Sat, 22 Oct 2005 23:22:36 +0200 (CEST) From: Simun Mikecin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: riggs@rrr.de Subject: ports/87853: [fix] multimedia/mplayer: no bsdbt848 driver compiled in X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Simun Mikecin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2005 21:30:19 -0000 >Number: 87853 >Category: ports >Synopsis: [fix] multimedia/mplayer: no bsdbt848 driver compiled in >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Oct 22 21:30:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD 6.0-RC1 amd64 >Organization: >Environment: System: FreeBSD data.home.hr 6.0-RC1 FreeBSD 6.0-RC1 #0: Thu Oct 20 19:50:48 CEST 2005 root@data.home.hr:/var/obj/usr/src/sys/DATA amd64 >Description: On recent FreeBSD installing multimedia/mplayer port doesn't compile-in bsdbt848 driver. Cause for this is in the mplayer's 'configure' script that uses the following code to autodetect the presense of the system bt848 driver: if defined(__NetBSD__) #include #else #include #endif On FreeBSD /usr/include/machine/ioctl_bt848.h is replaced with /usr/include/dev/bktr/ioctl_bt848.h, so 'configure' script doesn't find it. Be warned that if you upgraded your FreeBSD installation from the older version, you will still have /usr/include/machine/ioctl_bt848.h installed on your system (make installworld doesn't delete old files) and configure script will not need patching to be able to find the system bt848 driver. In the fix section I attached a patched 'files/patch-ad' file. >How-To-Repeat: On the clean newer FreeBSD installation do: cd /usr/ports/multimedia/mplayer && make install clean mplayer tv:// -tv driver=bsdbt848 >Fix: diff -urN mplayer.orig/files/patch-ad mplayer/files/patch-ad --- mplayer.orig/files/patch-ad Wed Oct 5 14:14:14 2005 +++ mplayer/files/patch-ad Sat Oct 22 23:07:43 2005 @@ -1,5 +1,5 @@ --- configure.orig Wed Apr 13 13:46:35 2005 -+++ configure Tue Sep 27 21:31:54 2005 ++++ configure Sat Oct 22 23:07:27 2005 @@ -29,9 +29,9 @@ echo >> "$TMPLOG" cat "$TMPC" >> "$TMPLOG" @@ -12,6 +12,15 @@ TMP="$?" echo >> "$TMPLOG" echo "ldd $TMPO" >> "$TMPLOG" +@@ -346,7 +346,7 @@ + --with-livelibdir=DIR LIVE.COM Streaming Media libraries in DIR + --with-toolamedir=DIR path to Toolame library and include file + --with-xmmsplugindir=DIR XMMS plugins in DIR +- --with-xmmslibdir=DIR libxmms.so.1 in DIR ++ --with-xmmslibdir=DIR libxmms.so in DIR + --with-bio2jack=DIR libbio2jack.a in DIR + --with-cdparanoiaincdir=DIR cdparanoia headers in DIR (*) + --with-cdparanoialibdir=DIR cdparanoia libraries (libcdda_*) in DIR (*) @@ -369,7 +369,7 @@ @@ -161,6 +170,24 @@ #error We do not support old versions of x264. Get the latest from SVN. #endif int main(void) { x264_encoder_open((void*)0); return 0; } +@@ -6118,7 +6057,7 @@ + #if defined(__NetBSD__) + #include + #else +-#include ++#include + #endif + int main(void) { return 0; } + EOF +@@ -6323,7 +6262,7 @@ + if darwin ; then + _xmms_lib="${_xmmslibdir}/libxmms.dylib" + else +- _xmms_lib="${_xmmslibdir}/libxmms.so.1 -export-dynamic" ++ _xmms_lib="${_xmmslibdir}/libxmms.so -export-dynamic" + fi + else + _def_xmms='#undef HAVE_XMMS' @@ -6477,7 +6416,7 @@ fi _stripbinaries=no @@ -205,3 +232,25 @@ fi if test "$_lirc" = yes ; then _def_lirc='#define HAVE_LIRC 1' +@@ -7282,8 +7222,8 @@ + #define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0" + #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE + #elif defined(HPUX) +-#define DEFAULT_CDROM_DEVICE "/dev/cdrom" +-#define DEFAULT_DVD_DEVICE "/dev/dvd" ++#define DEFAULT_CDROM_DEVICE "/dev/acd0" ++#define DEFAULT_DVD_DEVICE "/dev/acd0" + #elif defined(WIN32) + #define DEFAULT_CDROM_DEVICE "D:" + #define DEFAULT_DVD_DEVICE "D:" +@@ -7294,8 +7234,8 @@ + #define DEFAULT_CDROM_DEVICE "/dev/rcd0a" + #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE + #else +-#define DEFAULT_CDROM_DEVICE "/dev/cdrom" +-#define DEFAULT_DVD_DEVICE "/dev/dvd" ++#define DEFAULT_CDROM_DEVICE "/dev/acd0" ++#define DEFAULT_DVD_DEVICE "/dev/acd0" + #endif + + >Release-Note: >Audit-Trail: >Unformatted: