From stijn@pcwin002.win.tue.nl  Tue Oct 23 07:23:15 2001
Return-Path: <stijn@pcwin002.win.tue.nl>
Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72])
	by hub.freebsd.org (Postfix) with ESMTP id CF08737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Oct 2001 07:23:14 -0700 (PDT)
Received: (from stijn@localhost)
	by pcwin002.win.tue.nl (8.11.6/8.11.4) id f9NEN9T99011;
	Tue, 23 Oct 2001 16:23:09 +0200 (CEST)
	(envelope-from stijn)
Message-Id: <200110231423.f9NEN9T99011@pcwin002.win.tue.nl>
Date: Tue, 23 Oct 2001 16:23:09 +0200 (CEST)
From: stijn@win.tue.nl
Reply-To: stijn@win.tue.nl
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: editors/vim can't build a package in the WITHOUT_X11=yes case
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31454
>Category:       ports
>Synopsis:       editors/vim can't build a package in the WITHOUT_X11=yes case
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 07:30:01 PDT 2001
>Closed-Date:    Tue Nov 6 11:37:51 PST 2001
>Last-Modified:  Tue Nov 06 11:38:33 PST 2001
>Originator:     Stijn Hoop
>Release:        FreeBSD 4.4-STABLE
>Organization:
>Environment:

System: FreeBSD 4.4-STABLE #0: Mon Oct 15 04:32:30 CEST 2001

>Description:

The current port of vim can't build a package in the case that the user
specifies WITHOUT_X11=yes on the command line. Witness the following output:

[stijn@pcwin002] </usr/ports/editors/vim> sudo make WITHOUT_X11=yes package
===>  Building package for vim-6.0.18
Creating package /usr/ports/editors/vim/vim-6.0.18.tgz
Registering depends:.
Creating gzip'd tar ball in '/usr/ports/editors/vim/vim-6.0.18.tgz'
tar: can't add file bin/gvimdiff : No such file or directory

>How-To-Repeat:

cd /usr/ports/editors/vim
make WITHOUT_X11=yes package

>Fix:

diff -urN /usr/ports/editors/vim/Makefile vim/Makefile
--- /usr/ports/editors/vim/Makefile	Tue Oct 23 05:32:56 2001
+++ vim/Makefile	Tue Oct 23 16:22:22 2001
@@ -57,6 +57,8 @@
 .endif
 
 .if !defined(WITHOUT_X11)
+PLIST_SUB+=	WITH_X11=""
+
 #	for now default the GUI to the GTK+ one
 #	will be reviewed when the GTK+ 1.{3,4} behemoth is released
 .if !defined(WITH_ATHENA) && !defined(WITH_GTK) && !defined(WITH_MOTIF)
@@ -75,6 +77,7 @@
 .endif
 .else	# WITHOUT_X11
 MAKE_ARGS+=	CONF_OPT_GUI="--enable-gui=no --without-x ${I18N}"
+PLIST_SUB+=	WITH_X11="@comment "
 .endif	# WITHOUT_X11
 
 .if defined(PACKAGE_BUILDING)
diff -urN /usr/ports/editors/vim/pkg-plist vim/pkg-plist
--- /usr/ports/editors/vim/pkg-plist	Tue Aug 21 21:51:09 2001
+++ vim/pkg-plist	Tue Oct 23 16:20:52 2001
@@ -13,7 +13,7 @@
 bin/rview
 bin/rvim
 bin/vimdiff
-bin/gvimdiff
+%%WITH_X11%%bin/gvimdiff
 @comment bin/view
 @exec mkdir -p %D/share/vim/%%VIM_VER%%/lang
 @comment Insert PLIST.share-vim here
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->obrien 
Responsible-Changed-By: petef 
Responsible-Changed-When: Tue Nov 6 01:36:38 PST 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31454 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Tue Nov 6 11:37:51 PST 2001 
State-Changed-Why:  
The fix is wrong (if there was a problem). 
Is there some reason this line is not working? 

test -e ${PREFIX}/bin/gvimdiff   
|| (cd ${PREFIX}/bin ; ${LN} -s vim gvimdiff) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31454 
>Unformatted:
