Package: xulrunner
Version: 1.9.1.3-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current experimental version fails to build on GNU/kFreeBSD.
It needs small changes to debian packaging and to sources.
Please find attached patch with them.
It would also be nice if you can ask upstream
to include source changes.
Thanks in advance
Petr
diff -u xulrunner-1.9.1.3/debian/control xulrunner-1.9.1.3/debian/control
--- xulrunner-1.9.1.3/debian/control
+++ xulrunner-1.9.1.3/debian/control
@@ -30,8 +30,8 @@
libdbus-glib-1-dev,
libsqlite3-dev (>= 3.6),
liblcms1-dev,
- libasound2-dev,
- libiw-dev,
+ libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
+ libiw-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
zip,
xvfb,
xfonts-base,
only in patch2:
unchanged:
--- xulrunner-1.9.1.3.orig/media/libsydneyaudio/src/Makefile.in
+++ xulrunner-1.9.1.3/media/libsydneyaudio/src/Makefile.in
@@ -45,6 +45,12 @@
LIBRARY_NAME = sydneyaudio
FORCE_STATIC_LIB= 1
+ifneq (,$(filter DragonFly FreeBSD GNU_% NetBSD OpenBSD,$(OS_ARCH)))
+CSRCS = \
+ sydney_audio_oss.c \
+ $(NULL)
+endif
+
ifeq ($(OS_ARCH),Linux)
CSRCS = \
sydney_audio_alsa.c \
only in patch2:
unchanged:
--- xulrunner-1.9.1.3.orig/media/liboggplay/src/liboggplay/std_semaphore.h
+++ xulrunner-1.9.1.3/media/liboggplay/src/liboggplay/std_semaphore.h
@@ -74,7 +74,7 @@
* @retval non-zero on error
*/
-#if defined(linux) || defined(SOLARIS)
+#if defined(linux) || defined(SOLARIS) || defined(__GLIBC__)
#include <semaphore.h>
#define SEM_CREATE(p,s) sem_init(&(p), 1, s)
#define SEM_SIGNAL(p) sem_post(&(p))