Package: nexuiz
Version: 2.2.1-1
Severity: important
Tags: patch

Hi,

currently, (y)our package FTBFS on GNU/kFreeBSD since the makefile
thinks that it is building on BSD, whereas it is actually on
GNU/kFreeBSD. Therefore, a ``-ldl'' is missing.

The attached diff adds a test in the makefile to check whether the OS is
GNU/kFreeBSD before attempting to match BSD, in which case, everything
is done as if we were running Linux.

Unfortunately, I cannot test the binary before a week or two, but at
least the build runs fine.

Cheers,

-- 
Cyril Brulebois

PS: A FTBFS log is available.
http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=nexuiz&ver=2.2.1-1
--- nexuiz-build~/nexuiz-2.2.1/darkplaces/makefile      2006-12-25 
01:40:31.887202000 +0100
+++ nexuiz-build/nexuiz-2.2.1/darkplaces/makefile       2006-12-25 
01:42:13.000000000 +0100
@@ -9,6 +9,10 @@
 
 # UNIXes
 DP_ARCH:=$(shell uname)
+ifeq ($(DP_ARCH), GNU/kFreeBSD)
+       # same userspace as Linux, not a BSDish one
+       DP_MAKE_TARGET=linux
+else
 ifneq ($(filter %BSD,$(DP_ARCH)),)
        DP_MAKE_TARGET=bsd
 else
@@ -23,6 +27,7 @@
 endif  # ifeq ($(DP_ARCH), SunOS)
 endif  # ifeq ($(DP_ARCH), Darwin)
 endif  # ifneq ($(filter %BSD,$(DP_ARCH)),)
+endif  # ifeq ($(DP_ARCH), GNU/kFreeBSD)
 endif  # ifdef windir
 endif  # ifndef DP_MAKE_TARGET
 

Reply via email to