Package: tcc
Severity: important
Tags: patch
Justification: fails to build from source
Hi,
tcc fails to build on kFreeBSD, mostly because of the architecture
restriction.
The attached patch allows tcc to be build on kFreeBSD, and update the
Standards version to 3.7.2
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-vserver-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to fr_FR.UTF-8)
diff -ruN tcc-0.9.23/debian/control tcc-0.9.23-orig/debian/control
--- tcc-0.9.23/debian/control 2006-06-06 16:21:35.000000000 +0200
+++ tcc-0.9.23-orig/debian/control 2006-06-06 16:37:55.000000000 +0200
@@ -3,10 +3,10 @@
Priority: optional
Maintainer: Romain Francoise <[EMAIL PROTECTED]>
Build-Depends: debhelper (>= 4), texi2html, texinfo, perl
-Standards-Version: 3.7.2
+Standards-Version: 3.6.2.1
Package: tcc
-Architecture: i386 kfreebsd-i386
+Architecture: i386
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: libc6-dev | libc-dev
Provides: c-compiler
diff -ruN tcc-0.9.23/tcc.c tcc-0.9.23-orig/tcc.c
--- tcc-0.9.23/tcc.c 2006-06-06 16:09:17.000000000 +0200
+++ tcc-0.9.23-orig/tcc.c 2006-06-06 16:37:55.000000000 +0200
@@ -717,7 +717,7 @@
#define strtof (float)strtod
#define strtoll (long long)strtol
#endif
-#elif defined(TCC_UCLIBC) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#elif defined(TCC_UCLIBC) || defined(__FreeBSD__)
/* currently incorrect */
long double strtold(const char *nptr, char **endptr)
{
@@ -9482,7 +9482,7 @@
int i;
if (level == 0) {
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__)
*paddr = uc->uc_mcontext.mc_eip;
#elif defined(__dietlibc__)
*paddr = uc->uc_mcontext.eip;
@@ -9491,7 +9491,7 @@
#endif
return 0;
} else {
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__)
fp = uc->uc_mcontext.mc_ebp;
#elif defined(__dietlibc__)
fp = uc->uc_mcontext.ebp;