From owner-svn-ports-all@freebsd.org Sat Oct 10 07:44:19 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 02DA443EE38; Sat, 10 Oct 2020 07:44:19 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C7cQV4hZtz4Lfl; Sat, 10 Oct 2020 07:44:18 +0000 (UTC) (envelope-from sunpoet@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F3A072752F; Sat, 10 Oct 2020 07:44:14 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09A7iETG063402; Sat, 10 Oct 2020 07:44:14 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09A7iEPE063400; Sat, 10 Oct 2020 07:44:14 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202010100744.09A7iEPE063400@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 10 Oct 2020 07:44:14 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel/json-c: . files X-SVN-Commit-Revision: 551865 X-SVN-Commit-Repository: ports 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.33 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: Sat, 10 Oct 2020 07:44:19 -0000 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)