Re: editors/vim fails to install/register

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Fri, 03 Sep 2021 05:55:04 UTC
On Fri, Sep 03, 2021 at 01:45:02AM -0400, Janos Dohanics wrote:
> Hello,
> 
> Tried to upgrade editors/vim-console, noted the change in UPDATING.
> However, the update failed with the errors shown below. Then, unwisely
> deleted the package, and tried to install from ports anew, but same
> error message.
> 
> [root@turtle ~]# uname -v
> FreeBSD 12.2-STABLE r370465 TURTLE2021090201 
> 
> [root@turtle /usr/ports/editors/vim]# make showconfig
> ===> The following configuration options are available for vim-8.2.3394:
>      DEFAULT_VIMRC=on: Install bundled vimrc as default setting
>      MAKE_JOBS=off: Enable parallel build
>      NLS=on: Native Language Support
>      XTERM_SAVE=off: Restore xterm screen after exit
> ====> Optional language bindings
>      LUA=off: Lua scripting language support
>      PERL=off: Perl scripting language support
>      PYTHON=on: Python bindings or support
>      RUBY=off: Ruby bindings or support
>      SCHEME=off: MzScheme (Racket) bindings
>      TCL=off: Tcl scripting language support
> ====> Options available for the single CTAGS: you have to select exactly one of them
>      CTAGS_BASE=on: Use system ctags
>      CTAGS_EXUBERANT=off: Use exctags instead of ctags
>      CTAGS_UNIVERSAL=off: Use uctags instead of ctags
> ===> Use 'make config' to modify these settings
> 
> [root@turtle /usr/ports/editors/vim]# make install clean
> ===>  Installing for vim-8.2.3394
> ===>  Checking if vim is already installed
> ===>   Registering installation for vim-8.2.3394
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%GUI%%bin/eview:No such file or directory
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%GUI%%bin/gview:No such file or directory
> 
> [...many more lines looking for %%GUI%%bin]
> 
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%DESKTOP%%share/applications/gvim.desktop:No such file or directory
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%DESKTOP%%share/applications/vim.desktop:No such file or directory
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%DESKTOP%%share/icons/hicolor/48x48/apps/gvim.png:No such file or directory
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%DESKTOP%%share/icons/locolor/16x16/apps/gvim.png:No such file or directory
> pkg-static: Unable to access file /usr/ports/editors/vim/work-console/stage/usr/local/%%DESKTOP%%share/icons/locolor/32x32/apps/gvim.png:No such file or directory
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/editors/vim
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/editors/vim

Try 'make FLAVOR=console clean install clean'.

Maybe the port needs the following line:

FLAVOR?=        ${FLAVORS:[1]}

or

FLAVOR?=	console

-- 
Herbert