[ecasound] specifics of the FreeBSD port

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [ecasound] specifics of the FreeBSD port
From: The Anarcat (anarcat_AT_anarcat.dyndns.org)
Date: Tue Nov 20 2001 - 19:47:39 EET


Hi!

I'm in the process of getting ecawave in the FreeBSD ports tree. In the
making, I found problems in kvutils temporary file/dir creation code. I
just submitted patches to FreeBSD to upgrade ecasound from 2.0.2 to
2.0.3 and to fix those problems.

I also sent a port of ecawave 0.4.1.

Please note that ecasound now needs 2 new patches to compile properly on
FreeBSD, the first:

--- libecasound/audioio-wave.h.orig Mon Nov 19 14:02:42 2001
+++ libecasound/audioio-wave.h Mon Nov 19 14:02:55 2001
@@ -3,7 +3,7 @@
 
 #include <string>
 #include <iostream>
-#include <stdint.h>
+/* #include <stdint.h> */
 #include <sys/types.h>
 
 #include "audioio-types.h"

is strange. I do not know what this header (stdint) is, but it's not on
FreeBSD. Ecasound compiles fine without it. This should probably be:

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

and make the configure script detect stdint.h.

The second patch is to have ecawave working again on FreeBSD. It makes
more debugging info available and removes a check on group ownership:

--- kvutils/temporary_file_directory.cpp.orig Thu Mar 22 13:08:50 2001
+++ kvutils/temporary_file_directory.cpp Tue Nov 20 03:42:09 2001
@@ -64,7 +64,7 @@
     }
   }
   else {
-// cerr << "(kvutils) " << "mkdir(" << tdir_rep << ") failed" << endl;
+ cerr << "(kvutils) " << "mkdir(" << tdir_rep << ") failed" << endl;
     valid_rep = false;
   }
 }
@@ -97,32 +97,32 @@
 
   if (statbuf.st_uid != geteuid()) {
     valid_rep = false;
-// cerr << "(kvutils) " << "st_uid doesn't match." << endl;
+ cerr << "(kvutils) " << "st_uid doesn't match." << endl;
   }
 
- if (statbuf.st_gid != getegid()) {
- valid_rep = false;
-// cerr << "(kvutils) " << "st_gid doesn't match." << endl;
- }
+ //if (statbuf.st_gid != getegid()) {
+ //valid_rep = false;
+ //cerr << "(kvutils) " << "st_gid doesn't match." << endl;
+ //}
 
   if (!S_ISDIR(statbuf.st_mode)) {
     valid_rep = false;
-// cerr << "(kvutils) " << "st_mode - not a directory." << endl;
+ cerr << "(kvutils) " << "st_mode - not a directory." << endl;
   }
 
   if (S_ISLNK(statbuf.st_mode)) {
     valid_rep = false;
-// cerr << "(kvutils) " << "st_mode - a symbolic link." << endl;
+ cerr << "(kvutils) " << "st_mode - a symbolic link." << endl;
   }
 
   if ((statbuf.st_mode & S_IRWXG) > 0) {
     valid_rep = false;
-// cerr << "(kvutils) " << "st_mode - group has access." << endl;
+ cerr << "(kvutils) " << "st_mode - group has access." << endl;
   }
 
   if ((statbuf.st_mode & S_IRWXO) > 0) {
     valid_rep = false;
-// cerr << "(kvutils) " << "st_mode - others have access." << endl;
+ cerr << "(kvutils) " << "st_mode - others have access." << endl;
   }
 }
 

I hope these can be merged in a future release of ecasound so that it
will compile again out of the box on FreeBSD!

Note: ecawave needs some configure hacks to detect FreeBSD's Qt2
properly and an installed ecasound. In other words:

CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib -lqt2 ${LDFLAGS}" \
                CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
                CXXFLAGS="-I${LOCALBASE}/include ${CXXFLAGS}"

I hope this can go away soon too. :)

A.

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Nov 20 2001 - 19:41:08 EET