From owner-svn-ports-all@freebsd.org Thu Oct 12 16:53:02 2017 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 87EFFE2ED65; Thu, 12 Oct 2017 16:53:02 +0000 (UTC) (envelope-from romain@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 56A8F83D4F; Thu, 12 Oct 2017 16:53:02 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9CGr1ks089625; Thu, 12 Oct 2017 16:53:01 GMT (envelope-from romain@FreeBSD.org) Received: (from romain@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9CGr1n1089623; Thu, 12 Oct 2017 16:53:01 GMT (envelope-from romain@FreeBSD.org) Message-Id: <201710121653.v9CGr1n1089623@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: romain set sender to romain@FreeBSD.org using -f From: =?UTF-8?Q?Romain_Tarti=c3=a8re?= Date: Thu, 12 Oct 2017 16:53:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r451907 - in head/devel/leatherman: . files X-SVN-Group: ports-head X-SVN-Commit-Author: romain X-SVN-Commit-Paths: in head/devel/leatherman: . files X-SVN-Commit-Revision: 451907 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.23 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, 12 Oct 2017 16:53:02 -0000 Author: romain Date: Thu Oct 12 16:53:01 2017 New Revision: 451907 URL: https://svnweb.freebsd.org/changeset/ports/451907 Log: Woraround crash when LC_* is not set Puppet and MCollective define LC_ALL=C.UTF-8 to avoid this crash, but it's still a problem for many use cases (e.g. cron job storing facts for MCollective). While this does not fix the root cause of the crash that is still under investigation, this makes facter usable regardless of the user's envrionment. PR: 222125 Submitted by: ryanb@honeycomb.net Added: head/devel/leatherman/files/patch-locale_src_locale.cc (contents, props changed) Modified: head/devel/leatherman/Makefile Modified: head/devel/leatherman/Makefile ============================================================================== --- head/devel/leatherman/Makefile Thu Oct 12 16:31:21 2017 (r451906) +++ head/devel/leatherman/Makefile Thu Oct 12 16:53:01 2017 (r451907) @@ -2,7 +2,7 @@ PORTNAME= leatherman PORTVERSION= 1.3.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MAINTAINER= puppet@FreeBSD.org Added: head/devel/leatherman/files/patch-locale_src_locale.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/leatherman/files/patch-locale_src_locale.cc Thu Oct 12 16:53:01 2017 (r451907) @@ -0,0 +1,12 @@ +--- locale/src/locale.cc.orig 2017-10-10 10:16:35 UTC ++++ locale/src/locale.cc +@@ -43,6 +43,9 @@ namespace leatherman { namespace locale + gen.add_messages_domain(domain); + } + ++ if (id.empty()) ++ return g_locales.insert(make_pair(domain, std::locale())).first->second; ++ + // Ensure creating and adding a new locale is thread-safe. + try { + return g_locales.insert(make_pair(domain, gen(id))).first->second;