Package: erlang
Version: 1:10.b.7-1
Severity: important
Tags: patch

Hi,

erlang fails to build on GNU/kFreeBSD because of wrong checks in the
configure file. It detects the Linux kernel instead of detecting GNU
libc. Please find attached a patch to fix that. It would be nice if you
could apply it in the next upload.

Thanks in advance,
Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages erlang depends on:
ii  debianutils             2.15.2           Miscellaneous utilities specific t
ii  dpkg                    1.13.11+kfreebsd package maintenance system for Deb
ii  erlang-base             1:10.b.7-1+kbsd  Erlang base system (virtual machin
ii  tk8.4                   8.4.11-1         Tk toolkit for Tcl and X11, v8.4 -

erlang recommends no packages.

-- no debconf information
Author: aurel32
Status: in BTS

diff -u erlang-10.b.7/erts/configure.in erlang-10.b.7/erts/configure.in
--- erlang-10.b.7/erts/configure.in
+++ erlang-10.b.7/erts/configure.in
@@ -69,7 +69,7 @@
 AC_CONFIG_HEADER($host/config.h:config.h.in 
include/internal/$host/ethread_header_config.h:include/internal/ethread_header_config.h.in)
 
 case $host_os in
-       linux*)  AC_DEFINE(_GNU_SOURCE, 1, \
+       *gnu*)  AC_DEFINE(_GNU_SOURCE, 1, \
 [Define if you want to turn on some gnu features.]) ;;
        *) ;;
 esac
@@ -464,7 +464,7 @@
        ENABLE_ALLOC_TYPE_VARS="$ENABLE_ALLOC_TYPE_VARS threads"
        case $host_os in
            solaris*) AC_DEFINE(ENABLE_CHILD_WAITER_THREAD) ;;
-           linux*) AC_DEFINE(USE_RECURSIVE_MALLOC_MUTEX) ;;
+           *gnu*) AC_DEFINE(USE_RECURSIVE_MALLOC_MUTEX) ;;
            *) ;;
        esac
 fi

Reply via email to