[cl-debian] Bug#410368: ecl: doesn't know about the GNU system in autotools data
Pierre THIERRY
nowhere.man at levallois.eu.org
Sat Feb 10 04:36:48 UTC 2007
Package: ecl
Version: 0.9i-2
Severity: important
Tags: patch
Justification: fails to build from source
Here are two patches to make the build possible on Hurd:
diff -r 045b9347e44a src/h/config.h.in
--- a/src/h/config.h.in Tue Feb 06 17:36:54 2007 +0100
+++ b/src/h/config.h.in Sat Feb 10 04:15:48 2007 +0100
@@ -302,7 +302,7 @@ typedef unsigned @CL_FIXNUM_TYPE@ cl_has
#include "@ECL_FPE_CODE@"
#if defined(ECL_THREADS)
-# if defined(darwin) || defined(freebsd)
+# if defined(darwin) || defined(freebsd) || defined(gnu)
# define PTHREAD_MUTEX_ERRORCHECK_NP PTHREAD_MUTEX_ERRORCHECK
# define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
# define PTHREAD_MUTEX_NORMAL_NP PTHREAD_MUTEX_NORMAL
diff -r 045b9347e44a src/aclocal.m4
--- a/src/aclocal.m4 Tue Feb 06 17:36:54 2007 +0100
+++ b/src/aclocal.m4 Sat Feb 10 03:55:51 2007 +0100
@@ -188,6 +188,16 @@ case "${host_os}" in
# libdir may have a dollar expression inside
linux*)
thehost='linux'
+ THREAD_CFLAGS='-D_THREAD_SAFE'
+ THREAD_LIBS='-lpthread'
+ SHARED_LDFLAGS="-shared ${LDFLAGS}"
+ BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
+ LDRPATH='-Wl,--rpath,/usr/lib/ecl/'
+ clibs="-ldl"
+ # Maybe CFLAGS="-D_ISOC99_SOURCE ${CFLAGS}" ???
+ ;;
+ gnu*)
+ thehost='gnu'
THREAD_CFLAGS='-D_THREAD_SAFE'
THREAD_LIBS='-lpthread'
SHARED_LDFLAGS="-shared ${LDFLAGS}"
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (501, 'stable'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages ecl depends on:
ii common-lisp-controller 6.9 This is a Common Lisp source and c
ii gcc-4.1 4.1.1-21 The GNU C compiler
ii libc6 2.3.6.ds1-10 GNU C Library: Shared libraries
ii libgc-dev 1:6.8-1 conservative garbage collector for
ii libgc1c2 1:6.8-1 conservative garbage collector for
ii libgmp3-dev 2:4.2.1+dfsg-4 Multiprecision arithmetic library
ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library
ii libncurses5-dev 5.5-5 Developer's libraries and docs for
ecl recommends no packages.
-- no debconf information
--
nowhere.man at levallois.eu.org
OpenPGP 0xD9D50D8A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://mailman.common-lisp.net/pipermail/cl-debian/attachments/20070210/888a35ea/attachment.sig>
More information about the Cl-debian
mailing list