svn commit: r545172 - in head/editors/nvi2: . files

Piotr Kubaj pkubaj at FreeBSD.org
Mon Aug 17 16:22:13 UTC 2020


Author: pkubaj
Date: Mon Aug 17 16:22:12 2020
New Revision: 545172
URL: https://svnweb.freebsd.org/changeset/ports/545172

Log:
  editors/nvi2: fix build on GCC architectures
  
  Use newer GCC:
  cc1: error: unrecognized command line option "-Wno-dangling-else"
  cc1: error: unrecognized command line option "-fcolor-diagnostics"
  
  -fcolor-diagnostics is incompatible with GCC, compilation works fine with Clang also without it.

Added:
  head/editors/nvi2/files/
  head/editors/nvi2/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/editors/nvi2/Makefile

Modified: head/editors/nvi2/Makefile
==============================================================================
--- head/editors/nvi2/Makefile	Mon Aug 17 15:34:47 2020	(r545171)
+++ head/editors/nvi2/Makefile	Mon Aug 17 16:22:12 2020	(r545172)
@@ -10,7 +10,7 @@ COMMENT=	Updated implementation of the ex/vi text edit
 
 LICENSE=	BSD3CLAUSE
 
-USES=		bdb cmake ncurses
+USES=		bdb cmake compiler:c11 ncurses
 USE_GITHUB=	yes
 
 GH_ACCOUNT=	lichray

Added: head/editors/nvi2/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/nvi2/files/patch-CMakeLists.txt	Mon Aug 17 16:22:12 2020	(r545172)
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2020-08-17 12:57:48 UTC
++++ CMakeLists.txt
+@@ -20,7 +20,6 @@ mark_as_advanced(CMAKE_INSTALL_PREFIX)
+ option(USE_WIDECHAR "Enable wide character support" ON)
+ option(USE_ICONV "Enable iconv support" ON)
+ 
+-add_compile_options(-fcolor-diagnostics)
+ add_compile_options($<$<CONFIG:Debug>:-Wall>)
+ add_compile_options($<$<CONFIG:Debug>:-Wno-parentheses>)
+ add_compile_options($<$<CONFIG:Debug>:-Wno-uninitialized>)


More information about the svn-ports-head mailing list