Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 2020 07:44:14 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r551865 - in head/devel/json-c: . files
Message-ID:  <202010100744.09A7iEPE063400@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Oct 10 07:44:14 2020
New Revision: 551865
URL: https://svnweb.freebsd.org/changeset/ports/551865

Log:
  Update r551672
  
  Use a patch file instead doing it in configure stage.
  
  PR:		249412
  
  Submitted by:	sunpoet (myself)
  Tested by:	leres

Added:
  head/devel/json-c/files/
  head/devel/json-c/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/devel/json-c/Makefile

Modified: head/devel/json-c/Makefile
==============================================================================
--- head/devel/json-c/Makefile	Sat Oct 10 07:44:09 2020	(r551864)
+++ head/devel/json-c/Makefile	Sat Oct 10 07:44:14 2020	(r551865)
@@ -23,11 +23,6 @@ USE_LDCONFIG=	yes
 
 CPE_VENDOR=	json-c_project
 
-# Avoid use of newlocale(3) that results in increasing memory usage
-post-configure:
-	${REINPLACE_CMD} -e 's|.*HAVE_USELOCALE|// &|' \
-	    ${CONFIGURE_WRKSRC}/config.h
-
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/json_object_private.h ${STAGEDIR}${PREFIX}/include/json-c/
 

Added: head/devel/json-c/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/json-c/files/patch-CMakeLists.txt	Sat Oct 10 07:44:14 2020	(r551865)
@@ -0,0 +1,13 @@
+Avoid use of newlocale(3) that results in increasing memory usage
+
+--- CMakeLists.txt.orig	2020-07-26 15:08:19 UTC
++++ CMakeLists.txt
+@@ -177,7 +177,7 @@ if (HAVE_STDLIB_H)
+ endif()
+ if (HAVE_LOCALE_H)
+     check_symbol_exists(setlocale   "locale.h" HAVE_SETLOCALE)
+-    check_symbol_exists(uselocale   "locale.h" HAVE_USELOCALE)
++    # check_symbol_exists(uselocale   "locale.h" HAVE_USELOCALE)
+ endif()
+ if (HAVE_STRINGS_H)
+     check_symbol_exists(strcasecmp  "strings.h" HAVE_STRCASECMP)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010100744.09A7iEPE063400>