FreeBSD Bugzilla – Attachment 159558 Details for
Bug 202093
[MAINTAINER] lang/tcc: fix bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lang_tcc_port.diff
lang_tcc_port.diff (text/plain), 3.60 KB, created by
Carlos J Puga Medina
on 2015-08-05 00:18:03 UTC
(
hide
)
Description:
lang_tcc_port.diff
Filename:
MIME Type:
Creator:
Carlos J Puga Medina
Created:
2015-08-05 00:18:03 UTC
Size:
3.60 KB
patch
obsolete
>diff -urN /usr/ports/lang/tcc.old/Makefile /usr/ports/lang/tcc/Makefile >--- /usr/ports/lang/tcc.old/Makefile 2015-07-24 06:28:40.000000000 +0200 >+++ /usr/ports/lang/tcc/Makefile 2015-08-05 00:02:18.601342000 +0200 >@@ -2,7 +2,7 @@ > > PORTNAME= tcc > PORTVERSION= 0.9.26 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= lang > MASTER_SITES= SAVANNAH/tinycc > >diff -urN /usr/ports/lang/tcc.old/files/patch-configure /usr/ports/lang/tcc/files/patch-configure >--- /usr/ports/lang/tcc.old/files/patch-configure 1970-01-01 01:00:00.000000000 +0100 >+++ /usr/ports/lang/tcc/files/patch-configure 2015-08-05 00:07:05.547940000 +0200 >@@ -0,0 +1,30 @@ >+--- configure.orig 2013-02-15 14:24:00 UTC >++++ configure >+@@ -45,6 +45,7 @@ tcc_crtprefix="" >+ tcc_elfinterp="" >+ tcc_lddir= >+ confvars= >++define_va_list="" >+ >+ cpu=`uname -m` >+ >+@@ -332,6 +333,9 @@ if test -z "$cross_prefix" ; then >+ >+ fi >+ fi >++ if ! $cc -o $CONFTEST -c $source_path/va_list.c 2>/dev/null ; then >++ define_va_list="yes" >++ fi >+ else >+ # if cross compiling, cannot launch a program, so make a static guess >+ case $cpu in >+@@ -483,6 +487,9 @@ if test "$have_selinux" = "yes" ; then >+ echo "#define HAVE_SELINUX" >> $TMPH >+ echo "HAVE_SELINUX=yes" >> config.mak >+ fi >++if test "$define_va_list" = "yes" ; then >++ echo "#define DEFINE_VA_LIST" >> $TMPH >++fi >+ >+ version=`head $source_path/VERSION` >+ echo "VERSION=$version" >>config.mak >diff -urN /usr/ports/lang/tcc.old/files/patch-lib_Makefile /usr/ports/lang/tcc/files/patch-lib_Makefile >--- /usr/ports/lang/tcc.old/files/patch-lib_Makefile 2015-07-24 06:28:40.000000000 +0200 >+++ /usr/ports/lang/tcc/files/patch-lib_Makefile 2015-08-05 00:07:05.562999000 +0200 >@@ -1,4 +1,4 @@ >---- lib/Makefile.orig 2015-07-21 22:05:25 UTC >+--- lib/Makefile.orig 2013-02-15 14:24:00 UTC > +++ lib/Makefile > @@ -40,7 +40,7 @@ native : TCC = $(TOP)/tcc$(EXESUF) > cross : TCC = $(TOP)/$(TARGET)-tcc$(EXESUF) >diff -urN /usr/ports/lang/tcc.old/files/patch-libtcc.c /usr/ports/lang/tcc/files/patch-libtcc.c >--- /usr/ports/lang/tcc.old/files/patch-libtcc.c 1970-01-01 01:00:00.000000000 +0100 >+++ /usr/ports/lang/tcc/files/patch-libtcc.c 2015-08-05 00:07:05.581756000 +0200 >@@ -0,0 +1,28 @@ >+--- libtcc.c.orig 2013-02-15 14:24:00 UTC >++++ libtcc.c >+@@ -931,7 +931,11 @@ LIBTCCAPI TCCState *tcc_new(void) >+ tcc_define_symbol(s, "__i386", NULL); >+ tcc_define_symbol(s, "i386", NULL); >+ #elif defined(TCC_TARGET_X86_64) >++# if defined(__FreeBSD__) >++ tcc_define_symbol(s, "__amd64__", NULL); >++# endif >+ tcc_define_symbol(s, "__x86_64__", NULL); >++ tcc_define_symbol(s, "__LP64__", NULL); >+ #elif defined(TCC_TARGET_ARM) >+ tcc_define_symbol(s, "__ARM_ARCH_4__", NULL); >+ tcc_define_symbol(s, "__arm_elf__", NULL); >+@@ -957,6 +961,13 @@ LIBTCCAPI TCCState *tcc_new(void) >+ tcc_define_symbol(s, "__linux", NULL); >+ # endif >+ # if defined(__FreeBSD__) >++# if defined(DEFINE_VA_LIST) >++# if defined(TCC_TARGET_X86_64) >++ tcc_define_symbol(s, "__va_list", "struct { long pad[3]; }"); >++# else >++ tcc_define_symbol(s, "__va_list", "char *"); >++# endif >++# endif >+ # define str(s) #s >+ tcc_define_symbol(s, "__FreeBSD__", str( __FreeBSD__)); >+ # undef str >diff -urN /usr/ports/lang/tcc.old/files/patch-va__list.c /usr/ports/lang/tcc/files/patch-va__list.c >--- /usr/ports/lang/tcc.old/files/patch-va__list.c 1970-01-01 01:00:00.000000000 +0100 >+++ /usr/ports/lang/tcc/files/patch-va__list.c 2015-08-05 00:07:05.607837000 +0200 >@@ -0,0 +1,9 @@ >+--- va_list.c.orig 2015-08-04 22:06:53 UTC >++++ va_list.c >+@@ -0,0 +1,6 @@ >++#ifdef __FreeBSD__ >++#undef __GNUC__ >++#undef __GNUC_MINOR__ >++#include <sys/types.h> >++void foo(__va_list); >++#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202093
: 159558