From owner-svn-ports-all@freebsd.org Thu Jun 9 19:01:29 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B273B70AC0; Thu, 9 Jun 2016 19:01:29 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D891D1C55; Thu, 9 Jun 2016 19:01:28 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u59J1SJJ003501; Thu, 9 Jun 2016 19:01:28 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u59J1RL8003498; Thu, 9 Jun 2016 19:01:27 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201606091901.u59J1RL8003498@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Thu, 9 Jun 2016 19:01:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416620 - head/editors/neovim/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 19:01:29 -0000 Author: matthew Date: Thu Jun 9 19:01:27 2016 New Revision: 416620 URL: https://svnweb.freebsd.org/changeset/ports/416620 Log: Fix be64toh() detection on BSDs from upstream Use patch names as generated by 'make makepatch' PR: 210054 Submitted by: gor@clogic.com.ua Added: head/editors/neovim/files/patch-config__CMakeLists.txt (contents, props changed) head/editors/neovim/files/patch-config__config.h.in (contents, props changed) head/editors/neovim/files/patch-src__nvim__shada.c (contents, props changed) Deleted: head/editors/neovim/files/patch-config_CMakeLists.txt head/editors/neovim/files/patch-src_nvim_shada.c Added: head/editors/neovim/files/patch-config__CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/neovim/files/patch-config__CMakeLists.txt Thu Jun 9 19:01:27 2016 (r416620) @@ -0,0 +1,26 @@ +--- config/CMakeLists.txt.orig 2016-06-05 14:13:28 UTC ++++ config/CMakeLists.txt +@@ -67,6 +67,14 @@ if(HAVE_LANGINFO_H) + check_symbol_exists(CODESET "langinfo.h" HAVE_NL_LANGINFO_CODESET) + endif() + ++check_include_files("endian.h" HAVE_ENDIAN_H) ++check_include_files("sys/endian.h" HAVE_SYS_ENDIAN_H) ++ ++set(ENDIAN_INCLUDE_FILE "endian.h") ++if(HAVE_SYS_ENDIAN_H AND NOT HAVE_ENDIAN_H) ++ set(ENDIAN_INCLUDE_FILE "sys/endian.h") ++endif() ++ + set(SI "#include \n") + set(MS "int main(int argc,char**argv)\n{\n uint64_t i=0x0102030405060708ULL;") + set(ME "}") +@@ -74,7 +82,7 @@ check_c_source_compiles(" + #define _BSD_SOURCE 1 + #define _DEFAULT_SOURCE 1 + ${SI} +- #include ++ #include <${ENDIAN_INCLUDE_FILE}> + #ifndef be64toh + # error No be64toh macros + #endif Added: head/editors/neovim/files/patch-config__config.h.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/neovim/files/patch-config__config.h.in Thu Jun 9 19:01:27 2016 (r416620) @@ -0,0 +1,9 @@ +--- config/config.h.in.orig 2016-06-05 14:13:28 UTC ++++ config/config.h.in +@@ -57,5 +57,6 @@ + + #cmakedefine HAVE_BE64TOH + #cmakedefine ORDER_BIG_ENDIAN ++#define ENDIAN_INCLUDE_FILE <@ENDIAN_INCLUDE_FILE@> + + #endif // AUTO_CONFIG_H Added: head/editors/neovim/files/patch-src__nvim__shada.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/neovim/files/patch-src__nvim__shada.c Thu Jun 9 19:01:27 2016 (r416620) @@ -0,0 +1,11 @@ +--- src/nvim/shada.c.orig 2016-06-05 14:13:28 UTC ++++ src/nvim/shada.c +@@ -46,7 +46,7 @@ + #ifdef HAVE_BE64TOH + # define _BSD_SOURCE 1 + # define _DEFAULT_SOURCE 1 +-# include ++# include ENDIAN_INCLUDE_FILE + #endif + + // Note: when using bufset hash pointers are intentionally casted to uintptr_t