svn commit: r551865 - in head/devel/json-c: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 10 07:44:19 UTC 2020
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)
More information about the svn-ports-head
mailing list