ports/53001: Incorrect path during install portion of editors/vim

Linh Pham question at closedsrc.org
Fri Jun 6 20:30:13 UTC 2003


>Number:         53001
>Category:       ports
>Synopsis:       Incorrect path during install portion of editors/vim
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 06 13:30:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Linh Pham
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD q.closedsrc.org 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Sun Apr 6 22:50:16 PDT 2003 question at q.closedsrc.org:/usr/obj/usr/src/sys/Q i386
>Description:
When trying to do a 'make install' for editors/vim for version 6.2.14 (the
version for the Makefile is 1.228), it fails with an error code of 71 as
posted below:

===>   Generating temporary packing list
[ -e /usr/local/bin/gvim ] || (cd /usr/local/bin ; /bin/ln -sf vim gvim)
#       below needed for `vim-lite' port
test -e /usr/local/bin/rgvim  || (cd /usr/local/bin ; /bin/ln -sf vim rgvim)
test -e /usr/local/bin/gview  || (cd /usr/local/bin ; /bin/ln -sf vim gview)
test -e /usr/local/bin/rgview || (cd /usr/local/bin ; /bin/ln -sf vim rgview)
test -e /usr/local/bin/evim   || (cd /usr/local/bin ; /bin/ln -sf vim evim)
test -e /usr/local/bin/eview  || (cd /usr/local/bin ; /bin/ln -sf vim eview)
test -e /usr/local/bin/gvimdiff   || (cd /usr/local/bin ; /bin/ln -sf vim gvimdiff)
install -c -o root -g wheel -m 444 /usr/ports/editors/vim/files/vietnamese_viscii.vim /usr/local/share/vim/vim6/keymap
install: /usr/local/share/vim/vim6/keymap: No such file or directory
*** Error code 71

The correct path should be /usr/local/share/vim/vim62 rather than
/usr/local/share/vim/vim6 as listed above.
>How-To-Repeat:
Run 'make ; make install' in editors/vim with the latest revision of the
port (last updated 06 Jun 2003 12:01:42)
>Fix:
In version 1.228 of Makefile for the port, line 154 is:

	${INSTALL_DATA} ${FILESDIR}/vietnamese_viscii.vim ${DATADIR}/keymap

DATADIR is defined as the following on line 48 as:

	${PREFIX}/share/vim/${_DATADIR}

And _DATADIR is defined on line 47 as:

	${DISTNAME:C/.[0-9]*$//:S/-//g:S/.//g}

For some reason, DATADIR is returning a value of 6 instead of 62 at line 154.
That needs to be fixed and I'm not sure what the regex would be to do so.


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list