Subject: pkg/7340: lang/tcl80's Object.3 conflicts with x11/lesstif's
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 04/07/1999 23:29:39
>Number:         7340
>Category:       pkg
>Synopsis:       lang/tcl80's Object.3 conflicts with x11/lesstif's
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr  7 21:35:00 1999
>Last-Modified:
>Originator:     John Darrow
>Organization:
Computing Services, Wheaton College, Wheaton, IL
>Release:        NetBSD 1.4_ALPHA
>Environment:
System: NetBSD jdarrow.wheaton.edu 1.4_ALPHA NetBSD 1.4_ALPHA (JDARROW) #1: Mon Apr 5 22:24:15 CDT 1999 jdarrow@jdarrow.wheaton.edu:/var/src/sys/arch/i386/compile/JDARROW i386


>Description:
tcl80 tries to install an Object.3 man page, which conflicts with that
installed by lesstif.

It seems strange that the tcl80 file is called Object.3, since, everywhere
within it, it refers to Tcl_Obj, which is the type used in the Tcl source
for tcl objects, and all the files which are symlinked to this are of the
form Tcl_*.

>How-To-Repeat:
make install in x11/lesstif, then in lang/tcl80, see warning message.

>Fix:
I decided that, since tcl80 uses Tcl_Obj everywhere within the man page
itself, that Tcl_Obj was the appropriate name for the man page, too.  The
following patch to the pkgsrc makes that change.

(note that I left the man pages as .gz within the PLIST, as that's how they
were before.  Someone with a little more understanding of pkgsrc's man page
handling should take a look at this...)

cvs diff: Diffing lang/tcl80
Index: lang/tcl80/Makefile
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/lang/tcl80/Makefile,v
retrieving revision 1.1.1.5
retrieving revision 1.5
diff -u -r1.1.1.5 -r1.5
--- Makefile	1999/04/07 22:22:01	1.1.1.5
+++ Makefile	1999/04/07 23:25:23	1.5
@@ -17,6 +17,10 @@
 USE_LIBTOOL=		yes
 CONFIGURE_ARGS+=	--disable-shared
 
+post-patch:
+	cd ${WRKSRC}/../doc; \
+		${MV} Object.3 Tcl_Obj.3
+
 test:
 	cd ${WRKSRC} && ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test
 
cvs diff: Diffing lang/tcl80/files
cvs diff: Diffing lang/tcl80/patches
Index: lang/tcl80/patches/patch-ac
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/lang/tcl80/patches/patch-ac,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- patch-ac	1999/04/05 07:18:04	1.1.1.2
+++ patch-ac	1999/04/07 23:41:01	1.2
@@ -791,30 +791,35 @@
 -    ln ObjSetVar.3 Tcl_ObjGetVar2.3
 +    ln -s ObjSetVar.3 Tcl_ObjGetVar2.3
  fi
- if test -r Object.3; then
+-if test -r Object.3; then
++if test -r Tcl_Obj.3; then
      rm -f Tcl_NewObj.3
 -    ln Object.3 Tcl_NewObj.3
-+    ln -s Object.3 Tcl_NewObj.3
++    ln -s Tcl_Obj.3 Tcl_NewObj.3
  fi
- if test -r Object.3; then
+-if test -r Object.3; then
++if test -r Tcl_Obj.3; then
      rm -f Tcl_DuplicateObj.3
 -    ln Object.3 Tcl_DuplicateObj.3
-+    ln -s Object.3 Tcl_DuplicateObj.3
++    ln -s Tcl_Obj.3 Tcl_DuplicateObj.3
  fi
- if test -r Object.3; then
+-if test -r Object.3; then
++if test -r Tcl_Obj.3; then
      rm -f Tcl_IncrRefCount.3
 -    ln Object.3 Tcl_IncrRefCount.3
-+    ln -s Object.3 Tcl_IncrRefCount.3
++    ln -s Tcl_Obj.3 Tcl_IncrRefCount.3
  fi
- if test -r Object.3; then
+-if test -r Object.3; then
++if test -r Tcl_Obj.3; then
      rm -f Tcl_DecrRefCount.3
 -    ln Object.3 Tcl_DecrRefCount.3
-+    ln -s Object.3 Tcl_DecrRefCount.3
++    ln -s Tcl_Obj.3 Tcl_DecrRefCount.3
  fi
- if test -r Object.3; then
+-if test -r Object.3; then
++if test -r Tcl_Obj.3; then
      rm -f Tcl_IsShared.3
 -    ln Object.3 Tcl_IsShared.3
-+    ln -s Object.3 Tcl_IsShared.3
++    ln -s Tcl_Obj.3 Tcl_IsShared.3
  fi
  if test -r ObjectType.3; then
      rm -f Tcl_RegisterObjType.3
cvs diff: Diffing lang/tcl80/pkg
Index: lang/tcl80/pkg/PLIST
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/lang/tcl80/pkg/PLIST,v
retrieving revision 1.1.1.2
retrieving revision 1.3
diff -u -r1.1.1.2 -r1.3
--- PLIST	1999/04/05 07:18:04	1.1.1.2
+++ PLIST	1999/04/05 07:44:03	1.3
@@ -73,7 +73,6 @@
 man/man3/ListObj.3.gz
 man/man3/Notifier.3.gz
 man/man3/ObjSetVar.3.gz
-man/man3/Object.3.gz
 man/man3/ObjectType.3.gz
 man/man3/OpenFileChnl.3.gz
 man/man3/OpenTcp.3.gz
@@ -94,6 +93,7 @@
 man/man3/StrMatch.3.gz
 man/man3/StringObj.3.gz
 man/man3/Tcl_Main.3.gz
+man/man3/Tcl_Obj.3.gz
 man/man3/TraceVar.3.gz
 man/man3/Translate.3.gz
 man/man3/UpVar.3.gz
>Audit-Trail:
>Unformatted: