Subject: pkg/15321: graphics/mplayer attempts to use Linux device names by default
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 01/21/2002 01:51:14
>Number: 15321
>Category: pkg
>Synopsis: graphics/mplayer attempts to use Linux device names by default
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 20 17:39:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: David Sainty
>Release: NetBSD 1.5X
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.5X NetBSD 1.5X (TEQUILA) #0: Sat Dec 1 17:24:03 NZDT 2001 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userD/NetBSD-tequila/src/sys/arch/i386/compile/TEQUILA i386
Architecture: i386
Machine: i386
>Description:
graphics/mplayer attempts to use /dev/dvd and /dev/cdrom, rather than
/dev/rcd0d and /dev/rcd0d. The default for NetBSD should be
different.
>How-To-Repeat:
mplayer -dvd 1
>Fix:
The package is i386 specific, so hard-coding the raw partition isn't
unreasonable...
--- /dev/null Mon Jan 21 01:24:52 2002
+++ graphics/mplayer/patches/patch-ai Mon Jan 21 01:38:19 2002
@@ -0,0 +1,16 @@
+--- configure.orig Mon Jan 21 01:18:04 2002
++++ configure Mon Jan 21 01:37:44 2002
+@@ -2894,9 +2894,12 @@
+
+ $_def_vcd
+
+-#ifdef sun
++#if defined(sun)
+ #define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
+ #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
++#elif defined(__NetBSD__)
++#define DEFAULT_CDROM_DEVICE "/dev/rcd0d"
++#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
+ #else
+ #define DEFAULT_CDROM_DEVICE "/dev/cdrom"
+ #define DEFAULT_DVD_DEVICE "/dev/dvd"
--- graphics/mplayer/distinfo.orig Wed Dec 26 13:58:04 2001
+++ graphics/mplayer/distinfo Mon Jan 21 01:38:57 2002
@@ -10,3 +10,4 @@
SHA1 (patch-af) = c2189af1b14f8f541242106c55d41827f8eec716
SHA1 (patch-ag) = bfbae41a30a7f0c9440ece02e3f2eadd1fca87a1
SHA1 (patch-ah) = 506cda70793d84342b035570b428cb7b566b622e
+SHA1 (patch-ai) = dbc11edb22d4c9c9279098f3942d7afc1dd48afe
>Release-Note:
>Audit-Trail:
>Unformatted: