Subject: pkg/24194: lang/tcl PLIST mismatches on Linux
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 01/22/2004 11:41:57
>Number:         24194
>Category:       pkg
>Synopsis:       lang/tcl PLIST mismatches on Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 22 17:43:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Min Sik Kim
>Release:        NetBSD 1.6ZH
>Organization:
>Environment:
>Description:
lang/tcl installs libtcl8.3* on Linux, while PLIST expects libtcl83*.

>How-To-Repeat:
Install lang/tcl.

>Fix:

Apply the following patches and regenerate distinfo.
The same fix was recently applied for IRIX 5 and 6.

Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tcl/patches/patch-ab,v
retrieving revision 1.20
diff -u -r1.20 patch-ab
--- patches/patch-ab	2004/01/21 19:30:33	1.20
+++ patches/patch-ab	2004/01/22 17:36:48
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.20 2004/01/21 19:30:33 jwise Exp $
+$NetBSD$
 
---- configure.orig	2001-10-19 20:24:15.000000000 -0400
-+++ configure	2004-01-21 14:20:41.000000000 -0500
-@@ -4776,6 +4776,7 @@
+--- configure.orig	Fri Oct 19 19:24:15 2001
++++ configure
+@@ -4776,6 +4776,7 @@ fi
      # Step 3: set configuration options based on system name and version.
  
      do64bit_ok=no
@@ -10,7 +10,7 @@
      EXTRA_CFLAGS=""
      TCL_EXPORT_FILE_SUFFIX=""
      UNSHARED_LIB_SUFFIX=""
-@@ -5114,6 +5115,9 @@
+@@ -5114,6 +5115,9 @@ fi
  	    LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  	    EXTRA_CFLAGS=""
  	    LDFLAGS=""
@@ -20,7 +20,7 @@
  	    ;;
  	IRIX-6.*|IRIX64-6.5*)
  	    SHLIB_CFLAGS=""
-@@ -5138,6 +5142,9 @@
+@@ -5138,6 +5142,9 @@ fi
  		esac
  		LDFLAGS="-n32"
  	    fi
@@ -30,7 +30,7 @@
  	    ;;
  	IRIX64-6.*)
  	    SHLIB_CFLAGS=""
-@@ -5148,6 +5155,9 @@
+@@ -5148,6 +5155,9 @@ fi
  	    DL_LIBS=""
  	    LDFLAGS=""
  	    LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
@@ -40,7 +40,17 @@
  	    ;;
  	Linux*)
  	    SHLIB_CFLAGS="-fPIC"
-@@ -5298,6 +5308,9 @@
+@@ -5221,6 +5231,9 @@ fi
+                 EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
+             fi
+ 
++	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
++	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
++	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	GNU*)
+ 	    SHLIB_CFLAGS="-fPIC"
+@@ -5298,6 +5311,9 @@ fi
  	    LD_SEARCH_FLAGS=""
  	    ;;
  	NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*)
@@ -50,7 +60,7 @@
  	    # Not available on all versions:  check for include file.
  	    ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
-@@ -5330,17 +5343,15 @@
+@@ -5330,17 +5346,15 @@ if eval "test \"`echo '$ac_cv_header_'$a
    
  		# NetBSD/SPARC needs -fPIC, -fpic will not do.
  		SHLIB_CFLAGS="-fPIC"
@@ -63,14 +73,14 @@
 -		LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  		echo $ac_n "checking for ELF""... $ac_c" 1>&6
 -echo "configure:5342: checking for ELF" >&5
-+echo "configure:5344: checking for ELF" >&5
++echo "configure:5356: checking for ELF" >&5
  		cat > conftest.$ac_ext <<EOF
 -#line 5344 "configure"
-+#line 5346 "configure"
++#line 5358 "configure"
  #include "confdefs.h"
  
  #ifdef __ELF__
-@@ -5351,11 +5362,20 @@
+@@ -5351,11 +5365,20 @@ EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    egrep "yes" >/dev/null 2>&1; then
    rm -rf conftest*
@@ -93,7 +103,7 @@
  		    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
  		
  fi
-@@ -5569,6 +5589,9 @@
+@@ -5569,6 +5592,9 @@ EOF
  	    DL_LIBS="-ldl"
  	    LDFLAGS=""
  	    LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
@@ -103,7 +113,7 @@
  	    ;;
  	SunOS-5*)
  
-@@ -5616,6 +5639,9 @@
+@@ -5616,6 +5642,9 @@ EOF
  	    else
  		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  	    fi
@@ -113,7 +123,7 @@
  	    ;;
  	ULTRIX-4.*)
  	    SHLIB_CFLAGS="-G 0"
-@@ -6103,7 +6129,7 @@
+@@ -6103,7 +6132,7 @@ if test "${SHARED_BUILD}" = "1" -a "${SH
      if test "x$DL_OBJS" = "xtclLoadAout.o"; then
  	MAKE_LIB="\${STLIB_LD} \$@ \${OBJS}"
      else
@@ -122,7 +132,7 @@
      fi
  else
      case $system in
-@@ -6141,7 +6167,7 @@
+@@ -6141,7 +6170,7 @@ if test "$SHARED_BUILD" = "0" -o $TCL_NE
          TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
      fi
      TCL_BUILD_LIB_SPEC="-L`pwd` ${TCL_LIB_FLAG}"
@@ -131,7 +141,7 @@
  else
      TCL_BUILD_EXP_FILE="lib.exp"
      eval "TCL_EXP_FILE=libtcl${TCL_EXPORT_FILE_SUFFIX}"
-@@ -6171,10 +6197,17 @@
+@@ -6171,10 +6200,17 @@ VERSION=${TCL_VERSION}
  #--------------------------------------------------------------------
  
  if test "$prefix" != "$exec_prefix"; then
@@ -151,7 +161,7 @@
  
  #--------------------------------------------------------------------
  #       The statements below define various symbols relating to Tcl
-@@ -6186,7 +6219,7 @@
+@@ -6186,7 +6222,7 @@ eval "TCL_STUB_LIB_FILE=libtclstub${TCL_
  # Replace DBGX with TCL_DBGX
  eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
  
@@ -160,7 +170,7 @@
  
  if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
      TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}\${TCL_DBGX}"
-@@ -6262,6 +6295,8 @@
+@@ -6262,6 +6298,8 @@ TCL_SHARED_BUILD=${SHARED_BUILD}
  
  
  
@@ -169,7 +179,7 @@
  trap '' 1 2 15
  cat > confcache <<\EOF
  # This file is a shell script that caches the results of configure
-@@ -6437,12 +6472,12 @@
+@@ -6437,12 +6475,12 @@ s%@TCL_DBGX@%$TCL_DBGX%g
  s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g
  s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g
  s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g
Index: patches/patch-af
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tcl/patches/patch-af,v
retrieving revision 1.7
diff -u -r1.7 patch-af
--- patches/patch-af	2004/01/21 19:30:33	1.7
+++ patches/patch-af	2004/01/22 17:36:49
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.7 2004/01/21 19:30:33 jwise Exp $
+$NetBSD$
 
---- tcl.m4.orig	2001-10-19 20:24:15.000000000 -0400
-+++ tcl.m4	2004-01-21 13:57:23.000000000 -0500
-@@ -601,6 +601,7 @@
+--- tcl.m4.orig	Fri Oct 19 19:24:15 2001
++++ tcl.m4
+@@ -601,6 +601,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
      # Step 3: set configuration options based on system name and version.
  
      do64bit_ok=no
@@ -10,7 +10,7 @@
      EXTRA_CFLAGS=""
      TCL_EXPORT_FILE_SUFFIX=""
      UNSHARED_LIB_SUFFIX=""
-@@ -790,6 +791,9 @@
+@@ -790,6 +791,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  	    LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
  	    EXTRA_CFLAGS=""
  	    LDFLAGS=""
@@ -20,7 +20,7 @@
  	    ;;
  	IRIX-6.*|IRIX64-6.5*)
  	    SHLIB_CFLAGS=""
-@@ -814,6 +818,9 @@
+@@ -814,6 +818,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  		esac
  		LDFLAGS="-n32"
  	    fi
@@ -30,7 +30,7 @@
  	    ;;
  	IRIX64-6.*)
  	    SHLIB_CFLAGS=""
-@@ -824,6 +831,9 @@
+@@ -824,6 +831,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  	    DL_LIBS=""
  	    LDFLAGS=""
  	    LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
@@ -40,7 +40,17 @@
  	    ;;
  	Linux*)
  	    SHLIB_CFLAGS="-fPIC"
-@@ -910,28 +920,36 @@
+@@ -865,6 +875,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
+                 EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
+             fi
+ 
++	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
++	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
++	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	GNU*)
+ 	    SHLIB_CFLAGS="-fPIC"
+@@ -910,28 +923,36 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  	    LD_SEARCH_FLAGS=""
  	    ;;
  	NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*)
@@ -82,7 +92,7 @@
  	    ], [
  		SHLIB_CFLAGS=""
  		SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
-@@ -1129,6 +1147,9 @@
+@@ -1129,6 +1150,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  	    DL_LIBS="-ldl"
  	    LDFLAGS=""
  	    LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
@@ -92,7 +102,7 @@
  	    ;;
  	SunOS-5*)
  
-@@ -1173,6 +1194,9 @@
+@@ -1173,6 +1197,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
  	    else
  		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  	    fi
>Release-Note:
>Audit-Trail:
>Unformatted:
 Environment:
 System: NetBSD sulley.infnis.com 1.6ZH NetBSD 1.6ZH (SULLEY) #3: Fri Jan 16 16:57:45 CST 2004 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
 Architecture: i386
 Machine: i386