Bug 179212 - editors/vigor: Fix build with Tcl/Tk 8.6
Summary: editors/vigor: Fix build with Tcl/Tk 8.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 19:10 UTC by tkato432
Modified: 2013-06-04 09:30 UTC (History)
0 users

See Also:


Attachments
file.diff (6.43 KB, patch)
2013-06-02 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-06-02 19:10:01 UTC
- Fix build with newer Tcl/Tk 8.6
- Add LICENSE
- Add MAKE_JOBS_SAFE

New file:
files/patch-cl__cl_read.c
files/patch-ex__ex_script.c
files/patch-ex__ex_tcl.c
files/patch-tcl_api__tcl.c
files/patch-vigor__vigor.c

Remove file:
files/patch-ab
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-02 19:10:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-06-04 09:23:26 UTC
Author: miwi
Date: Tue Jun  4 08:23:11 2013
New Revision: 319831
URL: http://svnweb.freebsd.org/changeset/ports/319831

Log:
  - Fix build with newer Tcl/Tk 8.6
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  
  PR:		179212
  Submitted by:	Ports Fury

Added:
  head/editors/vigor/files/patch-cl__cl_read.c   (contents, props changed)
  head/editors/vigor/files/patch-ex__ex_script.c   (contents, props changed)
  head/editors/vigor/files/patch-ex__ex_tcl.c   (contents, props changed)
  head/editors/vigor/files/patch-tcl_api__tcl.c   (contents, props changed)
  head/editors/vigor/files/patch-vigor__vigor.c   (contents, props changed)
Modified:
  head/editors/vigor/Makefile   (contents, props changed)
  head/editors/vigor/files/patch-ab   (contents, props changed)

Modified: head/editors/vigor/Makefile
==============================================================================
--- head/editors/vigor/Makefile	Tue Jun  4 08:22:22 2013	(r319830)
+++ head/editors/vigor/Makefile	Tue Jun  4 08:23:11 2013	(r319831)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   vigor
-# Date created:        17 Jan 2000
-# Whom:                Bill Fumerola <billf@chc-chimes.com>
-#
+# Created by: Bill Fumerola <billf@chc-chimes.com>
 # $FreeBSD$
-#
 
 PORTNAME=	vigor
 PORTVERSION=	0.016
@@ -12,7 +8,12 @@ CATEGORIES=	editors tcl tk
 MASTER_SITES=	SF
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A vi clone inspired by the userfriendly comic strip
+COMMENT=	Vi clone inspired by the userfriendly comic strip
+
+LICENSE=	BSD
+LICENSE_FILE=	${WRKSRC}/../LICENSE
+
+WRKSRC=		${WRKDIR}/${DISTNAME}/build
 
 USE_TCL=	yes
 USE_TCL_BUILD=	yes
@@ -20,14 +21,13 @@ USE_TK=		yes
 USE_TK_BUILD=	yes
 USE_XORG=	x11
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--program-transform-name="s,0,1,"
-LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_JOBS_SAFE=	yes
 
-WRKSRC=		${WRKDIR}/${DISTNAME}/build
-CFLAGS+=	-I${LOCALBASE}/include/tcl${TCL_VER} -I${LOCALBASE}/include/tk${TK_VER}
+CPPFLAGS+=	-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR}
+LDFLAGS+=	-L${LOCALBASE}/lib
 
 post-patch:
