pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/tcl Apply patches from cyber@ provided in PR pkg/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de429956e621
branches:  trunk
changeset: 462660:de429956e621
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Wed Oct 08 03:13:21 2003 +0000

description:
Apply patches from cyber@ provided in PR pkg/22688 to make this work under
Darwin.

diffstat:

 lang/tcl/Makefile         |  12 +++++++-
 lang/tcl/PLIST            |   6 ++--
 lang/tcl/distinfo         |   6 ++--
 lang/tcl/patches/patch-aa |  21 ++++----------
 lang/tcl/patches/patch-ab |  67 ++++++++++++++++++++++++++++++----------------
 5 files changed, 66 insertions(+), 46 deletions(-)

diffs (truncated from 344 to 300 lines):

diff -r ad982aa13eac -r de429956e621 lang/tcl/Makefile
--- a/lang/tcl/Makefile Wed Oct 08 03:01:32 2003 +0000
+++ b/lang/tcl/Makefile Wed Oct 08 03:13:21 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2003/07/17 21:45:29 grant Exp $
+# $NetBSD: Makefile,v 1.21 2003/10/08 03:13:21 jschauma Exp $
 #
 
 DISTNAME=              tcl8.3.4
@@ -25,6 +25,8 @@
 
 INSTALL_TARGET=                install
 
+PLIST_SUBST+=          SHLIB_SUFX="${SHLIB_SUFX}"
+
 # Initially install the man pages into ${WRKDIR}/man, as we need a staged
 # install to avoid overwriting existing manpages in ${PREFIX}/man.
 #
@@ -32,6 +34,14 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "Darwin"
+PLIST_SUBST+=          SHLIB_CMT="@comment "
+SHLIB_SUFX=            dylib
+.else
+PLIST_SUBST+=          SHLIB_CMT=""
+SHLIB_SUFX=            la
+.endif
+
 # NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug
 # tickled by the Tcl code that manifests in code generation problems.
 #
diff -r ad982aa13eac -r de429956e621 lang/tcl/PLIST
--- a/lang/tcl/PLIST    Wed Oct 08 03:01:32 2003 +0000
+++ b/lang/tcl/PLIST    Wed Oct 08 03:13:21 2003 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2001/12/23 17:02:31 bjoern Exp $
+@comment $NetBSD: PLIST,v 1.3 2003/10/08 03:13:21 jschauma Exp $
 bin/tclsh
 bin/tclsh8.3
 include/tcl.h
@@ -17,8 +17,8 @@
 include/tcl/unix/tclUnixPort.h
 include/tclDecls.h
 include/tclPlatDecls.h
-lib/libtcl83.a
-lib/libtcl83.la
+${SHLIB_CMT}lib/libtcl83.a
+lib/libtcl83.${SHLIB_SUFX}
 lib/libtcl83.so
 lib/libtcl83.so.1
 lib/libtcl83.so.1.0
diff -r ad982aa13eac -r de429956e621 lang/tcl/distinfo
--- a/lang/tcl/distinfo Wed Oct 08 03:01:32 2003 +0000
+++ b/lang/tcl/distinfo Wed Oct 08 03:13:21 2003 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.13 2003/04/02 04:25:23 jschauma Exp $
+$NetBSD: distinfo,v 1.14 2003/10/08 03:13:21 jschauma Exp $
 
 SHA1 (tcl8.3.4.tar.gz) = b179f1f51b322b7045cf152b73df4f3d01da82ec
 Size (tcl8.3.4.tar.gz) = 2654756 bytes
-SHA1 (patch-aa) = 3efcf17b823fb878f04a849a3f4913d73dcdb922
-SHA1 (patch-ab) = 339629f48ca1ee18a0aac953028f56b939ad694e
+SHA1 (patch-aa) = 3e9fa9427f40a4c6b1f97bcda58fefe9d5cf20ce
+SHA1 (patch-ab) = c5c0092bdcb0f7d5d44a36b5c3e05af805987e5b
 SHA1 (patch-ac) = d1e1b6ed334ff424140a678ed098504cc14614e8
 SHA1 (patch-ae) = a0237d220cf0f8475614497cabaae738621a7729
 SHA1 (patch-af) = e19764a58f5ddd6b5b62e785ae305069c535f865
diff -r ad982aa13eac -r de429956e621 lang/tcl/patches/patch-aa
--- a/lang/tcl/patches/patch-aa Wed Oct 08 03:01:32 2003 +0000
+++ b/lang/tcl/patches/patch-aa Wed Oct 08 03:13:21 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.7 2003/04/02 04:25:24 jschauma Exp $
+$NetBSD: patch-aa,v 1.8 2003/10/08 03:13:21 jschauma Exp $
 
---- Makefile.in.orig   Sat Oct 20 02:24:15 2001
-+++ Makefile.in
+--- Makefile.in.orig   Fri Oct 19 20:24:15 2001
++++ Makefile.in        Tue Oct  7 21:57:52 2003
 @@ -87,7 +87,7 @@
  #CFLAGS                       = $(CFLAGS_DEBUG)
  #CFLAGS                       = $(CFLAGS_OPTIMIZE)
@@ -33,15 +33,6 @@
  SHLIB_CFLAGS          = @SHLIB_CFLAGS@
  
  SHLIB_SUFFIX          = @SHLIB_SUFFIX@
-@@ -207,7 +207,7 @@
- TCL_LIB_FILE          = @TCL_LIB_FILE@
- #TCL_LIB_FILE         = libtcl.a
- 
--TCL_LIB_FLAG          = @TCL_LIB_FLAG@
-+TCL_LIB_FLAG          = libtcl83.la
- #TCL_LIB_FLAG         = -ltcl
- 
- TCL_EXP_FILE          = @TCL_EXP_FILE@
 @@ -235,8 +235,9 @@
  # Must be absolute to so the corresponding tcltest's tcl_library is absolute.
  TCL_BUILDTIME_LIBRARY = @TCL_SRC_DIR@/library
@@ -49,7 +40,7 @@
 -CC                    = @CC@
  #CC                   = purify -best-effort @CC@ -DPURIFY
 +CC                      = ${LIBTOOL} --mode=compile @CC@
-+LD                      = ${LIBTOOL} --mode=link @CC@ -Wl,${RPATH_FLAG}${PREFIX}/lib
++LD                      = ${LIBTOOL} --mode=link @CC@ ${LDFLAGS}
  
  #----------------------------------------------------------------
  # The information below should be usable as is.  The configure
@@ -66,12 +57,12 @@
  
  tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE}
 -      ${CC} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
-+      ${LD} ${LDFLAGS} ${TCLSH_OBJS} libtcl83.la ${LIBS} \
++      ${LD} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
                @TCL_LD_SEARCH_FLAGS@ -o tclsh
  
  tcltest: ${TCLTEST_OBJS} ${TCL_LIB_FILE} ${BUILD_DLTEST}
 -      ${CC} ${LDFLAGS} ${TCLTEST_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
-+      ${LD} ${LDFLAGS} ${TCLTEST_OBJS} libtcl83.la ${LIBS} \
++      ${LD} ${LDFLAGS} ${TCLTEST_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
                @TCL_LD_SEARCH_FLAGS@ -o tcltest
  
  # Note, in the target below TCL_LIBRARY needs to be set or else
diff -r ad982aa13eac -r de429956e621 lang/tcl/patches/patch-ab
--- a/lang/tcl/patches/patch-ab Wed Oct 08 03:01:32 2003 +0000
+++ b/lang/tcl/patches/patch-ab Wed Oct 08 03:13:21 2003 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-ab,v 1.17 2003/04/21 20:27:29 cjep Exp $
---- configure.orig     Fri Oct 19 17:24:15 2001
-+++ configure  Tue Apr  1 19:47:04 2003
+$NetBSD: patch-ab,v 1.18 2003/10/08 03:13:21 jschauma Exp $
+
+--- configure.orig     Fri Oct 19 20:24:15 2001
++++ configure  Tue Oct  7 21:40:04 2003
 @@ -4776,6 +4776,7 @@
      # Step 3: set configuration options based on system name and version.
  
@@ -235,7 +236,26 @@
                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
                
  fi
-@@ -5569,6 +5589,9 @@
+@@ -5401,7 +5421,7 @@
+       Rhapsody-*|Darwin-*)
+           SHLIB_CFLAGS="-fno-common"
+           SHLIB_LD="cc -dynamiclib \${LDFLAGS}"
+-          TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_MAJOR_VERSION} -current_version \${VERSION} -install_name \${LIB_RUNTIME_DIR}/\${TCL_LIB_FILE} -prebind -seg1addr a000000"
++          TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_MAJOR_VERSION} -current_version \${VERSION} -install_name \${LIB_RUNTIME_DIR}/\${TCL_LIB_FILE} -prebind -seg1addr a000000 -dynamiclib"
+           SHLIB_LD_LIBS="${LIBS}"
+           SHLIB_SUFFIX=".dylib"
+           DL_OBJS="tclLoadDyld.o"
+@@ -5410,6 +5430,9 @@
+           LD_SEARCH_FLAGS=""
+           CFLAGS_OPTIMIZE="-O3"
+           EXTRA_CFLAGS="-arch ppc -pipe"
++          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
++          SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}\$\{SHLIB_SUFFIX\}'
++          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NEXTSTEP-*)
+           SHLIB_CFLAGS=""
+@@ -5569,6 +5592,9 @@
            DL_LIBS="-ldl"
            LDFLAGS=""
            LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
