pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc vim, and Mac Ventura 13.3 vim highlight issue



Yesterday I updated Mac Ventura from 13.2.3 (I think) to 13.3,
this caused a pkgsrc xcode detection issue, minor patch in
pkg/57306 which simply adds
OSX_SDK_MAP.13.3=13.1
to
mk/platform/Darwin.mk

Today I am noticing problems with syntax highlighting and sh.vim.
This is probably related to incompatible share files being sourced
between pkgsrc vim (default) and base vim...

 /usr/bin/vim --version | head -n4
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar  4 2023 14:02:05)
macOS version - arm64
Included patches: 1-1313
Compiled by root%apple.com@localhost

 ls -ld /usr/share/vim/
drwxr-xr-x  4 root  wheel  128 Mar 17 21:34 /usr/share/vim/

(pkgsrc vim sourcing the base vim share is the only explanation
for the behavior I experienced, and possibly a bug)

in any event, I found success by bumping editors/vim-share
version.mk to VIM_PATCHLEVEL=1321
(simply the last patch that mentions syntax}
and replacing packages vim-share and vim

I also tested a lighter touch patch first, attached,
it is the runtime/syntax/sh.vim HEAD from github
applied to current, and it works.

caveat emperior, I am curious if this newer sh.vim file
breaks vim patch 0960 for example.

OIC - the patch-feature.h explains why pkgsrc
was using base share files....

-// #define SYS_VIMRC_FILE  "/etc/vimrc"
+#define SYS_VIMRC_FILE "@PKG_SYSCONFDIR@/vimrc"

without this change to current, the patch does not apply.

Thanks!
-George

--
George Georgalis, (415) 894-2710, http://www.galis.org/

Attachment: patch-feature.h
Description: Binary data

Attachment: patch-syntax-sh.vim
Description: Binary data



Home | Main Index | Thread Index | Old Index