summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2017-12-03 19:49:03 +0000
committerbsiegert <bsiegert@pkgsrc.org>2017-12-03 19:49:03 +0000
commitbbeb501e31700b71caa252aaf0322bae502643fc (patch)
treeac264a1d6319735de61d3ac5b462e81d323bcd29 /editors
parentcaa6fab612a3aac67bacc0176e88ef59edacac42 (diff)
downloadpkgsrc-bbeb501e31700b71caa252aaf0322bae502643fc.tar.gz
Disable selinux on ChromeOS.
ChromeOS userland has a libselinux but not the selinux.h header file. The configure check passes but compilation later fails. However, the resulting binary still does not run. It gets killed on startup with "buffer overflow detected".
Diffstat (limited to 'editors')
-rw-r--r--editors/vim-share/Makefile.common7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/vim-share/Makefile.common b/editors/vim-share/Makefile.common
index c29e9ab50c8..eb7bf801c4c 100644
--- a/editors/vim-share/Makefile.common
+++ b/editors/vim-share/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.158 2017/07/09 23:58:24 wen Exp $
+# $NetBSD: Makefile.common,v 1.159 2017/12/03 19:49:03 bsiegert Exp $
# used by editors/vim/Makefile
# used by editors/vim-gtk2/Makefile
@@ -41,6 +41,11 @@ CONFIGURE_ARGS+= ${VIM_EXTRA_OPTS}
CONFIGURE_ARGS+= --enable-multibyte
CONFIGURE_ARGS+= --enable-cscope
+# has libselinux but not selinux.h
+.if "${OS_VARIANT}" == "chromeos"
+CONFIGURE_ARGS+= --disable-selinux
+.endif
+
PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet \
-E ${PATCH_STRIP:Q}
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet \