vim's tar support requires GNU tar to operate correctly; patch the relevant

script to use "gtar" not "tar". This is not added as a run dep to avoid
pulling in extra dependencies, especially xz which requires gcc3+ so is
not available on some arch and is more difficult to build on others.
(There's a clear error message at runtime if gtar is unavailable.)
ok dcoppa@ ckuethe@
This commit is contained in:
sthen 2011-06-15 19:43:10 +00:00
parent dd75e16ee2
commit a3d5e24e83
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.120 2011/04/10 18:01:13 jasper Exp $
# $OpenBSD: Makefile,v 1.121 2011/06/15 19:43:10 sthen Exp $
COMMENT-main= vi clone, many additional features
COMMENT-lang= vi clone, NLS subpackage
@ -9,7 +9,7 @@ VERSION= 7.3.${REV}
# keep PKGNAME for full version number
PKGNAME= vim-${VERSION}
PKGNAME-main= vim-${VERSION}
REVISION-main= 0
REVISION-main= 1
PKGNAME-lang= vim-lang-${VERSION}
P= ${DISTNAME:C/[-\.]//g}
CATEGORIES= editors

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-runtime_autoload_tar_vim,v 1.1 2011/06/15 19:43:10 sthen Exp $
--- runtime/autoload/tar.vim.orig Wed Jun 15 13:27:21 2011
+++ runtime/autoload/tar.vim Wed Jun 15 13:30:00 2011
@@ -42,7 +42,7 @@ if !exists("g:tar_readoptions")
let g:tar_readoptions= "OPxf"
endif
if !exists("g:tar_cmd")
- let g:tar_cmd= "tar"
+ let g:tar_cmd= "gtar"
endif
if !exists("g:tar_writeoptions")
let g:tar_writeoptions= "uf"