From 660785a457374a9478a2b78fe75485d7f5f4b45b Mon Sep 17 00:00:00 2001 From: Brecht Machiels Date: Sat, 11 Jun 2011 20:23:54 +0000 Subject: [PATCH] initial patch and scripts for tcl 8.6b1 --- dev-lang/tcl/tcl-8.6b1-1.build | 7 +++ dev-lang/tcl/tcl-8.6b1-1.install | 2 + dev-lang/tcl/tcl-8.6b1-1.patch | 99 ++++++++++++++++++++++++++++++++ dev-lang/tcl/tcl-8.6b1-1.test | 2 + 4 files changed, 110 insertions(+) create mode 100644 dev-lang/tcl/tcl-8.6b1-1.build create mode 100644 dev-lang/tcl/tcl-8.6b1-1.install create mode 100644 dev-lang/tcl/tcl-8.6b1-1.patch create mode 100644 dev-lang/tcl/tcl-8.6b1-1.test diff --git a/dev-lang/tcl/tcl-8.6b1-1.build b/dev-lang/tcl/tcl-8.6b1-1.build new file mode 100644 index 000000000..57269204a --- /dev/null +++ b/dev-lang/tcl/tcl-8.6b1-1.build @@ -0,0 +1,7 @@ +cd tcl8.6b1/pkgs/tdbc1.0b1 +autoconf +cd ../../unix +autoconf +mkdir build && cd build +../configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-man-symlinks +make diff --git a/dev-lang/tcl/tcl-8.6b1-1.install b/dev-lang/tcl/tcl-8.6b1-1.install new file mode 100644 index 000000000..fb692a7fd --- /dev/null +++ b/dev-lang/tcl/tcl-8.6b1-1.install @@ -0,0 +1,2 @@ +cd tcl8.6b1/unix/build +make install diff --git a/dev-lang/tcl/tcl-8.6b1-1.patch b/dev-lang/tcl/tcl-8.6b1-1.patch new file mode 100644 index 000000000..f25c6b5c6 --- /dev/null +++ b/dev-lang/tcl/tcl-8.6b1-1.patch @@ -0,0 +1,99 @@ +diff -Naur tcl8.6b1/generic/tclPosixStr.c tcl8.6b1-haiku/generic/tclPosixStr.c +--- tcl8.6b1/generic/tclPosixStr.c 2008-04-28 00:21:32.028049408 +0200 ++++ tcl8.6b1-haiku/generic/tclPosixStr.c 2011-06-11 21:57:53.249036800 +0200 +@@ -941,7 +941,9 @@ + case SIGALRM: return "SIGALRM"; + #endif + #ifdef SIGBUS +- case SIGBUS: return "SIGBUS"; ++# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV) ++ case SIGBUS: return "SIGBUS"; ++# endif + #endif + #ifdef SIGCHLD + case SIGCHLD: return "SIGCHLD"; +@@ -1072,7 +1074,9 @@ + case SIGALRM: return "alarm clock"; + #endif + #ifdef SIGBUS +- case SIGBUS: return "bus error"; ++# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV) ++ case SIGBUS: return "bus error"; ++# endif + #endif + #ifdef SIGCHLD + case SIGCHLD: return "child status changed"; +diff -Naur tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4 +--- tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2008-12-22 18:45:06.004456448 +0100 ++++ tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2011-06-11 21:58:19.403177472 +0200 +@@ -761,8 +761,15 @@ + # The space is needed + THREADS_LIBS=" -pthread" + else +- TCL_THREADS=0 +- AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled]) ++ # Haiku ++ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no) ++ if test "$tcl_ok" = "yes"; then ++ # The space is needed ++ THREADS_LIBS=" -lroot" ++ else ++ TCL_THREADS=0 ++ AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled]) ++ fi + fi + fi + fi +@@ -1459,6 +1466,15 @@ + CC_SEARCH_FLAGS="" + LD_SEARCH_FLAGS="" + ;; ++ Haiku*) ++ SHLIB_CFLAGS="-fPIC" ++ SHLIB_LD='${CC} -nostart' ++ SHLIB_LD_LIBS='${LIBS}' ++ SHLIB_SUFFIX=".so" ++ DL_OBJS="tclLoadDl.o" ++ DL_LIBS="-lroot" ++ LIBS="$LIBS -lnetwork" ++ ;; + HP-UX-*.11.*) + # Use updated header definitions where possible + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?]) +diff -Naur tcl8.6b1/unix/tcl.m4 tcl8.6b1-haiku/unix/tcl.m4 +--- tcl8.6b1/unix/tcl.m4 2008-12-22 18:45:06.034603008 +0100 ++++ tcl8.6b1-haiku/unix/tcl.m4 2011-06-11 22:04:12.228327424 +0200 +@@ -667,8 +667,15 @@ + # The space is needed + THREADS_LIBS=" -pthread" + else +- TCL_THREADS=0 +- AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...]) ++ # Haiku ++ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no) ++ if test "$tcl_ok" = "yes"; then ++ # The space is needed ++ THREADS_LIBS=" -lroot" ++ else ++ TCL_THREADS=0 ++ AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...]) ++ fi + fi + fi + fi +@@ -1252,6 +1259,15 @@ + CC_SEARCH_FLAGS="" + LD_SEARCH_FLAGS="" + ;; ++ Haiku*) ++ SHLIB_CFLAGS="-fPIC" ++ SHLIB_LD='${CC} -nostart' ++ SHLIB_LD_LIBS='${LIBS}' ++ SHLIB_SUFFIX=".so" ++ DL_OBJS="tclLoadDl.o" ++ DL_LIBS="-lroot" ++ LIBS="$LIBS -lnetwork" ++ ;; + HP-UX-*.11.*) + # Use updated header definitions where possible + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?]) diff --git a/dev-lang/tcl/tcl-8.6b1-1.test b/dev-lang/tcl/tcl-8.6b1-1.test new file mode 100644 index 000000000..65e892762 --- /dev/null +++ b/dev-lang/tcl/tcl-8.6b1-1.test @@ -0,0 +1,2 @@ +cd tcl8.6b1/unix/build +make test