From nobody@FreeBSD.org  Sat Jul  1 09:14:40 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7D65516A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Jul 2006 09:14:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3016543D49
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Jul 2006 09:14:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k619EbEV009894
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 1 Jul 2006 09:14:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k619EbT9009893;
	Sat, 1 Jul 2006 09:14:37 GMT
	(envelope-from nobody)
Message-Id: <200607010914.k619EbT9009893@www.freebsd.org>
Date: Sat, 1 Jul 2006 09:14:37 GMT
From: Kyryll A Mirneko <mirya@matrix.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: editors/vim build fails WITH_TCL
X-Send-Pr-Version: www-2.3

>Number:         99678
>Category:       ports
>Synopsis:       editors/vim build fails WITH_TCL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 09:20:08 GMT 2006
>Closed-Date:    Wed Dec 19 16:32:33 UTC 2007
>Last-Modified:  Wed Dec 19 16:32:33 UTC 2007
>Originator:     Kyryll A Mirneko
>Release:        6.1
>Organization:
none
>Environment:
FreeBSD myhost 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #5: Sat Jun  3 18:17:08 EEST 2006     mirya@myhost:/usr/src/sys/i386/compile/MY-LITE  i386
>Description:
$ cd /usr/ports/editors/vim
$ make WITH_TCL=yes

..
CC="cc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include  -I/usr/X11R6/include    -I/usr/local/include/tcl  -D_REENTRANT=1  -D_THREAD_SAFE=1 long  " srcdir=. sh ./osdef.sh
cc: long: No such file or directory
cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include  -O2 -pipe -ffast-math  -I/usr/X11R6/include    -I/usr/local/include/tcl  -D_REENTRANT=1  -D_THREAD_SAFE=1 long   -o objects/buffer.o buffer.c
cc: long: No such file or directory
*** Error code 1

Stop in /usr/ports/editors/vim/work/vim70/src

$ pkg_info -x tcl
Information for tcl-threads-8.4.13_1,1
..
>How-To-Repeat:
as described above
>Fix:
none so far
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jul 1 09:31:39 UTC 2006 
Responsible-Changed-Why:  
Make this a ports PR and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99678 

From: Jacula Modyun <jacula@gmail.com>
To: bug-followup@FreeBSD.org
Cc: mirya@matrix.ua
Subject: Re: ports/99678: editors/vim build fails WITH_TCL
Date: Tue, 18 Jul 2006 13:59:12 +0000

 --tThc/1wpZn/ma/RB
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 I think the problem is the /usr/ports/editors/vim/files/patch-configure.
 
 My patch-configure file works; it is:
 
 
 --- configure.orig	Tue Jul 18 13:35:59 2006
 +++ configure	Tue Jul 18 13:35:47 2006
 @@ -4644,3 +4644,3 @@
  	    	    TCL_LIBS=3D`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
 -	    	    	    TCL_DEFS=3D`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr =
 ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012'=
  ' ' | sed -e 's/\\\\X/\\\\ /g'`
 +	    	    	    TCL_DEFS=3D`echo $TCL_DEFS | sed -e 's/\\ /\\X/g' | tr ' ' =
 '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' '=
  | sed -e 's/\\X/\\ /g'`
  	    break
 
 --=20
 The major difference between bonds and bond traders is that the
 bonds will eventually mature.
 
 --tThc/1wpZn/ma/RB
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 
 iQIVAwUBRLzpMNlCXyCLn0uLAQqf5xAAoj94s6cAXFTAhLZrahDhwME1kVnmaWaC
 MsQU14o5B017jIUT1zQA9OH/PPMuDLTJf+S3uEsXqXbTzO6ayXniTc8a2RWCf4Up
 m7ZsPmOUAkLuWjWfrPyTizFZkgCLI4qMHLA5X2bRj9bMi8vFXczYYyLh9eKvdcPs
 SBrUJz3ciVDMAnfksjZnAsaKCEh7DDDss+z83ykFGRIGjZH2EYjVllRwHBd3Xwv0
 OQxmlq22o+ErFOhGc8+9IQ77/UyKxW2EeFTtESQbyqHTTeboaQTc/C4ONzZymiTJ
 1NCSajANZ+myEsGcyPp1vCy3bfl2wUU2jfwOEWGcfXluazJ7nancbEG1cVA7TDuk
 MQejgW89wQtgrn2qbkz/a1pymyXYaMmETqn2jntl7VHk/QUddlbklFGoH3EP2cEq
 mt8WccQ73nxv3AjqVjxFj82tXK3+wVFaZvna2DrPLNz/GJsBAIP/X1rKBk7BSzKN
 P26e7SlHg61E6vx8WD+DG66UsqEOGLyMjNG1ZyKiOgp9cM82EioLm/bh+3aYOPZt
 0A1vallrJQuH1GV+9XisUEsKne3EzVqNwgeJ24ZEXWW5QQbLD8LZ0QBcWstT4/eW
 WQjtPz0afXLb9nu/qJaLrCbV/a8KF+zBjBfHNE9j/wYn5mcsFou/qJ7Kotj8IpWH
 zsI8ZQgB1Ho=
 =lnxx
 -----END PGP SIGNATURE-----
 
 --tThc/1wpZn/ma/RB--

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: bug-followup@freebsd.org, mirya@matrix.ua, kutulu@kutulu.org
Cc:  
Subject: Re: ports/99678: editors/vim build fails WITH_TCL
Date: Fri, 22 Sep 2006 13:01:37 -0400

 Simply _removing_ the files/patch-configure seems to clear the problem for me. 
 The `make WITH_TCL=yes WITH_PYTHON=yes WITH_CSCOPE=yes' has just finished 
 successfully here on FreeBSD-6.1-STABLE.
 
 Could someone else, please, verify? Thanks!
 
 	-mi

