Firefox 3.5 patches

Zach Metzinger zmetzing at pobox.com
Wed Jul 1 22:46:47 UTC 2009


On Wed, Jul 01, 2009 at 04:41:35PM -0500, Zach Metzinger wrote:
> 
> Here ya go. I was able to build firefox-3.5 with these patches on a 7.0 box

Doh! Crashes on video due to sem_init(.., 1, ..) not supported. Revised 
patches. Beware, the video is still horrifically slow on my machine. I
think I have ffox/gtk/cairo misconfigured w.r.t MIT-SHM so it's trying to
shove all the video data over the X11 socket instead of a shared memory
segment. More in-depth investigation is required.

--- Zach
-------------- next part --------------
--- media/libsydneyaudio/src/Makefile.in+	2009-07-01 15:05:24.000000000 -0500
+++ media/libsydneyaudio/src/Makefile.in	2009-07-01 15:05:49.000000000 -0500
@@ -45,6 +45,12 @@
 LIBRARY_NAME	= sydneyaudio
 FORCE_STATIC_LIB= 1
 
+ifeq ($(OS_ARCH),FreeBSD)
+CSRCS		= \
+		sydney_audio_oss.c \
+		$(NULL)
+endif
+
 ifeq ($(OS_ARCH),Linux)
 CSRCS		= \
 		sydney_audio_alsa.c \
--- media/liboggz/include/oggz/oggz_off_t_generated.h+	2009-07-01 16:37:12.000000000 -0500
+++ media/liboggz/include/oggz/oggz_off_t_generated.h	2009-07-01 16:37:38.000000000 -0500
@@ -59,7 +59,7 @@
 
 #include <sys/types.h>
 
-#if defined(__APPLE__) || defined(SOLARIS)
+#if defined(__APPLE__) || defined(SOLARIS) || defined(__FreeBSD__)
 typedef off_t oggz_off_t;
 #else
 typedef loff_t oggz_off_t;
--- media/liboggplay/src/liboggplay/std_semaphore.h.orig	2009-06-29 11:15:03.000000000 -0500
+++ media/liboggplay/src/liboggplay/std_semaphore.h	2009-07-01 17:27:41.000000000 -0500
@@ -81,6 +81,13 @@
 #define SEM_WAIT(p)     sem_wait(&(p))
 #define SEM_CLOSE(p)    sem_destroy(&(p))
 typedef sem_t           semaphore;
+#elif defined(__FreeBSD__)
+#include <semaphore.h>
+#define SEM_CREATE(p,s) sem_init(&(p), 0, s)
+#define SEM_SIGNAL(p)   sem_post(&(p))
+#define SEM_WAIT(p)     sem_wait(&(p))
+#define SEM_CLOSE(p)    sem_destroy(&(p))
+typedef sem_t           semaphore;
 #elif defined(WIN32)
 #include <windows.h>
 #define SEM_CREATE(p,s) (!(p = CreateSemaphore(NULL, (long)(s), (long)(s), NULL)))


More information about the freebsd-gecko mailing list