Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 17:46:37 -0500
From:      Zach Metzinger <zmetzing@pobox.com>
To:        gecko@FreeBSD.org
Cc:        cscvrp@gmail.com
Subject:   Re: Firefox 3.5 patches
Message-ID:  <20090701224637.GB95322@raster>
In-Reply-To: <20090701214135.GA95322@raster>
References:  <20090701214135.GA95322@raster>

next in thread | previous in thread | raw e-mail | index | archive | help

--tsOsTdHNUZQcU9Ye
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--tsOsTdHNUZQcU9Ye
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="firefox-3.5-fbsd-patches"

--- 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)))

--tsOsTdHNUZQcU9Ye--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090701224637.GB95322>