-	${REINPLACE_CMD} -e 's|tcl80|tcl${TCL_VER:S/.//} -L${LOCALBASE}/lib|; \
+	${REINPLACE_CMD} -e 's|tcl80|tcl${TCL_VER:S/.//}|; \
 		s|tk80|tk${TK_VER:S/.//}|; \
 		s|^grantpt|XXXgrantpt|;' \
 			${WRKSRC}/configure

Modified: head/editors/vigor/files/patch-ab
==============================================================================
--- head/editors/vigor/files/patch-ab	Tue Jun  4 08:22:22 2013	(r319830)
+++ head/editors/vigor/files/patch-ab	Tue Jun  4 08:23:11 2013	(r319831)
@@ -1,33 +0,0 @@
---- ../vigor/vigor.c.orig	Fri Sep 15 18:41:47 2000
-+++ ../vigor/vigor.c	Fri Sep 15 18:41:54 2000
-@@ -13,7 +13,7 @@
- #include <sys/types.h>
- #include <sys/queue.h>
- #include <sys/time.h>
--#ifdef HAVE_SYS_SELECT_H
-+#if 0
- #include <sys/select.h>
- #endif
- 
---- ../cl/cl_read.c.orig	Fri Sep 15 18:37:07 2000
-+++ ../cl/cl_read.c	Fri Sep 15 18:40:21 2000
-@@ -15,7 +15,7 @@
- 
- #include <sys/types.h>
- #include <sys/queue.h>
--#ifdef HAVE_SYS_SELECT_H
-+#if 0
- #include <sys/select.h>
- #endif
- #include <sys/time.h>
---- ../ex/ex_script.c.orig	Fri Sep 15 18:40:53 2000
-+++ ../ex/ex_script.c	Fri Sep 15 18:41:02 2000
-@@ -19,7 +19,7 @@
- #include <sys/types.h>
- #include <sys/ioctl.h>
- #include <sys/queue.h>
--#ifdef HAVE_SYS_SELECT_H
-+#if 0
- #include <sys/select.h>
- #endif
- #include <sys/stat.h>

Added: head/editors/vigor/files/patch-cl__cl_read.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/vigor/files/patch-cl__cl_read.c	Tue Jun  4 08:23:11 2013	(r319831)
@@ -0,0 +1,11 @@
+--- ../cl/cl_read.c.orig	Fri Sep 15 18:37:07 2000
++++ ../cl/cl_read.c	Fri Sep 15 18:40:21 2000
+@@ -15,7 +15,7 @@
+ 
+ #include <sys/types.h>
+ #include <sys/queue.h>
+-#ifdef HAVE_SYS_SELECT_H
++#if 0
+ #include <sys/select.h>
+ #endif
+ #include <sys/time.h>

Added: head/editors/vigor/files/patch-ex__ex_script.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/vigor/files/patch-ex__ex_script.c	Tue Jun  4 08:23:11 2013	(r319831)
@@ -0,0 +1,11 @@
+--- ../ex/ex_script.c.orig
++++ ../ex/ex_script.c
+@@ -19,7 +19,7 @@
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/queue.h>
+-#ifdef HAVE_SYS_SELECT_H
++#if 0
+ #include <sys/select.h>
+ #endif
+ #include <sys/stat.h>

Added: head/editors/vigor/files/patch-ex__ex_tcl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/vigor/files/patch-ex__ex_tcl.c	Tue Jun  4 08:23:11 2013	(r319831)
@@ -0,0 +1,11 @@
+--- ../ex/ex_tcl.c.orig
++++ ../ex/ex_tcl.c
+@@ -71,7 +71,7 @@
+ 	    Tcl_Eval(gp->tcl_interp, cmdp->argv[0]->bp) == TCL_OK)
+ 		return (0);
+ 
+-	msgq(sp, M_ERR, "Tcl: %s", ((Tcl_Interp *)gp->tcl_interp)->result);
++	msgq(sp, M_ERR, "Tcl: %s", Tcl_GetStringResult(gp->tcl_interp));
+ 	return (1);
+ #else
+ 	msgq(sp, M_ERR, "302|Vi was not loaded with a Tcl interpreter");

Added: head/editors/vigor/files/patch-tcl_api__tcl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/vigor/files/patch-tcl_api__tcl.c	Tue Jun  4 08:23:11 2013	(r319831)
@@ -0,0 +1,29 @@
+--- ../tcl_api/tcl.c.orig
++++ ../tcl_api/tcl.c
+@@ -73,7 +73,7 @@
+ 	if (getscreenid(interp, &sp, NULL, argv[1]))
+ 		return (TCL_ERROR);
+ 
+-	(void)sprintf(interp->result, "%d", sp->id);
++	(void)sprintf(Tcl_GetStringResult(interp), "%d", sp->id);
+ 	return (TCL_OK);
+ }
+ 
+@@ -254,7 +254,7 @@
+ 	if (rval)
+ 		return (TCL_ERROR);
+ 
+-	(void)sprintf(interp->result, "%lu", (unsigned long)last);
++	(void)sprintf(Tcl_GetStringResult(interp), "%lu", (unsigned long)last);
+ 	return (TCL_OK);
+ }
+ 
+@@ -520,7 +520,7 @@
+ 	if (rval)
+ 		return (TCL_ERROR);
+ 
+-	(void)sprintf(interp->result, "%d", nsp->id);
++	(void)sprintf(Tcl_GetStringResult(interp), "%d", nsp->id);
+ 	return (TCL_OK);
+ }
+ 

Added: head/editors/vigor/files/patch-vigor__vigor.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/vigor/files/patch-vigor__vigor.c	Tue Jun  4 08:23:11 2013	(r319831)
@@ -0,0 +1,38 @@
+--- ../vigor/vigor.c.orig
++++ ../vigor/vigor.c
+@@ -13,7 +13,7 @@
+ #include <sys/types.h>
+ #include <sys/queue.h>
+ #include <sys/time.h>
+-#ifdef HAVE_SYS_SELECT_H
++#if 0
+ #include <sys/select.h>
+ #endif
+ 
+@@ -78,7 +78,7 @@
+ 	 * to want tk's main window cluttering up the place.  I should
+ 	 * use a wm_withdraw instead. */
+ 	if (Tk_Init(vigor_interp) == TCL_ERROR) {
+-		fprintf(stderr, "%s\n", vigor_interp->result);		
++		fprintf(stderr, "%s\n", Tcl_GetStringResult(vigor_interp));		
+ 		return (1);
+ 	}
+ 
+@@ -87,7 +87,7 @@
+ 		return (1);
+ #endif
+ 	if (Tcl_Eval(vigor_interp, vigor_tcl) == TCL_ERROR) {
+-		fprintf(stderr, "%s\n", vigor_interp->result);
++		fprintf(stderr, "%s\n", Tcl_GetStringResult(vigor_interp));
+ 		return (1);
+ 	}
+ 
+@@ -127,7 +127,7 @@
+ 	init_vigor_phrases();
+ 
+ 	if (Tcl_Eval(vigor_interp, "vigor_init") == TCL_ERROR) {
+-		fprintf(stderr, "%s\n", vigor_interp->result);
++		fprintf(stderr, "%s\n", Tcl_GetStringResult(vigor_interp));
+ 	        return (1);
+ 	}
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-06-04 09:23:49 UTC
State Changed
From-To: open->closed

Committed. Thanks!