@@ -245,7 +265,7 @@
            ;;
        SunOS-5*)
  
-@@ -5616,6 +5639,9 @@
+@@ -5616,6 +5642,9 @@
            else
                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
            fi
@@ -255,7 +275,7 @@
            ;;
        ULTRIX-4.*)
            SHLIB_CFLAGS="-G 0"
-@@ -5641,10 +5667,10 @@
+@@ -5641,17 +5670,17 @@
            # that don't grok the -Bexport option.  Test that it does.
            hold_ldflags=$LDFLAGS
            echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
@@ -268,7 +288,6 @@
  #include "confdefs.h"
  
  int main() {
-@@ -5651,7 +5677,7 @@
  int i;
  ; return 0; }
  EOF
@@ -277,7 +296,7 @@
    rm -rf conftest*
    found=yes
  else
-@@ -5697,9 +5723,9 @@
+@@ -5697,9 +5726,9 @@
  
      if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
        echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6
@@ -289,7 +308,7 @@
  #include "confdefs.h"
  #include <sys/exec.h>
  int main() {
-@@ -5717,7 +5743,7 @@
+@@ -5717,7 +5746,7 @@
      
  ; return 0; }
  EOF
@@ -298,7 +317,7 @@
    rm -rf conftest*
    tcl_ok=usable
  else
-@@ -5735,9 +5761,9 @@
+@@ -5735,9 +5764,9 @@
  
        else
            echo $ac_n "checking a.out.h""... $ac_c" 1>&6
@@ -310,7 +329,7 @@
  #include "confdefs.h"
  #include <a.out.h>
  int main() {
-@@ -5755,7 +5781,7 @@
+@@ -5755,7 +5784,7 @@
            
  ; return 0; }
  EOF
@@ -319,7 +338,7 @@
    rm -rf conftest*
    tcl_ok=usable
  else
-@@ -5773,9 +5799,9 @@
+@@ -5773,9 +5802,9 @@
  
            else
                echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6
@@ -331,7 +350,7 @@
  #include "confdefs.h"
  #include <sys/exec_aout.h>
  int main() {
-@@ -5793,7 +5819,7 @@
+@@ -5793,7 +5822,7 @@
                
  ; return 0; }
  EOF
@@ -340,7 +359,7 @@
    rm -rf conftest*
    tcl_ok=usable
  else
-@@ -5890,7 +5916,7 @@
+@@ -5890,7 +5919,7 @@
  
  
      echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
@@ -349,7 +368,7 @@
      # Check whether --enable-symbols or --disable-symbols was given.
  if test "${enable_symbols+set}" = set; then
    enableval="$enable_symbols"
-@@ -5927,17 +5953,17 @@
+@@ -5927,17 +5956,17 @@
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -370,7 +389,7 @@
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
-@@ -5967,17 +5993,17 @@
+@@ -5967,17 +5996,17 @@
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -391,7 +410,7 @@
  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  if test -z "$ac_err"; then
    rm -rf conftest*
-@@ -6004,7 +6030,7 @@
+@@ -6004,7 +6033,7 @@
  done
  
      echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
@@ -400,7 +419,7 @@
      if test -f /usr/lib/NextStep/software_version; then
        system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
      else
-@@ -6066,7 +6092,7 @@
+@@ -6066,7 +6095,7 @@
  
  
      echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
@@ -409,7 +428,7 @@
      # Check whether --enable-shared or --disable-shared was given.
  if test "${enable_shared+set}" = set; then
    enableval="$enable_shared"
-@@ -6103,7 +6129,7 @@
+@@ -6103,7 +6132,7 @@
      if test "x$DL_OBJS" = "xtclLoadAout.o"; then
        MAKE_LIB="\${STLIB_LD} \$@ \${OBJS}"
      else
@@ -418,7 +437,7 @@



Home | Main Index | Thread Index | Old Index