From: Dimitry Andric <dimitry@andric.com>
To: bug-followup@FreeBSD.org,  mirya@matrix.ua
Cc:  
Subject: Re: ports/99678: editors/vim build fails WITH_TCL
Date: Tue, 10 Oct 2006 16:10:21 +0200

 Try the following patch, which at least fixes it for me.  At least on
 my system, the reason that it fails, is that tclConfig.sh outputs:
 
 TCL_DEFS=' -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_ FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 '
 
 As you can see, the long\ long part is the likely cause of the problem.
 The original sed expression in the configure script is meant to strip
 out all defines, but AFAICS there's an error in it.  The first part
 says:
 
 echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g'
 
 However, this will only match instances of TWO backslashes followed by a
 space.  Hence, the long\ long definition doesn't get matched.
 
 So if you replace the quad backslashes with double backslashes, it works
 as intended: first all instances of backslash space are replaced by
 backslash X, then any remaining spaces are replaced by newlines, etc.
 
 A similar patch should also go upstream, I'll take care of that.  Though
 I'm not sure it's vim or autoconf. :)
 
 
 Index: editors/vim/files/patch-configure
 ===================================================================
 RCS file: /home/ncvs/ports/editors/vim/files/patch-configure,v
 retrieving revision 1.3
 diff -u -d -r1.3 patch-configure
 --- editors/vim/files/patch-configure	26 Jun 2006 18:21:39 -0000	1.3
 +++ editors/vim/files/patch-configure	10 Oct 2006 13:47:44 -0000
 @@ -1,8 +1,7 @@
  --- auto/configure.orig	Thu May  4 03:46:19 2006
  +++ auto/configure	Mon Jun 19 03:01:38 2006
 -@@ -4644,3 +4644,4 @@ echo "${ECHO_T}$try/tclConfig.sh" >&6
 +@@ -4644,3 +4644,3 @@ echo "${ECHO_T}$try/tclConfig.sh" >&6
   	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
  -	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
 -+	    	    	    TCL_DEFS=`echo $TCL_DEFS |       tr ' ' '\012' | sed -e 's/\\\\ /\\\\X/g' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
 -+
 ++	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\X/\\ /g'`
   	    break
 

From: Dimitry Andric <dimitry@andric.com>
To: bug-followup@FreeBSD.org,  mirya@matrix.ua
Cc:  
Subject: Re: ports/99678: editors/vim build fails WITH_TCL
Date: Tue, 10 Oct 2006 17:11:12 +0200

 Just FYI, the change to the TCL_DEFS processing that causes this
 problem was introduced here:
 
 http://vim.cvs.sourceforge.net/vim/vim7/src/configure.in#rev1.25
 
 Since the log message is just boilerplate, I have no idea why they've
 done this.
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Wed Dec 19 16:31:57 UTC 2007 
State-Changed-Why:  
Committed patch from PR 112347. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99678 
>Unformatted:
