ports/112739: midimountain doesn't work as patched

Devon H. O'Dell devon.odell at gmail.com
Thu May 17 17:50:15 UTC 2007


>Number:         112739
>Category:       ports
>Synopsis:       midimountain doesn't work as patched
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 17:50:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Devon H. O'Dell
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD dho.coyotepoint.com 6.2-STABLE FreeBSD 6.2-STABLE #4: Sat May  5 14:08:20 EDT 2007     dho at dho.coyotepoint.com:/usr/obj/usr/src/sys/SMP  i386

>Description:
MIDI Mountain is a MIDI sequencer in the ports collection. As built, it will not work as it tries to open /dev/music to determine the number of available MIDI inputs. This entry doesn't exist on FreeBSD and MIDI Mountain throws the error:

``Error determining the number of MIDI inputs''

The attached file should replace patch-midimountain::mcOSSIO.cpp and corrects this issue.
>How-To-Repeat:
Build and run MIDI Mountain from ports
>Fix:


Patch attached with submission follows:

--- mcOSSIO.cpp	Tue Oct 23 23:19:14 2001
+++ mcOSSIO.cpp	Thu May 17 13:23:05 2007
@@ -1,17 +1,18 @@
 //=============================================================================
 // implementation class midi IO
 //=============================================================================
-#include <linux/soundcard.h>
+#include <sys/soundcard.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <string.h>
 #include <iostream.h>
 #include <mcOSSIO.h>
+#include <iomanip>
 
 
 // define static variables:
-const char* TMidiOSSIO::sequencer       = "/dev/music";
+const char* TMidiOSSIO::sequencer       = "/dev/music0";
 int    TMidiOSSIO::class_count          =  0;
 uchar  TMidiOSSIO::midi_write_packet[4] = {SEQ_MIDIPUTC, 0, 0, 0};
 uchar  TMidiOSSIO::midi_read_packet[4];
@@ -464,7 +465,7 @@
 					break;
 
 				default:
-					cout << "unknown EV_TIMING" << hex << buf[i+1];
+					cout << "unknown EV_TIMING" << std::hex << buf[i+1];
 					break;
 				}
 				i += 8;

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



More information about the freebsd-ports-bugs mailing list